|
|
@@ -47,13 +47,11 @@ public class UserController extends BaseController {
|
|
|
/**
|
|
|
* 修改客户端用户
|
|
|
*/
|
|
|
- @ApiOperation("修改客户端用户")
|
|
|
- @Log(title = "客户端用户", businessType = BusinessType.UPDATE)
|
|
|
- @PostMapping("/edit")
|
|
|
- public AjaxResult<Void> edit(@RequestBody UserEditBo bo) throws IllegalAccessException {
|
|
|
- ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- bo.setUserId(loginUser.getUser().getUserId());
|
|
|
- return toAjax(iUserService.appUpdateByEditBo(bo) ? 1 : 0);
|
|
|
+ @ApiOperation("客户端用户开通会员")
|
|
|
+ @Log(title = "客户端用户开通会员", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/openVip")
|
|
|
+ public AjaxResult<Void> openVip(@RequestBody UserEditBo bo) throws IllegalAccessException {
|
|
|
+ return toAjax(iUserService.openVip(bo) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
|