package com.seer.teach.admin.request;

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

import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "设置付费书籍请求参数")
@Data
public class BooksFreeReq {

    @Schema(description = "书籍ID")
    @NotNull(message = "书籍ID不能为空")
    private Integer id;

    @Schema(description = "书籍价格")
    private BigDecimal price;

    @Schema(description = "书籍是否免费")
    @NotNull(message = "书籍是否免费不能为空")
    private Integer isFree;
}
