gaoluyang
昨天 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package cn.iocoder.yudao.module.crm.controller.admin.customer.vo.address;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
/**
 * 管理后台 - 客户收货地址 创建/修改 Request VO
 *
 * @author 超级管理员
 */
@Schema(description = "管理后台 - 客户收货地址 Request VO")
@Data
public class CrmCustomerAddressSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "客户编号不能为空")
    private Long customerId;
 
    @Schema(description = "收货人姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotBlank(message = "收货人姓名不能为空")
    @Size(max = 64, message = "收货人姓名不能超过 64 个字符")
    private String receiverName;
 
    @Schema(description = "收货人手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000")
    @NotBlank(message = "收货人手机号不能为空")
    @Size(max = 32, message = "收货人手机号不能超过 32 个字符")
    private String receiverMobile;
 
    @Schema(description = "所在地编号", example = "110000")
    private Integer areaId;
 
    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "北京市朝阳区某某路 1 号")
    @NotBlank(message = "详细地址不能为空")
    @Size(max = 255, message = "详细地址不能超过 255 个字符")
    private String detailAddress;
 
    @Schema(description = "是否默认收货地址", example = "true")
    private Boolean defaultFlag;
 
    @Schema(description = "备注", example = "工作日送货")
    @Size(max = 500, message = "备注不能超过 500 个字符")
    private String remark;
 
}