|
@@ -1,6 +1,5 @@
|
|
|
package com.migao.controller;
|
|
|
|
|
|
-import com.migao.config.constant.LogType;
|
|
|
import com.migao.config.log.LogAnnotation;
|
|
|
import com.migao.config.properties.SystemProperties;
|
|
|
import com.migao.config.response.ResponseBean;
|
|
@@ -10,7 +9,6 @@ import com.migao.entity.vo.req.UserLoginReq;
|
|
|
import com.migao.service.UserService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.ApiOperationSupport;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -32,7 +30,7 @@ public class UserController {
|
|
|
|
|
|
@ApiOperation("新增用户")
|
|
|
@PostMapping(value = "/insert")
|
|
|
- @LogAnnotation(describe = "新增用户",isParameters = "是", operationType = LogType.INSERT, tableName = "t_courts")
|
|
|
+ @LogAnnotation(describe = "新增用户")
|
|
|
public ResponseBean<?> insert(
|
|
|
@Validated(value = {Insert.class}) @RequestBody UserInsertReq userInsertReq
|
|
|
) {
|
|
@@ -41,6 +39,7 @@ public class UserController {
|
|
|
|
|
|
@ApiOperation("登录")
|
|
|
@PostMapping(value = "/login")
|
|
|
+ @LogAnnotation(describe = "登录",isParameters = "否")
|
|
|
public ResponseEntity<?> login(@RequestBody UserLoginReq userLoginReq) {
|
|
|
return userService.login(userLoginReq);
|
|
|
}
|