Documentation ¶
Index ¶
- Constants
- type Dao
- func (d *Dao) CheckMsgIsLegal(c context.Context, msg string, area string, roomId int64) (resp bool, err error)
- func (d *Dao) Close()
- func (d *Dao) CreateRoom(c context.Context, uid int64) (res *v1.RoomMngCreateRoomResp_Data, err error)
- func (d *Dao) FilterSite(c context.Context, msg string, area string) (resp []*mpostData, err error)
- func (d *Dao) GetFansMedalInfo(c context.Context, uid int64) (resp *v1.MedalQueryResp_Data, err error)
- func (d *Dao) GetIdentityStatus(c context.Context, mid int64) (resp int8, err error)
- func (d *Dao) GetRoomInfosByUids(c context.Context, uid []int64) (res map[int64]*v1.RoomGetStatusInfoByUidsResp_RoomInfo, err error)
- func (d *Dao) GetTopicList(c context.Context) (resp []string, err error)
- func (d *Dao) GetUserFc(c context.Context, uid int64) (res *v1.FeedGetUserFcResp_Data, err error)
- func (d *Dao) GetUserInfo(c context.Context, uid []int64) (res map[int64]*v3.UserGetMultipleResp_UserInfo, err error)
- func (d *Dao) Ping(c context.Context) error
Constants ¶
View Source
const FILTER_MPOST_URL = "http://api.bilibili.co/x/internal/filter/mpost"
FILTER_MPOST_URL 主站屏蔽词url
View Source
const OpenFansMealLevel = 10
OpenFansMealLevel 开启粉丝勋章的主播等级
View Source
const PERMANENT_LOCK_TIME = "2037-01-01 00:00:00"
PERMANENT_LOCK_TIME 永久封禁时间
View Source
const TitansKeyword = "topic"
TitansKeyword 话题标签值
View Source
const TitansTeam = 40
TitansTeam 话题team值
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { RoomApi *room_api.Client UserApi *user_api.Client RelationApi *relation_api.Client FansMedalApi *fans_medal_api.Client HttpCli *bm.Client // contains filtered or unexported fields }
Dao dao
func (*Dao) CheckMsgIsLegal ¶
func (d *Dao) CheckMsgIsLegal(c context.Context, msg string, area string, roomId int64) (resp bool, err error)
CheckMsgIsLegal ... area值:"live_danmu";"live_biaoti";"live_tag";"live_jianjie",;"live_xuyuanping"
func (*Dao) CreateRoom ¶
func (d *Dao) CreateRoom(c context.Context, uid int64) (res *v1.RoomMngCreateRoomResp_Data, err error)
CreateRoom ...
func (*Dao) FilterSite ¶
FilterSite 主站12月初grpc接口上线,可以替换
func (*Dao) GetFansMedalInfo ¶
func (d *Dao) GetFansMedalInfo(c context.Context, uid int64) (resp *v1.MedalQueryResp_Data, err error)
GetFansMedalInfo 获取粉丝勋章信息
func (*Dao) GetIdentityStatus ¶
GetIdentityStatus 获取身份申请信息
func (*Dao) GetRoomInfosByUids ¶
func (d *Dao) GetRoomInfosByUids(c context.Context, uid []int64) (res map[int64]*v1.RoomGetStatusInfoByUidsResp_RoomInfo, err error)
GetRoomInfosByUids ...
func (*Dao) GetTopicList ¶
GetTopicList 获取话题列表
func (*Dao) GetUserInfo ¶
func (d *Dao) GetUserInfo(c context.Context, uid []int64) (res map[int64]*v3.UserGetMultipleResp_UserInfo, err error)
GetUserInfo 获取用户信息
Click to show internal directories.
Click to hide internal directories.