|
@@ -26,7 +26,7 @@ import java.util.List;
|
|
|
*/
|
|
|
@RestController
|
|
|
@Api(tags = "【小程序-学员基本信息】")
|
|
|
-@RequestMapping("/gzpt-user-info")
|
|
|
+@RequestMapping("/gzpt/userInfo")
|
|
|
public class GzptUserInfoController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@@ -36,41 +36,41 @@ public class GzptUserInfoController extends BaseController {
|
|
|
@Autowired
|
|
|
private IUserInfoService userInfoService;
|
|
|
|
|
|
- /**
|
|
|
- * 查询用户信息列表
|
|
|
- */
|
|
|
- @GetMapping("/list")
|
|
|
- @ApiOperation("查询学员列表")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
|
- @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
- })
|
|
|
- public ResponsePageInfo<GzptUserInfo> list(@ModelAttribute GzptUserInfo gzptUserInfo){
|
|
|
- startPage();
|
|
|
- List<GzptUserInfo> list = gzptUserInfoService.getList();
|
|
|
- return toResponsePageInfo(list);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取用户id获取详细信息
|
|
|
- */
|
|
|
- @GetMapping(value = "/ids/{id}")
|
|
|
- @ApiOperation("获取学员详细信息")
|
|
|
- public Response<GzptUserInfo> getInfo(
|
|
|
- @ApiParam(name = "id", value = "用户信息参数", required = true)
|
|
|
- @PathVariable("id") Long id
|
|
|
- ){
|
|
|
- return Response.success(gzptUserInfoService.getById(id));
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 查询用户信息列表
|
|
|
+// */
|
|
|
+// @GetMapping("/list")
|
|
|
+// @ApiOperation("查询学员列表")
|
|
|
+// @ApiImplicitParams({
|
|
|
+// @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
|
+// @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
+// })
|
|
|
+// public ResponsePageInfo<GzptUserInfo> list(@ModelAttribute GzptUserInfo gzptUserInfo){
|
|
|
+// startPage();
|
|
|
+// List<GzptUserInfo> list = gzptUserInfoService.getList();
|
|
|
+// return toResponsePageInfo(list);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 获取用户id获取详细信息
|
|
|
+// */
|
|
|
+// @GetMapping(value = "/ids/{id}")
|
|
|
+// @ApiOperation("获取学员详细信息")
|
|
|
+// public Response<GzptUserInfo> getInfo(
|
|
|
+// @ApiParam(name = "id", value = "用户信息参数", required = true)
|
|
|
+// @PathVariable("id") Long id
|
|
|
+// ){
|
|
|
+// return Response.success(gzptUserInfoService.getById(id));
|
|
|
+// }
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 绑定学员账号
|
|
|
*/
|
|
|
- @GetMapping(value = "/")
|
|
|
+ @PutMapping(value = "/bind")
|
|
|
@ApiOperation("绑定学员账号")
|
|
|
- public Response<GzptUserInfo> getUserWxlogin(@ModelAttribute GzptUserInfoDTO gzptUserInfoDTO){
|
|
|
+ public Response<GzptUserInfo> getUserWxlogin(@RequestBody GzptUserInfoDTO gzptUserInfoDTO){
|
|
|
GzptUserInfo gzptUserInfo = gzptUserInfoService.getUserWxlogin(gzptUserInfoDTO);
|
|
|
if (gzptUserInfo == null){
|
|
|
throw new CustomException("改学员账户不存在或者密码错误");
|