refactor: localize protobuf definitions
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
// 更新代理商数据
|
||||
func Modify(ctx context.Context, in *pb.MarketAgenctyItem) (reply *pb.StatusReply, err error) {
|
||||
func Modify(ctx context.Context, in *pb.MarketAgenctyItem) (reply *pb.IdentityStatusReply, err error) {
|
||||
var (
|
||||
identity string
|
||||
)
|
||||
@@ -45,7 +45,7 @@ func Modify(ctx context.Context, in *pb.MarketAgenctyItem) (reply *pb.StatusRepl
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &pb.StatusReply{
|
||||
return &pb.IdentityStatusReply{
|
||||
Code: 0,
|
||||
Message: "OK",
|
||||
Identity: mktModel.Identity,
|
||||
|
||||
Reference in New Issue
Block a user