export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}

export interface UserProfile {
  id: number;
  phone: string;
  name: string;
  nickname?: string | null;
  dailyLimit: number;
  todayUsed: number;
  status: number;
}

export interface LoginResult {
  token: string;
  expiredAt: string;
  user: UserProfile;
}

export interface ChatSession {
  id: number;
  title: string;
  messageCount: number;
  updatedAt: string;
}

export interface ChatMessage {
  id: number;
  role: "user" | "assistant";
  content: string;
  message_status: string;
  created_at: string;
}
