feat:glados和ddns脚本
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.xiang.service.module.glados.server;
|
||||
|
||||
import com.xiang.service.module.glados.service.IGLaDOSService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/script/glados")
|
||||
@RequiredArgsConstructor
|
||||
public class GladosServer {
|
||||
|
||||
private final IGLaDOSService gladosService;
|
||||
|
||||
@GetMapping("/checkIn")
|
||||
public void checkIn(@RequestParam("username") String username) {
|
||||
try {
|
||||
gladosService.checkIn(username);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user