package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 维修人员-岗位业务对象 erp_post
 *
 * @author liushuai
 * @date 2025-03-25
 */

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

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

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

    /**
     * 岗位名称
     */
    @NotBlank(message = "岗位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;
    /**
     * 类型（1维修 2管理）
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Date  createTime;

    /**
     * 是否删除（0否 1是 默认0）
     */
    private Integer isDelete;


}
