package com.luojia_channel.modules.post.dto.req;

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

@Data
@Schema(description = "帖子保存DTO")
public class PostSaveDTO {
    @Schema(
            description = "帖子ID"
    )
    private Long id;

    @Schema(
            description = "帖子标题",
            required = true,
            minLength = 3,
            maxLength = 16,
            example = "帖子标题三个字"
    )
    private String title;

    @Schema(
            description = "帖子封面图"
    )
    private String image;

    @Schema(
            description = "帖子内容",
            required = true,
            minLength = 4,
            maxLength = 10000,
            example = "zsbd"
    )
    private String content;

    @Schema(
            description = "帖子类型id"
    )
    private Long categoryId;

    @Schema(
            description = "是否匿名发布，1-匿名，0-不匿名",
            allowableValues = {"0", "1"},
            example = "0",
            implementation = Integer.class
    )
    private Integer status; // 是否匿名
}
