This commit is contained in:
dengqn
2024-07-20 11:52:31 +08:00
commit b021366642
11 changed files with 637 additions and 0 deletions
@@ -0,0 +1,13 @@
package com.dengqn.igps2xingzhe;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Igps2xingzheApplication {
public static void main(String[] args) {
SpringApplication.run(Igps2xingzheApplication.class, args);
}
}
@@ -0,0 +1,23 @@
package com.dengqn.igps2xingzhe.config;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author dengqn
* @since 2024/7/20 11:23
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IGPSport implements Serializable {
private static final long serialVersionUID = 3004387713475397922L;
private String username;
private String password;
}
@@ -0,0 +1,24 @@
package com.dengqn.igps2xingzhe.config;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author dengqn
* @since 2024/7/20 11:23
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class XingZhe implements Serializable {
private static final long serialVersionUID = 2522264649038579098L;
private String username;
private String password;
private String pubKey;
}
@@ -0,0 +1,23 @@
package com.dengqn.igps2xingzhe.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 同步
*
* @author dengqn
* @since 2024/7/20 11:21
*/
@RestController
@RequestMapping("/api/trigger")
public class Trigger {
@GetMapping("/sync/igps2xingzhe")
public ResponseEntity<String> onSyncIGPS2XingZhe() {
return ResponseEntity.ok("ok");
}
}
+11
View File
@@ -0,0 +1,11 @@
spring.application.name=igps2xingzhe
server.port=18877
user.xingzhe.username: xxx
user.xingzhe.password: xxx
user.xingzhe.pubKey: xxx
user.igps.username: xxx
user.igps.password: xxx
@@ -0,0 +1,13 @@
spring.application.name=igps2xingzhe
server.port=18877
user.xingzhe.username: xxx
user.xingzhe.password: xxx
user.xingzhe.pubKey: xxx
user.igps.username: xxx
user.igps.password: xxx