package net.lab1024.sa.admin.module.business.wms.inventory.inventory.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 库存信息 新建表单
 *
 * @Author 霍锦
 * @Date 2024-12-06 17:24:53
 * @Copyright 友仓
 */

@Data
public class InventoryAddForm {

    @Schema(description = "库存id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "库存id 不能为空")
    private Long inventoryId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间 不能为空")
    private LocalDateTime createTime;

    @Schema(description = "创建人ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建人ID 不能为空")
    private Long createUserId;

    @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "创建人 不能为空")
    private String createUserName;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "更新时间 不能为空")
    private LocalDateTime updateTime;

}