|
@@ -1,15 +1,13 @@
|
|
package com.flyer.foster.controller.app;
|
|
package com.flyer.foster.controller.app;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
|
|
|
import com.flyer.foster.consts.WechatConst;
|
|
import com.flyer.foster.consts.WechatConst;
|
|
import com.flyer.foster.dto.app.AppSubscribeRespDTO;
|
|
import com.flyer.foster.dto.app.AppSubscribeRespDTO;
|
|
import com.flyer.foster.dto.app.AppUserQueryDTO;
|
|
import com.flyer.foster.dto.app.AppUserQueryDTO;
|
|
|
|
+import com.flyer.foster.dto.app.AppUserUpdateDTO;
|
|
import com.flyer.foster.entity.AppSubscribe;
|
|
import com.flyer.foster.entity.AppSubscribe;
|
|
-import com.flyer.foster.entity.AppUser;
|
|
|
|
import com.flyer.foster.service.IAppSubscribeService;
|
|
import com.flyer.foster.service.IAppSubscribeService;
|
|
import com.flyer.foster.service.IAppUserService;
|
|
import com.flyer.foster.service.IAppUserService;
|
|
import com.flyer.foster.util.WeChatApiUtil;
|
|
import com.flyer.foster.util.WeChatApiUtil;
|
|
-import com.flyer.foster.util.WxAccessToken;
|
|
|
|
import com.flyer.util.JwtUtil;
|
|
import com.flyer.util.JwtUtil;
|
|
import com.flyer.util.R;
|
|
import com.flyer.util.R;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -84,4 +82,10 @@ public class AppUserController {
|
|
}
|
|
}
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PutMapping("/{userId}")
|
|
|
|
+ public R updateUser(@PathVariable Integer userId, @RequestBody AppUserUpdateDTO updateDTO) {
|
|
|
|
+ updateDTO.setUserId(userId);
|
|
|
|
+ return R.ok().result(iAppUserService.updateUser(updateDTO));
|
|
|
|
+ }
|
|
}
|
|
}
|