PensionConsigneeAddDTO.java 2 KB
Newer Older
Shen's avatar
Shen committed
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
package io.hmit.modules.serviceOrder.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 *
 * @author zsh 408538940@qq.com
 * @since 1.0.0 2021-05-06
 */
@Data
@ApiModel(value = "用户地址添加")
public class PensionConsigneeAddDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@TableId
	private Long id;

	@ApiModelProperty(value = "用户ID")
	private Long userId;

29
	@ApiModelProperty(value = "收货人姓名", required = true)
Shen's avatar
Shen committed
30 31
	private String consigneeName;

32
	@ApiModelProperty(value = "收货人电话", required = true)
Shen's avatar
Shen committed
33 34
	private String consigneeMobile;

35
	@ApiModelProperty(value = "省份", required = true)
Shen's avatar
Shen committed
36 37
	private String consigneeProvince;

38
	@ApiModelProperty(value = "城市", required = true)
Shen's avatar
Shen committed
39 40
	private String consigneeCity;

41
	@ApiModelProperty(value = "区/县", required = true)
Shen's avatar
Shen committed
42 43
	private String consigneeDistrict;

44
	@ApiModelProperty(value = "详细地址", required = true)
Shen's avatar
Shen committed
45 46
	private String consigneeAddress;

47
	@ApiModelProperty(value = "邮编", required = true)
Shen's avatar
Shen committed
48 49 50 51 52 53 54 55
	private String consigneeZip;

	@ApiModelProperty(value = "是否为默认地址")
	private Integer ifDefault;

	@ApiModelProperty(value = "状态")
	private Integer status;

56 57 58
	public PensionConsigneeAddDTO() {
	}

Shen's avatar
Shen committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
	public PensionConsigneeAddDTO(Long userId, String consigneeName, String consigneeMobile, String consigneeProvince,
								  String consigneeCity, String consigneeDistrict, String consigneeAddress,
								  String consigneeZip, Integer ifDefault, Integer status) {
		this.userId = userId;
		this.consigneeName = consigneeName;
		this.consigneeMobile = consigneeMobile;
		this.consigneeProvince = consigneeProvince;
		this.consigneeCity = consigneeCity;
		this.consigneeDistrict = consigneeDistrict;
		this.consigneeAddress = consigneeAddress;
		this.consigneeZip = consigneeZip;
		this.ifDefault = ifDefault;
		this.status = status;
	}
}