refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/social/group/internal/logic/basic"
|
||||
pb "bsm/full/module/social/group/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type BasicServer struct {
|
||||
@@ -31,16 +31,16 @@ func (s *BasicServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.GroupIt
|
||||
}
|
||||
|
||||
// 创建群组
|
||||
func (s *BasicServer) Create(ctx context.Context, in *pb.GroupItem) (*pb.StatusReply, error) {
|
||||
func (s *BasicServer) Create(ctx context.Context, in *pb.GroupItem) (*pb.DataStatusReply, error) {
|
||||
return basic.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 修改群组信息
|
||||
func (s *BasicServer) Modify(ctx context.Context, in *pb.GroupItem) (*pb.StatusReply, error) {
|
||||
func (s *BasicServer) Modify(ctx context.Context, in *pb.GroupItem) (*pb.DataStatusReply, error) {
|
||||
return basic.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 解散群组
|
||||
func (s *BasicServer) Disband(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *BasicServer) Disband(ctx context.Context, in *pb.IdentRequest) (*pb.DataStatusReply, error) {
|
||||
return basic.Disband(ctx, in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user