package com.zt.plat.module.erp.controller.admin.erp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP成本中心新增/修改 Request VO")
@Data
public class ErpCostcenterSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23318")
    private Long id;

    @Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "成本中心编码不能为空")
    private String number;

    @Schema(description = "成本中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "成本中心描述不能为空")
    private String name;

    @Schema(description = "工区必填;使用这个基础数据是，如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工区必填;使用这个基础数据是，如果为X时必须和工区使用不能为空")
    private String isUse;

    @Schema(description = "功能范围", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "功能范围不能为空")
    private String scopeNumber;

    @Schema(description = "功能范围描述", example = "赵六")
    private String scopeName;

    @Schema(description = "起始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "起始日期不能为空")
    private LocalDateTime startDate;

    @Schema(description = "截止日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "截止日期不能为空")
    private LocalDateTime endDate;

}