|
@@ -1,5 +1,6 @@
|
|
|
package com.caimei365.user.controller;
|
|
|
|
|
|
+import com.caimei365.user.idempotent.IpSave;
|
|
|
import com.caimei365.user.model.ResponseJson;
|
|
|
import com.caimei365.user.model.dto.MobileDto;
|
|
|
import com.caimei365.user.model.dto.PasswordDto;
|
|
@@ -53,6 +54,7 @@ public class BaseApi {
|
|
|
*/
|
|
|
@ApiOperation("获取图片验证码")
|
|
|
@ApiImplicitParam(required = true, name = "platformType", value = "0:www,1:crm/h5,2:小程序")
|
|
|
+ @IpSave(saveName = "获取图片验证码",saveParams = false)
|
|
|
@GetMapping("/captcha")
|
|
|
public ResponseJson<Map<String, Object>> getCaptchaImage(Integer platformType) {
|
|
|
return baseService.getCaptchaImage(platformType);
|
|
@@ -80,6 +82,7 @@ public class BaseApi {
|
|
|
@ApiImplicitParam(required = false, name = "token", value = "图片token")
|
|
|
|
|
|
})
|
|
|
+ @IpSave(saveName = "获取短信验证码",saveParams = true)
|
|
|
@GetMapping("/sms/code")
|
|
|
public ResponseJson getSmsCode(String mobile, Integer activateCodeType, Integer platformType, Integer isCheckCaptcha, String imgCode, String token) {
|
|
|
return baseService.getSmsCode(mobile, activateCodeType, platformType, isCheckCaptcha, imgCode, token);
|
|
@@ -108,6 +111,7 @@ public class BaseApi {
|
|
|
@ApiImplicitParam(required = false, name = "imgCode", value = "图片验证码"),
|
|
|
@ApiImplicitParam(required = false, name = "token", value = "图片token")
|
|
|
})
|
|
|
+ @IpSave(saveName = "绑定账号,发送短信验证",saveParams = true)
|
|
|
@GetMapping("/sms/bind")
|
|
|
public ResponseJson getBindSmsCode(String mobile, String bindMobile, Integer userId, Integer platformType, Integer isCheckCaptcha, String imgCode, String token) {
|
|
|
return baseService.getBindSmsCode(mobile, bindMobile, userId, platformType, isCheckCaptcha, imgCode, token);
|
|
@@ -142,6 +146,7 @@ public class BaseApi {
|
|
|
* }
|
|
|
*/
|
|
|
@ApiOperation("修改密码(旧:/user/findCompanyPwd)")
|
|
|
+ @IpSave(saveName = "修改密码",saveParams = true)
|
|
|
@PostMapping("/update/password")
|
|
|
public ResponseJson updatePassword(PasswordDto passwordDto) {
|
|
|
return baseService.updatePassword(passwordDto);
|
|
@@ -176,6 +181,7 @@ public class BaseApi {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("超级会员会员中心")
|
|
|
+ @IpSave(saveName = "超级会员中心",saveParams = true)
|
|
|
@GetMapping("/super/center")
|
|
|
public ResponseJson<Map<String, Object>> superCenter(Integer userId,Integer source) {
|
|
|
if (null == userId) {
|
|
@@ -185,6 +191,7 @@ public class BaseApi {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("超级会员套餐详情")
|
|
|
+ @IpSave(saveName = "超级会员套餐详情",saveParams = false)
|
|
|
@GetMapping("/super/package")
|
|
|
public ResponseJson findPackage(){
|
|
|
return baseService.findPackage();
|