package com.seer.teach.mall.request;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.seer.teach.common.validation.InEnum;
import com.seer.teach.mall.enums.GoodsStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;


@Data
@ToString
@Schema(description = "更新商品请求参数")
public class GoodsAuditReq {

    @NotEmpty(message = "商品ID列表不能为空")
    @Schema(name = "商品ID列表")
    private List<Integer> ids;

    @NotNull(message = "审核状态不能为空")
    @Schema(name = "审核状态：0-待审核，1-审核通过，2-审核拒绝")
    @InEnum(value = GoodsStatusEnum.class, message = "审核状态错误")
    private Integer status;

    @Schema(name = "上下架状态：1-上架，2-下架")
    private Integer isOnSale;

    @Schema(name = "审核备注")
    private String remark;
}
