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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 目录内容分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ContentPageReqVO extends PageParam {

    @Schema(description = "内容名称", example = "李四")
    private String name;

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

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

    @Schema(description = "目录ID", example = "20092")
    private Long catalogueId;

    @Schema(description = "文章介绍")
    private String introduce;

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

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

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

    @Schema(description = "外部链接", example = "https://www.iocoder.cn")
    private String url;

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

    @Schema(description = "发布时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] releaseTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
