package com.xindazhou.business.controller.app.community.post.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Schema(description = "移动端 - 更新帖子 Request VO")
@Data
public class PostUpdateReqVO {

    @Schema(description = "帖子ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "帖子ID不能为空")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @Schema(description = "内容类型：1-纯文本，2-图片，3-视频，4-图文混合", example = "1")
    @NotNull(message = "内容类型不能为空")
    private Integer contentType;

    @Schema(description = "媒体列表（图片/视频）")
    private List<PostCreateReqVO.PostMediaVO> mediaList;

    @Schema(description = "标签，逗号分隔", example = "Java,Spring")
    private String tags;

}

