refactor: add unified all service gateway

This commit is contained in:
2026-08-10 10:03:46 +08:00
parent 5ea45a76fe
commit f994b2de9c
143 changed files with 2853 additions and 2129 deletions

View File

@@ -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,

View File

@@ -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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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为正常
}
}

View File

@@ -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; //关键词
}
}

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
package blocks;
package ec_mall_blocks;
option go_package = "bsm/full/module/ec/mall/pb;mall";

View File

@@ -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;
}
}

View File

@@ -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){};
}
// 公告列表

View File

@@ -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"];// 供应商名称
}
}

View File

@@ -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;
}
}

View File

@@ -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) {};

View 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
}