package com.backendsys.modules.material.entity;

import com.backendsys.entity.validator.RangeArray;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class MaterialAudit {

    public static interface Audit{}

    @NotNull(message="用户ID不能为空", groups = { Audit.class })
    private Long user_id;
    @NotNull(message="审核状态不能为空", groups = { Audit.class })
    @RangeArray(message="审核状态取值有误，范围应是(-1审核拒绝, 1待审核, 2审核通过)", value = {"-1", "1", "2"}, groups = { Audit.class })
    private Integer audit_status;

    @RangeArray(message="用户状态取值有误，范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { Audit.class})
    private Integer status;

    private Long role_id;

}
