package com.xunmei.core.resumption.dto.appRule;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jingyuanchao
 * @date 2022/4/26 10:26
 */
@Data
public class AppRuleEditDto {


    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @NotBlank(message = "规则名称不能为空")
    @ApiModelProperty("规范名称")
    private String name;

    @NotNull(message = "规则类型不能为空")
    @ApiModelProperty("规范类型id")
    private String type;

    @ApiModelProperty(value = "受检机构类型")
    @NotNull(message = "受检机构类型不能为空")
    private String orgType;

    @ApiModelProperty(value = "0:禁用 1:启用")
    @NotBlank(message = "状态不能为空")
    private int status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
