package org.xyzh.api.message.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.xyzh.common.dto.BaseDTO;

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

/**
 * @description    消息发送范围DTO
 * @filename    TbMessageRangeDTO.java
 * @author    yslg
 * @copyright yslg
 * @since 2025-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "消息发送范围DTO")
public class TbMessageRangeDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    @Schema(description = "消息ID")
    private String messageId;

    @Schema(description = "目标类型：user-指定用户/dept-部门/role-角色/all-全员")
    private String targetType;

    @Schema(description = "目标ID（用户、部门、角色ID等，all类型时为空）")
    private String targetId;

    @Schema(description = "发送渠道：app/sms/email/wechat/dingtalk等")
    private String channel;
}