package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EProjectInfo;
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_project_info
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EProjectInfo.class, reverseConvertGenerate = false)
public class EProjectInfoBo 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 areaCode;

    /**
     * 备注
     */
    private String remark;


}
