refactor: reorganize modules and add Linux build tooling
This commit is contained in:
51
module/social/group/internal/server/member_server.go
Normal file
51
module/social/group/internal/server/member_server.go
Normal file
@@ -0,0 +1,51 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/group/internal/logic/member"
|
||||
pb "bsm/full/module/social/group/pb"
|
||||
)
|
||||
|
||||
type MemberServer struct {
|
||||
pb.UnimplementedMemberServer
|
||||
}
|
||||
|
||||
func NewMemberServer() *MemberServer {
|
||||
return &MemberServer{}
|
||||
}
|
||||
|
||||
// 获取群组成员列表
|
||||
func (s *MemberServer) Fetch(ctx context.Context, in *pb.IdentRequest) (*pb.GroupMemberReply, error) {
|
||||
return member.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 申请加群
|
||||
func (s *MemberServer) DoJoin(ctx context.Context, in *pb.DoJoinRequest) (*pb.StatusReply, error) {
|
||||
return member.DoJoin(ctx, in)
|
||||
}
|
||||
|
||||
// 申请加群列表
|
||||
func (s *MemberServer) JoinFetch(ctx context.Context, in *pb.Empty) (*pb.JoinFetchReply, error) {
|
||||
return member.JoinFetch(ctx, in)
|
||||
}
|
||||
|
||||
// 申请加群处理
|
||||
func (s *MemberServer) JoinDoHandle(ctx context.Context, in *pb.GroupOPRequest) (*pb.StatusReply, error) {
|
||||
return member.JoinDoHandle(ctx, in)
|
||||
}
|
||||
|
||||
// 设置或取消管理员
|
||||
func (s *MemberServer) DoSetManager(ctx context.Context, in *pb.GroupOPRequest) (*pb.StatusReply, error) {
|
||||
return member.DoSetManager(ctx, in)
|
||||
}
|
||||
|
||||
// 踢人
|
||||
func (s *MemberServer) DoKick(ctx context.Context, in *pb.GroupOPRequest) (*pb.StatusReply, error) {
|
||||
return member.DoKick(ctx, in)
|
||||
}
|
||||
|
||||
// 退群
|
||||
func (s *MemberServer) DoQuit(ctx context.Context, in *pb.GroupOPRequest) (*pb.StatusReply, error) {
|
||||
return member.DoQuit(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user