初始化

master
Yang Haoyu 2023-12-01 10:07:16 +08:00
commit e453a5e13c
11 changed files with 388 additions and 0 deletions

38
.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

38
fate-launch-common/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fate</groupId>
<artifactId>fate-launch</artifactId>
<version>3.6.3</version>
</parent>
<groupId>com.fate</groupId>
<artifactId>fate-launch-common</artifactId>
<description>车辆上线——实体类</description>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-core</artifactId>
</dependency>
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-redis</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.0</version>
</dependency>
<!-- fate Common DataSource -->
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-datasource</artifactId>
</dependency>
<!-- fate Common DataScope -->
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-datascope</artifactId>
</dependency>
<!-- fate Common Log -->
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-log</artifactId>
</dependency>
<!-- fate Common Swagger -->
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-common-swagger</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,41 @@
package com.shiyi.launch.domain;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @Description : Vin
* @Author : YangHaoYu
* @Date: 2023-11-30 19:31
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class Vehiclelaunch {
/**
* Vin
*/
@JSONField(name = "vehicleVin")
private String vin;
/**
*
*/
private String timestamp;
/**
*
*/
@JSONField(name = "username")
private String userName;
/**
*
*/
private String nonce;
}

38
fate-launch-server/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fate</groupId>
<artifactId>fate-launch</artifactId>
<version>3.6.3</version>
</parent>
<groupId>com.fate</groupId>
<artifactId>fate-launch-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.fate</groupId>
<artifactId>fate-launch-common</artifactId>
<version>3.6.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,38 @@
package com.shiyi.launch.controller;
import com.fate.common.core.domain.Result;
import com.shiyi.launch.domain.Vehiclelaunch;
import com.shiyi.launch.service.VehiclelaunchService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Description : 线
* @Author : YangHaoYu
* @Date: 2023-11-30 19:59
*/
@Log4j2
@RestController
@RequestMapping("launch")
public class VehiclelaunchController {
@Autowired
private VehiclelaunchService vehiclelaunchService;
/**
* 线
*/
@PostMapping("vehiclelaunch")
public String vehiclelaunchs(@RequestBody Vehiclelaunch vehiclelaunch){
String topic = vehiclelaunchService.vehiclelaunch(vehiclelaunch);
return topic;
}
}

View File

@ -0,0 +1,12 @@
package com.shiyi.launch.service;
import com.shiyi.launch.domain.Vehiclelaunch;
/**
* @Description :
* @Author : YangHaoYu
* @Date: 2023-11-30 20:01
*/
public interface VehiclelaunchService {
String vehiclelaunch(Vehiclelaunch vehiclelaunch);
}

View File

@ -0,0 +1,19 @@
package com.shiyi.launch.service.impl;
import com.shiyi.launch.domain.Vehiclelaunch;
import com.shiyi.launch.service.VehiclelaunchService;
import org.springframework.stereotype.Service;
/**
* @Description : 线
* @Author : YangHaoYu
* @Date: 2023-11-30 20:02
*/
@Service
public class VehiclelaunchServiceimpl implements VehiclelaunchService {
@Override
public String vehiclelaunch(Vehiclelaunch vehiclelaunch) {
return null;
}
}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 10000
# Spring
spring:
application:
# 应用名称
name: fate-launch
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 182.254.222.21:8848
config:
# 配置中心地址
server-addr: 182.254.222.21:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

32
pom.xml 100644
View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fate</groupId>
<artifactId>fate-modules</artifactId>
<version>3.6.3</version>
</parent>
<groupId>com.fate</groupId>
<version>3.6.3</version>
<artifactId>fate-launch</artifactId>
<packaging>pom</packaging>
<description>车辆上线</description>
<modules>
<module>fate-launch-common</module>
<module>fate-launch-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>