package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EFactoryInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 生产厂家基础信息;业务对象 e_factory_info
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EFactoryInfo.class, reverseConvertGenerate = false)
public class EFactoryInfoBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 厂家编码
     */
    @NotBlank(message = "厂家编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 厂家名称
     */
    @NotBlank(message = "厂家名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 厂家地址
     */
    @NotBlank(message = "厂家地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

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

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

    /**
     * 厂家状态;1:正常   2:问题厂家
     */
    private Integer state;


}
