package net.ferrum.business.domain.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import net.ferrum.business.domain.vo.QsUserSupplierVo;
import net.ferrum.common.core.domain.BaseEntity;
import net.ferrum.common.core.validate.AddGroup;
import net.ferrum.common.core.validate.EditGroup;
import net.ferrum.system.domain.vo.SysUserBasicInfoVo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 供应商信息业务对象 qs_supplier
 *
 * @author ferrum
 * @version 1.0.0
 * @since 2025/3/5
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QsSupplierBo extends BaseEntity {

    /**
     * 供应商Id
     */
    @NotNull(message = "供应商Id不能为空", groups = { EditGroup.class })
    private Long supplierId;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierName;

    /**
     * 供应商地址
     */
    //@NotBlank(message = "供应商地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierAddress;

    /**
     * 供应商联系人
     */
    //@NotBlank(message = "供应商联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierContact;

    /**
     * 供应商联系方式
     */
    //@NotBlank(message = "供应商联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierContactNum;

    /**
     * 备注
     */
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 供应商管理人,前端向后传输查询参数时使用
     */
    private List<String> supplierManagers;

    /**
     * 供应商管理人,前端向后传输更新或增加参数时使用
     */
    private List<QsUserSupplierVo> dockerUsers;





}
