Merge branch 'refs/heads/dev.cargateway' into dev
# Conflicts: # cloud-modules/cloud-modules-car-gateway/src/main/java/com/muyu/car/gateway/service/impl/VehicleInformationServiceImpl.javadev.carData
commit
f6c0b72e18
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.car.domain.api.req;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -31,7 +32,8 @@ public class VehicleConnectionReq {
|
|||
/**
|
||||
* vin
|
||||
*/
|
||||
private String vin;
|
||||
@JSONField(name = "vehicleVin")
|
||||
private String vehicleVin;
|
||||
/**
|
||||
* 时间戳
|
||||
*/
|
||||
|
@ -39,10 +41,15 @@ public class VehicleConnectionReq {
|
|||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
@JSONField(name = "username")
|
||||
private String username;
|
||||
/**
|
||||
* 随机字符串
|
||||
*/
|
||||
private String nonce;
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
package com.muyu.car.gateway.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 车辆信息接口
|
||||
* @Author:蓬叁
|
||||
* @Package:com.muyu.car.gateway.controller
|
||||
* @Project:cloud-server-8
|
||||
* @name:VehicleInformation
|
||||
* @Date:2024/10/4 上午9:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/vehicle")
|
||||
public class VehicleInformation {
|
||||
|
||||
// @PostMapping("/")
|
||||
|
||||
}
|
|
@ -38,7 +38,7 @@ public class VehicleInformationServiceImpl implements VehicleInformationService{
|
|||
log.info("车辆无法重复预上线");
|
||||
}
|
||||
|
||||
return new MqttServerModel("tcp://47.97.2.212:1883","vehicle");
|
||||
return new MqttServerModel("tcp://121.199.172.3:1883","vehicle");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class GenerateInstance implements ApplicationRunner {
|
|||
// 设置地域ID
|
||||
.setRegionId("cn-hangzhou")
|
||||
// 设置镜像ID
|
||||
.setImageId("m-bp10rcc4nsihqfoz0w7s")
|
||||
.setImageId("m-bp1hkxfctk751s62jqhq")
|
||||
// 设置实例类型
|
||||
.setInstanceType("ecs.t6-c1m1.large")
|
||||
// 设置安全组ID
|
||||
|
@ -65,7 +65,7 @@ public class GenerateInstance implements ApplicationRunner {
|
|||
// 设置实例密码
|
||||
.setPassword("EightGroup123.")
|
||||
// 设置创建实例的数量
|
||||
.setAmount(2);
|
||||
.setAmount(1);
|
||||
|
||||
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
|
||||
try {
|
||||
|
|
|
@ -28,7 +28,6 @@ public class QueryInstance {
|
|||
.setInstanceIds(JSON.toJSONString(instanceIds))
|
||||
.setRegionId("cn-hangzhou");
|
||||
|
||||
|
||||
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue