Althars123 4 năm trước cách đây
mục cha
commit
84ce0ba0d5

+ 30 - 30
zzjs-admin/src/main/java/com/miaxis/app/controller/gzpt/GzptUserInfoController.java

@@ -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("改学员账户不存在或者密码错误");

+ 1 - 1
zzjs-service/src/main/java/com/miaxis/dict/domain/DictCity.java

@@ -50,7 +50,7 @@ public class DictCity {
     /** 等级1省 2市 3区 4街道 */
     @Excel(name = "等级1省 2市 3区 4街道")
     @TableField("level")
-    @ApiModelProperty(value = "等级1省 2市 3区 4街道")
+    @ApiModelProperty(value = "等级1省 2市 3区 4街道" ,required = true    )
     private Integer level;
 
     /** 是否末级 1是 0否 */