package com.kcim.dao.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("编辑责任中心对象")
public class ResponsibilityEditDTO {

    @ApiModelProperty(name = "id",value = "责任id主键")
    @NotNull(message = "责任主键不为空")
    private Long id;

    @ApiModelProperty(name = "parentId",value = "父级id，如果不为顶级责任中心，必传")
    private Long parentId;


    @ApiModelProperty(name = "responsibilityCode",value = "责任中心代码（后台校验唯一性）")
    @NotBlank(message = "责任中心代码不能为空")
    private String responsibilityCode;

    @NotBlank(message = "责任中心名称不能为空")
    @ApiModelProperty(name = "responsibilityName",value = "责任中心名称")
    private String responsibilityName;

    @NotNull(message = "是否汇总中心不能为空")
    @ApiModelProperty(name = "isGatherCenter",value = "是否汇总中心")
    private Integer isGatherCenter;

    @NotNull(message = "收益类型 1. 收费中心，2.成本(费用)中心")
    @ApiModelProperty(name = "responsibilityType",value = "收益类型 1. 收费中心，2.成本(费用)中心")
    private Integer responsibilityType;

    @NotNull(message = "分摊级别id不能为空")
    @ApiModelProperty(name = "shareId",value = "分摊级别id")
    private Long shareId;

    @NotNull(message = "分摊级别不能为空")
    @ApiModelProperty(name = "shareLevel",value = "分摊级别（分摊接口中获取，暂时可写死）")
    private Integer shareLevel;

    @NotNull(message = "分摊级别名称不能为空")
    @ApiModelProperty(name = "shareName",value = "分摊级别名称（分摊接口中获取，暂时可写死）")
    private String shareName;

    @NotNull(message = "是否默认字段不为空")
    @ApiModelProperty(value = "0.不是，1.是", name = "deptStatus")
    private Integer isDefault;
    /**
     * 标准责任中心代码
     */
    private String standardShareLevel;

    /**
     * 责任中心类型
     */
    private String type;

    /**
     * 排序
     */
    private Integer sort;
    /**
     * 启用标志 0未启用 1启用
     */
    private Integer status;

}
