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.java
dev.carData
yuan 2024-10-08 00:08:37 +08:00
commit f6c0b72e18
5 changed files with 12 additions and 27 deletions

View File

@ -1,5 +1,6 @@
package com.muyu.car.domain.api.req; package com.muyu.car.domain.api.req;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -31,7 +32,8 @@ public class VehicleConnectionReq {
/** /**
* vin * 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 nonce;
/**
*
*/
private String password;
} }

View File

@ -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
* @Packagecom.muyu.car.gateway.controller
* @Projectcloud-server-8
* @nameVehicleInformation
* @Date2024/10/4 9:40
*/
@RestController
@RequestMapping("/vehicle")
public class VehicleInformation {
// @PostMapping("/")
}

View File

@ -38,7 +38,7 @@ public class VehicleInformationServiceImpl implements VehicleInformationService{
log.info("车辆无法重复预上线"); log.info("车辆无法重复预上线");
} }
return new MqttServerModel("tcp://47.97.2.212:1883","vehicle"); return new MqttServerModel("tcp://121.199.172.3:1883","vehicle");
} }
} }

View File

@ -45,7 +45,7 @@ public class GenerateInstance implements ApplicationRunner {
// 设置地域ID // 设置地域ID
.setRegionId("cn-hangzhou") .setRegionId("cn-hangzhou")
// 设置镜像ID // 设置镜像ID
.setImageId("m-bp10rcc4nsihqfoz0w7s") .setImageId("m-bp1hkxfctk751s62jqhq")
// 设置实例类型 // 设置实例类型
.setInstanceType("ecs.t6-c1m1.large") .setInstanceType("ecs.t6-c1m1.large")
// 设置安全组ID // 设置安全组ID
@ -65,7 +65,7 @@ public class GenerateInstance implements ApplicationRunner {
// 设置实例密码 // 设置实例密码
.setPassword("EightGroup123.") .setPassword("EightGroup123.")
// 设置创建实例的数量 // 设置创建实例的数量
.setAmount(2); .setAmount(1);
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
try { try {

View File

@ -28,7 +28,6 @@ public class QueryInstance {
.setInstanceIds(JSON.toJSONString(instanceIds)) .setInstanceIds(JSON.toJSONString(instanceIds))
.setRegionId("cn-hangzhou"); .setRegionId("cn-hangzhou");
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
try { try {