refactor: reorganize modules and add Linux build tooling
This commit is contained in:
46
module/social/group/internal/server/basic_server.go
Normal file
46
module/social/group/internal/server/basic_server.go
Normal file
@@ -0,0 +1,46 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/group/internal/logic/basic"
|
||||
pb "bsm/full/module/social/group/pb"
|
||||
)
|
||||
|
||||
type BasicServer struct {
|
||||
pb.UnimplementedBasicServer
|
||||
}
|
||||
|
||||
func NewBasicServer() *BasicServer {
|
||||
return &BasicServer{}
|
||||
}
|
||||
|
||||
// 搜索
|
||||
func (s *BasicServer) Search(ctx context.Context, in *pb.SearchRequest) (*pb.GroupsReply, error) {
|
||||
return basic.Search(ctx, in)
|
||||
}
|
||||
|
||||
// 获取群组列表
|
||||
func (s *BasicServer) Fetch(ctx context.Context, in *pb.Empty) (*pb.GroupsReply, error) {
|
||||
return basic.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 获取群组信息
|
||||
func (s *BasicServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.GroupItem, error) {
|
||||
return basic.Get(ctx, in)
|
||||
}
|
||||
|
||||
// 创建群组
|
||||
func (s *BasicServer) Create(ctx context.Context, in *pb.GroupItem) (*pb.StatusReply, error) {
|
||||
return basic.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 修改群组信息
|
||||
func (s *BasicServer) Modify(ctx context.Context, in *pb.GroupItem) (*pb.StatusReply, error) {
|
||||
return basic.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 解散群组
|
||||
func (s *BasicServer) Disband(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return basic.Disband(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user