小程序用户信息修改接口

This commit is contained in:
张松
2025-02-27 16:50:21 +08:00
parent 3be9ca1710
commit b5e2f0c261
10 changed files with 173 additions and 12 deletions

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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);
}