package cn.iocoder.yudao.module.supplier.controller.admin.product.vo;

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

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 供应商产品新增/修改 Request VO")
@Data
public class ProductSaveReqVO {

    @Schema(description = "主键 产品 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14625")
    private Long id;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "产品名称不能为空")
    private String name;

    @Schema(description = "产品编码 自动生成")
    private String productCode;

    @Schema(description = "产品简介")
    private String introduction;

    @Schema(description = "产品分类编号", example = "7230")
    private Long categoryId;

    @Schema(description = "排序字段")
    private Integer sort;

    @Schema(description = "产品状态: 1 （开启） 0 （禁用）", example = "1")
    private Integer status;

}
