generated by Claude-3.7-Sonnet
This commit is contained in:
45
model/search.go
Normal file
45
model/search.go
Normal file
@@ -0,0 +1,45 @@
|
||||
// Package model 提供播客和剧集的数据模型
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Item 表示搜索结果中的一个播客项目
|
||||
type Item struct {
|
||||
// 播客的集合ID
|
||||
CollectionID int `json:"collectionId,omitempty"`
|
||||
|
||||
// 播客的标题
|
||||
Title string `json:"title,omitempty"`
|
||||
|
||||
// 播客的作者
|
||||
Author string `json:"author,omitempty"`
|
||||
|
||||
// 播客的Feed URL
|
||||
FeedURL string `json:"feedUrl,omitempty"`
|
||||
|
||||
// 播客的小尺寸封面图URL
|
||||
ArtworkURL string `json:"artworkUrl,omitempty"`
|
||||
|
||||
// 播客的大尺寸封面图URL
|
||||
ArtworkURL600 string `json:"artworkUrl600,omitempty"`
|
||||
|
||||
// 播客的流派
|
||||
Genres []string `json:"genres,omitempty"`
|
||||
}
|
||||
|
||||
// SearchResult 表示播客搜索的结果
|
||||
type SearchResult struct {
|
||||
// 结果数量
|
||||
ResultCount int `json:"resultCount,omitempty"`
|
||||
|
||||
// 搜索是否成功
|
||||
Successful bool `json:"successful,omitempty"`
|
||||
|
||||
// 搜索结果项目列表
|
||||
Items []Item `json:"items,omitempty"`
|
||||
|
||||
// 处理时间
|
||||
ProcessedTime time.Time `json:"processedTime,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user