package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author: jinyd
 * @CreateTime: 2024/11/21  9:49
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 供应商信息新增/修改 Request VO")
@Data
public class SupplierInfoSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16755")
    private Long id;

    @Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    private String supplierName;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "19426")
    @NotNull(message = "供应商类型名称不能为空")
    private String typeName;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String contacts;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    private String phone;

    @Schema(description = "地址", requiredMode = Schema.RequiredMode.REQUIRED)
    private String address;

    @Schema(description = "经营范围", requiredMode = Schema.RequiredMode.REQUIRED)
    private String businessScope;

    @Schema(description = "账户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    private String accountName;

    @Schema(description = "开户行", requiredMode = Schema.RequiredMode.REQUIRED)
    private String depositBank;

    @Schema(description = "银行账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21991")
    private String bankAccount;

    @Schema(description = "0-正常，1-禁用", example = "1")
    private Integer status;

    /**
     * 供应商编号
     */
    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    @NotEmpty(message = "供应商编号不能为空")
    private String supplierNumber;
    /**
     * 供应商简称
     */
    @Schema(description = "供应商简称", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxxx")
    @NotEmpty(message = "供应商简称不能为空")
    private String supplierNickName;
    /**
     * 业务员
     */
    @Schema(description = "业务员", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxxx")
    private String operator;
    /**
     * 机构id
     */
    @Schema(description = "机构id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21991")
    private Long tenantId;

}
