import { ApiProperty } from '@nestjs/swagger';
import { User } from 'src/system/entities/user.entity';

/**
 * 课程评价维度
 */
export class LiveMsgDataDto {
  @ApiProperty({ description: '消息发送人' })
  from: User;

  @ApiProperty({ description: '房间ID' })
  roomId: string;

  @ApiProperty({ description: '消息类型' })
  type: string;

  @ApiProperty({ description: '消息' })
  msg: string;

  @ApiProperty({ description: '发送时间' })
  timestamp: number;
}
