Documentation
¶
Index ¶
- type RoomAdminService
- func (s *RoomAdminService) Appoint(ctx context.Context, req *v1pb.RoomAdminAddReq) (resp *v1pb.RoomAdminAddResp, err error)
- func (s *RoomAdminService) Dismiss(ctx context.Context, req *v1pb.RoomAdminDismissAdminReq) (resp *v1pb.RoomAdminDismissAdminResp, err error)
- func (s *RoomAdminService) GetByAnchor(ctx context.Context, req *v1pb.RoomAdminGetByAnchorReq) (resp *v1pb.RoomAdminGetByAnchorResp, err error)
- func (s *RoomAdminService) GetByUid(ctx context.Context, req *v1pb.RoomAdminGetByUidReq) (resp *v1pb.RoomAdminGetByUidResp, err error)
- func (s *RoomAdminService) IsAny(ctx context.Context, req *v1pb.ShowEntryReq) (resp *v1pb.ShowEntryResp, err error)
- func (s *RoomAdminService) Resign(ctx context.Context, req *v1pb.RoomAdminResignRoomAdminReq) (resp *v1pb.RoomAdminResignRoomAdminResp, err error)
- func (s *RoomAdminService) SearchForAdmin(ctx context.Context, req *v1pb.RoomAdminSearchForAdminReq) (resp *v1pb.RoomAdminSearchForAdminResp, err error)
- func (s *RoomAdminService) ShowEntry(ctx context.Context, req *v1pb.ShowEntryReq) (resp *v1pb.ShowEntryResp, err error)
- type RoomService
- type TopicService
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 ¶
func (s *RoomAdminService) Dismiss(ctx context.Context, req *v1pb.RoomAdminDismissAdminReq) (resp *v1pb.RoomAdminDismissAdminResp, err error)
Dismiss implementation 撤销房管 `method:"POST" midware:"auth"`
func (*RoomAdminService) GetByAnchor ¶
func (s *RoomAdminService) GetByAnchor(ctx context.Context, req *v1pb.RoomAdminGetByAnchorReq) (resp *v1pb.RoomAdminGetByAnchorResp, err error)
GetByAnchor implementation 获取主播拥有的的所有房管身份 `method:"GET" midware:"auth"`
func (*RoomAdminService) GetByUid ¶
func (s *RoomAdminService) GetByUid(ctx context.Context, req *v1pb.RoomAdminGetByUidReq) (resp *v1pb.RoomAdminGetByUidResp, err error)
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 ¶
func (s *RoomAdminService) Resign(ctx context.Context, req *v1pb.RoomAdminResignRoomAdminReq) (resp *v1pb.RoomAdminResignRoomAdminResp, err error)
Resign implementation 辞职房管 `method:"POST" midware:"auth"`
func (*RoomAdminService) SearchForAdmin ¶
func (s *RoomAdminService) SearchForAdmin(ctx context.Context, req *v1pb.RoomAdminSearchForAdminReq) (resp *v1pb.RoomAdminSearchForAdminResp, err error)
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 (*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 (*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"`