package com.yhy.module.core.controller.admin.resource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Schema(description = "工料机类别保存请求")
@Data
public class ResourceCategorySaveReqVO {

    @Schema(description = "主键（更新时必填）", example = "1")
    private Long id;

    @Schema(description = "类别代码", required = true, example = "材")
    @NotBlank(message = "类别代码不能为空")
    private String code;

    @Schema(description = "类别名称", required = true, example = "材料费")
    @NotBlank(message = "类别名称不能为空")
    private String name;

    @Schema(description = "排序", example = "1")
    private Integer sortOrder;

    @Schema(description = "除税基价代码", example = "DCLF")
    private String taxExclBaseCode;

    @Schema(description = "含税基价代码", example = "HDCLF")
    private String taxInclBaseCode;

    @Schema(description = "除税编制代码", example = "CLF")
    private String taxExclCompileCode;

    @Schema(description = "含税编制代码", example = "HCLF")
    private String taxInclCompileCode;

    @Schema(description = "扩展属性")
    private Map<String, Object> attributes;
}
