package com.seer.teach.mall.request;

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

import jakarta.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "商品类型请求参数")
public class HotGoodsReq {

    @Schema(description = "页数")
    @NotNull(message = "页数不能为空")
    private Integer page = 1;

    @Schema(description = "页面容量")
    @NotNull(message = "页面容量不能为空")
    private Integer limits = 15;
}