srms接口添加日志记录
This commit is contained in:
+10
@@ -4,11 +4,13 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.modules.docking.srms.service.SrmsApiService;
|
||||
import com.jero.modules.docking.srms.vo.ByFileRows;
|
||||
import com.jero.modules.docking.srms.vo.StandardPageVO;
|
||||
import com.jero.modules.docking.srms.vo.StandardTree;
|
||||
import com.jero.modules.docking.utils.ResponsesUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -26,6 +28,7 @@ import java.util.List;
|
||||
* @date 2024/1/18 9:52
|
||||
*/
|
||||
@Slf4j
|
||||
@Api(tags="srms")
|
||||
@RestController
|
||||
@RequestMapping("/srms")
|
||||
public class SrmsApiController {
|
||||
@@ -35,6 +38,7 @@ public class SrmsApiController {
|
||||
private static final String MESSAGE_HEADER = "MessageHeader";
|
||||
|
||||
@ApiOperation("获取token")
|
||||
@AutoLog(value = "获取token")
|
||||
@PostMapping("/getByToken")
|
||||
public JSONObject getByToken(@RequestBody JSONObject json){
|
||||
try {
|
||||
@@ -53,6 +57,7 @@ public class SrmsApiController {
|
||||
}
|
||||
|
||||
@ApiOperation("标准法规文档查询")
|
||||
@AutoLog(value = "标准法规文档查询")
|
||||
@PostMapping("/getByLawsFileList")
|
||||
public JSONObject getByLawsFileList(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
@@ -71,6 +76,7 @@ public class SrmsApiController {
|
||||
}
|
||||
|
||||
@ApiOperation("设计导航-产品设计条款查询")
|
||||
@AutoLog(value = "设计导航-产品设计条款查询")
|
||||
@PostMapping("/getByLawsProductDesign")
|
||||
public JSONObject getByLawsProductDesign(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
@@ -89,6 +95,7 @@ public class SrmsApiController {
|
||||
}
|
||||
|
||||
@ApiOperation("获取所有体系数据")
|
||||
@AutoLog(value = "获取所有体系数据")
|
||||
@PostMapping("/getByLawsSystem")
|
||||
public JSONObject getByLawsSystem(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
@@ -107,6 +114,7 @@ public class SrmsApiController {
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询标准数据")
|
||||
@AutoLog(value = "分页查询标准数据")
|
||||
@PostMapping("/getByLawsStandardPage")
|
||||
public JSONObject getByLawsStandardPage(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
@@ -131,6 +139,7 @@ public class SrmsApiController {
|
||||
}
|
||||
|
||||
// @ApiOperation("零部件分类树同步接口")
|
||||
@AutoLog(value = "零部件分类树同步接口")
|
||||
@PostMapping("/syncPartData")
|
||||
public JSONObject syncPartData(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
@@ -150,6 +159,7 @@ public class SrmsApiController {
|
||||
|
||||
|
||||
// @ApiOperation("E采通获取标准信息")
|
||||
@AutoLog(value = "E采通获取标准信息")
|
||||
@PostMapping("/getEStandardInfo")
|
||||
public JSONObject getEStandardInfo(@RequestBody JSONObject json, HttpServletRequest req){
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user