|
@@ -1,10 +1,14 @@
|
|
|
package com.zy.bms.controller;
|
|
|
|
|
|
|
|
|
+import com.zy.bms.common.ServerResponse;
|
|
|
+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;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 用户表 前端控制器
|
|
@@ -14,7 +18,25 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2021-06-03
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/builder/user")
|
|
|
+@RequestMapping("/bms/api/ubiapp")
|
|
|
public class UserController {
|
|
|
+// @Resource
|
|
|
+
|
|
|
|
|
|
+// /**
|
|
|
+// * 微信登录
|
|
|
+// *
|
|
|
+// * @param code 微信登录凭证
|
|
|
+// * @return 用户openId
|
|
|
+// */
|
|
|
+// @PostMapping("login.do")
|
|
|
+// public ServerResponse login(String code) {
|
|
|
+// String openId = userService.getWxAppId(code);
|
|
|
+// if (openId == null) return ServerResponse.createByError();
|
|
|
+// //保存新用户
|
|
|
+// if (userService.getByOpenId(openId) == null) {
|
|
|
+// userService.save(new User(openId));
|
|
|
+// }
|
|
|
+// return ServerResponse.createBySuccess(AesUtils.encrypt(openId));
|
|
|
+// }
|
|
|
}
|