/**
 * 消息配置
 */
export interface MessageConfig {
  id: string;
  name: string;
  type: 'QUEUE' | 'TOPIC' | 'STREAM';
  maxSize?: number;
  retentionPeriod?: number;
  description?: string;
}

/**
 * 消息状态
 */
export interface MessageStatus {
  status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'REJECTED' | 'ERROR';
  lastUpdated: Date;
}

/**
 * 消息队列
 */
export interface MessageQueue {
  id: string;
  name: string;
  type: 'QUEUE' | 'TOPIC' | 'STREAM';
  maxSize: number;
  retentionPeriod: number;
  created: Date;
  messages: string[];
}

/**
 * 消息
 */
export interface Message {
  id: string;
  queueId: string;
  payload: any;
  status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'REJECTED' | 'ERROR';
  created: Date;
  updated: Date;
}
