会员购买完善
This commit is contained in:
@@ -3,14 +3,17 @@ package com.czg.account.dto.shopuser;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class ShopUserAddDTO {
|
||||
@Accessors(chain = true)
|
||||
public class ShopUserAddDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 用户头像
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.mybatisflex.annotation.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
@@ -24,6 +25,7 @@ import java.time.LocalDateTime;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("tb_shop_user")
|
||||
@Accessors(chain = true)
|
||||
public class ShopUser implements Serializable {
|
||||
|
||||
@Serial
|
||||
|
||||
@@ -16,6 +16,7 @@ public interface UserInfoService extends IService<UserInfo> {
|
||||
|
||||
UserInfoDTO getInfo(long userInfoId);
|
||||
|
||||
|
||||
Boolean updateInfo(long shopId, long userId, UserInfoEditDTO userInfoEditDTO);
|
||||
|
||||
Boolean updatePwd(long userId, UserInfoPwdEditDTO userInfoPwdEditDTO);
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.czg.market.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -33,17 +34,20 @@ public class MemberOrderDTO implements Serializable {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@NotBlank(message = "方案名称不为空")
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@NotNull(message = "数量不为空")
|
||||
@Min(1)
|
||||
private Integer num;
|
||||
private String platformType;
|
||||
private Long userId;
|
||||
private String orderType;
|
||||
private Integer sex;
|
||||
private String birthDay;
|
||||
private String nickName;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user