v1

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoomAdminService

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

RoomAdminService struct

func NewRoomAdminService

func NewRoomAdminService(c *conf.Config) (s *RoomAdminService)

NewRoomAdminService init

func (*RoomAdminService) Appoint

func (s *RoomAdminService) Appoint(ctx context.Context, req *v1pb.RoomAdminAddReq) (resp *v1pb.RoomAdminAddResp, err error)

Appoint implementation 添加房管 `method:"POST" midware:"auth"`

func (*RoomAdminService) Dismiss

Dismiss implementation 撤销房管 `method:"POST" midware:"auth"`

func (*RoomAdminService) GetByAnchor

GetByAnchor implementation 获取主播拥有的的所有房管身份 `method:"GET" midware:"auth"`

func (*RoomAdminService) GetByUid

GetByUid implementation 获取用户拥有的的所有房管身份 `method:"GET" midware:"auth"`

func (*RoomAdminService) IsAny

func (s *RoomAdminService) IsAny(ctx context.Context, req *v1pb.ShowEntryReq) (resp *v1pb.ShowEntryResp, err error)

IsAny implementation 根据登录态获取功能入口是否显示, 需要登录态 `method:"GET" midware:"auth"`

func (*RoomAdminService) Resign

Resign implementation 辞职房管 `method:"POST" midware:"auth"`

func (*RoomAdminService) SearchForAdmin

SearchForAdmin implementation 查询需要添加的房管 `method:"POST" midware:"auth"`

func (*RoomAdminService) ShowEntry

func (s *RoomAdminService) ShowEntry(ctx context.Context, req *v1pb.ShowEntryReq) (resp *v1pb.ShowEntryResp, err error)

ShowEntry implementation 根据登录态获取功能入口是否显示, 需要登录态 `method:"GET" midware:"auth"`

type RoomService

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

RoomService struct

func NewRoomService

func NewRoomService(c *conf.Config) (s *RoomService)

NewRoomService init

func (*RoomService) Create

func (s *RoomService) Create(ctx context.Context, req *v1pb.CreateReq) (resp *v1pb.CreateResp, err error)

Create implementation 创建房间 `method:"POST" midware:"auth"`

func (*RoomService) GetInfo

func (s *RoomService) GetInfo(ctx context.Context, req *v1pb.GetRoomInfoReq) (resp *v1pb.GetRoomInfoResp, err error)

GetInfo implementation 获取房间基本信息 `method:"GET" midware:"auth"`

type TopicService

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

TopicService struct

func NewTopicService

func NewTopicService(c *conf.Config) (s *TopicService)

NewTopicService init

func (*TopicService) CheckTopic

func (s *TopicService) CheckTopic(ctx context.Context, req *v1pb.CheckTopicReq) (resp *v1pb.CheckTopicResp, err error)

CheckTopic implementation 检验话题是否有效 `method:"GET" midware:"auth"`

func (*TopicService) GetTopicList

func (s *TopicService) GetTopicList(ctx context.Context, req *v1pb.GetTopicListReq) (resp *v1pb.GetTopicListResp, err error)

GetTopicList implementation 获取话题列表 `method:"GET" midware:"auth"`

Jump to

Keyboard shortcuts

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