|
@@ -1,14 +1,14 @@
|
|
|
package com.zy.bms.controller;
|
|
|
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.zy.bms.common.ServerResponse;
|
|
|
import com.zy.bms.entity.User;
|
|
|
+import com.zy.bms.pojo.io.UserIO;
|
|
|
import com.zy.bms.service.IUserService;
|
|
|
import com.zy.bms.utils.AesUtil;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -20,7 +20,7 @@ import javax.annotation.Resource;
|
|
|
* @since 2021-06-03
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/bms/api/ubiapp")
|
|
|
+@RequestMapping("/bms/api/operate/user")
|
|
|
public class UserController {
|
|
|
@Resource
|
|
|
private IUserService userService;
|
|
@@ -28,8 +28,7 @@ public class UserController {
|
|
|
/**
|
|
|
* 微信登录
|
|
|
*
|
|
|
- * @param code 微信登录凭证
|
|
|
- * @return 用户openId
|
|
|
+ * @return 用户 加密openId
|
|
|
*/
|
|
|
@PostMapping("login.do")
|
|
|
public ServerResponse login(String code) {
|
|
@@ -43,4 +42,12 @@ public class UserController {
|
|
|
}
|
|
|
return ServerResponse.success(AesUtil.encrypt(openId));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页查询用户列表
|
|
|
+ */
|
|
|
+ @GetMapping("listPage.do")
|
|
|
+ public ServerResponse listPage(UserIO io) {
|
|
|
+ return ServerResponse.success(userService.listPage(io));
|
|
|
+ }
|
|
|
}
|