package com.snack.server.module.chat.dto.req;

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

import java.io.Serializable;

/**
 * 创建 / 更新快捷回复模板
 */
@Data
@Schema(description = "快捷回复模板保存请求")
public class QuickReplySaveReq implements Serializable {

    @Schema(description = "模板 ID（更新时必填）")
    private Long id;

    @NotBlank(message = "标题不能为空")
    @Size(max = 100)
    @Schema(description = "模板标题")
    private String title;

    @NotBlank(message = "内容不能为空")
    @Size(max = 500)
    @Schema(description = "模板内容")
    private String content;

    @Schema(description = "分类：问候/物流/售后/活动等")
    private String category;

    @Schema(description = "排序号", example = "0")
    private Integer sort = 0;

    @NotNull(message = "状态不能为空")
    @Schema(description = "状态：0-禁用 1-启用", example = "1")
    private Integer status = 1;
}
