refactor: add unified all service gateway
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: david.yan(david.yan@qq.com)
|
||||
* @Date: 2021-11-26 15:25:03
|
||||
*/
|
||||
package service
|
||||
package main
|
||||
|
||||
import (
|
||||
"bsm/full/module/ec/order/internal/config"
|
||||
@@ -20,7 +20,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化服务
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
&service.Options{
|
||||
|
||||
@@ -17,10 +17,15 @@ type Server struct {
|
||||
grpcConns map[string]*grpc.ClientConn // 连接池
|
||||
}
|
||||
|
||||
func New(addr string) *Server {
|
||||
func New(grpcServ *grpc.Server) *Server {
|
||||
standalone := grpcServ == nil
|
||||
if standalone {
|
||||
grpcServ = grpc.NewServer()
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpc.NewServer(),
|
||||
Grpc: grpcServ,
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -30,7 +35,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterMgtServer(srv.Grpc, NewMgtServer())
|
||||
pb.RegisterSummaryServer(srv.Grpc, NewSummaryServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -572,12 +572,12 @@ const file_module_ec_order_proto_cart_proto_rawDesc = "" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06number\x18\x02 \x01(\x03R\x06number\" \n" +
|
||||
"\x0eCartDelRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x03 \x03(\x03R\x02id2\xf4\x01\n" +
|
||||
"\x02id\x18\x03 \x03(\x03R\x02id2\x8f\x02\n" +
|
||||
"\x04Cart\x125\n" +
|
||||
"\x05Fetch\x12\x15.order.CartGetRequest\x1a\x13.order.CartGetReply\"\x00\x12;\n" +
|
||||
"\x06Create\x12\x15.order.CartAddRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12;\n" +
|
||||
"\x06Modify\x12\x15.order.CartSetRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12;\n" +
|
||||
"\x06Delete\x12\x15.order.CartDelRequest\x1a\x18.blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
"\x05Fetch\x12\x15.order.CartGetRequest\x1a\x13.order.CartGetReply\"\x00\x12D\n" +
|
||||
"\x06Create\x12\x15.order.CartAddRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12D\n" +
|
||||
"\x06Modify\x12\x15.order.CartSetRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12D\n" +
|
||||
"\x06Delete\x12\x15.order.CartDelRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_order_proto_cart_proto_rawDescOnce sync.Once
|
||||
@@ -600,7 +600,7 @@ var file_module_ec_order_proto_cart_proto_goTypes = []any{
|
||||
(*CartSetRequest)(nil), // 4: order.CartSetRequest
|
||||
(*Updates)(nil), // 5: order.Updates
|
||||
(*CartDelRequest)(nil), // 6: order.CartDelRequest
|
||||
(*OrderStatusReply)(nil), // 7: blocks.OrderStatusReply
|
||||
(*OrderStatusReply)(nil), // 7: ec_order_blocks.OrderStatusReply
|
||||
}
|
||||
var file_module_ec_order_proto_cart_proto_depIdxs = []int32{
|
||||
2, // 0: order.CartGetReply.data:type_name -> order.CartItem
|
||||
@@ -610,9 +610,9 @@ var file_module_ec_order_proto_cart_proto_depIdxs = []int32{
|
||||
4, // 4: order.Cart.Modify:input_type -> order.CartSetRequest
|
||||
6, // 5: order.Cart.Delete:input_type -> order.CartDelRequest
|
||||
1, // 6: order.Cart.Fetch:output_type -> order.CartGetReply
|
||||
7, // 7: order.Cart.Create:output_type -> blocks.OrderStatusReply
|
||||
7, // 8: order.Cart.Modify:output_type -> blocks.OrderStatusReply
|
||||
7, // 9: order.Cart.Delete:output_type -> blocks.OrderStatusReply
|
||||
7, // 7: order.Cart.Create:output_type -> ec_order_blocks.OrderStatusReply
|
||||
7, // 8: order.Cart.Modify:output_type -> ec_order_blocks.OrderStatusReply
|
||||
7, // 9: order.Cart.Delete:output_type -> ec_order_blocks.OrderStatusReply
|
||||
6, // [6:10] is the sub-list for method output_type
|
||||
2, // [2:6] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_ec_order_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"!module/ec/order/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"!module/ec/order/proto/const.proto\x12\x0fec_order_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc4\x01\n" +
|
||||
"\fFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
|
||||
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12A\n" +
|
||||
"\x06params\x18\x03 \x03(\v2).ec_order_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
@@ -2999,11 +2999,11 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\x10CmsSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
|
||||
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
|
||||
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xff\x02\n" +
|
||||
"\x10MallFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
|
||||
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12E\n" +
|
||||
"\x06params\x18\x03 \x03(\v2-.ec_order_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
|
||||
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
|
||||
"\vcategory_id\x18\x06 \x03(\x03R\n" +
|
||||
@@ -3013,11 +3013,11 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb8\x02\n" +
|
||||
"\x12MarketFetchRequest\x12\x18\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
|
||||
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.ec_order_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
|
||||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
|
||||
@@ -3072,7 +3072,7 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
|
||||
"\tCloudBase\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe9\x02\n" +
|
||||
"\x0fCmsCategoryItem\x12$\n" +
|
||||
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
|
||||
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3088,9 +3088,9 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x126\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2 .ec_order_blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
|
||||
"\vCmsTagsItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
@@ -3129,7 +3129,7 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\b \x01(\tR\n" +
|
||||
"created_at\x12 \n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
|
||||
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd5\t\n" +
|
||||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||||
@@ -3165,8 +3165,8 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||||
"pay_remark\x12\x18\n" +
|
||||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
|
||||
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\aupdated\x18 \x01(\tR\aupdated\x127\n" +
|
||||
"\adetails\x18! \x03(\v2\x1d.ec_order_blocks.OrderDetailsR\adetails\x12\x12\n" +
|
||||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||||
@@ -3196,10 +3196,10 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
|
||||
"\x11FeedPostListReply\x12(\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
|
||||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"X\n" +
|
||||
"\x11FeedPostListReply\x121\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1d.ec_order_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe3\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3210,10 +3210,10 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x129\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1f.ec_order_blocks.FeedAttachItemR\aattachs\x120\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1c.ec_order_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3221,10 +3221,10 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
|
||||
"\vFeedTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
|
||||
"\x12GroupPostListReply\x12)\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"Z\n" +
|
||||
"\x12GroupPostListReply\x122\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1e.ec_order_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf6\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3236,10 +3236,10 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12:\n" +
|
||||
"\aattachs\x18\t \x03(\v2 .ec_order_blocks.GroupAttachItemR\aattachs\x121\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1d.ec_order_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3263,10 +3263,10 @@ const file_module_ec_order_proto_const_proto_rawDesc = "" +
|
||||
" \x01(\x05R\x04area\x12\x12\n" +
|
||||
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
|
||||
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
|
||||
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"a\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x121\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1d.ec_order_blocks.RelationItemR\x04dataB#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_order_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_ec_order_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_order_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_ec_order_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
|
||||
nil, // 37: blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: ec_order_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: ec_order_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: ec_order_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: ec_order_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: ec_order_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: ec_order_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: ec_order_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: ec_order_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: ec_order_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: ec_order_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: ec_order_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: ec_order_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: ec_order_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: ec_order_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: ec_order_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: ec_order_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: ec_order_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: ec_order_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: ec_order_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: ec_order_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: ec_order_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: ec_order_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: ec_order_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: ec_order_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: ec_order_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: ec_order_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: ec_order_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: ec_order_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: ec_order_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: ec_order_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: ec_order_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: ec_order_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: ec_order_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: ec_order_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: ec_order_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: ec_order_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: ec_order_blocks.FetchRelationItemReply
|
||||
nil, // 37: ec_order_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: ec_order_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: ec_order_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_order_proto_const_proto_depIdxs = []int32{
|
||||
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
37, // 0: ec_order_blocks.FetchRequest.params:type_name -> ec_order_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: ec_order_blocks.MallFetchRequest.params:type_name -> ec_order_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: ec_order_blocks.MarketFetchRequest.params:type_name -> ec_order_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: ec_order_blocks.CmsCategoryItem.child:type_name -> ec_order_blocks.CmsCategoryItem
|
||||
26, // 4: ec_order_blocks.OrderSummaryItem.details:type_name -> ec_order_blocks.OrderDetails
|
||||
28, // 5: ec_order_blocks.FeedPostListReply.list:type_name -> ec_order_blocks.FeedPostItem
|
||||
29, // 6: ec_order_blocks.FeedPostItem.attachs:type_name -> ec_order_blocks.FeedAttachItem
|
||||
30, // 7: ec_order_blocks.FeedPostItem.tags:type_name -> ec_order_blocks.FeedTagItem
|
||||
32, // 8: ec_order_blocks.GroupPostListReply.list:type_name -> ec_order_blocks.GroupPostItem
|
||||
33, // 9: ec_order_blocks.GroupPostItem.attachs:type_name -> ec_order_blocks.GroupAttachItem
|
||||
34, // 10: ec_order_blocks.GroupPostItem.tags:type_name -> ec_order_blocks.GroupTagItem
|
||||
35, // 11: ec_order_blocks.FetchRelationItemReply.data:type_name -> ec_order_blocks.RelationItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
|
||||
@@ -368,9 +368,9 @@ const file_module_ec_order_proto_mgt_proto_rawDesc = "" +
|
||||
"\x04spec\x18\x05 \x03(\v2\x0f.order.SpecListR\x04spec\"N\n" +
|
||||
"\bSpecList\x12\x16\n" +
|
||||
"\x06number\x18\x01 \x01(\x05R\x06number\x12*\n" +
|
||||
"\x10product_identity\x18\x02 \x01(\tR\x10product_identity\"C\n" +
|
||||
"\rOrderGetReply\x122\n" +
|
||||
"\asummary\x18\x01 \x01(\v2\x18.blocks.OrderSummaryItemR\asummary\"\xa2\x02\n" +
|
||||
"\x10product_identity\x18\x02 \x01(\tR\x10product_identity\"L\n" +
|
||||
"\rOrderGetReply\x12;\n" +
|
||||
"\asummary\x18\x01 \x01(\v2!.ec_order_blocks.OrderSummaryItemR\asummary\"\xa2\x02\n" +
|
||||
"\x17OrderListByStoreRequest\x12\x1a\n" +
|
||||
"\bpay_type\x18\x01 \x01(\x05R\bpay_type\x12\"\n" +
|
||||
"\forder_status\x18\x02 \x03(\x05R\forder_status\x12\x18\n" +
|
||||
@@ -382,18 +382,18 @@ const file_module_ec_order_proto_mgt_proto_rawDesc = "" +
|
||||
"\x06agency\x18\x06 \x01(\tR\x06agency\x12%\n" +
|
||||
"\x0estore_identity\x18\a \x01(\tR\rstoreIdentity\x12\x16\n" +
|
||||
"\x06status\x18\b \x01(\x05R\x06status\x12\x18\n" +
|
||||
"\akeyword\x18\t \x01(\tR\akeyword\"[\n" +
|
||||
"\akeyword\x18\t \x01(\tR\akeyword\"d\n" +
|
||||
"\x15OrderListByStoreReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x05R\x05count\x12,\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x18.blocks.OrderSummaryItemR\x04data2\xfa\x03\n" +
|
||||
"\x03Mgt\x12D\n" +
|
||||
"\vOrderCreate\x12\x19.order.CreateOrderRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12C\n" +
|
||||
"\vOrderModify\x12\x18.blocks.OrderSummaryItem\x1a\x18.blocks.OrderStatusReply\"\x00\x12=\n" +
|
||||
"\bOrderGet\x12\x19.blocks.OrderIdentRequest\x1a\x14.order.OrderGetReply\"\x00\x12R\n" +
|
||||
"\x10OrderListByStore\x12\x1e.order.OrderListByStoreRequest\x1a\x1c.order.OrderListByStoreReply\"\x00\x12D\n" +
|
||||
"\vOrderCancel\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12H\n" +
|
||||
"\x0fOrderReturnable\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12E\n" +
|
||||
"\fOrderApprove\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
"\x05count\x18\x01 \x01(\x05R\x05count\x125\n" +
|
||||
"\x04data\x18\x02 \x03(\v2!.ec_order_blocks.OrderSummaryItemR\x04data2\xd4\x04\n" +
|
||||
"\x03Mgt\x12M\n" +
|
||||
"\vOrderCreate\x12\x19.order.CreateOrderRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12U\n" +
|
||||
"\vOrderModify\x12!.ec_order_blocks.OrderSummaryItem\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12F\n" +
|
||||
"\bOrderGet\x12\".ec_order_blocks.OrderIdentRequest\x1a\x14.order.OrderGetReply\"\x00\x12R\n" +
|
||||
"\x10OrderListByStore\x12\x1e.order.OrderListByStoreRequest\x1a\x1c.order.OrderListByStoreReply\"\x00\x12V\n" +
|
||||
"\vOrderCancel\x12\".ec_order_blocks.OrderIdentRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12Z\n" +
|
||||
"\x0fOrderReturnable\x12\".ec_order_blocks.OrderIdentRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12W\n" +
|
||||
"\fOrderApprove\x12\".ec_order_blocks.OrderIdentRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_order_proto_mgt_proto_rawDescOnce sync.Once
|
||||
@@ -414,28 +414,28 @@ var file_module_ec_order_proto_mgt_proto_goTypes = []any{
|
||||
(*OrderGetReply)(nil), // 2: order.OrderGetReply
|
||||
(*OrderListByStoreRequest)(nil), // 3: order.OrderListByStoreRequest
|
||||
(*OrderListByStoreReply)(nil), // 4: order.OrderListByStoreReply
|
||||
(*OrderSummaryItem)(nil), // 5: blocks.OrderSummaryItem
|
||||
(*OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 7: blocks.OrderStatusReply
|
||||
(*OrderSummaryItem)(nil), // 5: ec_order_blocks.OrderSummaryItem
|
||||
(*OrderIdentRequest)(nil), // 6: ec_order_blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 7: ec_order_blocks.OrderStatusReply
|
||||
}
|
||||
var file_module_ec_order_proto_mgt_proto_depIdxs = []int32{
|
||||
1, // 0: order.CreateOrderRequest.spec:type_name -> order.SpecList
|
||||
5, // 1: order.OrderGetReply.summary:type_name -> blocks.OrderSummaryItem
|
||||
5, // 2: order.OrderListByStoreReply.data:type_name -> blocks.OrderSummaryItem
|
||||
5, // 1: order.OrderGetReply.summary:type_name -> ec_order_blocks.OrderSummaryItem
|
||||
5, // 2: order.OrderListByStoreReply.data:type_name -> ec_order_blocks.OrderSummaryItem
|
||||
0, // 3: order.Mgt.OrderCreate:input_type -> order.CreateOrderRequest
|
||||
5, // 4: order.Mgt.OrderModify:input_type -> blocks.OrderSummaryItem
|
||||
6, // 5: order.Mgt.OrderGet:input_type -> blocks.OrderIdentRequest
|
||||
5, // 4: order.Mgt.OrderModify:input_type -> ec_order_blocks.OrderSummaryItem
|
||||
6, // 5: order.Mgt.OrderGet:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
3, // 6: order.Mgt.OrderListByStore:input_type -> order.OrderListByStoreRequest
|
||||
6, // 7: order.Mgt.OrderCancel:input_type -> blocks.OrderIdentRequest
|
||||
6, // 8: order.Mgt.OrderReturnable:input_type -> blocks.OrderIdentRequest
|
||||
6, // 9: order.Mgt.OrderApprove:input_type -> blocks.OrderIdentRequest
|
||||
7, // 10: order.Mgt.OrderCreate:output_type -> blocks.OrderStatusReply
|
||||
7, // 11: order.Mgt.OrderModify:output_type -> blocks.OrderStatusReply
|
||||
6, // 7: order.Mgt.OrderCancel:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
6, // 8: order.Mgt.OrderReturnable:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
6, // 9: order.Mgt.OrderApprove:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
7, // 10: order.Mgt.OrderCreate:output_type -> ec_order_blocks.OrderStatusReply
|
||||
7, // 11: order.Mgt.OrderModify:output_type -> ec_order_blocks.OrderStatusReply
|
||||
2, // 12: order.Mgt.OrderGet:output_type -> order.OrderGetReply
|
||||
4, // 13: order.Mgt.OrderListByStore:output_type -> order.OrderListByStoreReply
|
||||
7, // 14: order.Mgt.OrderCancel:output_type -> blocks.OrderStatusReply
|
||||
7, // 15: order.Mgt.OrderReturnable:output_type -> blocks.OrderStatusReply
|
||||
7, // 16: order.Mgt.OrderApprove:output_type -> blocks.OrderStatusReply
|
||||
7, // 14: order.Mgt.OrderCancel:output_type -> ec_order_blocks.OrderStatusReply
|
||||
7, // 15: order.Mgt.OrderReturnable:output_type -> ec_order_blocks.OrderStatusReply
|
||||
7, // 16: order.Mgt.OrderApprove:output_type -> ec_order_blocks.OrderStatusReply
|
||||
10, // [10:17] is the sub-list for method output_type
|
||||
3, // [3:10] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
|
||||
@@ -894,17 +894,17 @@ const file_module_ec_order_proto_summary_proto_rawDesc = "" +
|
||||
"\acontact\x18\x06 \x01(\tR\acontact\x12\x14\n" +
|
||||
"\x05phone\x18\a \x01(\tR\x05phone\x12\x14\n" +
|
||||
"\x05email\x18\b \x01(\tR\x05email\x12\x19\n" +
|
||||
"\bzip_code\x18\t \x01(\tR\azipCode\"E\n" +
|
||||
"\x0fSummaryGetReply\x122\n" +
|
||||
"\asummary\x18\x01 \x01(\v2\x18.blocks.OrderSummaryItemR\asummary\"\x8c\x01\n" +
|
||||
"\bzip_code\x18\t \x01(\tR\azipCode\"N\n" +
|
||||
"\x0fSummaryGetReply\x12;\n" +
|
||||
"\asummary\x18\x01 \x01(\v2!.ec_order_blocks.OrderSummaryItemR\asummary\"\x8c\x01\n" +
|
||||
"\x12SummaryListRequest\x12\x1a\n" +
|
||||
"\bpay_type\x18\x01 \x01(\x05R\bpay_type\x12\"\n" +
|
||||
"\forder_status\x18\x02 \x01(\x05R\forder_status\x12\x18\n" +
|
||||
"\apage_no\x18\x03 \x01(\x03R\apage_no\x12\x1c\n" +
|
||||
"\tpage_size\x18\x04 \x01(\x03R\tpage_size\"V\n" +
|
||||
"\tpage_size\x18\x04 \x01(\x03R\tpage_size\"_\n" +
|
||||
"\x10SummaryListReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x05R\x05count\x12,\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x18.blocks.OrderSummaryItemR\x04data\"\xc0\x01\n" +
|
||||
"\x05count\x18\x01 \x01(\x05R\x05count\x125\n" +
|
||||
"\x04data\x18\x02 \x03(\v2!.ec_order_blocks.OrderSummaryItemR\x04data\"\xc0\x01\n" +
|
||||
"\x0eConfirmRequest\x12\x1a\n" +
|
||||
"\border_no\x18\x01 \x01(\tR\border_no\x12*\n" +
|
||||
"\x10address_identity\x18\x02 \x01(\tR\x10address_identity\x12(\n" +
|
||||
@@ -915,18 +915,18 @@ const file_module_ec_order_proto_summary_proto_rawDesc = "" +
|
||||
"\vtotal_price\x18\x01 \x01(\x03R\vtotal_price\"?\n" +
|
||||
"\rCancelRequest\x12\x1a\n" +
|
||||
"\border_no\x18\x01 \x01(\tR\border_no\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type2\xa4\x05\n" +
|
||||
"\aSummary\x12V\n" +
|
||||
"\x14QuickCreateByProduct\x12\".order.QuickCreateByProductRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12:\n" +
|
||||
"\x06Submit\x12\x14.order.SubmitRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x122\n" +
|
||||
"\x05Check\x12\r.blocks.Empty\x1a\x18.blocks.OrderStatusReply\"\x00\x12:\n" +
|
||||
"\x03Get\x12\x19.blocks.OrderIdentRequest\x1a\x16.order.SummaryGetReply\"\x00\x12<\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type2\xfe\x05\n" +
|
||||
"\aSummary\x12_\n" +
|
||||
"\x14QuickCreateByProduct\x12\".order.QuickCreateByProductRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12C\n" +
|
||||
"\x06Submit\x12\x14.order.SubmitRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12D\n" +
|
||||
"\x05Check\x12\x16.ec_order_blocks.Empty\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12C\n" +
|
||||
"\x03Get\x12\".ec_order_blocks.OrderIdentRequest\x1a\x16.order.SummaryGetReply\"\x00\x12<\n" +
|
||||
"\x04List\x12\x19.order.SummaryListRequest\x1a\x17.order.SummaryListReply\"\x00\x127\n" +
|
||||
"\aConfirm\x12\x15.order.ConfirmRequest\x1a\x13.order.ConfirmReply\"\x00\x12:\n" +
|
||||
"\x06Cancel\x12\x14.order.CancelRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12D\n" +
|
||||
"\vSimulatePay\x12\x19.order.SimulatePayRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12P\n" +
|
||||
"\x11SimulateShipments\x12\x1f.order.SimulateShipmentsRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12J\n" +
|
||||
"\x11SimulateReceiving\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
"\aConfirm\x12\x15.order.ConfirmRequest\x1a\x13.order.ConfirmReply\"\x00\x12C\n" +
|
||||
"\x06Cancel\x12\x14.order.CancelRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12M\n" +
|
||||
"\vSimulatePay\x12\x19.order.SimulatePayRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12Y\n" +
|
||||
"\x11SimulateShipments\x12\x1f.order.SimulateShipmentsRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00\x12\\\n" +
|
||||
"\x11SimulateReceiving\x12\".ec_order_blocks.OrderIdentRequest\x1a!.ec_order_blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_order_proto_summary_proto_rawDescOnce sync.Once
|
||||
@@ -954,35 +954,35 @@ var file_module_ec_order_proto_summary_proto_goTypes = []any{
|
||||
(*ConfirmRequest)(nil), // 9: order.ConfirmRequest
|
||||
(*ConfirmReply)(nil), // 10: order.ConfirmReply
|
||||
(*CancelRequest)(nil), // 11: order.CancelRequest
|
||||
(*OrderSummaryItem)(nil), // 12: blocks.OrderSummaryItem
|
||||
(*Empty)(nil), // 13: blocks.Empty
|
||||
(*OrderIdentRequest)(nil), // 14: blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 15: blocks.OrderStatusReply
|
||||
(*OrderSummaryItem)(nil), // 12: ec_order_blocks.OrderSummaryItem
|
||||
(*Empty)(nil), // 13: ec_order_blocks.Empty
|
||||
(*OrderIdentRequest)(nil), // 14: ec_order_blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 15: ec_order_blocks.OrderStatusReply
|
||||
}
|
||||
var file_module_ec_order_proto_summary_proto_depIdxs = []int32{
|
||||
5, // 0: order.SubmitRequest.address:type_name -> order.OrderAddress
|
||||
12, // 1: order.SummaryGetReply.summary:type_name -> blocks.OrderSummaryItem
|
||||
12, // 2: order.SummaryListReply.data:type_name -> blocks.OrderSummaryItem
|
||||
12, // 1: order.SummaryGetReply.summary:type_name -> ec_order_blocks.OrderSummaryItem
|
||||
12, // 2: order.SummaryListReply.data:type_name -> ec_order_blocks.OrderSummaryItem
|
||||
3, // 3: order.Summary.QuickCreateByProduct:input_type -> order.QuickCreateByProductRequest
|
||||
4, // 4: order.Summary.Submit:input_type -> order.SubmitRequest
|
||||
13, // 5: order.Summary.Check:input_type -> blocks.Empty
|
||||
14, // 6: order.Summary.Get:input_type -> blocks.OrderIdentRequest
|
||||
13, // 5: order.Summary.Check:input_type -> ec_order_blocks.Empty
|
||||
14, // 6: order.Summary.Get:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
7, // 7: order.Summary.List:input_type -> order.SummaryListRequest
|
||||
9, // 8: order.Summary.Confirm:input_type -> order.ConfirmRequest
|
||||
11, // 9: order.Summary.Cancel:input_type -> order.CancelRequest
|
||||
2, // 10: order.Summary.SimulatePay:input_type -> order.SimulatePayRequest
|
||||
0, // 11: order.Summary.SimulateShipments:input_type -> order.SimulateShipmentsRequest
|
||||
14, // 12: order.Summary.SimulateReceiving:input_type -> blocks.OrderIdentRequest
|
||||
15, // 13: order.Summary.QuickCreateByProduct:output_type -> blocks.OrderStatusReply
|
||||
15, // 14: order.Summary.Submit:output_type -> blocks.OrderStatusReply
|
||||
15, // 15: order.Summary.Check:output_type -> blocks.OrderStatusReply
|
||||
14, // 12: order.Summary.SimulateReceiving:input_type -> ec_order_blocks.OrderIdentRequest
|
||||
15, // 13: order.Summary.QuickCreateByProduct:output_type -> ec_order_blocks.OrderStatusReply
|
||||
15, // 14: order.Summary.Submit:output_type -> ec_order_blocks.OrderStatusReply
|
||||
15, // 15: order.Summary.Check:output_type -> ec_order_blocks.OrderStatusReply
|
||||
6, // 16: order.Summary.Get:output_type -> order.SummaryGetReply
|
||||
8, // 17: order.Summary.List:output_type -> order.SummaryListReply
|
||||
10, // 18: order.Summary.Confirm:output_type -> order.ConfirmReply
|
||||
15, // 19: order.Summary.Cancel:output_type -> blocks.OrderStatusReply
|
||||
15, // 20: order.Summary.SimulatePay:output_type -> blocks.OrderStatusReply
|
||||
15, // 21: order.Summary.SimulateShipments:output_type -> blocks.OrderStatusReply
|
||||
15, // 22: order.Summary.SimulateReceiving:output_type -> blocks.OrderStatusReply
|
||||
15, // 19: order.Summary.Cancel:output_type -> ec_order_blocks.OrderStatusReply
|
||||
15, // 20: order.Summary.SimulatePay:output_type -> ec_order_blocks.OrderStatusReply
|
||||
15, // 21: order.Summary.SimulateShipments:output_type -> ec_order_blocks.OrderStatusReply
|
||||
15, // 22: order.Summary.SimulateReceiving:output_type -> ec_order_blocks.OrderStatusReply
|
||||
13, // [13:23] is the sub-list for method output_type
|
||||
3, // [3:13] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
|
||||
@@ -9,13 +9,13 @@ service Cart {
|
||||
rpc Fetch(CartGetRequest) returns (CartGetReply) {};
|
||||
|
||||
// 将商品增加至购物车
|
||||
rpc Create(CartAddRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc Create(CartAddRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 修改购物车中的商品数量
|
||||
rpc Modify(CartSetRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc Modify(CartSetRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 删除购物车中的商品
|
||||
rpc Delete(CartDelRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc Delete(CartDelRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
}
|
||||
|
||||
message CartGetRequest {
|
||||
@@ -68,4 +68,4 @@ message Updates {
|
||||
|
||||
message CartDelRequest {
|
||||
repeated int64 id = 3; // 购物车ID
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_order_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/order/pb;order";
|
||||
|
||||
|
||||
@@ -8,25 +8,25 @@ import "module/ec/order/proto/const.proto";
|
||||
service Mgt {
|
||||
|
||||
// 创建订单
|
||||
rpc OrderCreate(CreateOrderRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc OrderCreate(CreateOrderRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 修改订单
|
||||
rpc OrderModify(blocks.OrderSummaryItem) returns (blocks.OrderStatusReply) {};
|
||||
rpc OrderModify(ec_order_blocks.OrderSummaryItem) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 获取一个订单的详情数据
|
||||
rpc OrderGet(blocks.OrderIdentRequest) returns (OrderGetReply) {};
|
||||
rpc OrderGet(ec_order_blocks.OrderIdentRequest) returns (OrderGetReply) {};
|
||||
|
||||
// 根据不同的类型获取店铺的订单列表
|
||||
rpc OrderListByStore(OrderListByStoreRequest) returns (OrderListByStoreReply) {};
|
||||
|
||||
// 取消订单
|
||||
rpc OrderCancel(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc OrderCancel(ec_order_blocks.OrderIdentRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 退货
|
||||
rpc OrderReturnable(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc OrderReturnable(ec_order_blocks.OrderIdentRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 订单审批
|
||||
rpc OrderApprove(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc OrderApprove(ec_order_blocks.OrderIdentRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ message SpecList {
|
||||
|
||||
|
||||
message OrderGetReply {
|
||||
blocks.OrderSummaryItem summary = 1; // 订单概要详情
|
||||
ec_order_blocks.OrderSummaryItem summary = 1; // 订单概要详情
|
||||
}
|
||||
|
||||
|
||||
@@ -64,5 +64,5 @@ message OrderListByStoreRequest {
|
||||
|
||||
message OrderListByStoreReply {
|
||||
int32 count = 1;
|
||||
repeated blocks.OrderSummaryItem data = 2; // 订单列表
|
||||
repeated ec_order_blocks.OrderSummaryItem data = 2; // 订单列表
|
||||
}
|
||||
|
||||
@@ -8,16 +8,16 @@ import "module/ec/order/proto/const.proto";
|
||||
service Summary {
|
||||
|
||||
// 快速创建一个店铺订单
|
||||
rpc QuickCreateByProduct(QuickCreateByProductRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc QuickCreateByProduct(QuickCreateByProductRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 将购物车的数据提交生成订单
|
||||
rpc Submit(SubmitRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc Submit(SubmitRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 检测是否有未确认及付款的订单
|
||||
rpc Check(blocks.Empty) returns (blocks.OrderStatusReply) {};
|
||||
rpc Check(ec_order_blocks.Empty) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 获取一个订单的详情数据
|
||||
rpc Get(blocks.OrderIdentRequest) returns (SummaryGetReply) {};
|
||||
rpc Get(ec_order_blocks.OrderIdentRequest) returns (SummaryGetReply) {};
|
||||
|
||||
// 根据不同的类型获取我的订单列表
|
||||
rpc List(SummaryListRequest) returns (SummaryListReply) {};
|
||||
@@ -27,16 +27,16 @@ service Summary {
|
||||
|
||||
|
||||
// 取消订单
|
||||
rpc Cancel(CancelRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc Cancel(CancelRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 模拟支付
|
||||
rpc SimulatePay(SimulatePayRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc SimulatePay(SimulatePayRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 模拟发货
|
||||
rpc SimulateShipments(SimulateShipmentsRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc SimulateShipments(SimulateShipmentsRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
|
||||
// 模拟收货
|
||||
rpc SimulateReceiving(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
rpc SimulateReceiving(ec_order_blocks.OrderIdentRequest) returns (ec_order_blocks.OrderStatusReply) {};
|
||||
}
|
||||
message SimulateShipmentsRequest{
|
||||
string identity = 1; // 订单唯一标识
|
||||
@@ -88,7 +88,7 @@ message OrderAddress {
|
||||
}
|
||||
|
||||
message SummaryGetReply {
|
||||
blocks.OrderSummaryItem summary = 1; // 订单概要详情
|
||||
ec_order_blocks.OrderSummaryItem summary = 1; // 订单概要详情
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ message SummaryListRequest {
|
||||
|
||||
message SummaryListReply {
|
||||
int32 count = 1;
|
||||
repeated blocks.OrderSummaryItem data = 2; // 订单列表
|
||||
repeated ec_order_blocks.OrderSummaryItem data = 2; // 订单列表
|
||||
}
|
||||
|
||||
message ConfirmRequest {
|
||||
|
||||
34
module/ec/order/service/expose.go
Normal file
34
module/ec/order/service/expose.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/ec/order/internal/server"
|
||||
pb "bsm/full/module/ec/order/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ExposeOptions struct {
|
||||
GRPC *grpc.Server
|
||||
Gateway *gwRuntime.ServeMux
|
||||
}
|
||||
|
||||
func Expose(options ExposeOptions) error {
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
if err := pb.RegisterCartHandlerServer(ctx, options.Gateway, server.NewCartServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterCouponHandlerServer(ctx, options.Gateway, server.NewCouponServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterMgtHandlerServer(ctx, options.Gateway, server.NewMgtServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterSummaryHandlerServer(ctx, options.Gateway, server.NewSummaryServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user