|
|
@@ -0,0 +1,56 @@
|
|
|
+package com.tuoren.forward.controller;
|
|
|
+
|
|
|
+import com.tuoren.forward.entity.Log;
|
|
|
+import com.tuoren.forward.entity.RegistLog;
|
|
|
+import com.tuoren.forward.entity.UserConfig;
|
|
|
+import com.tuoren.forward.entity.req.LogSearchReq;
|
|
|
+import com.tuoren.forward.entity.req.RegistLogSearchReq;
|
|
|
+import com.tuoren.forward.service.RegistLogService;
|
|
|
+import com.tuoren.forward.util.Result;
|
|
|
+import com.tuoren.forward.util.ResultPage;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import io.swagger.v3.oas.models.security.SecurityScheme;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+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.ResponseBody;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author zzy
|
|
|
+ * @Data 2024/9/24
|
|
|
+ * @Version 1.0
|
|
|
+ * @Description XXX
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@Controller
|
|
|
+@RequestMapping("RegistLog")
|
|
|
+@Tag(name= "注册日志接口")
|
|
|
+public class RegistLogController {
|
|
|
+ @Autowired
|
|
|
+ RegistLogService registLogService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("search")
|
|
|
+ @ResponseBody
|
|
|
+ @Operation(summary = "注册日志")
|
|
|
+ @Parameter(name="token",description = "token",required = true,in = ParameterIn.HEADER)
|
|
|
+ public ResultPage<RegistLog> search(@RequestBody RegistLogSearchReq req){
|
|
|
+ log.info("registLogSearch>>:{}",req);
|
|
|
+ return registLogService.search(req);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|