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/address/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,17 +17,24 @@ 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),
|
||||
}
|
||||
|
||||
// register service to grpc.Server
|
||||
pb.RegisterLibraryServer(srv.Grpc, NewLibraryServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -2795,7 +2795,7 @@ var File_module_ec_address_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"#module/ec/address/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"#module/ec/address/proto/const.proto\x12\x11ec_address_blocks\"\a\n" +
|
||||
"\x05Empty\"*\n" +
|
||||
"\x0eVersionRequest\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\x03R\aversion\")\n" +
|
||||
@@ -2804,11 +2804,11 @@ const file_module_ec_address_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\"\x81\x03\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\x12G\n" +
|
||||
"\x06params\x18\x03 \x03(\v2/.ec_address_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" +
|
||||
@@ -2818,11 +2818,11 @@ const file_module_ec_address_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\"\xba\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\x12I\n" +
|
||||
"\x06params\x18\x03 \x03(\v21.ec_address_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" +
|
||||
@@ -2877,7 +2877,7 @@ const file_module_ec_address_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\"\xeb\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" +
|
||||
@@ -2893,9 +2893,9 @@ const file_module_ec_address_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x128\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2\".ec_address_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" +
|
||||
@@ -2934,7 +2934,7 @@ const file_module_ec_address_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\"\xd7\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" +
|
||||
@@ -2970,8 +2970,8 @@ const file_module_ec_address_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\x129\n" +
|
||||
"\adetails\x18! \x03(\v2\x1f.ec_address_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" +
|
||||
@@ -3001,10 +3001,10 @@ const file_module_ec_address_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\"Z\n" +
|
||||
"\x11FeedPostListReply\x123\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1f.ec_address_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe7\x02\n" +
|
||||
"\fFeedPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
|
||||
@@ -3015,10 +3015,10 @@ const file_module_ec_address_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\x12;\n" +
|
||||
"\aattachs\x18\t \x03(\v2!.ec_address_blocks.FeedAttachItemR\aattachs\x122\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1e.ec_address_blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
"\x0eFeedAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3026,10 +3026,10 @@ const file_module_ec_address_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\"\\\n" +
|
||||
"\x12GroupPostListReply\x124\n" +
|
||||
"\x04list\x18\x01 \x03(\v2 .ec_address_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfa\x02\n" +
|
||||
"\rGroupPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
@@ -3041,10 +3041,10 @@ const file_module_ec_address_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_address_blocks.GroupAttachItemR\aattachs\x123\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1f.ec_address_blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
"\x0fGroupAttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
@@ -3068,10 +3068,10 @@ const file_module_ec_address_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\"c\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/address/pb;addressb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x123\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1f.ec_address_blocks.RelationItemR\x04dataB'Z%bsm/full/module/ec/address/pb;addressb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_address_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3087,55 +3087,55 @@ func file_module_ec_address_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_address_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
|
||||
var file_module_ec_address_proto_const_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: blocks.Empty
|
||||
(*VersionRequest)(nil), // 1: blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: blocks.FetchRelationItemReply
|
||||
nil, // 34: blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: blocks.MarketFetchRequest.ParamsEntry
|
||||
(*Empty)(nil), // 0: ec_address_blocks.Empty
|
||||
(*VersionRequest)(nil), // 1: ec_address_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 2: ec_address_blocks.SearchRequest
|
||||
(*CmsSearchRequest)(nil), // 3: ec_address_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 4: ec_address_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 5: ec_address_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 6: ec_address_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 7: ec_address_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 8: ec_address_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 9: ec_address_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 10: ec_address_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 11: ec_address_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 12: ec_address_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 13: ec_address_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 14: ec_address_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 15: ec_address_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 16: ec_address_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 17: ec_address_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 18: ec_address_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 19: ec_address_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 20: ec_address_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 21: ec_address_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 22: ec_address_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 23: ec_address_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 24: ec_address_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 25: ec_address_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 26: ec_address_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 27: ec_address_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 28: ec_address_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 29: ec_address_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 30: ec_address_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 31: ec_address_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 32: ec_address_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 33: ec_address_blocks.FetchRelationItemReply
|
||||
nil, // 34: ec_address_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 35: ec_address_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_address_proto_const_proto_depIdxs = []int32{
|
||||
34, // 0: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
|
||||
23, // 3: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
|
||||
25, // 4: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
|
||||
26, // 5: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
|
||||
27, // 6: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
|
||||
29, // 7: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
|
||||
30, // 8: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
|
||||
31, // 9: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
|
||||
32, // 10: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
|
||||
34, // 0: ec_address_blocks.MallFetchRequest.params:type_name -> ec_address_blocks.MallFetchRequest.ParamsEntry
|
||||
35, // 1: ec_address_blocks.MarketFetchRequest.params:type_name -> ec_address_blocks.MarketFetchRequest.ParamsEntry
|
||||
17, // 2: ec_address_blocks.CmsCategoryItem.child:type_name -> ec_address_blocks.CmsCategoryItem
|
||||
23, // 3: ec_address_blocks.OrderSummaryItem.details:type_name -> ec_address_blocks.OrderDetails
|
||||
25, // 4: ec_address_blocks.FeedPostListReply.list:type_name -> ec_address_blocks.FeedPostItem
|
||||
26, // 5: ec_address_blocks.FeedPostItem.attachs:type_name -> ec_address_blocks.FeedAttachItem
|
||||
27, // 6: ec_address_blocks.FeedPostItem.tags:type_name -> ec_address_blocks.FeedTagItem
|
||||
29, // 7: ec_address_blocks.GroupPostListReply.list:type_name -> ec_address_blocks.GroupPostItem
|
||||
30, // 8: ec_address_blocks.GroupPostItem.attachs:type_name -> ec_address_blocks.GroupAttachItem
|
||||
31, // 9: ec_address_blocks.GroupPostItem.tags:type_name -> ec_address_blocks.GroupTagItem
|
||||
32, // 10: ec_address_blocks.FetchRelationItemReply.data:type_name -> ec_address_blocks.RelationItem
|
||||
11, // [11:11] is the sub-list for method output_type
|
||||
11, // [11:11] is the sub-list for method input_type
|
||||
11, // [11:11] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_address_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/address/pb;address";
|
||||
|
||||
|
||||
25
module/ec/address/service/expose.go
Normal file
25
module/ec/address/service/expose.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/ec/address/internal/server"
|
||||
pb "bsm/full/module/ec/address/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.RegisterLibraryHandlerServer(ctx, options.Gateway, server.NewLibraryServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -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/mall/internal/config"
|
||||
@@ -22,7 +22,7 @@ func Run() {
|
||||
impl.NewImpl()
|
||||
|
||||
// 初始化gRPC服务器
|
||||
s := server.New(config.Spec.Addr)
|
||||
s := server.New(nil)
|
||||
// 创建微服务实例
|
||||
srv := service.New(
|
||||
s.Grpc,
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
@@ -33,7 +38,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterStaffServer(srv.Grpc, NewStaffServer())
|
||||
pb.RegisterStoreServer(srv.Grpc, NewStoreServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -247,13 +247,13 @@ const file_module_ec_mall_proto_ads_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\a \x01(\tR\n" +
|
||||
"created_at\x12\x16\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xa0\x02\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xc8\x02\n" +
|
||||
"\x03Ads\x121\n" +
|
||||
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x127\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x126\n" +
|
||||
"\x06Create\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x126\n" +
|
||||
"\x06Modify\x12\r.mall.AdsItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05ByPos\x12\x12.mall.ByPosRequest\x1a\x12.mall.AdsListReply\"\x00\x12?\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x12.mall.AdsListReply\"\x00\x12>\n" +
|
||||
"\x06Create\x12\r.mall.AdsItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12>\n" +
|
||||
"\x06Modify\x12\r.mall.AdsItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_ads_proto_rawDescOnce sync.Once
|
||||
@@ -272,22 +272,22 @@ var file_module_ec_mall_proto_ads_proto_goTypes = []any{
|
||||
(*ByPosRequest)(nil), // 0: mall.ByPosRequest
|
||||
(*AdsListReply)(nil), // 1: mall.AdsListReply
|
||||
(*AdsItem)(nil), // 2: mall.AdsItem
|
||||
(*MallFetchRequest)(nil), // 3: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 5: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 3: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 4: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 5: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_ads_proto_depIdxs = []int32{
|
||||
2, // 0: mall.AdsListReply.data:type_name -> mall.AdsItem
|
||||
0, // 1: mall.Ads.ByPos:input_type -> mall.ByPosRequest
|
||||
3, // 2: mall.Ads.Fetch:input_type -> blocks.MallFetchRequest
|
||||
3, // 2: mall.Ads.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
2, // 3: mall.Ads.Create:input_type -> mall.AdsItem
|
||||
2, // 4: mall.Ads.Modify:input_type -> mall.AdsItem
|
||||
4, // 5: mall.Ads.Delete:input_type -> blocks.IdentRequest
|
||||
4, // 5: mall.Ads.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
1, // 6: mall.Ads.ByPos:output_type -> mall.AdsListReply
|
||||
1, // 7: mall.Ads.Fetch:output_type -> mall.AdsListReply
|
||||
5, // 8: mall.Ads.Create:output_type -> blocks.IdentityStatusReply
|
||||
5, // 9: mall.Ads.Modify:output_type -> blocks.IdentityStatusReply
|
||||
5, // 10: mall.Ads.Delete:output_type -> blocks.IdentityStatusReply
|
||||
5, // 8: mall.Ads.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // 9: mall.Ads.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // 10: mall.Ads.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -312,12 +312,12 @@ const file_module_ec_mall_proto_category_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"categories\x18\f \x03(\v2\x12.mall.CategoryItemR\n" +
|
||||
"categories\x12\x12\n" +
|
||||
"\x04keys\x18\r \x01(\tR\x04keys2\xff\x01\n" +
|
||||
"\x04keys\x18\r \x01(\tR\x04keys2\x9f\x02\n" +
|
||||
"\bCategory\x12:\n" +
|
||||
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x12;\n" +
|
||||
"\x06Create\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12;\n" +
|
||||
"\x06Modify\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x12C\n" +
|
||||
"\x06Create\x12\x12.mall.CategoryItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12C\n" +
|
||||
"\x06Modify\x12\x12.mall.CategoryItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_category_proto_rawDescOnce sync.Once
|
||||
@@ -336,20 +336,20 @@ var file_module_ec_mall_proto_category_proto_goTypes = []any{
|
||||
(*CategoryFetchRequest)(nil), // 0: mall.CategoryFetchRequest
|
||||
(*CategoryReply)(nil), // 1: mall.CategoryReply
|
||||
(*CategoryItem)(nil), // 2: mall.CategoryItem
|
||||
(*IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
(*IdentRequest)(nil), // 3: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_category_proto_depIdxs = []int32{
|
||||
2, // 0: mall.CategoryReply.data:type_name -> mall.CategoryItem
|
||||
2, // 1: mall.CategoryItem.categories:type_name -> mall.CategoryItem
|
||||
0, // 2: mall.Category.Fetch:input_type -> mall.CategoryFetchRequest
|
||||
2, // 3: mall.Category.Create:input_type -> mall.CategoryItem
|
||||
3, // 4: mall.Category.Delete:input_type -> blocks.IdentRequest
|
||||
3, // 4: mall.Category.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
2, // 5: mall.Category.Modify:input_type -> mall.CategoryItem
|
||||
1, // 6: mall.Category.Fetch:output_type -> mall.CategoryReply
|
||||
4, // 7: mall.Category.Create:output_type -> blocks.IdentityStatusReply
|
||||
4, // 8: mall.Category.Delete:output_type -> blocks.IdentityStatusReply
|
||||
4, // 9: mall.Category.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 7: mall.Category.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 8: mall.Category.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 9: mall.Category.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
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_mall_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_mall_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
" module/ec/mall/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
" module/ec/mall/proto/const.proto\x12\x0eec_mall_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc3\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\x12@\n" +
|
||||
"\x06params\x18\x03 \x03(\v2(.ec_mall_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_mall_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\"\xfe\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\x12D\n" +
|
||||
"\x06params\x18\x03 \x03(\v2,.ec_mall_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_mall_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\"\xb7\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\x12F\n" +
|
||||
"\x06params\x18\x03 \x03(\v2..ec_mall_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_mall_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\"\xe8\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_mall_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x125\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2\x1f.ec_mall_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_mall_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\"\xd4\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_mall_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\x126\n" +
|
||||
"\adetails\x18! \x03(\v2\x1c.ec_mall_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_mall_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\"W\n" +
|
||||
"\x11FeedPostListReply\x120\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1c.ec_mall_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe1\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_mall_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\x128\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1e.ec_mall_blocks.FeedAttachItemR\aattachs\x12/\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1b.ec_mall_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_mall_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\"Y\n" +
|
||||
"\x12GroupPostListReply\x121\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1d.ec_mall_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf4\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_mall_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\x129\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x1f.ec_mall_blocks.GroupAttachItemR\aattachs\x120\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1c.ec_mall_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_mall_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\"`\n" +
|
||||
"\x16FetchRelationItemReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x120\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1c.ec_mall_blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_ec_mall_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_mall_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_ec_mall_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_mall_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: ec_mall_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: ec_mall_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: ec_mall_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: ec_mall_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: ec_mall_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: ec_mall_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: ec_mall_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: ec_mall_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: ec_mall_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: ec_mall_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: ec_mall_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: ec_mall_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: ec_mall_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: ec_mall_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: ec_mall_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: ec_mall_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: ec_mall_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: ec_mall_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: ec_mall_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: ec_mall_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: ec_mall_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: ec_mall_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: ec_mall_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: ec_mall_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: ec_mall_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: ec_mall_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: ec_mall_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: ec_mall_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: ec_mall_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: ec_mall_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: ec_mall_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: ec_mall_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: ec_mall_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: ec_mall_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: ec_mall_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: ec_mall_blocks.FetchRelationItemReply
|
||||
nil, // 37: ec_mall_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: ec_mall_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: ec_mall_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_mall_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_mall_blocks.FetchRequest.params:type_name -> ec_mall_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: ec_mall_blocks.MallFetchRequest.params:type_name -> ec_mall_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: ec_mall_blocks.MarketFetchRequest.params:type_name -> ec_mall_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: ec_mall_blocks.CmsCategoryItem.child:type_name -> ec_mall_blocks.CmsCategoryItem
|
||||
26, // 4: ec_mall_blocks.OrderSummaryItem.details:type_name -> ec_mall_blocks.OrderDetails
|
||||
28, // 5: ec_mall_blocks.FeedPostListReply.list:type_name -> ec_mall_blocks.FeedPostItem
|
||||
29, // 6: ec_mall_blocks.FeedPostItem.attachs:type_name -> ec_mall_blocks.FeedAttachItem
|
||||
30, // 7: ec_mall_blocks.FeedPostItem.tags:type_name -> ec_mall_blocks.FeedTagItem
|
||||
32, // 8: ec_mall_blocks.GroupPostListReply.list:type_name -> ec_mall_blocks.GroupPostItem
|
||||
33, // 9: ec_mall_blocks.GroupPostItem.attachs:type_name -> ec_mall_blocks.GroupAttachItem
|
||||
34, // 10: ec_mall_blocks.GroupPostItem.tags:type_name -> ec_mall_blocks.GroupTagItem
|
||||
35, // 11: ec_mall_blocks.FetchRelationItemReply.data:type_name -> ec_mall_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
|
||||
|
||||
@@ -541,17 +541,17 @@ const file_module_ec_mall_proto_freight_proto_rawDesc = "" +
|
||||
"\x04data\x18\x02 \x03(\v2\x11.mall.FreightItemR\x04data\"Q\n" +
|
||||
"\x0fDenyRegionReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x03R\x05count\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\xcf\x04\n" +
|
||||
"\aFreight\x127\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.FreightReply\"\x00\x12:\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12:\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x123\n" +
|
||||
"\x06Detail\x12\x14.blocks.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12D\n" +
|
||||
"\x0fDenyRegionFetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\xa7\x05\n" +
|
||||
"\aFreight\x12?\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x12.mall.FreightReply\"\x00\x12B\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12B\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12;\n" +
|
||||
"\x06Detail\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12L\n" +
|
||||
"\x0fDenyRegionFetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12O\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12W\n" +
|
||||
"\x10DenyRegionDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12O\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_freight_proto_rawDescOnce sync.Once
|
||||
@@ -573,9 +573,9 @@ var file_module_ec_mall_proto_freight_proto_goTypes = []any{
|
||||
(*FreightAttrItem)(nil), // 3: mall.FreightAttrItem
|
||||
(*FreightReply)(nil), // 4: mall.FreightReply
|
||||
(*DenyRegionReply)(nil), // 5: mall.DenyRegionReply
|
||||
(*MallFetchRequest)(nil), // 6: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 6: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 7: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 8: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_freight_proto_depIdxs = []int32{
|
||||
2, // 0: mall.DenyRegionItem.region:type_name -> mall.RegionItem
|
||||
@@ -584,24 +584,24 @@ var file_module_ec_mall_proto_freight_proto_depIdxs = []int32{
|
||||
2, // 3: mall.FreightAttrItem.region:type_name -> mall.RegionItem
|
||||
1, // 4: mall.FreightReply.data:type_name -> mall.FreightItem
|
||||
0, // 5: mall.DenyRegionReply.data:type_name -> mall.DenyRegionItem
|
||||
6, // 6: mall.Freight.Fetch:input_type -> blocks.MallFetchRequest
|
||||
6, // 6: mall.Freight.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
1, // 7: mall.Freight.Modify:input_type -> mall.FreightItem
|
||||
7, // 8: mall.Freight.Delete:input_type -> blocks.IdentRequest
|
||||
7, // 8: mall.Freight.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
1, // 9: mall.Freight.Create:input_type -> mall.FreightItem
|
||||
7, // 10: mall.Freight.Detail:input_type -> blocks.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> blocks.MallFetchRequest
|
||||
7, // 10: mall.Freight.Detail:input_type -> ec_mall_blocks.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
0, // 12: mall.Freight.DenyRegionCreate:input_type -> mall.DenyRegionItem
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> blocks.IdentRequest
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
0, // 14: mall.Freight.DenyRegionModify:input_type -> mall.DenyRegionItem
|
||||
4, // 15: mall.Freight.Fetch:output_type -> mall.FreightReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> blocks.IdentityStatusReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
1, // 19: mall.Freight.Detail:output_type -> mall.FreightItem
|
||||
5, // 20: mall.Freight.DenyRegionFetch:output_type -> mall.DenyRegionReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> blocks.IdentityStatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
15, // [15:24] is the sub-list for method output_type
|
||||
6, // [6:15] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
|
||||
@@ -194,12 +194,12 @@ const file_module_ec_mall_proto_notice_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"created_at\x18\a \x01(\tR\n" +
|
||||
"created_at\x12\x16\n" +
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xf9\x01\n" +
|
||||
"\x06Notice\x12:\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x129\n" +
|
||||
"\x06Create\x12\x10.mall.NoticeItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x129\n" +
|
||||
"\x06Modify\x12\x10.mall.NoticeItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"\x06status\x18\b \x01(\x03R\x06status2\xa1\x02\n" +
|
||||
"\x06Notice\x12B\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x15.mall.NoticeListReply\"\x00\x12A\n" +
|
||||
"\x06Create\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"\x06Modify\x12\x10.mall.NoticeItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_notice_proto_rawDescOnce sync.Once
|
||||
@@ -217,20 +217,20 @@ var file_module_ec_mall_proto_notice_proto_msgTypes = make([]protoimpl.MessageIn
|
||||
var file_module_ec_mall_proto_notice_proto_goTypes = []any{
|
||||
(*NoticeListReply)(nil), // 0: mall.NoticeListReply
|
||||
(*NoticeItem)(nil), // 1: mall.NoticeItem
|
||||
(*MallFetchRequest)(nil), // 2: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 2: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 3: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 4: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_notice_proto_depIdxs = []int32{
|
||||
1, // 0: mall.NoticeListReply.data:type_name -> mall.NoticeItem
|
||||
2, // 1: mall.Notice.Fetch:input_type -> blocks.MallFetchRequest
|
||||
2, // 1: mall.Notice.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
1, // 2: mall.Notice.Create:input_type -> mall.NoticeItem
|
||||
1, // 3: mall.Notice.Modify:input_type -> mall.NoticeItem
|
||||
3, // 4: mall.Notice.Delete:input_type -> blocks.IdentRequest
|
||||
3, // 4: mall.Notice.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
0, // 5: mall.Notice.Fetch:output_type -> mall.NoticeListReply
|
||||
4, // 6: mall.Notice.Create:output_type -> blocks.IdentityStatusReply
|
||||
4, // 7: mall.Notice.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 8: mall.Notice.Delete:output_type -> blocks.IdentityStatusReply
|
||||
4, // 6: mall.Notice.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 7: mall.Notice.Modify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 8: mall.Notice.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
5, // [5:9] is the sub-list for method output_type
|
||||
1, // [1:5] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -2358,38 +2358,37 @@ const file_module_ec_mall_proto_product_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"categories\x18\" \x03(\v2\x14.mall.CategoriesItemR\n" +
|
||||
"categories\x12 \n" +
|
||||
"\vsupply_name\x18# \x01(\tR\vsupply_name2\xb7\n" +
|
||||
"\vsupply_name\x18# \x01(\tR\vsupply_name2\xef\v\n" +
|
||||
"\aProduct\x12@\n" +
|
||||
"\tItemFetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x0f.mall.ListReply\"\x00\x12?\n" +
|
||||
"\n" +
|
||||
"\aProduct\x128\n" +
|
||||
"\tItemFetch\x12\x18.blocks.MallFetchRequest\x1a\x0f.mall.ListReply\"\x00\x127\n" +
|
||||
"ItemDetail\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x11.mall.ProductItem\"\x00\x12K\n" +
|
||||
"\x12ItemDetailBySerial\x12\".ec_mall_blocks.StoreSerialRequest\x1a\x0f.mall.ListReply\"\x00\x12?\n" +
|
||||
"\x10ItemDetailBySpec\x12\x19.mall.DetailBySpecRequest\x1a\x0e.mall.ListItem\"\x00\x12F\n" +
|
||||
"\n" +
|
||||
"ItemDetail\x12\x14.blocks.IdentRequest\x1a\x11.mall.ProductItem\"\x00\x12C\n" +
|
||||
"\x12ItemDetailBySerial\x12\x1a.blocks.StoreSerialRequest\x1a\x0f.mall.ListReply\"\x00\x12?\n" +
|
||||
"\x10ItemDetailBySpec\x12\x19.mall.DetailBySpecRequest\x1a\x0e.mall.ListItem\"\x00\x12>\n" +
|
||||
"ItemCreate\x12\x11.mall.ProductItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12Q\n" +
|
||||
"\n" +
|
||||
"ItemCreate\x12\x11.mall.ProductItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"ItemDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12H\n" +
|
||||
"\n" +
|
||||
"ItemDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12@\n" +
|
||||
"ItemModify\x12\x13.mall.ModifyRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12E\n" +
|
||||
"\vItemBatchOp\x12\x0f.mall.OpRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12@\n" +
|
||||
"\tSpecFetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x0f.mall.SpecReply\"\x00\x12C\n" +
|
||||
"\n" +
|
||||
"ItemModify\x12\x13.mall.ModifyRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\vItemBatchOp\x12\x0f.mall.OpRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x128\n" +
|
||||
"\tSpecFetch\x12\x18.blocks.MallFetchRequest\x1a\x0f.mall.SpecReply\"\x00\x12;\n" +
|
||||
"SpecCreate\x12\x0e.mall.SpecItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12C\n" +
|
||||
"\n" +
|
||||
"SpecCreate\x12\x0e.mall.SpecItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12;\n" +
|
||||
"SpecModify\x12\x0e.mall.SpecItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12Q\n" +
|
||||
"\n" +
|
||||
"SpecModify\x12\x0e.mall.SpecItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"SpecDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12<\n" +
|
||||
"\n" +
|
||||
"SpecDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x124\n" +
|
||||
"\n" +
|
||||
"SpecDetail\x12\x14.blocks.IdentRequest\x1a\x0e.mall.SpecItem\"\x00\x12=\n" +
|
||||
"\vPhotoCreate\x12\x0f.mall.PhotoItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12B\n" +
|
||||
"\vPhotoDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x120\n" +
|
||||
"\tPhotoList\x12\x0f.mall.PhotoItem\x1a\x10.mall.PhotoReply\"\x00\x12B\n" +
|
||||
"\fCommentFetch\x12\x18.blocks.MallFetchRequest\x1a\x16.mall.CommentListReply\"\x00\x12A\n" +
|
||||
"\rCommentCreate\x12\x11.mall.CommentItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\tCommentRe\x12\x11.mall.CommentItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12D\n" +
|
||||
"\rCommentDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"\rCommentModify\x12\x11.mall.CommentItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"SpecDetail\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x0e.mall.SpecItem\"\x00\x12E\n" +
|
||||
"\vPhotoCreate\x12\x0f.mall.PhotoItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12R\n" +
|
||||
"\vPhotoDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x120\n" +
|
||||
"\tPhotoList\x12\x0f.mall.PhotoItem\x1a\x10.mall.PhotoReply\"\x00\x12J\n" +
|
||||
"\fCommentFetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x16.mall.CommentListReply\"\x00\x12I\n" +
|
||||
"\rCommentCreate\x12\x11.mall.CommentItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12E\n" +
|
||||
"\tCommentRe\x12\x11.mall.CommentItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12T\n" +
|
||||
"\rCommentDelete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12I\n" +
|
||||
"\rCommentModify\x12\x11.mall.CommentItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_product_proto_rawDescOnce sync.Once
|
||||
@@ -2426,10 +2425,10 @@ var file_module_ec_mall_proto_product_proto_goTypes = []any{
|
||||
(*PhotoItem)(nil), // 18: mall.PhotoItem
|
||||
(*CategoriesItem)(nil), // 19: mall.CategoriesItem
|
||||
(*ProductItem)(nil), // 20: mall.ProductItem
|
||||
(*MallFetchRequest)(nil), // 21: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 22: blocks.IdentRequest
|
||||
(*StoreSerialRequest)(nil), // 23: blocks.StoreSerialRequest
|
||||
(*IdentityStatusReply)(nil), // 24: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 21: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 22: ec_mall_blocks.IdentRequest
|
||||
(*StoreSerialRequest)(nil), // 23: ec_mall_blocks.StoreSerialRequest
|
||||
(*IdentityStatusReply)(nil), // 24: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_product_proto_depIdxs = []int32{
|
||||
1, // 0: mall.CommentItemRep.list:type_name -> mall.CommentItem
|
||||
@@ -2442,48 +2441,48 @@ var file_module_ec_mall_proto_product_proto_depIdxs = []int32{
|
||||
18, // 7: mall.ProductItem.images:type_name -> mall.PhotoItem
|
||||
17, // 8: mall.ProductItem.specification:type_name -> mall.SpecItem
|
||||
19, // 9: mall.ProductItem.categories:type_name -> mall.CategoriesItem
|
||||
21, // 10: mall.Product.ItemFetch:input_type -> blocks.MallFetchRequest
|
||||
22, // 11: mall.Product.ItemDetail:input_type -> blocks.IdentRequest
|
||||
23, // 12: mall.Product.ItemDetailBySerial:input_type -> blocks.StoreSerialRequest
|
||||
21, // 10: mall.Product.ItemFetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
22, // 11: mall.Product.ItemDetail:input_type -> ec_mall_blocks.IdentRequest
|
||||
23, // 12: mall.Product.ItemDetailBySerial:input_type -> ec_mall_blocks.StoreSerialRequest
|
||||
3, // 13: mall.Product.ItemDetailBySpec:input_type -> mall.DetailBySpecRequest
|
||||
20, // 14: mall.Product.ItemCreate:input_type -> mall.ProductItem
|
||||
22, // 15: mall.Product.ItemDelete:input_type -> blocks.IdentRequest
|
||||
22, // 15: mall.Product.ItemDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
5, // 16: mall.Product.ItemModify:input_type -> mall.ModifyRequest
|
||||
4, // 17: mall.Product.ItemBatchOp:input_type -> mall.OpRequest
|
||||
21, // 18: mall.Product.SpecFetch:input_type -> blocks.MallFetchRequest
|
||||
21, // 18: mall.Product.SpecFetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
17, // 19: mall.Product.SpecCreate:input_type -> mall.SpecItem
|
||||
17, // 20: mall.Product.SpecModify:input_type -> mall.SpecItem
|
||||
22, // 21: mall.Product.SpecDelete:input_type -> blocks.IdentRequest
|
||||
22, // 22: mall.Product.SpecDetail:input_type -> blocks.IdentRequest
|
||||
22, // 21: mall.Product.SpecDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
22, // 22: mall.Product.SpecDetail:input_type -> ec_mall_blocks.IdentRequest
|
||||
18, // 23: mall.Product.PhotoCreate:input_type -> mall.PhotoItem
|
||||
22, // 24: mall.Product.PhotoDelete:input_type -> blocks.IdentRequest
|
||||
22, // 24: mall.Product.PhotoDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
18, // 25: mall.Product.PhotoList:input_type -> mall.PhotoItem
|
||||
21, // 26: mall.Product.CommentFetch:input_type -> blocks.MallFetchRequest
|
||||
21, // 26: mall.Product.CommentFetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
1, // 27: mall.Product.CommentCreate:input_type -> mall.CommentItem
|
||||
1, // 28: mall.Product.CommentRe:input_type -> mall.CommentItem
|
||||
22, // 29: mall.Product.CommentDelete:input_type -> blocks.IdentRequest
|
||||
22, // 29: mall.Product.CommentDelete:input_type -> ec_mall_blocks.IdentRequest
|
||||
1, // 30: mall.Product.CommentModify:input_type -> mall.CommentItem
|
||||
15, // 31: mall.Product.ItemFetch:output_type -> mall.ListReply
|
||||
20, // 32: mall.Product.ItemDetail:output_type -> mall.ProductItem
|
||||
15, // 33: mall.Product.ItemDetailBySerial:output_type -> mall.ListReply
|
||||
6, // 34: mall.Product.ItemDetailBySpec:output_type -> mall.ListItem
|
||||
24, // 35: mall.Product.ItemCreate:output_type -> blocks.IdentityStatusReply
|
||||
24, // 36: mall.Product.ItemDelete:output_type -> blocks.IdentityStatusReply
|
||||
24, // 37: mall.Product.ItemModify:output_type -> blocks.IdentityStatusReply
|
||||
24, // 38: mall.Product.ItemBatchOp:output_type -> blocks.IdentityStatusReply
|
||||
24, // 35: mall.Product.ItemCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 36: mall.Product.ItemDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 37: mall.Product.ItemModify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 38: mall.Product.ItemBatchOp:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
10, // 39: mall.Product.SpecFetch:output_type -> mall.SpecReply
|
||||
24, // 40: mall.Product.SpecCreate:output_type -> blocks.IdentityStatusReply
|
||||
24, // 41: mall.Product.SpecModify:output_type -> blocks.IdentityStatusReply
|
||||
24, // 42: mall.Product.SpecDelete:output_type -> blocks.IdentityStatusReply
|
||||
24, // 40: mall.Product.SpecCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 41: mall.Product.SpecModify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 42: mall.Product.SpecDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
17, // 43: mall.Product.SpecDetail:output_type -> mall.SpecItem
|
||||
24, // 44: mall.Product.PhotoCreate:output_type -> blocks.IdentityStatusReply
|
||||
24, // 45: mall.Product.PhotoDelete:output_type -> blocks.IdentityStatusReply
|
||||
24, // 44: mall.Product.PhotoCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 45: mall.Product.PhotoDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
9, // 46: mall.Product.PhotoList:output_type -> mall.PhotoReply
|
||||
11, // 47: mall.Product.CommentFetch:output_type -> mall.CommentListReply
|
||||
24, // 48: mall.Product.CommentCreate:output_type -> blocks.IdentityStatusReply
|
||||
24, // 49: mall.Product.CommentRe:output_type -> blocks.IdentityStatusReply
|
||||
24, // 50: mall.Product.CommentDelete:output_type -> blocks.IdentityStatusReply
|
||||
24, // 51: mall.Product.CommentModify:output_type -> blocks.IdentityStatusReply
|
||||
24, // 48: mall.Product.CommentCreate:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 49: mall.Product.CommentRe:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 50: mall.Product.CommentDelete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
24, // 51: mall.Product.CommentModify:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
31, // [31:52] is the sub-list for method output_type
|
||||
10, // [10:31] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
|
||||
@@ -497,17 +497,17 @@ const file_module_ec_mall_proto_staff_proto_rawDesc = "" +
|
||||
"created_at\"K\n" +
|
||||
"\x0eStaffListReply\x12#\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x0f.mall.StaffItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\xa8\x03\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\xe0\x03\n" +
|
||||
"\x05Staff\x12/\n" +
|
||||
"\x05Login\x12\x12.mall.LoginRequest\x1a\x10.mall.LoginReply\"\x00\x129\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x14.mall.StaffListReply\"\x00\x128\n" +
|
||||
"\x06Create\x12\x0f.mall.StaffItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x125\n" +
|
||||
"\x05Login\x12\x12.mall.LoginRequest\x1a\x10.mall.LoginReply\"\x00\x12A\n" +
|
||||
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x14.mall.StaffListReply\"\x00\x12@\n" +
|
||||
"\x06Create\x12\x0f.mall.StaffItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\n" +
|
||||
"GetProfile\x12\x14.blocks.IdentRequest\x1a\x0f.mall.StaffItem\"\x00\x12<\n" +
|
||||
"GetProfile\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x0f.mall.StaffItem\"\x00\x12D\n" +
|
||||
"\n" +
|
||||
"SetProfile\x12\x0f.mall.StaffItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12E\n" +
|
||||
"\vSetPassword\x12\x17.mall.SetAccountRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
"SetProfile\x12\x0f.mall.StaffItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
|
||||
"\vSetPassword\x12\x17.mall.SetAccountRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_mall_proto_staff_proto_rawDescOnce sync.Once
|
||||
@@ -528,26 +528,26 @@ var file_module_ec_mall_proto_staff_proto_goTypes = []any{
|
||||
(*SetAccountRequest)(nil), // 2: mall.SetAccountRequest
|
||||
(*StaffItem)(nil), // 3: mall.StaffItem
|
||||
(*StaffListReply)(nil), // 4: mall.StaffListReply
|
||||
(*MallFetchRequest)(nil), // 5: blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 6: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 7: blocks.IdentityStatusReply
|
||||
(*MallFetchRequest)(nil), // 5: ec_mall_blocks.MallFetchRequest
|
||||
(*IdentRequest)(nil), // 6: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 7: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_staff_proto_depIdxs = []int32{
|
||||
3, // 0: mall.StaffListReply.data:type_name -> mall.StaffItem
|
||||
0, // 1: mall.Staff.Login:input_type -> mall.LoginRequest
|
||||
5, // 2: mall.Staff.Fetch:input_type -> blocks.MallFetchRequest
|
||||
5, // 2: mall.Staff.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
|
||||
3, // 3: mall.Staff.Create:input_type -> mall.StaffItem
|
||||
6, // 4: mall.Staff.Delete:input_type -> blocks.IdentRequest
|
||||
6, // 5: mall.Staff.GetProfile:input_type -> blocks.IdentRequest
|
||||
6, // 4: mall.Staff.Delete:input_type -> ec_mall_blocks.IdentRequest
|
||||
6, // 5: mall.Staff.GetProfile:input_type -> ec_mall_blocks.IdentRequest
|
||||
3, // 6: mall.Staff.SetProfile:input_type -> mall.StaffItem
|
||||
2, // 7: mall.Staff.SetPassword:input_type -> mall.SetAccountRequest
|
||||
1, // 8: mall.Staff.Login:output_type -> mall.LoginReply
|
||||
4, // 9: mall.Staff.Fetch:output_type -> mall.StaffListReply
|
||||
7, // 10: mall.Staff.Create:output_type -> blocks.IdentityStatusReply
|
||||
7, // 11: mall.Staff.Delete:output_type -> blocks.IdentityStatusReply
|
||||
7, // 10: mall.Staff.Create:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
7, // 11: mall.Staff.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
3, // 12: mall.Staff.GetProfile:output_type -> mall.StaffItem
|
||||
7, // 13: mall.Staff.SetProfile:output_type -> blocks.IdentityStatusReply
|
||||
7, // 14: mall.Staff.SetPassword:output_type -> blocks.IdentityStatusReply
|
||||
7, // 13: mall.Staff.SetProfile:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
7, // 14: mall.Staff.SetPassword:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
8, // [8:15] is the sub-list for method output_type
|
||||
1, // [1:8] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -714,20 +714,20 @@ const file_module_ec_mall_proto_store_proto_rawDesc = "" +
|
||||
"\akeyword\x18\x03 \x01(\tR\akeyword\"M\n" +
|
||||
"\x0fMallSearchReply\x12$\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x10.mall.StoreBasicR\x04list\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\xf2\x04\n" +
|
||||
"\x05Store\x12B\n" +
|
||||
"\tApplyJoin\x12\x16.mall.ApplyJoinRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12B\n" +
|
||||
"\tLicensing\x12\x16.mall.LicensingRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x126\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count2\xb2\x05\n" +
|
||||
"\x05Store\x12J\n" +
|
||||
"\tApplyJoin\x12\x16.mall.ApplyJoinRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12J\n" +
|
||||
"\tLicensing\x12\x16.mall.LicensingRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12>\n" +
|
||||
"\n" +
|
||||
"GetSetting\x12\x14.blocks.IdentRequest\x1a\x10.mall.StoreBasic\"\x00\x12=\n" +
|
||||
"GetSetting\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x10.mall.StoreBasic\"\x00\x12E\n" +
|
||||
"\n" +
|
||||
"SetSetting\x12\x10.mall.StoreBasic\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"SetSetting\x12\x10.mall.StoreBasic\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12I\n" +
|
||||
"\n" +
|
||||
"SetPayment\x12\x14.mall.SettingRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12?\n" +
|
||||
"\bSetEmail\x12\x14.mall.SettingRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x128\n" +
|
||||
"SetPayment\x12\x14.mall.SettingRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\bSetEmail\x12\x14.mall.SettingRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12@\n" +
|
||||
"\n" +
|
||||
"GetPayment\x12\x14.blocks.IdentRequest\x1a\x12.mall.ConfigsReply\"\x00\x126\n" +
|
||||
"\bGetEmail\x12\x14.blocks.IdentRequest\x1a\x12.mall.ConfigsReply\"\x00\x128\n" +
|
||||
"GetPayment\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x12.mall.ConfigsReply\"\x00\x12>\n" +
|
||||
"\bGetEmail\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x12.mall.ConfigsReply\"\x00\x128\n" +
|
||||
"\bMiniCode\x12\x15.mall.MiniCodeRequest\x1a\x13.mall.MiniCodeReply\"\x00\x12:\n" +
|
||||
"\x06Search\x12\x17.mall.MallSearchRequest\x1a\x15.mall.MallSearchReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
@@ -754,27 +754,27 @@ var file_module_ec_mall_proto_store_proto_goTypes = []any{
|
||||
(*MiniCodeReply)(nil), // 6: mall.MiniCodeReply
|
||||
(*MallSearchRequest)(nil), // 7: mall.MallSearchRequest
|
||||
(*MallSearchReply)(nil), // 8: mall.MallSearchReply
|
||||
(*IdentRequest)(nil), // 9: blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 10: blocks.IdentityStatusReply
|
||||
(*IdentRequest)(nil), // 9: ec_mall_blocks.IdentRequest
|
||||
(*IdentityStatusReply)(nil), // 10: ec_mall_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_mall_proto_store_proto_depIdxs = []int32{
|
||||
4, // 0: mall.MallSearchReply.list:type_name -> mall.StoreBasic
|
||||
3, // 1: mall.Store.ApplyJoin:input_type -> mall.ApplyJoinRequest
|
||||
2, // 2: mall.Store.Licensing:input_type -> mall.LicensingRequest
|
||||
9, // 3: mall.Store.GetSetting:input_type -> blocks.IdentRequest
|
||||
9, // 3: mall.Store.GetSetting:input_type -> ec_mall_blocks.IdentRequest
|
||||
4, // 4: mall.Store.SetSetting:input_type -> mall.StoreBasic
|
||||
0, // 5: mall.Store.SetPayment:input_type -> mall.SettingRequest
|
||||
0, // 6: mall.Store.SetEmail:input_type -> mall.SettingRequest
|
||||
9, // 7: mall.Store.GetPayment:input_type -> blocks.IdentRequest
|
||||
9, // 8: mall.Store.GetEmail:input_type -> blocks.IdentRequest
|
||||
9, // 7: mall.Store.GetPayment:input_type -> ec_mall_blocks.IdentRequest
|
||||
9, // 8: mall.Store.GetEmail:input_type -> ec_mall_blocks.IdentRequest
|
||||
5, // 9: mall.Store.MiniCode:input_type -> mall.MiniCodeRequest
|
||||
7, // 10: mall.Store.Search:input_type -> mall.MallSearchRequest
|
||||
10, // 11: mall.Store.ApplyJoin:output_type -> blocks.IdentityStatusReply
|
||||
10, // 12: mall.Store.Licensing:output_type -> blocks.IdentityStatusReply
|
||||
10, // 11: mall.Store.ApplyJoin:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
10, // 12: mall.Store.Licensing:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
4, // 13: mall.Store.GetSetting:output_type -> mall.StoreBasic
|
||||
10, // 14: mall.Store.SetSetting:output_type -> blocks.IdentityStatusReply
|
||||
10, // 15: mall.Store.SetPayment:output_type -> blocks.IdentityStatusReply
|
||||
10, // 16: mall.Store.SetEmail:output_type -> blocks.IdentityStatusReply
|
||||
10, // 14: mall.Store.SetSetting:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
10, // 15: mall.Store.SetPayment:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
10, // 16: mall.Store.SetEmail:output_type -> ec_mall_blocks.IdentityStatusReply
|
||||
1, // 17: mall.Store.GetPayment:output_type -> mall.ConfigsReply
|
||||
1, // 18: mall.Store.GetEmail:output_type -> mall.ConfigsReply
|
||||
6, // 19: mall.Store.MiniCode:output_type -> mall.MiniCodeReply
|
||||
|
||||
@@ -9,16 +9,16 @@ service Ads{
|
||||
rpc ByPos(ByPosRequest) returns (AdsListReply) {}
|
||||
|
||||
// 广告列表
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (AdsListReply){};
|
||||
rpc Fetch(ec_mall_blocks.MallFetchRequest) returns (AdsListReply){};
|
||||
|
||||
// 新建广告
|
||||
rpc Create (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Create (AdsItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 修改广告
|
||||
rpc Modify (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Modify (AdsItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除广告
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
||||
rpc Delete (ec_mall_blocks.IdentRequest) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
}
|
||||
message ByPosRequest{
|
||||
repeated string pos_key = 1 [json_name="pos_key"];
|
||||
@@ -40,4 +40,4 @@ message AdsItem{
|
||||
string to_url = 6 [json_name="to_url"];// 跳转链接
|
||||
string created_at = 7 [json_name="created_at"];// 创建时间
|
||||
int64 status = 8;// 状态:默认为0,-1禁止,1为正常
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ service Category{
|
||||
rpc Fetch(CategoryFetchRequest) returns(CategoryReply) {};
|
||||
|
||||
// 添加分类
|
||||
rpc Create(CategoryItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Create(CategoryItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除分类
|
||||
rpc Delete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Delete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改分类
|
||||
rpc Modify(CategoryItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Modify(CategoryItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -45,4 +45,4 @@ message CategoryItem{
|
||||
string created_at = 11 [json_name="created_at"]; // 创建时间
|
||||
repeated CategoryItem categories = 12; // 子集
|
||||
string keys = 13; //关键词
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_mall_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/mall/pb;mall";
|
||||
|
||||
|
||||
@@ -6,31 +6,31 @@ import "module/ec/mall/proto/const.proto";
|
||||
// 运费设置相关
|
||||
service Freight{
|
||||
// 运费模板列表
|
||||
rpc Fetch(blocks.MallFetchRequest) returns(FreightReply) {};
|
||||
rpc Fetch(ec_mall_blocks.MallFetchRequest) returns(FreightReply) {};
|
||||
|
||||
// 运费模板修改
|
||||
rpc Modify(FreightItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Modify(FreightItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板删除
|
||||
rpc Delete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Delete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板创建
|
||||
rpc Create(FreightItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc Create(FreightItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板详情
|
||||
rpc Detail(blocks.IdentRequest) returns(FreightItem) {};
|
||||
rpc Detail(ec_mall_blocks.IdentRequest) returns(FreightItem) {};
|
||||
|
||||
// 限制区域列表
|
||||
rpc DenyRegionFetch (blocks.MallFetchRequest) returns(DenyRegionReply) {};
|
||||
rpc DenyRegionFetch (ec_mall_blocks.MallFetchRequest) returns(DenyRegionReply) {};
|
||||
|
||||
// 新建限制区域
|
||||
rpc DenyRegionCreate (DenyRegionItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc DenyRegionCreate (DenyRegionItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 移除限制区域
|
||||
rpc DenyRegionDelete (blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc DenyRegionDelete (ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 编辑限制区域
|
||||
rpc DenyRegionModify (DenyRegionItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc DenyRegionModify (DenyRegionItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -82,4 +82,4 @@ message FreightReply{
|
||||
message DenyRegionReply{
|
||||
int64 count = 1;
|
||||
repeated DenyRegionItem data = 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,16 +6,16 @@ import "module/ec/mall/proto/const.proto";
|
||||
// Store(店铺)微服务-公告
|
||||
service Notice{
|
||||
// 公告列表
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (NoticeListReply){};
|
||||
rpc Fetch(ec_mall_blocks.MallFetchRequest) returns (NoticeListReply){};
|
||||
|
||||
// 新建公告
|
||||
rpc Create (NoticeItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Create (NoticeItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 修改公告
|
||||
rpc Modify (NoticeItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Modify (NoticeItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除公告
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
||||
rpc Delete (ec_mall_blocks.IdentRequest) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
}
|
||||
|
||||
// 公告列表
|
||||
|
||||
@@ -6,67 +6,67 @@ import "module/ec/mall/proto/const.proto";
|
||||
// 产品相关
|
||||
service Product{
|
||||
// 获取产品列表
|
||||
rpc ItemFetch(blocks.MallFetchRequest) returns(ListReply) {};
|
||||
rpc ItemFetch(ec_mall_blocks.MallFetchRequest) returns(ListReply) {};
|
||||
|
||||
// 获取产品详情
|
||||
rpc ItemDetail(blocks.IdentRequest) returns(ProductItem) {};
|
||||
rpc ItemDetail(ec_mall_blocks.IdentRequest) returns(ProductItem) {};
|
||||
|
||||
// 通过产品序列获取产品详情
|
||||
rpc ItemDetailBySerial(blocks.StoreSerialRequest) returns(ListReply) {};
|
||||
rpc ItemDetailBySerial(ec_mall_blocks.StoreSerialRequest) returns(ListReply) {};
|
||||
|
||||
// 通过规格编号获取产品详情
|
||||
rpc ItemDetailBySpec(DetailBySpecRequest) returns(ListItem) {};
|
||||
|
||||
// 添加产品
|
||||
rpc ItemCreate(ProductItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc ItemCreate(ProductItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除产品
|
||||
rpc ItemDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc ItemDelete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 发布/取消发布 产品
|
||||
rpc ItemModify(ModifyRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc ItemModify(ModifyRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 批量操作
|
||||
rpc ItemBatchOp(OpRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc ItemBatchOp(OpRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 产品规格列表
|
||||
rpc SpecFetch(blocks.MallFetchRequest) returns(SpecReply) {};
|
||||
rpc SpecFetch(ec_mall_blocks.MallFetchRequest) returns(SpecReply) {};
|
||||
|
||||
// 添加产品规格
|
||||
rpc SpecCreate(SpecItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc SpecCreate(SpecItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改产品规格
|
||||
rpc SpecModify(SpecItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc SpecModify(SpecItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除产品规格
|
||||
rpc SpecDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc SpecDelete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 产品详情
|
||||
rpc SpecDetail(blocks.IdentRequest) returns(SpecItem) {};
|
||||
rpc SpecDetail(ec_mall_blocks.IdentRequest) returns(SpecItem) {};
|
||||
|
||||
// 添加产品图片
|
||||
rpc PhotoCreate(PhotoItem) returns(blocks.IdentityStatusReply){};
|
||||
rpc PhotoCreate(PhotoItem) returns(ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除产品图片
|
||||
rpc PhotoDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply){};
|
||||
rpc PhotoDelete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 产品图片列表
|
||||
rpc PhotoList(PhotoItem) returns(PhotoReply){};
|
||||
|
||||
// 产品的评论列表
|
||||
rpc CommentFetch(blocks.MallFetchRequest) returns (CommentListReply) {};
|
||||
rpc CommentFetch(ec_mall_blocks.MallFetchRequest) returns (CommentListReply) {};
|
||||
|
||||
// 评论
|
||||
rpc CommentCreate(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc CommentCreate(CommentItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 回复评论
|
||||
rpc CommentRe(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc CommentRe(CommentItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除评论
|
||||
rpc CommentDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
rpc CommentDelete(ec_mall_blocks.IdentRequest) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改评论
|
||||
rpc CommentModify(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
rpc CommentModify(CommentItem) returns(ec_mall_blocks.IdentityStatusReply) {};
|
||||
}
|
||||
|
||||
|
||||
@@ -299,4 +299,4 @@ message ProductItem{
|
||||
repeated int64 spec_id = 33 [json_name="spec_id"]; // 规格ID
|
||||
repeated CategoriesItem categories = 34;// 分类
|
||||
string supply_name = 35 [json_name="supply_name"];// 供应商名称
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,22 +9,22 @@ service Staff {
|
||||
rpc Login(LoginRequest) returns (LoginReply) {}
|
||||
|
||||
// 获取工作人员列表
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (StaffListReply) {}
|
||||
rpc Fetch(ec_mall_blocks.MallFetchRequest) returns (StaffListReply) {}
|
||||
|
||||
// 创建工作人员
|
||||
rpc Create(StaffItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Create(StaffItem) returns (ec_mall_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除工作人员
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Delete(ec_mall_blocks.IdentRequest) returns (ec_mall_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取个人信息
|
||||
rpc GetProfile(blocks.IdentRequest) returns (StaffItem) {}
|
||||
rpc GetProfile(ec_mall_blocks.IdentRequest) returns (StaffItem) {}
|
||||
|
||||
// 设置个人信息
|
||||
rpc SetProfile(StaffItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc SetProfile(StaffItem) returns (ec_mall_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 设置账号密码
|
||||
rpc SetPassword(SetAccountRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc SetPassword(SetAccountRequest) returns (ec_mall_blocks.IdentityStatusReply) {}
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
@@ -71,4 +71,4 @@ message StaffItem {
|
||||
message StaffListReply {
|
||||
repeated StaffItem data = 1;
|
||||
int64 count = 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,28 +7,28 @@ import "module/ec/mall/proto/const.proto";
|
||||
service Store {
|
||||
|
||||
// 申请加入店铺
|
||||
rpc ApplyJoin(ApplyJoinRequest) returns (blocks.IdentityStatusReply) {};
|
||||
rpc ApplyJoin(ApplyJoinRequest) returns (ec_mall_blocks.IdentityStatusReply) {};
|
||||
|
||||
// 店铺许可授权
|
||||
rpc Licensing(LicensingRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Licensing(LicensingRequest) returns (ec_mall_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取店铺基础配置
|
||||
rpc GetSetting(blocks.IdentRequest) returns(StoreBasic){};
|
||||
rpc GetSetting(ec_mall_blocks.IdentRequest) returns(StoreBasic){};
|
||||
|
||||
// 设置店铺基础配置
|
||||
rpc SetSetting(StoreBasic) returns(blocks.IdentityStatusReply){};
|
||||
rpc SetSetting(StoreBasic) returns(ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 设置支付方式配置
|
||||
rpc SetPayment(SettingRequest) returns(blocks.IdentityStatusReply){}
|
||||
rpc SetPayment(SettingRequest) returns(ec_mall_blocks.IdentityStatusReply){}
|
||||
|
||||
// 设置邮件服务器配置
|
||||
rpc SetEmail(SettingRequest) returns(blocks.IdentityStatusReply){}
|
||||
rpc SetEmail(SettingRequest) returns(ec_mall_blocks.IdentityStatusReply){}
|
||||
|
||||
// 获取支付方式配置
|
||||
rpc GetPayment(blocks.IdentRequest) returns(ConfigsReply){}
|
||||
rpc GetPayment(ec_mall_blocks.IdentRequest) returns(ConfigsReply){}
|
||||
|
||||
// 获取邮件服务器配置
|
||||
rpc GetEmail(blocks.IdentRequest) returns(ConfigsReply){}
|
||||
rpc GetEmail(ec_mall_blocks.IdentRequest) returns(ConfigsReply){}
|
||||
|
||||
// 获取小程序推荐码
|
||||
rpc MiniCode(MiniCodeRequest) returns(MiniCodeReply) {};
|
||||
|
||||
43
module/ec/mall/service/expose.go
Normal file
43
module/ec/mall/service/expose.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/ec/mall/internal/server"
|
||||
pb "bsm/full/module/ec/mall/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.RegisterAdsHandlerServer(ctx, options.Gateway, server.NewAdsServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterCategoryHandlerServer(ctx, options.Gateway, server.NewCategoryServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterFreightHandlerServer(ctx, options.Gateway, server.NewFreightServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterNoticeHandlerServer(ctx, options.Gateway, server.NewNoticeServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterProductHandlerServer(ctx, options.Gateway, server.NewProductServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterStaffHandlerServer(ctx, options.Gateway, server.NewStaffServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterStoreHandlerServer(ctx, options.Gateway, server.NewStoreServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -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/market/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),
|
||||
}
|
||||
|
||||
@@ -29,7 +34,9 @@ func New(addr string) *Server {
|
||||
pb.RegisterDataServer(srv.Grpc, NewDataServer())
|
||||
pb.RegisterSupplyServer(srv.Grpc, NewSupplyServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
return srv
|
||||
}
|
||||
|
||||
@@ -483,17 +483,17 @@ const file_module_ec_market_proto_agency_proto_rawDesc = "" +
|
||||
"\x04data\x18\x02 \x03(\v2\x19.market.MarketAgenctyItemR\x04data\"F\n" +
|
||||
"\x0eApproveRequest\x12\x18\n" +
|
||||
"\aapprove\x18\x01 \x01(\x05R\aapprove\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity2\xca\x04\n" +
|
||||
"\x06Agency\x129\n" +
|
||||
"\x05Login\x12\x14.market.LoginRequest\x1a\x18.blocks.MarketLoginReply\"\x00\x12B\n" +
|
||||
"\x06Create\x12\x19.market.MarketAgenctyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x128\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x19.market.MarketAgenctyItem\"\x00\x12:\n" +
|
||||
"\x05Fetch\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12B\n" +
|
||||
"\x06Modify\x12\x19.market.MarketAgenctyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12H\n" +
|
||||
"\vSetPassword\x12\x1a.market.SetPasswordRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12<\n" +
|
||||
"\aPending\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12@\n" +
|
||||
"\aApprove\x12\x16.market.ApproveRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity2\xae\x05\n" +
|
||||
"\x06Agency\x12C\n" +
|
||||
"\x05Login\x12\x14.market.LoginRequest\x1a\".ec_market_blocks.MarketLoginReply\"\x00\x12L\n" +
|
||||
"\x06Create\x12\x19.market.MarketAgenctyItem\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12B\n" +
|
||||
"\x03Get\x12\x1e.ec_market_blocks.IdentRequest\x1a\x19.market.MarketAgenctyItem\"\x00\x12D\n" +
|
||||
"\x05Fetch\x12$.ec_market_blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12L\n" +
|
||||
"\x06Modify\x12\x19.market.MarketAgenctyItem\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12Q\n" +
|
||||
"\x06Delete\x12\x1e.ec_market_blocks.IdentRequest\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12R\n" +
|
||||
"\vSetPassword\x12\x1a.market.SetPasswordRequest\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12F\n" +
|
||||
"\aPending\x12$.ec_market_blocks.MarketFetchRequest\x1a\x13.market.AgencyReply\"\x00\x12J\n" +
|
||||
"\aApprove\x12\x16.market.ApproveRequest\x1a%.ec_market_blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_market_proto_agency_proto_rawDescOnce sync.Once
|
||||
@@ -514,31 +514,31 @@ var file_module_ec_market_proto_agency_proto_goTypes = []any{
|
||||
(*SetPasswordRequest)(nil), // 2: market.SetPasswordRequest
|
||||
(*AgencyReply)(nil), // 3: market.AgencyReply
|
||||
(*ApproveRequest)(nil), // 4: market.ApproveRequest
|
||||
(*IdentRequest)(nil), // 5: blocks.IdentRequest
|
||||
(*MarketFetchRequest)(nil), // 6: blocks.MarketFetchRequest
|
||||
(*MarketLoginReply)(nil), // 7: blocks.MarketLoginReply
|
||||
(*IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
(*IdentRequest)(nil), // 5: ec_market_blocks.IdentRequest
|
||||
(*MarketFetchRequest)(nil), // 6: ec_market_blocks.MarketFetchRequest
|
||||
(*MarketLoginReply)(nil), // 7: ec_market_blocks.MarketLoginReply
|
||||
(*IdentityStatusReply)(nil), // 8: ec_market_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_market_proto_agency_proto_depIdxs = []int32{
|
||||
1, // 0: market.AgencyReply.data:type_name -> market.MarketAgenctyItem
|
||||
0, // 1: market.Agency.Login:input_type -> market.LoginRequest
|
||||
1, // 2: market.Agency.Create:input_type -> market.MarketAgenctyItem
|
||||
5, // 3: market.Agency.Get:input_type -> blocks.IdentRequest
|
||||
6, // 4: market.Agency.Fetch:input_type -> blocks.MarketFetchRequest
|
||||
5, // 3: market.Agency.Get:input_type -> ec_market_blocks.IdentRequest
|
||||
6, // 4: market.Agency.Fetch:input_type -> ec_market_blocks.MarketFetchRequest
|
||||
1, // 5: market.Agency.Modify:input_type -> market.MarketAgenctyItem
|
||||
5, // 6: market.Agency.Delete:input_type -> blocks.IdentRequest
|
||||
5, // 6: market.Agency.Delete:input_type -> ec_market_blocks.IdentRequest
|
||||
2, // 7: market.Agency.SetPassword:input_type -> market.SetPasswordRequest
|
||||
6, // 8: market.Agency.Pending:input_type -> blocks.MarketFetchRequest
|
||||
6, // 8: market.Agency.Pending:input_type -> ec_market_blocks.MarketFetchRequest
|
||||
4, // 9: market.Agency.Approve:input_type -> market.ApproveRequest
|
||||
7, // 10: market.Agency.Login:output_type -> blocks.MarketLoginReply
|
||||
8, // 11: market.Agency.Create:output_type -> blocks.IdentityStatusReply
|
||||
7, // 10: market.Agency.Login:output_type -> ec_market_blocks.MarketLoginReply
|
||||
8, // 11: market.Agency.Create:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
1, // 12: market.Agency.Get:output_type -> market.MarketAgenctyItem
|
||||
3, // 13: market.Agency.Fetch:output_type -> market.AgencyReply
|
||||
8, // 14: market.Agency.Modify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 15: market.Agency.Delete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 16: market.Agency.SetPassword:output_type -> blocks.IdentityStatusReply
|
||||
8, // 14: market.Agency.Modify:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
8, // 15: market.Agency.Delete:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
8, // 16: market.Agency.SetPassword:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
3, // 17: market.Agency.Pending:output_type -> market.AgencyReply
|
||||
8, // 18: market.Agency.Approve:output_type -> blocks.IdentityStatusReply
|
||||
8, // 18: market.Agency.Approve:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
10, // [10:19] is the sub-list for method output_type
|
||||
1, // [1:10] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -2975,12 +2975,12 @@ var File_module_ec_market_proto_const_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_market_proto_const_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\"module/ec/market/proto/const.proto\x12\x06blocks\"\a\n" +
|
||||
"\x05Empty\"\xbb\x01\n" +
|
||||
"\"module/ec/market/proto/const.proto\x12\x10ec_market_blocks\"\a\n" +
|
||||
"\x05Empty\"\xc5\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\x12B\n" +
|
||||
"\x06params\x18\x03 \x03(\v2*.ec_market_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_market_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\"\x80\x03\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\x12F\n" +
|
||||
"\x06params\x18\x03 \x03(\v2..ec_market_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_market_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\"\xb9\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\x12H\n" +
|
||||
"\x06params\x18\x03 \x03(\v20.ec_market_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_market_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\"\xea\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_market_proto_const_proto_rawDesc = "" +
|
||||
"created_at\x12\x1e\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\tR\n" +
|
||||
"updated_at\x12-\n" +
|
||||
"updated_at\x127\n" +
|
||||
"\x05child\x18\n" +
|
||||
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
|
||||
" \x03(\v2!.ec_market_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_market_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\"\xd6\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_market_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\x128\n" +
|
||||
"\adetails\x18! \x03(\v2\x1e.ec_market_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_market_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\"Y\n" +
|
||||
"\x11FeedPostListReply\x122\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1e.ec_market_blocks.FeedPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe5\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_market_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\x12:\n" +
|
||||
"\aattachs\x18\t \x03(\v2 .ec_market_blocks.FeedAttachItemR\aattachs\x121\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
|
||||
" \x03(\v2\x1d.ec_market_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_market_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\"[\n" +
|
||||
"\x12GroupPostListReply\x123\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x1f.ec_market_blocks.GroupPostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xf8\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_market_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_market_blocks.GroupAttachItemR\aattachs\x122\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
|
||||
" \x03(\v2\x1e.ec_market_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_market_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\"b\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/market/pb;marketb\x06proto3"
|
||||
"\x05total\x18\x01 \x01(\x03R\x05total\x122\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x1e.ec_market_blocks.RelationItemR\x04dataB%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_market_proto_const_proto_rawDescOnce sync.Once
|
||||
@@ -3282,60 +3282,60 @@ func file_module_ec_market_proto_const_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_ec_market_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_module_ec_market_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_market_blocks.Empty
|
||||
(*FetchRequest)(nil), // 1: ec_market_blocks.FetchRequest
|
||||
(*IdentRequest)(nil), // 2: ec_market_blocks.IdentRequest
|
||||
(*VersionRequest)(nil), // 3: ec_market_blocks.VersionRequest
|
||||
(*SearchRequest)(nil), // 4: ec_market_blocks.SearchRequest
|
||||
(*StatusReply)(nil), // 5: ec_market_blocks.StatusReply
|
||||
(*CmsSearchRequest)(nil), // 6: ec_market_blocks.CmsSearchRequest
|
||||
(*MallFetchRequest)(nil), // 7: ec_market_blocks.MallFetchRequest
|
||||
(*MarketFetchRequest)(nil), // 8: ec_market_blocks.MarketFetchRequest
|
||||
(*OrderIdentRequest)(nil), // 9: ec_market_blocks.OrderIdentRequest
|
||||
(*DeliveryStatusReply)(nil), // 10: ec_market_blocks.DeliveryStatusReply
|
||||
(*IdentityStatusReply)(nil), // 11: ec_market_blocks.IdentityStatusReply
|
||||
(*OrderStatusReply)(nil), // 12: ec_market_blocks.OrderStatusReply
|
||||
(*DataStatusReply)(nil), // 13: ec_market_blocks.DataStatusReply
|
||||
(*StoreSerialRequest)(nil), // 14: ec_market_blocks.StoreSerialRequest
|
||||
(*IDRequest)(nil), // 15: ec_market_blocks.IDRequest
|
||||
(*IDListRequest)(nil), // 16: ec_market_blocks.IDListRequest
|
||||
(*StdIicuds)(nil), // 17: ec_market_blocks.StdIicuds
|
||||
(*StdPassport)(nil), // 18: ec_market_blocks.StdPassport
|
||||
(*CloudBase)(nil), // 19: ec_market_blocks.CloudBase
|
||||
(*CmsCategoryItem)(nil), // 20: ec_market_blocks.CmsCategoryItem
|
||||
(*CmsTagsItem)(nil), // 21: ec_market_blocks.CmsTagsItem
|
||||
(*CmsAccessoryItem)(nil), // 22: ec_market_blocks.CmsAccessoryItem
|
||||
(*VerifyStatus)(nil), // 23: ec_market_blocks.VerifyStatus
|
||||
(*MarketLoginReply)(nil), // 24: ec_market_blocks.MarketLoginReply
|
||||
(*OrderSummaryItem)(nil), // 25: ec_market_blocks.OrderSummaryItem
|
||||
(*OrderDetails)(nil), // 26: ec_market_blocks.OrderDetails
|
||||
(*FeedPostListReply)(nil), // 27: ec_market_blocks.FeedPostListReply
|
||||
(*FeedPostItem)(nil), // 28: ec_market_blocks.FeedPostItem
|
||||
(*FeedAttachItem)(nil), // 29: ec_market_blocks.FeedAttachItem
|
||||
(*FeedTagItem)(nil), // 30: ec_market_blocks.FeedTagItem
|
||||
(*GroupPostListReply)(nil), // 31: ec_market_blocks.GroupPostListReply
|
||||
(*GroupPostItem)(nil), // 32: ec_market_blocks.GroupPostItem
|
||||
(*GroupAttachItem)(nil), // 33: ec_market_blocks.GroupAttachItem
|
||||
(*GroupTagItem)(nil), // 34: ec_market_blocks.GroupTagItem
|
||||
(*RelationItem)(nil), // 35: ec_market_blocks.RelationItem
|
||||
(*FetchRelationItemReply)(nil), // 36: ec_market_blocks.FetchRelationItemReply
|
||||
nil, // 37: ec_market_blocks.FetchRequest.ParamsEntry
|
||||
nil, // 38: ec_market_blocks.MallFetchRequest.ParamsEntry
|
||||
nil, // 39: ec_market_blocks.MarketFetchRequest.ParamsEntry
|
||||
}
|
||||
var file_module_ec_market_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_market_blocks.FetchRequest.params:type_name -> ec_market_blocks.FetchRequest.ParamsEntry
|
||||
38, // 1: ec_market_blocks.MallFetchRequest.params:type_name -> ec_market_blocks.MallFetchRequest.ParamsEntry
|
||||
39, // 2: ec_market_blocks.MarketFetchRequest.params:type_name -> ec_market_blocks.MarketFetchRequest.ParamsEntry
|
||||
20, // 3: ec_market_blocks.CmsCategoryItem.child:type_name -> ec_market_blocks.CmsCategoryItem
|
||||
26, // 4: ec_market_blocks.OrderSummaryItem.details:type_name -> ec_market_blocks.OrderDetails
|
||||
28, // 5: ec_market_blocks.FeedPostListReply.list:type_name -> ec_market_blocks.FeedPostItem
|
||||
29, // 6: ec_market_blocks.FeedPostItem.attachs:type_name -> ec_market_blocks.FeedAttachItem
|
||||
30, // 7: ec_market_blocks.FeedPostItem.tags:type_name -> ec_market_blocks.FeedTagItem
|
||||
32, // 8: ec_market_blocks.GroupPostListReply.list:type_name -> ec_market_blocks.GroupPostItem
|
||||
33, // 9: ec_market_blocks.GroupPostItem.attachs:type_name -> ec_market_blocks.GroupAttachItem
|
||||
34, // 10: ec_market_blocks.GroupPostItem.tags:type_name -> ec_market_blocks.GroupTagItem
|
||||
35, // 11: ec_market_blocks.FetchRelationItemReply.data:type_name -> ec_market_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
|
||||
|
||||
@@ -238,14 +238,14 @@ const file_module_ec_market_proto_data_proto_rawDesc = "" +
|
||||
"\x04data\x18\x02 \x03(\v2\x0e.market.KeyValR\x04data\",\n" +
|
||||
"\x06KeyVal\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x10\n" +
|
||||
"\x03val\x18\x02 \x01(\tR\x03val2\xaa\x02\n" +
|
||||
"\x04Data\x122\n" +
|
||||
"\bOverview\x12\r.blocks.Empty\x1a\x15.market.OverviewReply\"\x00\x12>\n" +
|
||||
"\vMemberFetch\x12\x1a.blocks.MarketFetchRequest\x1a\x11.market.DataReply\"\x00\x127\n" +
|
||||
"\rMemberDetails\x12\x14.blocks.IdentRequest\x1a\x0e.market.KeyVal\"\x00\x12=\n" +
|
||||
"\x03val\x18\x02 \x01(\tR\x03val2\xdc\x02\n" +
|
||||
"\x04Data\x12<\n" +
|
||||
"\bOverview\x12\x17.ec_market_blocks.Empty\x1a\x15.market.OverviewReply\"\x00\x12H\n" +
|
||||
"\vMemberFetch\x12$.ec_market_blocks.MarketFetchRequest\x1a\x11.market.DataReply\"\x00\x12A\n" +
|
||||
"\rMemberDetails\x12\x1e.ec_market_blocks.IdentRequest\x1a\x0e.market.KeyVal\"\x00\x12G\n" +
|
||||
"\n" +
|
||||
"OrderFetch\x12\x1a.blocks.MarketFetchRequest\x1a\x11.market.DataReply\"\x00\x126\n" +
|
||||
"\fOrderDetails\x12\x14.blocks.IdentRequest\x1a\x0e.market.KeyVal\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
"OrderFetch\x12$.ec_market_blocks.MarketFetchRequest\x1a\x11.market.DataReply\"\x00\x12@\n" +
|
||||
"\fOrderDetails\x12\x1e.ec_market_blocks.IdentRequest\x1a\x0e.market.KeyVal\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_market_proto_data_proto_rawDescOnce sync.Once
|
||||
@@ -266,19 +266,19 @@ var file_module_ec_market_proto_data_proto_goTypes = []any{
|
||||
(*KeyVal)(nil), // 2: market.KeyVal
|
||||
nil, // 3: market.OverviewReply.ReportMonthEntry
|
||||
nil, // 4: market.OverviewReply.ReportStaffEntry
|
||||
(*Empty)(nil), // 5: blocks.Empty
|
||||
(*MarketFetchRequest)(nil), // 6: blocks.MarketFetchRequest
|
||||
(*IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*Empty)(nil), // 5: ec_market_blocks.Empty
|
||||
(*MarketFetchRequest)(nil), // 6: ec_market_blocks.MarketFetchRequest
|
||||
(*IdentRequest)(nil), // 7: ec_market_blocks.IdentRequest
|
||||
}
|
||||
var file_module_ec_market_proto_data_proto_depIdxs = []int32{
|
||||
3, // 0: market.OverviewReply.report_month:type_name -> market.OverviewReply.ReportMonthEntry
|
||||
4, // 1: market.OverviewReply.report_staff:type_name -> market.OverviewReply.ReportStaffEntry
|
||||
2, // 2: market.DataReply.data:type_name -> market.KeyVal
|
||||
5, // 3: market.Data.Overview:input_type -> blocks.Empty
|
||||
6, // 4: market.Data.MemberFetch:input_type -> blocks.MarketFetchRequest
|
||||
7, // 5: market.Data.MemberDetails:input_type -> blocks.IdentRequest
|
||||
6, // 6: market.Data.OrderFetch:input_type -> blocks.MarketFetchRequest
|
||||
7, // 7: market.Data.OrderDetails:input_type -> blocks.IdentRequest
|
||||
5, // 3: market.Data.Overview:input_type -> ec_market_blocks.Empty
|
||||
6, // 4: market.Data.MemberFetch:input_type -> ec_market_blocks.MarketFetchRequest
|
||||
7, // 5: market.Data.MemberDetails:input_type -> ec_market_blocks.IdentRequest
|
||||
6, // 6: market.Data.OrderFetch:input_type -> ec_market_blocks.MarketFetchRequest
|
||||
7, // 7: market.Data.OrderDetails:input_type -> ec_market_blocks.IdentRequest
|
||||
0, // 8: market.Data.Overview:output_type -> market.OverviewReply
|
||||
1, // 9: market.Data.MemberFetch:output_type -> market.DataReply
|
||||
2, // 10: market.Data.MemberDetails:output_type -> market.KeyVal
|
||||
|
||||
@@ -253,13 +253,13 @@ const file_module_ec_market_proto_supply_proto_rawDesc = "" +
|
||||
"\x02id\x18\x0f \x01(\x05R\x02id\"Q\n" +
|
||||
"\vSupplyReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x03R\x05count\x12,\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x18.market.MarketSupplyItemR\x04data2\xc2\x02\n" +
|
||||
"\x06Supply\x12A\n" +
|
||||
"\x06Create\x12\x18.market.MarketSupplyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x127\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x18.market.MarketSupplyItem\"\x00\x12:\n" +
|
||||
"\x05Fetch\x12\x1a.blocks.MarketFetchRequest\x1a\x13.market.SupplyReply\"\x00\x12A\n" +
|
||||
"\x06Modify\x12\x18.market.MarketSupplyItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
"\x04data\x18\x02 \x03(\v2\x18.market.MarketSupplyItemR\x04data2\xfe\x02\n" +
|
||||
"\x06Supply\x12K\n" +
|
||||
"\x06Create\x12\x18.market.MarketSupplyItem\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12A\n" +
|
||||
"\x03Get\x12\x1e.ec_market_blocks.IdentRequest\x1a\x18.market.MarketSupplyItem\"\x00\x12D\n" +
|
||||
"\x05Fetch\x12$.ec_market_blocks.MarketFetchRequest\x1a\x13.market.SupplyReply\"\x00\x12K\n" +
|
||||
"\x06Modify\x12\x18.market.MarketSupplyItem\x1a%.ec_market_blocks.IdentityStatusReply\"\x00\x12Q\n" +
|
||||
"\x06Delete\x12\x1e.ec_market_blocks.IdentRequest\x1a%.ec_market_blocks.IdentityStatusReply\"\x00B%Z#bsm/full/module/ec/market/pb;marketb\x06proto3"
|
||||
|
||||
var (
|
||||
file_module_ec_market_proto_supply_proto_rawDescOnce sync.Once
|
||||
@@ -277,22 +277,22 @@ var file_module_ec_market_proto_supply_proto_msgTypes = make([]protoimpl.Message
|
||||
var file_module_ec_market_proto_supply_proto_goTypes = []any{
|
||||
(*MarketSupplyItem)(nil), // 0: market.MarketSupplyItem
|
||||
(*SupplyReply)(nil), // 1: market.SupplyReply
|
||||
(*IdentRequest)(nil), // 2: blocks.IdentRequest
|
||||
(*MarketFetchRequest)(nil), // 3: blocks.MarketFetchRequest
|
||||
(*IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
|
||||
(*IdentRequest)(nil), // 2: ec_market_blocks.IdentRequest
|
||||
(*MarketFetchRequest)(nil), // 3: ec_market_blocks.MarketFetchRequest
|
||||
(*IdentityStatusReply)(nil), // 4: ec_market_blocks.IdentityStatusReply
|
||||
}
|
||||
var file_module_ec_market_proto_supply_proto_depIdxs = []int32{
|
||||
0, // 0: market.SupplyReply.data:type_name -> market.MarketSupplyItem
|
||||
0, // 1: market.Supply.Create:input_type -> market.MarketSupplyItem
|
||||
2, // 2: market.Supply.Get:input_type -> blocks.IdentRequest
|
||||
3, // 3: market.Supply.Fetch:input_type -> blocks.MarketFetchRequest
|
||||
2, // 2: market.Supply.Get:input_type -> ec_market_blocks.IdentRequest
|
||||
3, // 3: market.Supply.Fetch:input_type -> ec_market_blocks.MarketFetchRequest
|
||||
0, // 4: market.Supply.Modify:input_type -> market.MarketSupplyItem
|
||||
2, // 5: market.Supply.Delete:input_type -> blocks.IdentRequest
|
||||
4, // 6: market.Supply.Create:output_type -> blocks.IdentityStatusReply
|
||||
2, // 5: market.Supply.Delete:input_type -> ec_market_blocks.IdentRequest
|
||||
4, // 6: market.Supply.Create:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
0, // 7: market.Supply.Get:output_type -> market.MarketSupplyItem
|
||||
1, // 8: market.Supply.Fetch:output_type -> market.SupplyReply
|
||||
4, // 9: market.Supply.Modify:output_type -> blocks.IdentityStatusReply
|
||||
4, // 10: market.Supply.Delete:output_type -> blocks.IdentityStatusReply
|
||||
4, // 9: market.Supply.Modify:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
4, // 10: market.Supply.Delete:output_type -> ec_market_blocks.IdentityStatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
||||
@@ -6,31 +6,31 @@ import "module/ec/market/proto/const.proto";
|
||||
// 营销服务 - 代理商
|
||||
service Agency{
|
||||
// 登录
|
||||
rpc Login(LoginRequest) returns (blocks.MarketLoginReply) {}
|
||||
rpc Login(LoginRequest) returns (ec_market_blocks.MarketLoginReply) {}
|
||||
|
||||
// 新增代理商
|
||||
rpc Create(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Create(MarketAgenctyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个代理商
|
||||
rpc Get(blocks.IdentRequest) returns (MarketAgenctyItem) {}
|
||||
rpc Get(ec_market_blocks.IdentRequest) returns (MarketAgenctyItem) {}
|
||||
|
||||
// 代理商列表
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
rpc Fetch(ec_market_blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 更新代理商数据
|
||||
rpc Modify(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Modify(MarketAgenctyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个代理商
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Delete(ec_market_blocks.IdentRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 更新密码
|
||||
rpc SetPassword(SetPasswordRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc SetPassword(SetPasswordRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
//待审核
|
||||
rpc Pending(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
rpc Pending(ec_market_blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 审核
|
||||
rpc Approve(ApproveRequest) returns (blocks.IdentityStatusReply) {};
|
||||
rpc Approve(ApproveRequest) returns (ec_market_blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -80,4 +80,4 @@ message AgencyReply {
|
||||
message ApproveRequest {
|
||||
int32 approve = 1; // 1:通过 2:拒绝
|
||||
string identity = 2; // 唯一标识
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_market_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/market/pb;market";
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@ import "module/ec/market/proto/const.proto";
|
||||
// 数据服务
|
||||
service Data{
|
||||
// 概况
|
||||
rpc Overview(blocks.Empty) returns (OverviewReply) {}
|
||||
rpc Overview(ec_market_blocks.Empty) returns (OverviewReply) {}
|
||||
|
||||
// 会员列表
|
||||
rpc MemberFetch(blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
rpc MemberFetch(ec_market_blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
|
||||
// 会员详情
|
||||
rpc MemberDetails(blocks.IdentRequest) returns (KeyVal) {}
|
||||
rpc MemberDetails(ec_market_blocks.IdentRequest) returns (KeyVal) {}
|
||||
|
||||
// 订单列表
|
||||
rpc OrderFetch(blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
rpc OrderFetch(ec_market_blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
|
||||
// 订单详情
|
||||
rpc OrderDetails(blocks.IdentRequest) returns (KeyVal) {}
|
||||
rpc OrderDetails(ec_market_blocks.IdentRequest) returns (KeyVal) {}
|
||||
}
|
||||
|
||||
message OverviewReply {
|
||||
@@ -46,4 +46,4 @@ message DataReply {
|
||||
message KeyVal {
|
||||
string key=1;
|
||||
string val=2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,19 +7,19 @@ import "module/ec/market/proto/const.proto";
|
||||
service Supply{
|
||||
|
||||
// 新增供应商
|
||||
rpc Create(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Create(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个供应商
|
||||
rpc Get(blocks.IdentRequest) returns (MarketSupplyItem) {}
|
||||
rpc Get(ec_market_blocks.IdentRequest) returns (MarketSupplyItem) {}
|
||||
|
||||
// 供应商列表
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (SupplyReply) {}
|
||||
rpc Fetch(ec_market_blocks.MarketFetchRequest) returns (SupplyReply) {}
|
||||
|
||||
// 更新供应商数据
|
||||
rpc Modify(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Modify(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个供应商
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Delete(ec_market_blocks.IdentRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -49,4 +49,4 @@ message MarketSupplyItem {
|
||||
message SupplyReply {
|
||||
int64 count = 1;// 总数
|
||||
repeated MarketSupplyItem data = 2;// 数据
|
||||
}
|
||||
}
|
||||
|
||||
31
module/ec/market/service/expose.go
Normal file
31
module/ec/market/service/expose.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/ec/market/internal/server"
|
||||
pb "bsm/full/module/ec/market/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.RegisterAgencyHandlerServer(ctx, options.Gateway, server.NewAgencyServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterDataHandlerServer(ctx, options.Gateway, server.NewDataServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := pb.RegisterSupplyHandlerServer(ctx, options.Gateway, server.NewSupplyServer()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -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