package com.kcim.dao.model.dto;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("会计科目保存入参")
public class AccountingSaveDTO {

    @ApiModelProperty(name = "id",value = "父级id，如果需要新增顶级，那么传0")
    @NotNull(message = "层级id不能为空，顶层传0")
    private Long id;

    @ApiModelProperty(name = "accountingCode",value = "新增科目代码")
    @NotEmpty(message = "新增科目代码不能为空")
    private String accountingCode;

    @ApiModelProperty(name = "accountingName",value = "新增科目名称")
    @NotEmpty(message = "新增科目名称不能为空")
    private String accountingName;

    @ApiModelProperty(name = "accountingType",value = "会计科目类型1，收入，2.支出")
    @NotNull(message = "会计科目类型不能为空")
    private Integer accountingType;

    @ApiModelProperty(name = "isBaseCost",value = "如果是支出，必须选择收入还是支出")
    private Integer isBaseCost;

    private Integer costType;

    private String type;

    private String typeName;

    private Integer controlType;

    private Integer medicalType;
}
