package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EWorkBook;
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_work_book
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EWorkBook.class, reverseConvertGenerate = false)
public class EWorkBookBo extends BaseEntity {

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

    /**
     * 组织id
     */
    private String organizationId;

    /**
     * 部门id
     */
    private Long deptId;

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

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

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

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


}
