package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.SupplierTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "供应商")
@EqualsAndHashCode(callSuper = true)
public class SupplierVO extends DTO {

	/**
	 * 供应商ID
	 */
	@Schema(title = "供应商ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long supplierId;

	/**
	 * 姓名
	 */
	@Schema(title = "姓名", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	/**
	 * 收款人姓名
	 */
	@Schema(title = "收款人姓名", requiredMode = Schema.RequiredMode.REQUIRED)
	private String payeeName;

	/**
	 * 身份证号
	 */
	@Schema(title = "身份证号")
	private String idCard;

	/**
	 * 手机号
	 */
	@Schema(title = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String phone;

	/**
	 * 银行名称
	 */
	@Schema(title = "银行名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String bankName;

	/**
	 * 银行卡号
	 */
	@Schema(title = "银行卡号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String bankCard;

	/**
	 * 微信收款码URL
	 */
	@Schema(title = "微信收款码URL")
	private String wechatQr;

	/**
	 * 供应商类型：1_瓜农；2_自家档口；3_其他家档口
	 */
	@Schema(title = "供应商类型：1_瓜农；2_自家档口；3_其他家档口", requiredMode = Schema.RequiredMode.REQUIRED)
	private SupplierTypeEnum type;

	/**
	 * 经销商ID
	 */
	@Schema(title = "经销商ID")
	private Long dealerId;

	/**
	 * 备注
	 */
	@Schema(title = "备注")
	private String remark;

	/**
	 * 状态：1_启用；0_禁用；
	 */
	@Schema(title = "状态：1_启用；0_禁用；", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean status;

	/**
	 * 创建人ID
	 */
	@Schema(title = "创建人ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long createdBy;

	/**
	 * 创建人姓名
	 */
	@Schema(title = "创建人姓名")
	private String createdByName;

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	private LocalDateTime createdAt;

	/**
	 * 经销商信息
	 */
	@Schema(title = "经销商信息")
	private DealerVO dealerVO;

}

