package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.Violation;
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.*;

/**
 * 违规业务对象 t_violation
 *
 * @author yxy
 * @date 2025-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Violation.class, reverseConvertGenerate = false)
public class ViolationBo extends BaseEntity {

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

    /**
     * 类型  0 isbn  1 书名  2 作者  3 出版社
     */
    private String type;

    /**
     * 违规原因
     */
    private String content;

    /**
     * 发起人
     */
    private Long userid;

    /**
     * 是否审核  0 未审核  1 已审核
     */
    private String review;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 审核意见
     */
    private String remark;

    /**
     * 违规内容
     */
    private String name;

    /**
     * 分类
     */
    private String sort;
}
