package com.seer.teach.admin.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * <p>
 * 教材请求参数
 * </p>
 *
 * @author ZS
 * @since 2025-10-24
 */
@Data
@Schema(description = "教材请求参数")
public class BooksReq  {

    @Schema(description = "Id")
    private Integer id;

    @Schema(description = "教材名称")
    @NotBlank(message = "教材名称不能为空")
    private String bookName;

    @Schema(description = "教材编号")
    @NotBlank(message = "教材编号不能为空")
    private String bookNo;

    @Schema(description = "书籍标题")
    private String title;

    @Schema(description = "教材版本")
    private String version;

    @Schema(description = "出版社")
    private String publisher;

    @Schema(description = "出版日期")
    private String publishDate;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "价格")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

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

    @Schema(description = "教材状态 0-下架 1-上架")
    private Integer status;
}