refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/market/internal/logic/data"
|
||||
pb "bsm/full/module/ec/market/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type DataServer struct {
|
||||
@@ -21,7 +21,7 @@ func (s *DataServer) Overview(ctx context.Context, in *pb.Empty) (*pb.OverviewRe
|
||||
}
|
||||
|
||||
// 会员列表
|
||||
func (s *DataServer) MemberFetch(ctx context.Context, in *pb.FetchRequest) (*pb.DataReply, error) {
|
||||
func (s *DataServer) MemberFetch(ctx context.Context, in *pb.MarketFetchRequest) (*pb.DataReply, error) {
|
||||
return data.MemberFetch(ctx, in)
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ func (s *DataServer) MemberDetails(ctx context.Context, in *pb.IdentRequest) (*p
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
func (s *DataServer) OrderFetch(ctx context.Context, in *pb.FetchRequest) (*pb.DataReply, error) {
|
||||
func (s *DataServer) OrderFetch(ctx context.Context, in *pb.MarketFetchRequest) (*pb.DataReply, error) {
|
||||
return data.OrderFetch(ctx, in)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user