package com.hotwj.platform.config.systemAgreement.domain.bo;

import com.hotwj.platform.config.systemAgreement.domain.HotSystemAgreement;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 用户隐私政策业务对象 hot_system_agreement
 *
 * @author shihongwei
 * @date 2026-01-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotSystemAgreement.class, reverseConvertGenerate = false)
public class HotSystemAgreementBo extends BaseEntity {

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

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

    /**
     * 制度内容（富文本，附件优先展示）
     */
    private String content;

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
