Documentation ¶
Index ¶
- Constants
- type SearchCursor
- type Service
- func (s *Service) AddUserLike(c context.Context, mid, svid int64) (res *v1.NumResponse, err error)
- func (s *Service) AppPackage(c context.Context, lastest int) (resp []*v1.AppPackage, err error)
- func (s *Service) AppSetting(c context.Context, arg *v1.AppSettingRequest) (resp *v1.AppSettingResponse, err error)
- func (s *Service) BBQSug(c context.Context, arg *v1.SugReq) (res []*v1.SugTag, err error)
- func (s *Service) CallBack(c *bm.Context, req *interface_video_v1.CallBackRequest, mid int64) (rep struct{}, err error)
- func (s *Service) CancelUserLike(c context.Context, mid, svid int64) (res *v1.NumResponse, err error)
- func (s *Service) Close()
- func (s *Service) CommentAdd(c context.Context, mid int64, arg *v1.CommentAddReq, device *bm.Device) (res *model.AddRes, err error)
- func (s *Service) CommentCursor(c context.Context, arg *v1.CommentCursorReq, device *bm.Device) (res *model.CursorRes, err error)
- func (s *Service) CommentLike(c context.Context, mid int64, arg *v1.CommentLikeReq, device *bm.Device) (err error)
- func (s *Service) CommentList(c context.Context, arg *v1.CommentListReq, device *bm.Device) (res *model.ReplyList, err error)
- func (s *Service) CommentReport(c context.Context, arg *v1.CommentReportReq) (err error)
- func (s *Service) CommentSubCursor(c context.Context, mid int64, arg *v1.CommentSubCursorReq, device *bm.Device) (res *model.SubCursorRes, err error)
- func (s *Service) Discovery(ctx context.Context, mid int64, req *v1.DiscoveryReq) (res *v1.DiscoveryRes, err error)
- func (s *Service) FeedList(c context.Context, req *v1.FeedListRequest) (res *v1.FeedListResponse, err error)
- func (s *Service) FeedUpdateNum(c context.Context, mid int64) (res v1.FeedUpdateNumResponse, err error)
- func (s *Service) GetLocaitonAll(c context.Context, arg *http.LocationRequest) (*http.LocationResponse, error)
- func (s *Service) GetLocationChild(c context.Context, arg *http.LocationRequest) (*http.LocationResponse, error)
- func (s *Service) GetNoticeNum(ctx context.Context, mid int64) (res *v1.NoticeNumResponse, err error)
- func (s *Service) GetShareURL(ctx context.Context, mid int64, device *bm.Device, req *v1.ShareRequest) (*v1.ShareResponse, error)
- func (s *Service) HomeImg(c *bm.Context, req *interface_video_v1.HomeImgRequest, mid int64) (rep struct{}, err error)
- func (s *Service) HotWord(c context.Context, req *v1.HotWordRequest) (res *v1.HotWordResponse, err error)
- func (s *Service) Login(c context.Context, req *user.UserBase) (res *user.UserBase, err error)
- func (s *Service) ModifyRelation(c context.Context, mid, upMid int64, action int32) (res *user.ModifyRelationReply, err error)
- func (s *Service) NoticeList(ctx context.Context, req *v1.NoticeListRequest) (res *v1.NoticeListResponse, err error)
- func (s *Service) NoticeOverview(ctx context.Context, mid int64) (res *v1.NoticeOverviewResponse, err error)
- func (s *Service) PhoneCheck(c context.Context, mid int64) (err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PreUpload(c *bm.Context, req *interface_video_v1.PreUploadRequest, mid int64) (rep *service_video_v1.PreUploadResponse, err error)
- func (s *Service) PushCallback(c context.Context, args *v1.PushCallbackRequest, mid int64, buvid string) (response *v1.PushCallbackResponse, err error)
- func (s *Service) PushLogout(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error)
- func (s *Service) PushRegister(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error)
- func (s *Service) Report(c context.Context, arg *v1.ReportRequest, mid int64, ak string) (res *empty.Empty, err error)
- func (s *Service) ShareCallback(ctx context.Context, mid int64, device *bm.Device, ...) (resp *v1.ShareCallbackResponse, err error)
- func (s *Service) SpaceSvList(c context.Context, req *v1.SpaceSvListRequest) (res *v1.SpaceSvListResponse, err error)
- func (s *Service) SpaceUserProfile(c context.Context, mid int64, upMid int64) (res *v1.UserInfo, err error)
- func (s *Service) SvCPlays(c context.Context, svids []int64, mid int64) (res []*v1.VideoPlay, err error)
- func (s *Service) SvDel(c context.Context, in *video.VideoDeleteRequest) (interface{}, error)
- func (s *Service) SvDetail(c context.Context, svid int64, mid int64) (res *v1.VideoResponse, err error)
- func (s *Service) SvList(c context.Context, pageSize int64, mid int64, base *v1.Base, deviceID string) (res []*v1.VideoResponse, err error)
- func (s *Service) SvRelRec(c context.Context, data *v1.SvRelReq) (res map[string]interface{}, err error)
- func (s *Service) SvStatistics(c context.Context, mid int64, svids []int64) (res []*v1.SvStatRes, err error)
- func (s *Service) TopicDetail(ctx context.Context, mid int64, req *topic.TopicVideosReq) (res *v1.TopicDetail, err error)
- func (s *Service) TopicSearch(ctx context.Context, req *v1.TopicSearchReq) (res *v1.TopicSearchResponse, err error)
- func (s *Service) Upload(c *bm.Context, mid int64, t int) (location string, err error)
- func (s *Service) UserBase(c context.Context, mid int64) (res *v1.UserInfo, err error)
- func (s *Service) UserBlackList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
- func (s *Service) UserEdit(c context.Context, userBase *user.UserBase) (res *v1.NumResponse, err error)
- func (s *Service) UserFanList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
- func (s *Service) UserFollowList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
- func (s *Service) UserLikeList(c context.Context, req *v1.SpaceSvListRequest) (res v1.SpaceSvListResponse, err error)
- func (s *Service) UserSearch(c context.Context, mid int64, arg *v1.BaseSearchReq) (res *v1.UserSearchRes, err error)
- func (s *Service) VideoSearch(c context.Context, arg *v1.BaseSearchReq) (res *v1.VideoSearchRes, err error)
- func (s *Service) VideoUploadCheck(c *bm.Context, mid int64) (response interface{}, err error)
Constants ¶
const (
//FILESIZE .
FILESIZE = 2 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchCursor ¶
type SearchCursor struct {
Offset int64 `json:"offset"` // 默认为0,数据从1开始
}
SearchCursor .
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AddUserLike ¶
AddUserLike 点赞
func (*Service) AppPackage ¶
AppPackage .
func (*Service) AppSetting ¶
func (s *Service) AppSetting(c context.Context, arg *v1.AppSettingRequest) (resp *v1.AppSettingResponse, err error)
AppSetting .
func (*Service) CallBack ¶
func (s *Service) CallBack(c *bm.Context, req *interface_video_v1.CallBackRequest, mid int64) (rep struct{}, err error)
CallBack ..
func (*Service) CancelUserLike ¶
func (s *Service) CancelUserLike(c context.Context, mid, svid int64) (res *v1.NumResponse, err error)
CancelUserLike 取消点赞
func (*Service) CommentAdd ¶
func (s *Service) CommentAdd(c context.Context, mid int64, arg *v1.CommentAddReq, device *bm.Device) (res *model.AddRes, err error)
CommentAdd 发表评论评论服务
func (*Service) CommentCursor ¶
func (s *Service) CommentCursor(c context.Context, arg *v1.CommentCursorReq, device *bm.Device) (res *model.CursorRes, err error)
CommentCursor 游标评论列表
func (*Service) CommentLike ¶
func (s *Service) CommentLike(c context.Context, mid int64, arg *v1.CommentLikeReq, device *bm.Device) (err error)
CommentLike 评论点赞服务
func (*Service) CommentList ¶
func (s *Service) CommentList(c context.Context, arg *v1.CommentListReq, device *bm.Device) (res *model.ReplyList, err error)
CommentList 游标评论列表
func (*Service) CommentReport ¶
CommentReport 评论举报服务
func (*Service) CommentSubCursor ¶
func (s *Service) CommentSubCursor(c context.Context, mid int64, arg *v1.CommentSubCursorReq, device *bm.Device) (res *model.SubCursorRes, err error)
CommentSubCursor 游标评论列表
func (*Service) Discovery ¶
func (s *Service) Discovery(ctx context.Context, mid int64, req *v1.DiscoveryReq) (res *v1.DiscoveryRes, err error)
Discovery 发现页
func (*Service) FeedList ¶
func (s *Service) FeedList(c context.Context, req *v1.FeedListRequest) (res *v1.FeedListResponse, err error)
FeedList 关注页短视屏列表
func (*Service) FeedUpdateNum ¶
func (s *Service) FeedUpdateNum(c context.Context, mid int64) (res v1.FeedUpdateNumResponse, err error)
FeedUpdateNum 关注页红点
func (*Service) GetLocaitonAll ¶
func (s *Service) GetLocaitonAll(c context.Context, arg *http.LocationRequest) (*http.LocationResponse, error)
GetLocaitonAll .
func (*Service) GetLocationChild ¶
func (s *Service) GetLocationChild(c context.Context, arg *http.LocationRequest) (*http.LocationResponse, error)
GetLocationChild .
func (*Service) GetNoticeNum ¶
func (s *Service) GetNoticeNum(ctx context.Context, mid int64) (res *v1.NoticeNumResponse, err error)
GetNoticeNum 通知红点
func (*Service) GetShareURL ¶
func (s *Service) GetShareURL(ctx context.Context, mid int64, device *bm.Device, req *v1.ShareRequest) (*v1.ShareResponse, error)
GetShareURL .
func (*Service) HomeImg ¶
func (s *Service) HomeImg(c *bm.Context, req *interface_video_v1.HomeImgRequest, mid int64) (rep struct{}, err error)
HomeImg ..
func (*Service) HotWord ¶
func (s *Service) HotWord(c context.Context, req *v1.HotWordRequest) (res *v1.HotWordResponse, err error)
HotWord .
func (*Service) ModifyRelation ¶
func (s *Service) ModifyRelation(c context.Context, mid, upMid int64, action int32) (res *user.ModifyRelationReply, err error)
ModifyRelation 关注、取关、拉黑、取消拉黑
func (*Service) NoticeList ¶
func (s *Service) NoticeList(ctx context.Context, req *v1.NoticeListRequest) (res *v1.NoticeListResponse, err error)
NoticeList 请求通知列表,组装成通知消息列表
func (*Service) NoticeOverview ¶
func (s *Service) NoticeOverview(ctx context.Context, mid int64) (res *v1.NoticeOverviewResponse, err error)
NoticeOverview 通知中心概述
func (*Service) PhoneCheck ¶
PhoneCheck ..
func (*Service) PreUpload ¶
func (s *Service) PreUpload(c *bm.Context, req *interface_video_v1.PreUploadRequest, mid int64) (rep *service_video_v1.PreUploadResponse, err error)
PreUpload ..
func (*Service) PushCallback ¶
func (s *Service) PushCallback(c context.Context, args *v1.PushCallbackRequest, mid int64, buvid string) (response *v1.PushCallbackResponse, err error)
PushCallback .
func (*Service) PushLogout ¶
func (s *Service) PushLogout(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error)
PushLogout .
func (*Service) PushRegister ¶
func (s *Service) PushRegister(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error)
PushRegister .
func (*Service) Report ¶
func (s *Service) Report(c context.Context, arg *v1.ReportRequest, mid int64, ak string) (res *empty.Empty, err error)
Report ..
func (*Service) ShareCallback ¶
func (s *Service) ShareCallback(ctx context.Context, mid int64, device *bm.Device, args *v1.ShareCallbackRequest) (resp *v1.ShareCallbackResponse, err error)
ShareCallback .
func (*Service) SpaceSvList ¶
func (s *Service) SpaceSvList(c context.Context, req *v1.SpaceSvListRequest) (res *v1.SpaceSvListResponse, err error)
SpaceSvList 个人空间视频列表
func (*Service) SpaceUserProfile ¶
func (s *Service) SpaceUserProfile(c context.Context, mid int64, upMid int64) (res *v1.UserInfo, err error)
SpaceUserProfile ...
func (*Service) SvCPlays ¶
func (s *Service) SvCPlays(c context.Context, svids []int64, mid int64) (res []*v1.VideoPlay, err error)
SvCPlays 批量拉取playurl
func (*Service) SvDetail ¶
func (s *Service) SvDetail(c context.Context, svid int64, mid int64) (res *v1.VideoResponse, err error)
SvDetail 单条sv的视频详情,暂时只用于评论中转页
func (*Service) SvList ¶
func (s *Service) SvList(c context.Context, pageSize int64, mid int64, base *v1.Base, deviceID string) (res []*v1.VideoResponse, err error)
SvList 短视屏推荐列表
func (*Service) SvRelRec ¶
func (s *Service) SvRelRec(c context.Context, data *v1.SvRelReq) (res map[string]interface{}, err error)
SvRelRec 相关推荐服务
func (*Service) SvStatistics ¶
func (s *Service) SvStatistics(c context.Context, mid int64, svids []int64) (res []*v1.SvStatRes, err error)
SvStatistics 视频统计服务
func (*Service) TopicDetail ¶
func (s *Service) TopicDetail(ctx context.Context, mid int64, req *topic.TopicVideosReq) (res *v1.TopicDetail, err error)
TopicDetail 获取话题详情
func (*Service) TopicSearch ¶
func (s *Service) TopicSearch(ctx context.Context, req *v1.TopicSearchReq) (res *v1.TopicSearchResponse, err error)
TopicSearch 话题搜索
func (*Service) UserBlackList ¶
func (s *Service) UserBlackList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
UserBlackList 黑名单列表
func (*Service) UserEdit ¶
func (s *Service) UserEdit(c context.Context, userBase *user.UserBase) (res *v1.NumResponse, err error)
UserEdit 完善用户信息
该请求需要保证请求的mid已经存在,如果不存在,该接口会返回失败
func (*Service) UserFanList ¶
func (s *Service) UserFanList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
UserFanList 粉丝列表
func (*Service) UserFollowList ¶
func (s *Service) UserFollowList(c context.Context, req *user.ListRelationUserInfoReq) (res *v1.UserRelationListResponse, err error)
UserFollowList 关注列表 注意:这里出现3种mid,visitor/host/host关注的mid,按顺序缩写为V、H、HF,其中根据H获取HF,然后计算V和HF的关注关系
func (*Service) UserLikeList ¶
func (s *Service) UserLikeList(c context.Context, req *v1.SpaceSvListRequest) (res v1.SpaceSvListResponse, err error)
UserLikeList 用户点赞列表 TODO: 这段代码和SpaceSvList基本一样,后面抽出共同代码
func (*Service) UserSearch ¶
func (s *Service) UserSearch(c context.Context, mid int64, arg *v1.BaseSearchReq) (res *v1.UserSearchRes, err error)
UserSearch 用户搜索
func (*Service) VideoSearch ¶
func (s *Service) VideoSearch(c context.Context, arg *v1.BaseSearchReq) (res *v1.VideoSearchRes, err error)
VideoSearch 视频搜索