service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) AddLike

func (s *Service) AddLike(c context.Context, in *api.LikeReq) (res *api.LikeReply, err error)

AddLike 添加点赞

func (*Service) CancelLike

func (s *Service) CancelLike(c context.Context, in *api.LikeReq) (res *api.LikeReply, err error)

CancelLike 取消点赞

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) ForbidUser

func (s *Service) ForbidUser(c context.Context, req *api.ForbidRequest) (res *empty.Empty, err error)

ForbidUser ...

func (*Service) IsLike

func (s *Service) IsLike(ctx context.Context, req *api.IsLikeReq) (res *api.IsLikeReply, err error)

IsLike 返回是否点赞,点赞的才会返回

func (*Service) ListBlack

func (s *Service) ListBlack(ctx context.Context, in *api.ListRelationReq) (res *api.ListRelationReply, err error)

ListBlack 返回全部黑名单数组

func (*Service) ListBlackUserInfo

func (s *Service) ListBlackUserInfo(ctx context.Context, in *api.ListRelationUserInfoReq) (res *api.ListUserInfoReply, err error)

ListBlackUserInfo .

func (*Service) ListFanUserInfo

func (s *Service) ListFanUserInfo(ctx context.Context, in *api.ListRelationUserInfoReq) (res *api.ListUserInfoReply, err error)

ListFanUserInfo .

func (*Service) ListFollow

func (s *Service) ListFollow(ctx context.Context, in *api.ListRelationReq) (res *api.ListRelationReply, err error)

ListFollow 返回全部关注数组

func (*Service) ListFollowUserInfo

func (s *Service) ListFollowUserInfo(ctx context.Context, in *api.ListRelationUserInfoReq) (res *api.ListUserInfoReply, err error)

ListFollowUserInfo 关注列表 注意:这里出现3种mid,visitor/host/host关注的mid,按顺序缩写为V、H、HF,其中根据H获取HF,然后计算V和HF的关注关系

func (*Service) ListUserInfo

func (s *Service) ListUserInfo(c context.Context, in *api.ListUserInfoReq) (res *api.ListUserInfoReply, err error)

ListUserInfo 用户信息列表

func (*Service) ListUserLike

func (s *Service) ListUserLike(ctx context.Context, req *api.ListUserLikeReq) (res *api.ListUserLikeReply, err error)

ListUserLike 用户的点赞列表

func (*Service) Login

func (s *Service) Login(c context.Context, in *api.UserBase) (res *api.UserBase, err error)

Login 登录

func (*Service) ModifyRelation

func (s *Service) ModifyRelation(c context.Context, arg *api.ModifyRelationReq) (res *api.ModifyRelationReply, err error)

ModifyRelation .

func (*Service) PhoneCheck

func (s *Service) PhoneCheck(c context.Context, in *api.PhoneCheckReq) (res *api.PhoneCheckReply, err error)

PhoneCheck ..

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) (err error)

Ping Service

func (*Service) ReleaseUser

func (s *Service) ReleaseUser(c context.Context, req *api.ReleaseRequest) (res *empty.Empty, err error)

ReleaseUser ...

func (*Service) UpdateUserVideoView

func (s *Service) UpdateUserVideoView(c context.Context, req *api.UserVideoView) (res *empty.Empty, err error)

UpdateUserVideoView .

func (*Service) UserCmsTagEdit

func (s *Service) UserCmsTagEdit(c context.Context, in *api.CmsTagRequest) (res *empty.Empty, err error)

UserCmsTagEdit 修改cms_tag

func (*Service) UserEdit

func (s *Service) UserEdit(c context.Context, in *api.UserBase) (res *empty.Empty, err error)

UserEdit 完善用户信息

该请求需要保证请求的mid已经存在,如果不存在,该接口会返回失败

func (*Service) UserFieldEdit

func (s *Service) UserFieldEdit(c context.Context, in *api.UserBase) (res *empty.Empty, err error)

UserFieldEdit 仅提供给审核使用

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL