package cn.iocoder.yudao.module.system.controller.admin.biz.vo.store;

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

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

@Schema(description = "管理后台 - 仓库管理新增/修改 Request VO")
@Data
public class StoreManageSaveReqVO {

    @Schema(description = "id（修改时必传）", example = "1")
    private Long id;

    @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "WH001")
    @NotBlank(message = "仓库编号不能为空")
    private String storeNumber;

    @Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "主仓库")
    @NotBlank(message = "仓库名称不能为空")
    private String storeName;

    @Schema(description = "仓库类型", example = "1")
    private String storeType;

    @Schema(description = "备注", example = "存放常用物资")
    private String remark;

    @Schema(description = "租户id（由前端传入）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "租户id不能为空")
    private Long tenantId;

}