/**
 * 消费记录查询参数
 */
export interface RRobotConsumptionRecordQuery {
  uuid?: string;
  robotUuid?: string;
  robotAccount?: string;
  consumptionAmount?: number;
  consumptionTime?: string;
  consumptionMethod?: string;
  consumptionInfo?: string;
  notes?: string;
  sourceId?: string;
  creator?: string;
  creatorUuid?: string;
  createTime?: string;
  updateTime?: string;
  
  // 新增查询字段
  giftName?: string;
  anchorName?: string;
  roomName?: string;
}

/**
 * 消费记录实体
 */
export interface RRobotConsumptionRecord {
  id?: number;
  uuid?: string;
  robotUuid?: string;
  robotAccount?: string;
  consumptionAmount?: number;
  consumptionTime?: string;
  consumptionMethod?: string;
  consumptionInfo?: string;
  notes?: string;
  sourceId?: string;
  creator?: string;
  creatorUuid?: string;
  createTime?: string;
  updateTime?: string;
  
  // 礼物信息
  giftName?: string;
  giftId?: string;
  giftIcon?: string;
  giftUnitPrice?: number;
  giftQuantity?: number;
  giftTotalPrice?: number;
  
  // 主播信息
  anchorId?: string;
  anchorName?: string;
  anchorAvatar?: string;
  
  // 直播间信息
  roomId?: string;
  roomName?: string;
}

/**
 * 消费记录分页响应
 */
export interface RRobotConsumptionRecordPageResponse {
  list: RRobotConsumptionRecord[];
  total: number;
  current: number;
  size: number;
}

/**
 * 消费记录列表响应
 */
export interface RRobotConsumptionRecordListResponse {
  list: RRobotConsumptionRecord[];
}

/**
 * 消费记录创建请求
 */
export interface RRobotConsumptionRecordCreateRequest {
  robotUuid: string;
  robotAccount: string;
  consumptionAmount: number;
  consumptionTime: string;
  consumptionMethod: string;
  consumptionInfo: string;
  notes?: string;
  sourceId?: string;
  creator: string;
  creatorUuid: string;
}

/**
 * 消费记录更新请求
 */
export interface RRobotConsumptionRecordUpdateRequest {
  uuid: string;
  robotUuid?: string;
  robotAccount?: string;
  consumptionAmount?: number;
  consumptionTime?: string;
  consumptionMethod?: string;
  consumptionInfo?: string;
  notes?: string;
  sourceId?: string;
  creator?: string;
  creatorUuid?: string;
}

/**
 * 消费方式选项
 */
export const consumptionMethodOptions = [
  { label: '微信支付', value: '微信支付' },
  { label: '支付宝', value: '支付宝' },
  { label: '银行卡', value: '银行卡' },
  { label: '现金', value: '现金' },
  { label: '其他', value: '其他' }
];