故障模块初始化及实体类
parent
200c5d9733
commit
6e25452684
|
@ -62,6 +62,10 @@
|
|||
<artifactId>february-common-swagger</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
package com.february.fault.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @program: february-fault-information
|
||||
* @description:
|
||||
* @author: Mr.Wang
|
||||
* @create: 2023-11-19 15:04
|
||||
**/
|
||||
|
||||
/**
|
||||
* 故障信息表
|
||||
*/
|
||||
@Data
|
||||
public class Fault {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Integer faultId;
|
||||
/**
|
||||
* 故障码
|
||||
*/
|
||||
private String faultBh;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
private String faultName;
|
||||
/**
|
||||
* 故障类型id
|
||||
*/
|
||||
private Integer faultTypeId;
|
||||
/**
|
||||
* 车辆id
|
||||
*/
|
||||
private Integer carId;
|
||||
/**
|
||||
* 驱动机id
|
||||
*/
|
||||
private Integer actuateId;
|
||||
/**
|
||||
* 故障描述
|
||||
*/
|
||||
private String faultDetail;
|
||||
/**
|
||||
* 故障级别id
|
||||
*/
|
||||
private Integer faultRankId;
|
||||
/**
|
||||
* 是否产生告警
|
||||
*/
|
||||
private Integer isAlarm;
|
||||
/**
|
||||
* 响应方式
|
||||
*/
|
||||
private Integer respondStyle;
|
||||
/**
|
||||
* 创建工单
|
||||
*/
|
||||
private Integer isCreate;
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.february.fault.domain;
|
||||
|
||||
/**
|
||||
* @program: february-fault-information
|
||||
* @description:
|
||||
* @author: Mr.Wang
|
||||
* @create: 2023-11-19 15:44
|
||||
**/
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 故障级别
|
||||
*/
|
||||
@Data
|
||||
public class FaultRank {
|
||||
/**
|
||||
* 故障级别id
|
||||
*/
|
||||
private Integer faultRankId;
|
||||
/**
|
||||
* 故障级别
|
||||
*/
|
||||
private String faultRankName;
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.february.fault.domain;
|
||||
|
||||
/**
|
||||
* @program: february-fault-information
|
||||
* @description: 故障类型
|
||||
* @author: Mr.Wang
|
||||
* @create: 2023-11-19 15:38
|
||||
**/
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 故障类型表
|
||||
*/
|
||||
@Data
|
||||
public class FaultType {
|
||||
/**
|
||||
* 故障类型id
|
||||
*/
|
||||
private Integer faultTypeId;
|
||||
/**
|
||||
* 故障类型名称
|
||||
*/
|
||||
private String faultTypeName;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.february;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Main.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.february.fault;
|
||||
|
||||
import com.february.common.security.annotation.EnableCustomConfig;
|
||||
import com.february.common.security.annotation.EnableRyFeignClients;
|
||||
import com.february.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* @program: february-fault-information
|
||||
* @description:
|
||||
* @author: Mr.Wang
|
||||
* @create: 2023-11-19 14:54
|
||||
**/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
public class FaultApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(FaultApplication.class,args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9218
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: february-fault-information
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 10.100.1.4:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 10.100.1.4:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
Loading…
Reference in New Issue