Documentation ¶
Index ¶
Constants ¶
View Source
const TableNameArchivedCoin = "archived_coin"
View Source
const TableNameArchivedFav = "archived_fav"
View Source
const TableNameArchivedFavFolder = "archived_fav_folders"
View Source
const TableNameArchivedLike = "archived_like"
View Source
const TableNameArchivedSeason = "archived_season"
View Source
const TableNameArchivedUp = "archived_ups"
View Source
const TableNameArchivedUpsTag = "archived_ups_tag"
View Source
const TableNameArchivedVideo = "archived_video"
View Source
const TableNameArchivedViewHistory = "archived_view_history"
View Source
const TableNameSchemaMigration = "schema_migrations"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchivedCoin ¶
type ArchivedCoin struct { Bvid string `gorm:"column:bvid;type:varchar(64);primaryKey" json:"bvid"` CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Aid int64 `gorm:"column:aid;type:bigint;not null;comment:bili aid" json:"aid"` // bili aid Cid int64 `gorm:"column:cid;type:bigint;not null;comment:bili cid" json:"cid"` // bili cid Cover *string `gorm:"column:cover;type:varchar(256);comment:video cover" json:"cover"` // video cover Duration int64 `gorm:"column:duration;type:bigint;not null;comment:video duration" json:"duration"` // video duration CoinedTime int64 `gorm:"column:coined_time;type:bigint;not null;comment:video coin time" json:"coined_time"` // video coin time SeasonID int64 `gorm:"column:season_id;type:bigint;not null;comment:bili season id" json:"season_id"` // bili season id Intro *string `gorm:"column:intro;type:text;comment:video intro" json:"intro"` // video intro Title *string `gorm:"column:title;type:text;comment:video title" json:"title"` // video title Type int64 `gorm:"column:type;type:bigint;not null;comment:video type" json:"type"` // video type Coins int64 `gorm:"column:coins;type:bigint;not null;comment:video coins" json:"coins"` // video coins Owner *string `gorm:"column:owner;type:json;comment:{"mid": 173986740, "name": "这个月-"}" json:"owner"` // {"mid": 173986740, "name": "这个月-"} Resp *string `gorm:"column:resp;type:json" json:"resp"` CntInfo *string `` // {"collect": 73600, "play": 1068474, "danmaku": 2632, "vt": 0, "play_switch": 0, "reply": 0, "view_text_1": "106.8万" } /* 176-byte string literal not displayed */ ArchivedVideo *ArchivedVideo `gorm:"foreignKey:bvid" json:"archived_video"` }
ArchivedCoin 投币视频
func (*ArchivedCoin) TableName ¶
func (*ArchivedCoin) TableName() string
TableName ArchivedCoin's table name
type ArchivedFav ¶
type ArchivedFav struct { ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"` CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Fid int64 `gorm:"column:fid;type:bigint;primaryKey;comment:bili folder" json:"fid"` // bili folder Bvid *string `gorm:"column:bvid;type:varchar(64);comment:bili avid" json:"bvid"` // bili avid Cover *string `gorm:"column:cover;type:varchar(256);comment:video cover" json:"cover"` // video cover Ctime int64 `gorm:"column:ctime;type:bigint;not null;comment:video create time" json:"ctime"` // video create time Duration int64 `gorm:"column:duration;type:bigint;not null;comment:video duration" json:"duration"` // video duration FavTime int64 `gorm:"column:fav_time;type:bigint;not null;comment:video favor time" json:"fav_time"` // video favor time Intro *string `gorm:"column:intro;type:text;comment:video intro" json:"intro"` // video intro Title *string `gorm:"column:title;type:text;comment:video title" json:"title"` // video title Type int64 `gorm:"column:type;type:bigint;not null;comment:video type" json:"type"` // video type Season *string `gorm:"column:season;type:json;comment:video season" json:"season"` // video season Upper *string `gorm:"column:upper;type:json;comment:{"mid": 173986740, "name": "这个月-"}" json:"upper"` // {"mid": 173986740, "name": "这个月-"} CntInfo *string `` // {"collect": 73600, "play": 1068474, "danmaku": 2632, "vt": 0, "play_switch": 0, "reply": 0, "view_text_1": "106.8万" } /* 176-byte string literal not displayed */ Resp *string `gorm:"column:resp;type:json" json:"resp"` ArchivedFavFolder *ArchivedFavFolder `gorm:"foreignKey:fid" json:"archived_fav_folder"` ArchivedVideo *ArchivedVideo `gorm:"foreignKey:bvid" json:"archived_video"` }
ArchivedFav 收藏视频
func (*ArchivedFav) TableName ¶
func (*ArchivedFav) TableName() string
TableName ArchivedFav's table name
type ArchivedFavFolder ¶
type ArchivedFavFolder struct { ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"` Fid int64 `gorm:"column:fid;type:bigint;not null;comment:bili folder id" json:"fid"` // bili folder id CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Mid int64 `gorm:"column:mid;type:bigint;not null;comment:bili uid" json:"mid"` // bili uid MediaCount int64 `gorm:"column:media_count;type:bigint;not null;comment:media count" json:"media_count"` // media count Title *string `gorm:"column:title;type:varchar(64);comment:title" json:"title"` // title Resp *string `gorm:"column:resp;type:json" json:"resp"` ArchivedFav []ArchivedFav `gorm:"foreignKey:fid" json:"archived_fav"` }
ArchivedFavFolder 收藏文件夹
func (*ArchivedFavFolder) TableName ¶
func (*ArchivedFavFolder) TableName() string
TableName ArchivedFavFolder's table name
type ArchivedLike ¶
type ArchivedLike struct { Bvid string `gorm:"column:bvid;type:varchar(64);primaryKey" json:"bvid"` CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Aid int64 `gorm:"column:aid;type:bigint;not null;comment:bili aid" json:"aid"` // bili aid Cid int64 `gorm:"column:cid;type:bigint;not null;comment:bili cid" json:"cid"` // bili cid Cover *string `gorm:"column:cover;type:varchar(256);comment:video cover" json:"cover"` // video cover Duration int64 `gorm:"column:duration;type:bigint;not null;comment:video duration" json:"duration"` // video duration LikeTime int64 `gorm:"column:like_time;type:bigint;not null;comment:video like time" json:"like_time"` // video like time SeasonID int64 `gorm:"column:season_id;type:bigint;not null;comment:bili season id" json:"season_id"` // bili season id Intro *string `gorm:"column:intro;type:text;comment:video intro" json:"intro"` // video intro Title *string `gorm:"column:title;type:text;comment:video title" json:"title"` // video title Type int64 `gorm:"column:type;type:bigint;not null;comment:video type" json:"type"` // video type Owner *string `gorm:"column:owner;type:json;comment:{"mid": 173986740, "name": "这个月-"}" json:"owner"` // {"mid": 173986740, "name": "这个月-"} Resp *string `gorm:"column:resp;type:json" json:"resp"` CntInfo *string `` // {"collect": 73600, "play": 1068474, "danmaku": 2632, "vt": 0, "play_switch": 0, "reply": 0, "view_text_1": "106.8万" } /* 176-byte string literal not displayed */ ArchivedVideo *ArchivedVideo `gorm:"foreignKey:bvid" json:"archived_video"` }
ArchivedLike 点赞视频
func (*ArchivedLike) TableName ¶
func (*ArchivedLike) TableName() string
TableName ArchivedLike's table name
type ArchivedSeason ¶
type ArchivedSeason struct { SeasonID int64 `gorm:"column:season_id;type:bigint;primaryKey" json:"season_id"` CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Cover *string `gorm:"column:cover;type:varchar(256);comment:season cover" json:"cover"` // season cover Title *string `gorm:"column:title;type:varchar(256);comment:season title" json:"title"` // season title Intro *string `gorm:"column:intro;type:text;comment:season evaluate" json:"intro"` // season evaluate EpisodesCount *int64 `gorm:"column:episodes_count;type:int;comment:season episodes count" json:"episodes_count"` // season episodes count Link *string `gorm:"column:link;type:varchar(256);comment:season link" json:"link"` // season link MediaID int64 `gorm:"column:media_id;type:bigint;not null;comment:season media id" json:"media_id"` // season media id Ctime int64 `gorm:"column:ctime;type:bigint;not null;comment:video create time" json:"ctime"` // video create time Pubdate int64 `gorm:"column:pubdate;type:bigint;not null;comment:video publish time" json:"pubdate"` // video publish time RatingCount int64 `gorm:"column:rating_count;type:bigint;not null;comment:video rating count" json:"rating_count"` // video rating count RatingScore float64 `gorm:"column:rating_score;type:decimal(10,0);not null;default:0;comment:video rating score" json:"rating_score"` // video rating score StatView int64 `gorm:"column:stat_view;type:bigint;not null;comment:video view count" json:"stat_view"` // video view count StatDanmaku int64 `gorm:"column:stat_danmaku;type:bigint;not null;comment:video danmaku count" json:"stat_danmaku"` // video danmaku count StatReply int64 `gorm:"column:stat_reply;type:bigint;not null;comment:video reply count" json:"stat_reply"` // video reply count StatFavorite int64 `gorm:"column:stat_favorite;type:bigint;not null;comment:video favorite count" json:"stat_favorite"` // video favorite count StatCoin int64 `gorm:"column:stat_coin;type:bigint;not null;comment:video coin count" json:"stat_coin"` // video coin count StatLike int64 `gorm:"column:stat_like;type:bigint;not null;comment:video like count" json:"stat_like"` // video like count StatDislike int64 `gorm:"column:stat_dislike;type:bigint;not null;comment:video dislike count" json:"stat_dislike"` // video dislike count StatNowRank int64 `gorm:"column:stat_now_rank;type:bigint;not null;comment:video now rank" json:"stat_now_rank"` // video now rank StatHisRank int64 `gorm:"column:stat_his_rank;type:bigint;not null;comment:video history rank" json:"stat_his_rank"` // video history rank StatEvaluation string `gorm:"column:stat_evaluation;type:varchar(32);not null;comment:video evaluation" json:"stat_evaluation"` // video evaluation StatVt int64 `gorm:"column:stat_vt;type:bigint;not null;comment:video vt" json:"stat_vt"` // video vt Styles string `gorm:"column:styles;type:json;not null;comment:video styles" json:"styles"` // video styles UpperMid int64 `gorm:"column:upper_mid;type:bigint;not null;comment:video upper mid" json:"upper_mid"` // video upper mid UpperName string `gorm:"column:upper_name;type:varchar(256);not null;default:0;comment:video upper name" json:"upper_name"` // video upper name FaceName string `gorm:"column:face_name;type:varchar(256);not null;default:0;comment:video upper face" json:"face_name"` // video upper face Resp *string `gorm:"column:resp;type:json" json:"resp"` }
ArchivedSeason 视频信息
func (*ArchivedSeason) TableName ¶
func (*ArchivedSeason) TableName() string
TableName ArchivedSeason's table name
type ArchivedUp ¶
type ArchivedUp struct { CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` TagID int64 `gorm:"column:tag_id;type:bigint;primaryKey;comment:my group" json:"tag_id"` // my group Sign *string `gorm:"column:sign;type:varchar(2048);comment:up desc" json:"sign"` // up desc Uname *string `gorm:"column:uname;type:varchar(128);comment:up name" json:"uname"` // up name Mid int64 `gorm:"column:mid;type:bigint;primaryKey;comment:up uid" json:"mid"` // up uid Level *string `gorm:"column:level;type:varchar(3);comment:up level" json:"level"` // up level Rank *string `gorm:"column:rank;type:varchar(30);comment:up rank" json:"rank"` // up rank Following *string `gorm:"column:following;type:varchar(30);comment:up following" json:"following"` // up following Follower *string `gorm:"column:follower;type:varchar(30);comment:up follower" json:"follower"` // up follower View *string `gorm:"column:view;type:varchar(30);comment:up view" json:"view"` // up view Likes *string `gorm:"column:likes;type:varchar(30);comment:up likes" json:"likes"` // up likes Resp *string `gorm:"column:resp;type:json" json:"resp"` Video *string `gorm:"column:video;type:varchar(30);comment:up video count" json:"video"` // up video count ArchivedUpsTag *ArchivedUpsTag `gorm:"foreignKey:tag_id" json:"archived_ups_tag"` }
ArchivedUp 关注的UP
func (*ArchivedUp) TableName ¶
func (*ArchivedUp) TableName() string
TableName ArchivedUp's table name
type ArchivedUpsTag ¶
type ArchivedUpsTag struct { TagID int64 `gorm:"column:tag_id;type:bigint;primaryKey;comment:tagid" json:"tag_id"` // tagid CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Name *string `gorm:"column:name;type:varchar(64);comment:name" json:"name"` // name Count_ *int64 `gorm:"column:count;type:bigint;comment:count" json:"count"` // count Resp *string `gorm:"column:resp;type:json" json:"resp"` Tip *string `gorm:"column:tip;type:varchar(128);comment:tip" json:"tip"` // tip ArchivedUp []ArchivedUp `gorm:"foreignKey:tag_id" json:"archived_up"` }
ArchivedUpsTag 关注的UP主分组
func (*ArchivedUpsTag) TableName ¶
func (*ArchivedUpsTag) TableName() string
TableName ArchivedUpsTag's table name
type ArchivedVideo ¶
type ArchivedVideo struct { ArchivedType int64 `gorm:"column:archived_type;type:tinyint;primaryKey;comment:0: fav, 1: coin, 2: like, 3: view" json:"archived_type"` // 0: fav, 1: coin, 2: like, 3: view SyncStatus int64 `gorm:"column:sync_status;type:tinyint;not null;comment:0: 未同步, 1: 同步中, 2: 同步完成" json:"sync_status"` // 0: 未同步, 1: 同步中, 2: 同步完成 SyncTime *time.Time `gorm:"column:sync_time;type:datetime(3);comment:同步时间" json:"sync_time"` // 同步时间 Bvid string `gorm:"column:bvid;type:varchar(64);primaryKey" json:"bvid"` SeasonID int64 `gorm:"column:season_id;type:bigint;not null;comment:bili season_id" json:"season_id"` // bili season_id CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Aid int64 `gorm:"column:aid;type:bigint;not null;comment:bili aid" json:"aid"` // bili aid Cid int64 `gorm:"column:cid;type:bigint;not null;comment:bili cid" json:"cid"` // bili cid Tid int64 `gorm:"column:tid;type:bigint;not null;comment:bili tid" json:"tid"` // bili tid Cover *string `gorm:"column:cover;type:varchar(256);comment:video cover" json:"cover"` // video cover Ctime int64 `gorm:"column:ctime;type:bigint;not null;comment:video create time" json:"ctime"` // video create time Pubdate int64 `gorm:"column:pubdate;type:bigint;not null;comment:video publish time" json:"pubdate"` // video publish time Duration int64 `gorm:"column:duration;type:bigint;not null;comment:video duration" json:"duration"` // video duration Title *string `gorm:"column:title;type:text;comment:video title" json:"title"` // video title Intro *string `gorm:"column:intro;type:text;comment:video intro" json:"intro"` // video intro UpperMid int64 `gorm:"column:upper_mid;type:bigint;not null;comment:video upper mid" json:"upper_mid"` // video upper mid UpperName string `gorm:"column:upper_name;type:varchar(256);not null;default:0;comment:video upper name" json:"upper_name"` // video upper name FaceName string `gorm:"column:face_name;type:varchar(256);not null;default:0;comment:video upper face" json:"face_name"` // video upper face StatView int64 `gorm:"column:stat_view;type:bigint;not null;comment:video view count" json:"stat_view"` // video view count StatDanmaku int64 `gorm:"column:stat_danmaku;type:bigint;not null;comment:video danmaku count" json:"stat_danmaku"` // video danmaku count StatReply int64 `gorm:"column:stat_reply;type:bigint;not null;comment:video reply count" json:"stat_reply"` // video reply count StatFavorite int64 `gorm:"column:stat_favorite;type:bigint;not null;comment:video favorite count" json:"stat_favorite"` // video favorite count StatCoin int64 `gorm:"column:stat_coin;type:bigint;not null;comment:video coin count" json:"stat_coin"` // video coin count StatLike int64 `gorm:"column:stat_like;type:bigint;not null;comment:video like count" json:"stat_like"` // video like count StatDislike int64 `gorm:"column:stat_dislike;type:bigint;not null;comment:video dislike count" json:"stat_dislike"` // video dislike count StatNowRank int64 `gorm:"column:stat_now_rank;type:bigint;not null;comment:video now rank" json:"stat_now_rank"` // video now rank StatHisRank int64 `gorm:"column:stat_his_rank;type:bigint;not null;comment:video history rank" json:"stat_his_rank"` // video history rank StatEvaluation *string `gorm:"column:stat_evaluation;type:varchar(32);comment:video evaluation" json:"stat_evaluation"` // video evaluation StatVt int64 `gorm:"column:stat_vt;type:bigint;not null;comment:video vt" json:"stat_vt"` // video vt HonorReply *string `gorm:"column:honor_reply;type:json;comment:video honor reply" json:"honor_reply"` // video honor reply Resp *string `gorm:"column:resp;type:json" json:"resp"` }
ArchivedVideo 视频信息
func (*ArchivedVideo) TableName ¶
func (*ArchivedVideo) TableName() string
TableName ArchivedVideo's table name
type ArchivedViewHistory ¶
type ArchivedViewHistory struct { Bvid string `gorm:"column:bvid;type:varchar(64);primaryKey" json:"bvid"` CreateTime *time.Time `gorm:"column:create_time;type:datetime(3);autoCreateTime" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime(3);autoUpdateTime" json:"update_time"` DeleteTime gorm.DeletedAt `gorm:"column:delete_time;type:datetime(3)" json:"delete_time"` Title *string `gorm:"column:title;type:text;comment:video title" json:"title"` // video title Cover *string `gorm:"column:cover;type:varchar(256);comment:video cover" json:"cover"` // video cover UpperMid int64 `gorm:"column:upper_mid;type:bigint;not null;comment:video upper mid" json:"upper_mid"` // video upper mid UpperName string `gorm:"column:upper_name;type:varchar(256);not null;default:0;comment:video upper name" json:"upper_name"` // video upper name FaceName string `gorm:"column:face_name;type:varchar(256);not null;default:0;comment:video upper face" json:"face_name"` // video upper face Duration int64 `gorm:"column:duration;type:bigint;not null;comment:video duration" json:"duration"` // video duration ViewAt int64 `gorm:"column:view_at;type:bigint;not null;comment:video view_at" json:"view_at"` // video view_at Videos int64 `gorm:"column:videos;type:bigint;not null;comment:videos" json:"videos"` // videos Progress int64 `gorm:"column:progress;type:bigint;not null;comment:progress" json:"progress"` // progress IsFinish int64 `gorm:"column:is_finish;type:tinyint(1);not null;comment:is_finish" json:"is_finish"` // is_finish Kid *int64 `gorm:"column:kid;type:bigint;comment:稿件avid" json:"kid"` // 稿件avid TagName *string `gorm:"column:tag_name;type:varchar(32);comment:video tag_name" json:"tag_name"` // video tag_name Resp *string `gorm:"column:resp;type:json" json:"resp"` ArchivedVideo *ArchivedVideo `gorm:"foreignKey:bvid" json:"archived_video"` }
ArchivedViewHistory 浏览历史记录
func (*ArchivedViewHistory) TableName ¶
func (*ArchivedViewHistory) TableName() string
TableName ArchivedViewHistory's table name
type SchemaMigration ¶
type SchemaMigration struct { Version int64 `gorm:"column:version;type:bigint;primaryKey" json:"version"` Dirty int64 `gorm:"column:dirty;type:tinyint(1);not null" json:"dirty"` }
SchemaMigration mapped from table <schema_migrations>
func (*SchemaMigration) TableName ¶
func (*SchemaMigration) TableName() string
TableName SchemaMigration's table name
Click to show internal directories.
Click to hide internal directories.