package com.luojia_channel.modules.message.dto;

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

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "消息请求对象")
public class MessageRequest {
    @Schema(
            description = "消息类型，0-私信，1-系统通知",
            allowableValues = {"0", "1"},
            example = "0",
            implementation = Integer.class
    )
    private Integer messageType;   // 私信0，系统通知1

    @Schema(
            description = "消息内容",
            required = true,
            minLength = 1,
            maxLength = 500
    )
    private String content;       // 消息内容

    @Schema(
            description = "接收者ID"
    )
    private Long receiverId;    // 接收者ID

    @Schema(
            description = "发送者用户名",
            required = true
    )
    private String senderName; // 用户名

    @Schema(
            description = "发送者头像",
            required = true
    )
    private String senderAvatar; // 用户头像
}
