import { mockDate } from '../index'

export interface RadioCategory {
  id: string; name: string; sort: number; status: number
  createdAt: string; updatedAt: string
}

export interface RadioChannel {
  id: string; categoryId: string; categoryName?: string
  name: string; description?: string; cover?: string
  isFree: boolean; isVipOnly: boolean
  monthlyPrice?: number; quarterlyPrice?: number; annualPrice?: number
  tags?: string; sort: number; status: number
  createdAt: string; updatedAt: string
}

export interface RadioProgram {
  id: string; channelId: string; channelName?: string
  title: string; description?: string; content?: string
  cover?: string; audioId?: string; audioStatus: number
  duration: number; playCount: number; likeCount: number
  status: number; createdAt: string; updatedAt: string
}

export interface RadioSubscription {
  id: string; userId: string; userName?: string
  channelId: string; channelName?: string
  planType: string; startAt: string; expireAt: string
  amount: number; status: number
  createdAt: string; updatedAt: string
}

export const mockRadioCategories: RadioCategory[] = [
  { id: '1', name: '音乐', sort: 0, status: 1, createdAt: mockDate(90), updatedAt: mockDate(1) },
  { id: '2', name: '故事', sort: 1, status: 1, createdAt: mockDate(90), updatedAt: mockDate(1) },
  { id: '3', name: '知识', sort: 2, status: 1, createdAt: mockDate(60), updatedAt: mockDate(1) },
  { id: '4', name: '冥想', sort: 3, status: 1, createdAt: mockDate(30), updatedAt: mockDate(1) },
]

export const mockRadioChannels: RadioChannel[] = [
  { id: '1', categoryId: '1', categoryName: '音乐', name: '晨间音乐', description: '每日精选晨间音乐', cover: 'https://picsum.photos/seed/music1/300/300', isFree: true, isVipOnly: false, sort: 0, status: 1, createdAt: mockDate(60), updatedAt: mockDate(1) },
  { id: '2', categoryId: '2', categoryName: '故事', name: '睡前故事', description: '温馨的睡前故事', cover: 'https://picsum.photos/seed/story1/300/300', isFree: false, isVipOnly: false, monthlyPrice: 9.9, quarterlyPrice: 25, annualPrice: 88, sort: 1, status: 1, createdAt: mockDate(50), updatedAt: mockDate(2) },
  { id: '3', categoryId: '3', categoryName: '知识', name: '科学探索', description: '有趣的科学知识', cover: 'https://picsum.photos/seed/science/300/300', isFree: false, isVipOnly: true, monthlyPrice: 19.9, sort: 2, status: 1, createdAt: mockDate(30), updatedAt: mockDate(1) },
]

export const mockRadioPrograms: RadioProgram[] = [
  { id: '1', channelId: '1', channelName: '晨间音乐', title: '春日晨曲', description: '轻快的春日旋律', audioStatus: 2, duration: 180, playCount: 1200, likeCount: 89, status: 1, createdAt: mockDate(20), updatedAt: mockDate(1) },
  { id: '2', channelId: '1', channelName: '晨间音乐', title: '森林协奏曲', description: '大自然的声音', audioStatus: 2, duration: 240, playCount: 890, likeCount: 56, status: 1, createdAt: mockDate(15), updatedAt: mockDate(1) },
  { id: '3', channelId: '2', channelName: '睡前故事', title: '小王子的旅途', description: '经典故事改编', audioStatus: 2, duration: 600, playCount: 2300, likeCount: 178, status: 1, createdAt: mockDate(10), updatedAt: mockDate(2) },
  { id: '4', channelId: '3', channelName: '科学探索', title: '黑洞的秘密', description: '宇宙中的神秘天体', audioStatus: 1, duration: 0, playCount: 0, likeCount: 0, status: 0, createdAt: mockDate(2), updatedAt: mockDate(0) },
]
