|
@@ -7,6 +7,8 @@ import com.zhongzheng.common.enums.BusinessType;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
import com.zhongzheng.modules.user.bo.RanKingUserQuery;
|
|
import com.zhongzheng.modules.user.bo.RanKingUserQuery;
|
|
|
|
+import com.zhongzheng.modules.user.bo.UserAppAccountLoginBo;
|
|
|
|
+import com.zhongzheng.modules.user.bo.UserAppBindIdBo;
|
|
import com.zhongzheng.modules.user.bo.UserEditBo;
|
|
import com.zhongzheng.modules.user.bo.UserEditBo;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
@@ -81,6 +83,12 @@ public class UserController extends BaseController {
|
|
return AjaxResult.success(list);
|
|
return AjaxResult.success(list);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @ApiOperation("绑定身份证信息")
|
|
|
|
+ @PostMapping("/bind_idcard")
|
|
|
|
+ public AjaxResult<Void> bind_id(@RequestBody UserAppBindIdBo bo) {
|
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
|
+ return toAjax(iUserService.bindIdCard(bo) ? 1 : 0);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|