故障模块初始化及实体类

master
王堂东 2023-11-19 16:09:48 +08:00
parent 200c5d9733
commit 6e25452684
7 changed files with 164 additions and 11 deletions

View File

@ -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>

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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}