Documentation
¶
Index ¶
- Constants
- type ArcVideo
- type Archive
- type BAP
- type CanalMsg
- type GiftReward
- type Msg
- type OArchive
- type RelaMessage
- type Relation
- type ShareMsg
- type Stat
- type StatCoin
- type StatDM
- type StatFav
- type StatLike
- type StatRank
- type StatReply
- type StatShare
- type StatView
- type Task
- type TaskMsg
- type Up
- type UserTask
Constants ¶
View Source
const ( //BusinessForArchvie 稿件 BusinessForArchvie = 1 //BusinessForArticle 专栏 BusinessForArticle = 2 )
View Source
const ( // TargetType001 该UID下开放浏览的稿件≥1 TargetType001 int8 // TargetType002 该UID分享自己视频的次数≥1 TargetType002 // TargetType003 该UID在创作学院的观看记录≥1 TargetType003 // TargetType004 该UID下所有avid的获得评论数≥3 TargetType004 // TargetType005 该UID下所有avid获得分享数≥3 TargetType005 // TargetType006 该UID的所有avid的获得收藏数≥5 TargetType006 // TargetType007 该UID下所有avid的获得硬币数≥5 TargetType007 // TargetType008 该UID下所有avid获得点赞数≥5 TargetType008 // TargetType009 该UID下所有avid的获得弹幕数≥5 TargetType009 // TargetType010 该UID的粉丝数≥10 TargetType010 // TargetType011 任务完成期间该UID的水印开关为打开状态 TargetType011 // TargetType012 该UID的关注列表含有“哔哩哔哩创作中心” TargetType012 // TargetType013 用手机投稿上传视频 TargetType013 // TargetType014 该UID下开放浏览的稿件≥5 TargetType014 // TargetType015 该UID下任意avid的获得点击量≥1000 TargetType015 // TargetType016 该UID下任意avid的评论≥30 TargetType016 // TargetType017 该UID下任意avid的获得分享数≥10 TargetType017 // TargetType018 该UID下任意avid的获得收藏数≥30 TargetType018 // TargetType019 该UID下任意avid的获得硬币数≥50 TargetType019 // TargetType020 该UID下任意avid的获得点赞数≥50 TargetType020 // TargetType021 该UID下任意avid的获得弹幕数≥50 TargetType021 // TargetType022 该UID的粉丝数≥1000 TargetType022 // TargetType023 该UID的激励计划状态为已开通 TargetType023 // TargetType024 该UID粉丝勋章为开启状态 TargetType024 )
View Source
const ( //TaskIncomplete 任务未完成 TaskIncomplete = -1 //TaskCompleted 任务已完成 TaskCompleted = 0 //MsgForWaterMark 发送用户设置水印消息 MsgForWaterMark = 1 //MsgForAcademyFavVideo 发送用户已在创作学院观看过自己喜欢的视频的消息 MsgForAcademyFavVideo = 2 //MsgForGrowAccount 发送用户已在参加激励计划的消息 MsgForGrowAccount = 3 //MsgForOpenFansMedal 成功开通粉丝勋章 MsgForOpenFansMedal = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct { AID int64 `json:"aid"` MID int64 `json:"mid"` State int `json:"state"` UpFrom int8 `json:"up_from"` }
Archive for db.
type BAP ¶
type BAP struct { UserName string `json:"username"` Title string `json:"title"` Content string `json:"content"` URL string `json:"url"` Ty string `json:"type"` Token string `json:"token"` Signature string `json:"signature"` TimeStamp int64 `json:"timestamp"` }
BAP for wechat msg.
type CanalMsg ¶
type CanalMsg struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` }
CanalMsg canal databus msg.
type GiftReward ¶
type GiftReward struct { ID int64 `json:"id"` TaskType int8 `json:"task_type"` RewardID int64 `json:"reward_id"` State int8 `json:"state"` Comment string `json:"comment"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
GiftReward for gift reward
type Msg ¶
type Msg struct { MID int64 `json:"mid"` From int `json:"from"` IsAuthor int `json:"is_author"` TimeStamp int64 `json:"timestamp"` }
Msg for databus.
type RelaMessage ¶
type RelaMessage struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` }
RelaMessage Message define relation binlog databus message.
type Relation ¶
type Relation struct { MID int64 `json:"mid,omitempty"` FID int64 `json:"fid,omitempty"` Attribute uint32 `json:"attribute"` Status int `json:"status"` MTime string `json:"mtime"` CTime string `json:"ctime"` }
Relation user_relation_mid_0~user_relation_mid_49
type Stat ¶
type Stat struct { MID int64 `json:"mid,omitempty"` Following int64 `json:"following"` Whisper int64 `json:"whisper"` Black int64 `json:"black"` Follower int64 `json:"follower"` }
Stat user_relation_stat
type StatCoin ¶
type StatCoin struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatCoin archive coin count
type StatDM ¶
type StatDM struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatDM archive DM count
type StatFav ¶
type StatFav struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatFav archive collection count
type StatLike ¶
type StatLike struct { MID int64 `json:"mid"` Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` DislikeCount int64 `json:"dislike_count"` TimeStamp int64 `json:"timestamp"` }
StatLike archive like count
type StatRank ¶
type StatRank struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatRank archive rank
type StatReply ¶
type StatReply struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatReply archive reply count
type StatView ¶
type StatView struct { Type string `json:"type"` ID int64 `json:"id"` Count int64 `json:"count"` TimeStamp int64 `json:"timestamp"` }
StatView ViewMsg archive view count
type Task ¶
type Task struct { ID int64 `json:"id"` GroupID int64 `json:"-"` Type int8 `json:"type"` State int8 `json:"-"` Title string `json:"title"` Desc string `json:"desc"` Comment string `json:"-"` TargetType int8 `json:"-"` TargetValue int64 `json:"-"` CompleteSate int8 `json:"complete_state"` CTime time.Time `json:"-"` MTime time.Time `json:"-"` }
Task for def task struct.
type TaskMsg ¶
type TaskMsg struct { MID int64 `json:"mid"` Count int64 `json:"count"` From int `json:"from"` TimeStamp int64 `json:"timestamp"` }
TaskMsg for task notify.
type UserTask ¶
type UserTask struct { ID int64 `json:"id"` MID int64 `json:"mid"` TaskID int64 `json:"task_id"` TaskGroupID int64 `json:"task_group_id"` TaskType int8 `json:"task_type"` State int8 `json:"state"` TaskBindTime time.Time `json:"task_bind_time"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
UserTask for def user task struct.
Click to show internal directories.
Click to hide internal directories.