chore: 导入后端 s-file(alita-bjy-uygur, f分支)至 backend/
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.senmesh.common.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.senmesh.common.AlitaResult;
|
||||
import com.senmesh.common.util.JsonUtils;
|
||||
import com.senmesh.common.util.RequestUtils;
|
||||
import com.senmesh.commonexport.service.ExportService;
|
||||
import com.senmesh.usercenter.user.dto.UserDTO;
|
||||
|
||||
@RestController
|
||||
public class TestController {
|
||||
|
||||
@Autowired
|
||||
private ExportService exportService;
|
||||
|
||||
@GetMapping("anon/hostIp")
|
||||
public AlitaResult<String> hostIp() {
|
||||
return AlitaResult.success(RequestUtils.getHostIp());
|
||||
}
|
||||
|
||||
@GetMapping("anon/trim")
|
||||
public AlitaResult<String> gettrim(UserDTO userDTO) {
|
||||
return AlitaResult.success(JsonUtils.toJsonString(userDTO));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("anon/trim")
|
||||
public AlitaResult<String> posttrim(@RequestBody UserDTO userDTO) {
|
||||
return AlitaResult.success(JsonUtils.toJsonString(userDTO));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user