Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlbumCol *mongo.Collection
View Source
var ArtistCol *mongo.Collection
View Source
var PlaylistCol *mongo.Collection
View Source
var SongCol *mongo.Collection
View Source
var UserCol *mongo.Collection
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct {
Alias []string `json:"alias"`
Artist Artist `json:"artist"`
Artists []Artist `json:"artists"`
BlurPicURL string `json:"blurPicUrl"`
BriefDesc string `json:"briefDesc"`
CommentThreadID string `json:"commentThreadId"`
Company interface{} `json:"company"`
CompanyID int64 `json:"companyId"`
CopyrightID int64 `json:"copyrightId"`
Description string `json:"description"`
ID int64 `json:"id"`
Info Info `json:"info"`
Mark int64 `json:"mark"`
Name string `json:"name"`
OnSale bool `json:"onSale"`
Paid bool `json:"paid"`
Pic int64 `json:"pic"`
PicID int64 `json:"picId"`
PicURL string `json:"picUrl"`
PublishTime int64 `json:"publishTime"`
Size int64 `json:"size"`
Songs []string `json:"songs"`
Status int64 `json:"status"`
SubType string `json:"subType"`
Tags string `json:"tags"`
Type string `json:"type"`
}
type Artist ¶
type Artist struct {
AccountID int64 `json:"accountId"`
AlbumSize int64 `json:"albumSize"` // 专辑数
Alias []string `json:"alias"`
BriefDesc string `json:"briefDesc"` // 描述
Cover string `json:"cover"` // 主页图
Followed bool `json:"followed"`
ID int64 `json:"id"` // 歌手id
IdentifyTag []string `json:"identifyTag"`
Identities []string `json:"identities"`
Img1V1ID int64 `json:"img1v1Id"`
Img1V1URL string `json:"img1v1Url"`
MusicSize int64 `json:"musicSize"` // 音乐数量
MvSize int64 `json:"mvSize"` // mv数量
Name string `json:"name"` // 歌手名字
PicID int64 `json:"picId"`
PicURL string `json:"picUrl"`
PublishTime int64 `json:"publishTime"`
Rank Rank `json:"rank"`
TopicPerson int64 `json:"topicPerson"`
Trans string `json:"trans"`
TransNames []string `json:"transNames"` // 翻译名
}
type CommentThread ¶
type CommentThread struct {
CommentCount int64 `json:"commentCount"`
HotCount int64 `json:"hotCount"`
ID string `json:"id"`
LatestLikedUsers interface{} `json:"latestLikedUsers"`
LikedCount int64 `json:"likedCount"`
ResourceID int64 `json:"resourceId"`
ResourceInfo ResourceInfo `json:"resourceInfo"`
ResourceOwnerID int64 `json:"resourceOwnerId"`
ResourceTitle string `json:"resourceTitle"`
ResourceType int64 `json:"resourceType"`
}
type Info ¶
type Info struct {
CommentCount int64 `json:"commentCount"`
Comments interface{} `json:"comments"`
CommentThread CommentThread `json:"commentThread"`
LatestLikedUsers interface{} `json:"latestLikedUsers"`
Liked bool `json:"liked"`
LikedCount int64 `json:"likedCount"`
ResourceID int64 `json:"resourceId"`
ResourceType int64 `json:"resourceType"`
ThreadID string `json:"threadId"`
}
type Playlist ¶
type Playlist struct {
AdType int64 `json:"adType"`
BackgroundCoverID int64 `json:"backgroundCoverId"`
BackgroundCoverURL interface{} `json:"backgroundCoverUrl"`
CloudTrackCount int64 `json:"cloudTrackCount"`
CommentCount int64 `json:"commentCount"`
CommentThreadID string `json:"commentThreadId"`
Copied bool `json:"copied"`
CoverImgID int64 `json:"coverImgId"`
CoverImgIDStr string `json:"coverImgId_str"`
CoverImgURL string `json:"coverImgUrl"` // 封面图片url
CreateTime int64 `json:"createTime"` // 创建时间戳
Creator User `json:"creator"`
Description string `json:"description"`
GradeStatus string `json:"gradeStatus"`
HighQuality bool `json:"highQuality"`
ID int64 `json:"id"` // id
Name string `json:"name"` // 播放列表名字
NewImported bool `json:"newImported"`
OpRecommend bool `json:"opRecommend"`
Ordered bool `json:"ordered"`
PlayCount int64 `json:"playCount"` // 播放数
Privacy int64 `json:"privacy"`
SpecialType int64 `json:"specialType"`
Status int64 `json:"status"`
Subscribed bool `json:"subscribed"`
SubscribedCount int64 `json:"subscribedCount"`
//Subscribers []Subscriber `json:"subscribers"`
Tags []string `json:"tags"`
TitleImage int64 `json:"titleImage"`
TrackCount int64 `json:"trackCount"`
TrackIDS []TrackIDElement `json:"trackIds"` // 歌单歌曲id
TrackNumberUpdateTime int64 `json:"trackNumberUpdateTime"`
Tracks []Song `json:"tracks"` // 歌单歌曲内容
TrackUpdateTime int64 `json:"trackUpdateTime"`
UpdateTime int64 `json:"updateTime"`
UserID int64 `json:"userId"` // 用户id
VideoIDS interface{} `json:"videoIds"`
Videos interface{} `json:"videos"`
}
type ResourceInfo ¶
type Song ¶
type Song struct {
Al Album `json:"al"` // 专辑
Alia []string `json:"alia"` // 别名
Ar []Artist `json:"ar"` // 歌手列表
CD string `json:"cd"`
Copyright int64 `json:"copyright"`
DjID int64 `json:"djId"` // 是否dj节目
Dt int64 `json:"dt"` // 歌曲时长
Fee int64 `json:"fee"` // 歌曲播放权限
ID int64 `json:"id"` // 歌曲id
Mark int64 `json:"mark"`
Mv int64 `json:"mv"` // mvid
Name string `json:"name"` // 歌曲名
No int64 `json:"no"`
OriginCoverType int64 `json:"originCoverType"` // 翻唱类型
Pop int64 `json:"pop"` // 歌曲热度
PublishTime int64 `json:"publishTime"` // 发行时间
RtUrls []string `json:"rtUrls"`
SID int64 `json:"s_id"`
Single int64 `json:"single"` // 有无专辑
T int64 `json:"t"` // 歌曲来源
}
type TrackIDElement ¶
type User ¶
type User struct {
AccountStatus int64 `json:"accountStatus"`
Anchor bool `json:"anchor"`
AuthenticationTypes int64 `json:"authenticationTypes"`
Authority int64 `json:"authority"`
AuthStatus int64 `json:"authStatus"`
AvatarDetail interface{} `json:"avatarDetail"`
AvatarImgID int64 `json:"avatarImgId"`
CreatorAvatarImgIDStr string `json:"avatarImgId_str"`
AvatarImgIDStr string `json:"avatarImgIdStr"`
AvatarURL string `json:"avatarUrl"`
BackgroundImgID int64 `json:"backgroundImgId"`
BackgroundImgIDStr string `json:"backgroundImgIdStr"`
BackgroundURL string `json:"backgroundUrl"`
Birthday int64 `json:"birthday"`
City int64 `json:"city"`
DefaultAvatar bool `json:"defaultAvatar"`
Description string `json:"description"`
DetailDescription string `json:"detailDescription"`
DjStatus int64 `json:"djStatus"`
Experts interface{} `json:"experts"`
ExpertTags interface{} `json:"expertTags"`
Followed bool `json:"followed"`
Gender int64 `json:"gender"`
Mutual bool `json:"mutual"`
Nickname string `json:"nickname"` //用户昵称
Password string `json:"password"` // 用户密码
Phone string `json:"phone"` //用户手机好
Email string `json:"email"` //用户邮箱
Province int64 `json:"province"`
RemarkName interface{} `json:"remarkName"`
Signature string `json:"signature"`
UserID int64 `json:"userId"`
UserType int64 `json:"userType"`
VipType int64 `json:"vipType"`
Status int `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.