Merge branch 'dev' of https://gitea.qinmian.online/a_bazu/cloud-server-8 into dev
commit
d947e9fbff
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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("车辆无法重复预上线");
|
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
|
// 设置地域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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
</description>
|
</description>
|
||||||
<artifactId>cloud-modules-carData</artifactId>
|
<artifactId>cloud-modules-carData</artifactId>
|
||||||
|
|
||||||
<description>
|
|
||||||
数据处理模块
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
|
Loading…
Reference in New Issue