package com.xindazhou.message.enums;

import com.xindazhou.framework.common.exception.ErrorCode;

/**
 * Message 错误码枚举类
 *
 * message 模块，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 消息模板 1-004-000-000 ==========
    ErrorCode MESSAGE_TEMPLATE_NOT_EXISTS = new ErrorCode(1_004_000_001, "消息模板不存在");
    ErrorCode MESSAGE_TEMPLATE_CODE_DUPLICATE = new ErrorCode(1_004_000_002, "消息模板编码重复");
    ErrorCode MESSAGE_TEMPLATE_CAN_NOT_DELETE = new ErrorCode(1_004_000_003, "不能删除系统内置的消息模板");

    // ========== 消息发送 1-004-001-000 ==========
    ErrorCode MESSAGE_SEND_FAILED = new ErrorCode(1_004_001_000, "消息发送失败");
    ErrorCode MESSAGE_TEMPLATE_NOT_FOUND = new ErrorCode(1_004_001_001, "消息模板不存在");
    ErrorCode MESSAGE_RECEIVER_NOT_FOUND = new ErrorCode(1_004_001_002, "消息接收者不存在");

    // ========== 消息记录 1-004-002-000 ==========
    ErrorCode MESSAGE_RECORD_NOT_EXISTS = new ErrorCode(1_004_002_000, "消息记录不存在");

    // ========== 站内信 1-004-003-000 ==========
    ErrorCode MESSAGE_NOTIFY_NOT_EXISTS = new ErrorCode(1_004_003_000, "站内信不存在");

}

