package com.casic.missiles.dto.business.outsource;

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.NotBlank;
import java.util.List;

/**
 * @Description: 分包方列表请求实体
 * @Author: wangpeng
 * @Date: 2023/3/24 19:24
 */
@Data
@ApiModel
public class OutsourcerListRequest {
    /**
     * 分包方编号
     */
    @ApiModelProperty(value = "分包方编号", dataType = "String")
    private String outsourcerNo;

    /**
     * 分包方公司名字
     */
    @ApiModelProperty(value = "分包方公司名字", dataType = "String")
    private String outsourcerName;

    /**
     * 业务规模-字典
     */
    @DictCodeField(message = "业务规模不合法", cacheName = MeterDictCode.BUSINESS_SCALE)
    @ApiModelProperty(value = "业务规模-字典code", dataType = "String")
    private String businessSize;

    /**
     * 履约评级-字典
     */
    @DictCodeField(message = "履约评级不合法", cacheName = MeterDictCode.GRADE)
    @ApiModelProperty(value = "履约评级-字典code", dataType = "String")
    private String grade;

    @ApiModelProperty(value = "导出ids", dataType = "List")
    private List<Long> ids;

    @NotBlank(message = "表单id不能为空")
    @ApiModelProperty(value = "表单id（流程定义对应的表单id，等价于业务id）", dataType = "String")
    private String formId;

}
