package org.dromara.system.domain.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.system.domain.SysIndustry;
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.*;

/**
 * 行业字典信息业务对象 sys_industry
 *
 * @author LionLi
 * @date 2024-04-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysIndustry.class, reverseConvertGenerate = false)
public class SysIndustryBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

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

    /**
     * 父ID
     */
    @NotNull(message = "父ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 是否可用 1 是 0 否
     */
    @NotNull(message = "是否可用 1 是 0 否不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isUse;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 级别
     */
    @NotNull(message = "级别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer level;


}
