小程序用户信息修改接口
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.czg.account.dto.user.userinfo;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class UserInfoPwdEditDTO {
|
||||
/**
|
||||
* 支付密码
|
||||
*/
|
||||
@NotEmpty(message = "支付密码不为空")
|
||||
private String payPwd;
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
@NotEmpty(message = "验证码不为空")
|
||||
private String code;
|
||||
}
|
||||
@@ -36,5 +36,5 @@ public interface ShopUserService extends IService<ShopUser> {
|
||||
|
||||
CzgResult<String> getCode(long userInfoId, long shopId);
|
||||
|
||||
CzgResult<Boolean> join(Long shopId, Long userId, ShopUserAddDTO shopUserAddDTO);
|
||||
boolean join(Long shopId, Long userId, ShopUserAddDTO shopUserAddDTO);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.user.userinfo.UserInfoDTO;
|
||||
import com.czg.account.dto.user.userinfo.UserInfoEditDTO;
|
||||
import com.czg.account.dto.user.userinfo.UserInfoPwdEditDTO;
|
||||
import com.czg.account.entity.UserInfo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
@@ -13,4 +15,10 @@ import com.mybatisflex.core.service.IService;
|
||||
public interface UserInfoService extends IService<UserInfo> {
|
||||
|
||||
UserInfoDTO getInfo(long userInfoId);
|
||||
|
||||
Boolean updateInfo(long userId, UserInfoEditDTO userInfoEditDTO);
|
||||
|
||||
Boolean updatePwd(long userId, UserInfoPwdEditDTO userInfoPwdEditDTO);
|
||||
|
||||
Boolean getCode(Long userId, String type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user