package com.yc.ship.module.miniapplet.controller.admin.problem.vo;

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

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 问题管理新增/修改 Request VO")
@Data
public class ProblemSaveReqVO {

    @Schema(description = "问题主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11839")
    private Long id;

    @Schema(description = "问题类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1729")
    @NotNull(message = "问题类型ID不能为空")
    private Long typeId;

    @Schema(description = "系统类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1729")
    @NotNull(message = "系统类型不能为空")
    private Integer systemType;

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

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "文章简介", example = "你猜")
    private String remark;

    @Schema(description = "关键字")
    private String keyword;

    @Schema(description = "封面图")
    private String cover;

    @Schema(description = "视频")
    private String video;

    @Schema(description = "发布状态 0未发布 1已发布", example = "1")
    private Integer releaseStatus;

    @Schema(description = "发布时间")
    private LocalDateTime releaseTime;

    @Schema(description = "启用状态 0否 1是")
    private Integer isUse;

    @Schema(description = "排序号")
    private Integer sortNum;

}
