package com.yc.ship.module.miniapplet.controller.admin.catalogue.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 CataloguePageReqVO extends PageParam {

    @Schema(description = "目录名称", example = "芋艿")
    private String name;

    @Schema(description = "目录编码")
    private String code;


    @Schema(description = "父级目录", example = "5315")
    private Long parentId;


    @Schema(description = "目录Icon图标")
    private String logo;


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

    @Schema(description = "是否允许评论 0否 1是")
    private Integer isComment;

    @Schema(description = "允许用户发布 0否 1是")
    private Integer isRelease;

    @Schema(description = "用户发布审核 0否 1是")
    private Integer isAudit;

    @Schema(description = "备注", example = "随便")
    private String remark;

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

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

}
