package com.casic.missiles.dto.equipment;

import com.casic.missiles.annotation.DictCodeField;
import com.casic.missiles.constants.MeterDictCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 设备申请-修改设备处理结果请求
 *
 * @author zhangyingjie
 */
@Data
@ApiModel
public class EquipmentApplyProcessRequest {

    @NotNull(message = "主键ID不能为空")
    @ApiModelProperty(value = "主键id", dataType = "Long", required = true)
    private Long id;

    @NotNull(message = "处理结果不能为空")
    @ApiModelProperty(value = "处理结果（字典值）", dataType = "String", required = true)
    @DictCodeField(message = "处理结果类型不合法", cacheName = MeterDictCode.EQUIPMENT_APPLY_PROCESS_RESULT)
    private String processResult;
}
