package org.dromara.biz.domain.bo;

import org.dromara.biz.domain.BizGuide;
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.*;

/**
 * 办事指南业务对象 biz_guide
 *
 * @author Blue
 * @date 2025-05-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BizGuide.class, reverseConvertGenerate = false)
public class BizGuideBo extends BaseEntity {

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

    /**
     * 指南类别
     */
    @NotBlank(message = "指南类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;

    /**
     * 类别代码
     */
    @NotBlank(message = "类别代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryNo;

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

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

    /**
     * 附件模板
     */
    private String file;

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

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


}
