package com.xindazhou.message.api.dto.template;

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

/**
 * 消息模板 Response DTO
 *
 * @author xindazhou
 */
@Schema(description = "RPC 服务 - 消息模板 Response DTO")
@Data
public class MessageTemplateRespDTO {

    @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "MESSAGE_TEMPLATE_001")
    private String code;

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "验证码模板")
    private String name;

    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "SMS",
            allowableValues = {"SMS", "PUSH", "NOTIFY", "EMAIL"})
    private String messageType;

    @Schema(description = "模板内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "您的验证码是：{code}")
    private String content;

    @Schema(description = "模板参数", example = "[\"code\"]")
    private String params;

    @Schema(description = "状态：0-禁用, 1-启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1",
            allowableValues = {"0", "1"})
    private Integer status;

}

