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

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

import java.time.LocalDateTime;

/**
 * 消息记录 Response DTO
 *
 * @author xindazhou
 */
@Schema(description = "RPC 服务 - 消息记录 Response DTO")
@Data
public class MessageRecordRespDTO {

    @Schema(description = "消息记录编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "用户编号", example = "1024")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "消息类型", example = "SMS")
    private String messageType;

    @Schema(description = "模板编号", example = "MESSAGE_TEMPLATE_001")
    private String templateCode;

    @Schema(description = "接收者", example = "15601691300")
    private String receiver;

    @Schema(description = "消息内容", example = "您的验证码是：123456")
    private String content;

    @Schema(description = "发送状态：0-发送失败, 1-发送成功, 2-发送中", example = "1", 
            allowableValues = {"0", "1", "2"})
    private Integer sendStatus;

    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}

