From 80b6c140fe014a1314507d5cc9e36af58f21b83f Mon Sep 17 00:00:00 2001 From: yanweidong Date: Wed, 23 Sep 2026 00:13:03 +0800 Subject: [PATCH] fix ads,passport --- module/base/ads/internal/server/new.go | 4 +- module/base/ads/pb/ads.pb.go | 70 +- module/base/ads/pb/ads.pb.gw.go | 2 +- module/base/ads/pb/ads_grpc.pb.go | 18 +- module/base/ads/pb/const.pb.go | 3368 ------------------------ module/base/ads/proto/ads.proto | 2 +- module/base/ads/proto/const.proto | 326 --- module/base/passport/build-pb.sh | 15 - scripts/build-proto.sh | 52 + sdk/client/golang/ads/ads.pb.go | 267 ++ sdk/client/golang/ads/ads_grpc.pb.go | 127 + sdk/client/golang/go.mod | 3 + sdk/client/typescript/ads/index.ts | 44 + sdk/docs/ads/ads.md | 32 + 14 files changed, 575 insertions(+), 3755 deletions(-) delete mode 100644 module/base/ads/pb/const.pb.go delete mode 100644 module/base/ads/proto/const.proto delete mode 100644 module/base/passport/build-pb.sh create mode 100644 scripts/build-proto.sh create mode 100644 sdk/client/golang/ads/ads.pb.go create mode 100644 sdk/client/golang/ads/ads_grpc.pb.go create mode 100644 sdk/client/golang/go.mod create mode 100644 sdk/client/typescript/ads/index.ts create mode 100644 sdk/docs/ads/ads.md diff --git a/module/base/ads/internal/server/new.go b/module/base/ads/internal/server/new.go index d68bb58..72f4c1e 100644 --- a/module/base/ads/internal/server/new.go +++ b/module/base/ads/internal/server/new.go @@ -25,13 +25,15 @@ func New(grpcServ *grpc.Server) *Server { srv := &Server{ Ctx: context.Background(), - Grpc: grpcServ, + Grpc: grpc.NewServer(), grpcConns: make(map[string]*grpc.ClientConn), } // register service to grpc.Server pb.RegisterFetchServer(srv.Grpc, NewFetchServer()) + reflection.Register(srv.Grpc) + if standalone { reflection.Register(srv.Grpc) } diff --git a/module/base/ads/pb/ads.pb.go b/module/base/ads/pb/ads.pb.go index e9f855c..07dda83 100644 --- a/module/base/ads/pb/ads.pb.go +++ b/module/base/ads/pb/ads.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.35.1 -// source: module/base/ads/proto/ads.proto +// protoc-gen-go v1.36.12 +// protoc v7.36.0 +// source: ads.proto package ads @@ -30,7 +30,7 @@ type ByPosRequest struct { func (x *ByPosRequest) Reset() { *x = ByPosRequest{} - mi := &file_module_base_ads_proto_ads_proto_msgTypes[0] + mi := &file_ads_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -42,7 +42,7 @@ func (x *ByPosRequest) String() string { func (*ByPosRequest) ProtoMessage() {} func (x *ByPosRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_ads_proto_msgTypes[0] + mi := &file_ads_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -55,7 +55,7 @@ func (x *ByPosRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ByPosRequest.ProtoReflect.Descriptor instead. func (*ByPosRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_ads_proto_rawDescGZIP(), []int{0} + return file_ads_proto_rawDescGZIP(), []int{0} } func (x *ByPosRequest) GetKey() string { @@ -74,7 +74,7 @@ type ByPosReply struct { func (x *ByPosReply) Reset() { *x = ByPosReply{} - mi := &file_module_base_ads_proto_ads_proto_msgTypes[1] + mi := &file_ads_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -86,7 +86,7 @@ func (x *ByPosReply) String() string { func (*ByPosReply) ProtoMessage() {} func (x *ByPosReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_ads_proto_msgTypes[1] + mi := &file_ads_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -99,7 +99,7 @@ func (x *ByPosReply) ProtoReflect() protoreflect.Message { // Deprecated: Use ByPosReply.ProtoReflect.Descriptor instead. func (*ByPosReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_ads_proto_rawDescGZIP(), []int{1} + return file_ads_proto_rawDescGZIP(), []int{1} } func (x *ByPosReply) GetData() []*AdsItem { @@ -123,7 +123,7 @@ type AdsItem struct { func (x *AdsItem) Reset() { *x = AdsItem{} - mi := &file_module_base_ads_proto_ads_proto_msgTypes[2] + mi := &file_ads_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -135,7 +135,7 @@ func (x *AdsItem) String() string { func (*AdsItem) ProtoMessage() {} func (x *AdsItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_ads_proto_msgTypes[2] + mi := &file_ads_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -148,7 +148,7 @@ func (x *AdsItem) ProtoReflect() protoreflect.Message { // Deprecated: Use AdsItem.ProtoReflect.Descriptor instead. func (*AdsItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_ads_proto_rawDescGZIP(), []int{2} + return file_ads_proto_rawDescGZIP(), []int{2} } func (x *AdsItem) GetId() int64 { @@ -193,11 +193,11 @@ func (x *AdsItem) GetCreated() string { return "" } -var File_module_base_ads_proto_ads_proto protoreflect.FileDescriptor +var File_ads_proto protoreflect.FileDescriptor -const file_module_base_ads_proto_ads_proto_rawDesc = "" + +const file_ads_proto_rawDesc = "" + "\n" + - "\x1fmodule/base/ads/proto/ads.proto\x12\x03ads\" \n" + + "\tads.proto\x12\x03ads\" \n" + "\fByPosRequest\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\".\n" + "\n" + @@ -211,27 +211,27 @@ const file_module_base_ads_proto_ads_proto_rawDesc = "" + "\x05toUrl\x18\x05 \x01(\tR\x05toUrl\x12\x18\n" + "\acreated\x18\x06 \x01(\tR\acreated26\n" + "\x05Fetch\x12-\n" + - "\x05ByPos\x12\x11.ads.ByPosRequest\x1a\x0f.ads.ByPosReply\"\x00B!Z\x1fbsm/full/module/base/ads/pb;adsb\x06proto3" + "\x05ByPos\x12\x11.ads.ByPosRequest\x1a\x0f.ads.ByPosReply\"\x00B\aZ\x05.;adsb\x06proto3" var ( - file_module_base_ads_proto_ads_proto_rawDescOnce sync.Once - file_module_base_ads_proto_ads_proto_rawDescData []byte + file_ads_proto_rawDescOnce sync.Once + file_ads_proto_rawDescData []byte ) -func file_module_base_ads_proto_ads_proto_rawDescGZIP() []byte { - file_module_base_ads_proto_ads_proto_rawDescOnce.Do(func() { - file_module_base_ads_proto_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_ads_proto_ads_proto_rawDesc), len(file_module_base_ads_proto_ads_proto_rawDesc))) +func file_ads_proto_rawDescGZIP() []byte { + file_ads_proto_rawDescOnce.Do(func() { + file_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc))) }) - return file_module_base_ads_proto_ads_proto_rawDescData + return file_ads_proto_rawDescData } -var file_module_base_ads_proto_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_module_base_ads_proto_ads_proto_goTypes = []any{ +var file_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ads_proto_goTypes = []any{ (*ByPosRequest)(nil), // 0: ads.ByPosRequest (*ByPosReply)(nil), // 1: ads.ByPosReply (*AdsItem)(nil), // 2: ads.AdsItem } -var file_module_base_ads_proto_ads_proto_depIdxs = []int32{ +var file_ads_proto_depIdxs = []int32{ 2, // 0: ads.ByPosReply.data:type_name -> ads.AdsItem 0, // 1: ads.Fetch.ByPos:input_type -> ads.ByPosRequest 1, // 2: ads.Fetch.ByPos:output_type -> ads.ByPosReply @@ -242,26 +242,26 @@ var file_module_base_ads_proto_ads_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_module_base_ads_proto_ads_proto_init() } -func file_module_base_ads_proto_ads_proto_init() { - if File_module_base_ads_proto_ads_proto != nil { +func init() { file_ads_proto_init() } +func file_ads_proto_init() { + if File_ads_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_ads_proto_ads_proto_rawDesc), len(file_module_base_ads_proto_ads_proto_rawDesc)), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_module_base_ads_proto_ads_proto_goTypes, - DependencyIndexes: file_module_base_ads_proto_ads_proto_depIdxs, - MessageInfos: file_module_base_ads_proto_ads_proto_msgTypes, + GoTypes: file_ads_proto_goTypes, + DependencyIndexes: file_ads_proto_depIdxs, + MessageInfos: file_ads_proto_msgTypes, }.Build() - File_module_base_ads_proto_ads_proto = out.File - file_module_base_ads_proto_ads_proto_goTypes = nil - file_module_base_ads_proto_ads_proto_depIdxs = nil + File_ads_proto = out.File + file_ads_proto_goTypes = nil + file_ads_proto_depIdxs = nil } diff --git a/module/base/ads/pb/ads.pb.gw.go b/module/base/ads/pb/ads.pb.gw.go index 34a75b3..41aedab 100644 --- a/module/base/ads/pb/ads.pb.gw.go +++ b/module/base/ads/pb/ads.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: module/base/ads/proto/ads.proto +// source: ads.proto /* Package ads is a reverse proxy. diff --git a/module/base/ads/pb/ads_grpc.pb.go b/module/base/ads/pb/ads_grpc.pb.go index dfe7899..8e96bf6 100644 --- a/module/base/ads/pb/ads_grpc.pb.go +++ b/module/base/ads/pb/ads_grpc.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 -// - protoc v7.35.1 -// source: module/base/ads/proto/ads.proto +// - protoc v7.36.0 +// source: ads.proto package ads @@ -28,7 +28,7 @@ const ( // // 广告子系统 type FetchClient interface { - // 通过广告位获取广告信息 + //通过广告位获取广告信息 ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc.CallOption) (*ByPosReply, error) } @@ -51,16 +51,17 @@ func (c *fetchClient) ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc. } // FetchServer is the server API for Fetch service. -// All implementations should embed UnimplementedFetchServer +// All implementations must embed UnimplementedFetchServer // for forward compatibility. // // 广告子系统 type FetchServer interface { - // 通过广告位获取广告信息 + //通过广告位获取广告信息 ByPos(context.Context, *ByPosRequest) (*ByPosReply, error) + mustEmbedUnimplementedFetchServer() } -// UnimplementedFetchServer should be embedded to have +// UnimplementedFetchServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil @@ -70,7 +71,8 @@ type UnimplementedFetchServer struct{} func (UnimplementedFetchServer) ByPos(context.Context, *ByPosRequest) (*ByPosReply, error) { return nil, status.Error(codes.Unimplemented, "method ByPos not implemented") } -func (UnimplementedFetchServer) testEmbeddedByValue() {} +func (UnimplementedFetchServer) mustEmbedUnimplementedFetchServer() {} +func (UnimplementedFetchServer) testEmbeddedByValue() {} // UnsafeFetchServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FetchServer will @@ -121,5 +123,5 @@ var Fetch_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "module/base/ads/proto/ads.proto", + Metadata: "ads.proto", } diff --git a/module/base/ads/pb/const.pb.go b/module/base/ads/pb/const.pb.go deleted file mode 100644 index 1bf3ac0..0000000 --- a/module/base/ads/pb/const.pb.go +++ /dev/null @@ -1,3368 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc v7.35.1 -// source: module/base/ads/proto/const.proto - -package ads - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Shared request and response messages. -type Empty struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Empty) Reset() { - *x = Empty{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Empty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Empty) ProtoMessage() {} - -func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{0} -} - -type FetchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - PageNo int64 `protobuf:"varint,1,opt,name=page_no,proto3" json:"page_no,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"` - Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FetchRequest) Reset() { - *x = FetchRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FetchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchRequest) ProtoMessage() {} - -func (x *FetchRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead. -func (*FetchRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{1} -} - -func (x *FetchRequest) GetPageNo() int64 { - if x != nil { - return x.PageNo - } - return 0 -} - -func (x *FetchRequest) GetPageSize() int64 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *FetchRequest) GetParams() map[string]string { - if x != nil { - return x.Params - } - return nil -} - -type IdentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdentRequest) Reset() { - *x = IdentRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdentRequest) ProtoMessage() {} - -func (x *IdentRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdentRequest.ProtoReflect.Descriptor instead. -func (*IdentRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{2} -} - -func (x *IdentRequest) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *IdentRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -type VersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *VersionRequest) Reset() { - *x = VersionRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *VersionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VersionRequest) ProtoMessage() {} - -func (x *VersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead. -func (*VersionRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{3} -} - -func (x *VersionRequest) GetVersion() int64 { - if x != nil { - return x.Version - } - return 0 -} - -type SearchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SearchRequest) Reset() { - *x = SearchRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchRequest) ProtoMessage() {} - -func (x *SearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead. -func (*SearchRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{4} -} - -func (x *SearchRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -type StatusReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *StatusReply) Reset() { - *x = StatusReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *StatusReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusReply) ProtoMessage() {} - -func (x *StatusReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead. -func (*StatusReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{5} -} - -func (x *StatusReply) GetCode() int32 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *StatusReply) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *StatusReply) GetDetails() string { - if x != nil { - return x.Details - } - return "" -} - -func (x *StatusReply) GetTimeseq() int64 { - if x != nil { - return x.Timeseq - } - return 0 -} - -// Service-specific variants whose wire formats differ from the shared types. -type CmsSearchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` - PageNo int64 `protobuf:"varint,2,opt,name=page_no,proto3" json:"page_no,omitempty"` - PageSize int64 `protobuf:"varint,3,opt,name=page_size,proto3" json:"page_size,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CmsSearchRequest) Reset() { - *x = CmsSearchRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CmsSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CmsSearchRequest) ProtoMessage() {} - -func (x *CmsSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CmsSearchRequest.ProtoReflect.Descriptor instead. -func (*CmsSearchRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{6} -} - -func (x *CmsSearchRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *CmsSearchRequest) GetPageNo() int64 { - if x != nil { - return x.PageNo - } - return 0 -} - -func (x *CmsSearchRequest) GetPageSize() int64 { - if x != nil { - return x.PageSize - } - return 0 -} - -type MallFetchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - PageNo int64 `protobuf:"varint,1,opt,name=page_no,proto3" json:"page_no,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"` - Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - StoreIdentity string `protobuf:"bytes,4,opt,name=store_identity,proto3" json:"store_identity,omitempty"` - Keyword string `protobuf:"bytes,5,opt,name=keyword,proto3" json:"keyword,omitempty"` - CategoryId []int64 `protobuf:"varint,6,rep,packed,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - Sort string `protobuf:"bytes,7,opt,name=sort,proto3" json:"sort,omitempty"` - MinPrice int64 `protobuf:"varint,8,opt,name=min_price,proto3" json:"min_price,omitempty"` - MaxPrice int64 `protobuf:"varint,9,opt,name=max_price,proto3" json:"max_price,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MallFetchRequest) Reset() { - *x = MallFetchRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MallFetchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MallFetchRequest) ProtoMessage() {} - -func (x *MallFetchRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MallFetchRequest.ProtoReflect.Descriptor instead. -func (*MallFetchRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{7} -} - -func (x *MallFetchRequest) GetPageNo() int64 { - if x != nil { - return x.PageNo - } - return 0 -} - -func (x *MallFetchRequest) GetPageSize() int64 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *MallFetchRequest) GetParams() map[string]string { - if x != nil { - return x.Params - } - return nil -} - -func (x *MallFetchRequest) GetStoreIdentity() string { - if x != nil { - return x.StoreIdentity - } - return "" -} - -func (x *MallFetchRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *MallFetchRequest) GetCategoryId() []int64 { - if x != nil { - return x.CategoryId - } - return nil -} - -func (x *MallFetchRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *MallFetchRequest) GetMinPrice() int64 { - if x != nil { - return x.MinPrice - } - return 0 -} - -func (x *MallFetchRequest) GetMaxPrice() int64 { - if x != nil { - return x.MaxPrice - } - return 0 -} - -type MarketFetchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - PageNo int64 `protobuf:"varint,1,opt,name=page_no,proto3" json:"page_no,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"` - Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - Keyword string `protobuf:"bytes,5,opt,name=keyword,proto3" json:"keyword,omitempty"` - Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` - Approve int32 `protobuf:"varint,7,opt,name=approve,proto3" json:"approve,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MarketFetchRequest) Reset() { - *x = MarketFetchRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MarketFetchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketFetchRequest) ProtoMessage() {} - -func (x *MarketFetchRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketFetchRequest.ProtoReflect.Descriptor instead. -func (*MarketFetchRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{8} -} - -func (x *MarketFetchRequest) GetPageNo() int64 { - if x != nil { - return x.PageNo - } - return 0 -} - -func (x *MarketFetchRequest) GetPageSize() int64 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *MarketFetchRequest) GetParams() map[string]string { - if x != nil { - return x.Params - } - return nil -} - -func (x *MarketFetchRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *MarketFetchRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *MarketFetchRequest) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *MarketFetchRequest) GetApprove() int32 { - if x != nil { - return x.Approve - } - return 0 -} - -type OrderIdentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` - Approve int32 `protobuf:"varint,4,opt,name=approve,proto3" json:"approve,omitempty"` - Agency string `protobuf:"bytes,5,opt,name=agency,proto3" json:"agency,omitempty"` - StoreIdentity string `protobuf:"bytes,6,opt,name=store_identity,json=storeIdentity,proto3" json:"store_identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *OrderIdentRequest) Reset() { - *x = OrderIdentRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *OrderIdentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderIdentRequest) ProtoMessage() {} - -func (x *OrderIdentRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderIdentRequest.ProtoReflect.Descriptor instead. -func (*OrderIdentRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{9} -} - -func (x *OrderIdentRequest) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *OrderIdentRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *OrderIdentRequest) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -func (x *OrderIdentRequest) GetApprove() int32 { - if x != nil { - return x.Approve - } - return 0 -} - -func (x *OrderIdentRequest) GetAgency() string { - if x != nil { - return x.Agency - } - return "" -} - -func (x *OrderIdentRequest) GetStoreIdentity() string { - if x != nil { - return x.StoreIdentity - } - return "" -} - -type DeliveryStatusReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeliveryStatusReply) Reset() { - *x = DeliveryStatusReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeliveryStatusReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeliveryStatusReply) ProtoMessage() {} - -func (x *DeliveryStatusReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeliveryStatusReply.ProtoReflect.Descriptor instead. -func (*DeliveryStatusReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{10} -} - -func (x *DeliveryStatusReply) GetStatus() int64 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *DeliveryStatusReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *DeliveryStatusReply) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *DeliveryStatusReply) GetTimeseq() int64 { - if x != nil { - return x.Timeseq - } - return 0 -} - -type IdentityStatusReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdentityStatusReply) Reset() { - *x = IdentityStatusReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdentityStatusReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdentityStatusReply) ProtoMessage() {} - -func (x *IdentityStatusReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdentityStatusReply.ProtoReflect.Descriptor instead. -func (*IdentityStatusReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{11} -} - -func (x *IdentityStatusReply) GetCode() int32 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *IdentityStatusReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *IdentityStatusReply) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *IdentityStatusReply) GetTimeseq() int64 { - if x != nil { - return x.Timeseq - } - return 0 -} - -type OrderStatusReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` - Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *OrderStatusReply) Reset() { - *x = OrderStatusReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *OrderStatusReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderStatusReply) ProtoMessage() {} - -func (x *OrderStatusReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderStatusReply.ProtoReflect.Descriptor instead. -func (*OrderStatusReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{12} -} - -func (x *OrderStatusReply) GetCode() int32 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *OrderStatusReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *OrderStatusReply) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *OrderStatusReply) GetTimeseq() int64 { - if x != nil { - return x.Timeseq - } - return 0 -} - -func (x *OrderStatusReply) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -type DataStatusReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DataStatusReply) Reset() { - *x = DataStatusReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DataStatusReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DataStatusReply) ProtoMessage() {} - -func (x *DataStatusReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DataStatusReply.ProtoReflect.Descriptor instead. -func (*DataStatusReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{13} -} - -func (x *DataStatusReply) GetData() string { - if x != nil { - return x.Data - } - return "" -} - -func (x *DataStatusReply) GetTimeseq() int64 { - if x != nil { - return x.Timeseq - } - return 0 -} - -type StoreSerialRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - StoreIdentity string `protobuf:"bytes,1,opt,name=store_identity,proto3" json:"store_identity,omitempty"` - SerialId []string `protobuf:"bytes,2,rep,name=serial_id,proto3" json:"serial_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *StoreSerialRequest) Reset() { - *x = StoreSerialRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *StoreSerialRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StoreSerialRequest) ProtoMessage() {} - -func (x *StoreSerialRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StoreSerialRequest.ProtoReflect.Descriptor instead. -func (*StoreSerialRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{14} -} - -func (x *StoreSerialRequest) GetStoreIdentity() string { - if x != nil { - return x.StoreIdentity - } - return "" -} - -func (x *StoreSerialRequest) GetSerialId() []string { - if x != nil { - return x.SerialId - } - return nil -} - -// Cloud messages. -type IDRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IDRequest) Reset() { - *x = IDRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IDRequest) ProtoMessage() {} - -func (x *IDRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IDRequest.ProtoReflect.Descriptor instead. -func (*IDRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{15} -} - -func (x *IDRequest) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -type IDListRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IDListRequest) Reset() { - *x = IDListRequest{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IDListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IDListRequest) ProtoMessage() {} - -func (x *IDListRequest) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IDListRequest.ProtoReflect.Descriptor instead. -func (*IDListRequest) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{16} -} - -func (x *IDListRequest) GetIds() []uint64 { - if x != nil { - return x.Ids - } - return nil -} - -type StdIicuds struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - DeletedAt string `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *StdIicuds) Reset() { - *x = StdIicuds{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *StdIicuds) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StdIicuds) ProtoMessage() {} - -func (x *StdIicuds) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StdIicuds.ProtoReflect.Descriptor instead. -func (*StdIicuds) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{17} -} - -func (x *StdIicuds) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *StdIicuds) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -func (x *StdIicuds) GetUpdatedAt() string { - if x != nil { - return x.UpdatedAt - } - return "" -} - -func (x *StdIicuds) GetDeletedAt() string { - if x != nil { - return x.DeletedAt - } - return "" -} - -type StdPassport struct { - state protoimpl.MessageState `protogen:"open.v1"` - PassportId uint64 `protobuf:"varint,1,opt,name=passport_id,json=passportId,proto3" json:"passport_id,omitempty"` - PassportIdentity string `protobuf:"bytes,2,opt,name=passport_identity,json=passportIdentity,proto3" json:"passport_identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *StdPassport) Reset() { - *x = StdPassport{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *StdPassport) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StdPassport) ProtoMessage() {} - -func (x *StdPassport) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StdPassport.ProtoReflect.Descriptor instead. -func (*StdPassport) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{18} -} - -func (x *StdPassport) GetPassportId() uint64 { - if x != nil { - return x.PassportId - } - return 0 -} - -func (x *StdPassport) GetPassportIdentity() string { - if x != nil { - return x.PassportIdentity - } - return "" -} - -type CloudBase struct { - state protoimpl.MessageState `protogen:"open.v1"` - CloudId uint64 `protobuf:"varint,1,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"` - CloudIdentity string `protobuf:"bytes,2,opt,name=cloud_identity,json=cloudIdentity,proto3" json:"cloud_identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CloudBase) Reset() { - *x = CloudBase{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CloudBase) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudBase) ProtoMessage() {} - -func (x *CloudBase) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudBase.ProtoReflect.Descriptor instead. -func (*CloudBase) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{19} -} - -func (x *CloudBase) GetCloudId() uint64 { - if x != nil { - return x.CloudId - } - return 0 -} - -func (x *CloudBase) GetCloudIdentity() string { - if x != nil { - return x.CloudIdentity - } - return "" -} - -// CMS messages. -type CmsCategoryItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - SiteIdentity string `protobuf:"bytes,1,opt,name=site_identity,proto3" json:"site_identity,omitempty"` - Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - ParentId int64 `protobuf:"varint,4,opt,name=parent_id,proto3" json:"parent_id,omitempty"` - Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` - CoverPath string `protobuf:"bytes,6,opt,name=cover_path,proto3" json:"cover_path,omitempty"` - Intro string `protobuf:"bytes,7,opt,name=intro,proto3" json:"intro,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=created_at,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,proto3" json:"updated_at,omitempty"` - Child []*CmsCategoryItem `protobuf:"bytes,10,rep,name=child,proto3" json:"child,omitempty"` - CategoryKey string `protobuf:"bytes,11,opt,name=category_key,proto3" json:"category_key,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CmsCategoryItem) Reset() { - *x = CmsCategoryItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CmsCategoryItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CmsCategoryItem) ProtoMessage() {} - -func (x *CmsCategoryItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CmsCategoryItem.ProtoReflect.Descriptor instead. -func (*CmsCategoryItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{20} -} - -func (x *CmsCategoryItem) GetSiteIdentity() string { - if x != nil { - return x.SiteIdentity - } - return "" -} - -func (x *CmsCategoryItem) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *CmsCategoryItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *CmsCategoryItem) GetParentId() int64 { - if x != nil { - return x.ParentId - } - return 0 -} - -func (x *CmsCategoryItem) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CmsCategoryItem) GetCoverPath() string { - if x != nil { - return x.CoverPath - } - return "" -} - -func (x *CmsCategoryItem) GetIntro() string { - if x != nil { - return x.Intro - } - return "" -} - -func (x *CmsCategoryItem) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -func (x *CmsCategoryItem) GetUpdatedAt() string { - if x != nil { - return x.UpdatedAt - } - return "" -} - -func (x *CmsCategoryItem) GetChild() []*CmsCategoryItem { - if x != nil { - return x.Child - } - return nil -} - -func (x *CmsCategoryItem) GetCategoryKey() string { - if x != nil { - return x.CategoryKey - } - return "" -} - -type CmsTagsItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - CoverPath string `protobuf:"bytes,4,opt,name=cover_path,proto3" json:"cover_path,omitempty"` - Intro string `protobuf:"bytes,5,opt,name=intro,proto3" json:"intro,omitempty"` - CreatedAt string `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CmsTagsItem) Reset() { - *x = CmsTagsItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CmsTagsItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CmsTagsItem) ProtoMessage() {} - -func (x *CmsTagsItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CmsTagsItem.ProtoReflect.Descriptor instead. -func (*CmsTagsItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{21} -} - -func (x *CmsTagsItem) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *CmsTagsItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *CmsTagsItem) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CmsTagsItem) GetCoverPath() string { - if x != nil { - return x.CoverPath - } - return "" -} - -func (x *CmsTagsItem) GetIntro() string { - if x != nil { - return x.Intro - } - return "" -} - -func (x *CmsTagsItem) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -type CmsAccessoryItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - FilePath string `protobuf:"bytes,3,opt,name=file_path,proto3" json:"file_path,omitempty"` - CreatedAt string `protobuf:"bytes,4,opt,name=created_at,proto3" json:"created_at,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CmsAccessoryItem) Reset() { - *x = CmsAccessoryItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CmsAccessoryItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CmsAccessoryItem) ProtoMessage() {} - -func (x *CmsAccessoryItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[22] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CmsAccessoryItem.ProtoReflect.Descriptor instead. -func (*CmsAccessoryItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{22} -} - -func (x *CmsAccessoryItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *CmsAccessoryItem) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CmsAccessoryItem) GetFilePath() string { - if x != nil { - return x.FilePath - } - return "" -} - -func (x *CmsAccessoryItem) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -// Passport messages. -type VerifyStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` - EmailVerify int32 `protobuf:"varint,1,opt,name=email_verify,json=emailVerify,proto3" json:"email_verify,omitempty"` - PhoneVerify int32 `protobuf:"varint,2,opt,name=phone_verify,json=phoneVerify,proto3" json:"phone_verify,omitempty"` - FaceVerify int32 `protobuf:"varint,3,opt,name=face_verify,json=faceVerify,proto3" json:"face_verify,omitempty"` - DocumentVerify int32 `protobuf:"varint,4,opt,name=document_verify,json=documentVerify,proto3" json:"document_verify,omitempty"` - KycVerify int32 `protobuf:"varint,5,opt,name=kyc_verify,json=kycVerify,proto3" json:"kyc_verify,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *VerifyStatus) Reset() { - *x = VerifyStatus{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *VerifyStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyStatus) ProtoMessage() {} - -func (x *VerifyStatus) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[23] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyStatus.ProtoReflect.Descriptor instead. -func (*VerifyStatus) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{23} -} - -func (x *VerifyStatus) GetEmailVerify() int32 { - if x != nil { - return x.EmailVerify - } - return 0 -} - -func (x *VerifyStatus) GetPhoneVerify() int32 { - if x != nil { - return x.PhoneVerify - } - return 0 -} - -func (x *VerifyStatus) GetFaceVerify() int32 { - if x != nil { - return x.FaceVerify - } - return 0 -} - -func (x *VerifyStatus) GetDocumentVerify() int32 { - if x != nil { - return x.DocumentVerify - } - return 0 -} - -func (x *VerifyStatus) GetKycVerify() int32 { - if x != nil { - return x.KycVerify - } - return 0 -} - -// Market messages. -type MarketLoginReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - MarketIdentity string `protobuf:"bytes,3,opt,name=market_identity,proto3" json:"market_identity,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` - Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` - Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=created_at,proto3" json:"created_at,omitempty"` - MarketName string `protobuf:"bytes,9,opt,name=market_name,proto3" json:"market_name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MarketLoginReply) Reset() { - *x = MarketLoginReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MarketLoginReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketLoginReply) ProtoMessage() {} - -func (x *MarketLoginReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[24] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketLoginReply.ProtoReflect.Descriptor instead. -func (*MarketLoginReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{24} -} - -func (x *MarketLoginReply) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *MarketLoginReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *MarketLoginReply) GetMarketIdentity() string { - if x != nil { - return x.MarketIdentity - } - return "" -} - -func (x *MarketLoginReply) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MarketLoginReply) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -func (x *MarketLoginReply) GetRole() string { - if x != nil { - return x.Role - } - return "" -} - -func (x *MarketLoginReply) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *MarketLoginReply) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -func (x *MarketLoginReply) GetMarketName() string { - if x != nil { - return x.MarketName - } - return "" -} - -// Order messages. -type OrderSummaryItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - OrderNo string `protobuf:"bytes,2,opt,name=order_no,proto3" json:"order_no,omitempty"` - PartnerId int64 `protobuf:"varint,3,opt,name=partner_id,proto3" json:"partner_id,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - TotalPrice int64 `protobuf:"varint,7,opt,name=total_price,proto3" json:"total_price,omitempty"` - TransPrice int64 `protobuf:"varint,8,opt,name=trans_price,proto3" json:"trans_price,omitempty"` - RefundPrice int64 `protobuf:"varint,9,opt,name=refund_price,proto3" json:"refund_price,omitempty"` - LogisticsFee int64 `protobuf:"varint,11,opt,name=logistics_fee,proto3" json:"logistics_fee,omitempty"` - CouponAmount int64 `protobuf:"varint,12,opt,name=coupon_amount,proto3" json:"coupon_amount,omitempty"` - Remark string `protobuf:"bytes,13,opt,name=remark,proto3" json:"remark,omitempty"` - Status int32 `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"` - LogisticsNumber string `protobuf:"bytes,15,opt,name=logistics_number,proto3" json:"logistics_number,omitempty"` - AddressIdentity string `protobuf:"bytes,16,opt,name=address_identity,proto3" json:"address_identity,omitempty"` - County string `protobuf:"bytes,17,opt,name=county,proto3" json:"county,omitempty"` - Province string `protobuf:"bytes,18,opt,name=province,proto3" json:"province,omitempty"` - City string `protobuf:"bytes,19,opt,name=city,proto3" json:"city,omitempty"` - Area string `protobuf:"bytes,20,opt,name=area,proto3" json:"area,omitempty"` - Address string `protobuf:"bytes,21,opt,name=address,proto3" json:"address,omitempty"` - Contact string `protobuf:"bytes,22,opt,name=contact,proto3" json:"contact,omitempty"` - Phone string `protobuf:"bytes,23,opt,name=phone,proto3" json:"phone,omitempty"` - DeliveryTime string `protobuf:"bytes,24,opt,name=delivery_time,proto3" json:"delivery_time,omitempty"` - DeliveryIdentity string `protobuf:"bytes,25,opt,name=delivery_identity,proto3" json:"delivery_identity,omitempty"` - PayType int32 `protobuf:"varint,26,opt,name=pay_type,proto3" json:"pay_type,omitempty"` - PayAmount int64 `protobuf:"varint,27,opt,name=pay_amount,proto3" json:"pay_amount,omitempty"` - PayTradeNo string `protobuf:"bytes,28,opt,name=pay_trade_no,proto3" json:"pay_trade_no,omitempty"` - PayTime string `protobuf:"bytes,29,opt,name=pay_time,proto3" json:"pay_time,omitempty"` - PayRemark string `protobuf:"bytes,30,opt,name=pay_remark,proto3" json:"pay_remark,omitempty"` - Created string `protobuf:"bytes,31,opt,name=created,proto3" json:"created,omitempty"` - Updated string `protobuf:"bytes,32,opt,name=updated,proto3" json:"updated,omitempty"` - Details []*OrderDetails `protobuf:"bytes,33,rep,name=details,proto3" json:"details,omitempty"` - Addr string `protobuf:"bytes,34,opt,name=addr,proto3" json:"addr,omitempty"` - CarIdentity string `protobuf:"bytes,35,opt,name=car_identity,proto3" json:"car_identity,omitempty"` - DeliveryAddress string `protobuf:"bytes,36,opt,name=delivery_address,proto3" json:"delivery_address,omitempty"` - Brand string `protobuf:"bytes,37,opt,name=brand,proto3" json:"brand,omitempty"` - Version string `protobuf:"bytes,38,opt,name=version,proto3" json:"version,omitempty"` - LicenseNumber string `protobuf:"bytes,39,opt,name=license_number,proto3" json:"license_number,omitempty"` - MemberName string `protobuf:"bytes,40,opt,name=member_name,proto3" json:"member_name,omitempty"` - MemberPhone string `protobuf:"bytes,41,opt,name=member_phone,proto3" json:"member_phone,omitempty"` - Approve int32 `protobuf:"varint,42,opt,name=approve,proto3" json:"approve,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *OrderSummaryItem) Reset() { - *x = OrderSummaryItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *OrderSummaryItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderSummaryItem) ProtoMessage() {} - -func (x *OrderSummaryItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[25] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderSummaryItem.ProtoReflect.Descriptor instead. -func (*OrderSummaryItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{25} -} - -func (x *OrderSummaryItem) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *OrderSummaryItem) GetOrderNo() string { - if x != nil { - return x.OrderNo - } - return "" -} - -func (x *OrderSummaryItem) GetPartnerId() int64 { - if x != nil { - return x.PartnerId - } - return 0 -} - -func (x *OrderSummaryItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *OrderSummaryItem) GetTotalPrice() int64 { - if x != nil { - return x.TotalPrice - } - return 0 -} - -func (x *OrderSummaryItem) GetTransPrice() int64 { - if x != nil { - return x.TransPrice - } - return 0 -} - -func (x *OrderSummaryItem) GetRefundPrice() int64 { - if x != nil { - return x.RefundPrice - } - return 0 -} - -func (x *OrderSummaryItem) GetLogisticsFee() int64 { - if x != nil { - return x.LogisticsFee - } - return 0 -} - -func (x *OrderSummaryItem) GetCouponAmount() int64 { - if x != nil { - return x.CouponAmount - } - return 0 -} - -func (x *OrderSummaryItem) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *OrderSummaryItem) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *OrderSummaryItem) GetLogisticsNumber() string { - if x != nil { - return x.LogisticsNumber - } - return "" -} - -func (x *OrderSummaryItem) GetAddressIdentity() string { - if x != nil { - return x.AddressIdentity - } - return "" -} - -func (x *OrderSummaryItem) GetCounty() string { - if x != nil { - return x.County - } - return "" -} - -func (x *OrderSummaryItem) GetProvince() string { - if x != nil { - return x.Province - } - return "" -} - -func (x *OrderSummaryItem) GetCity() string { - if x != nil { - return x.City - } - return "" -} - -func (x *OrderSummaryItem) GetArea() string { - if x != nil { - return x.Area - } - return "" -} - -func (x *OrderSummaryItem) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *OrderSummaryItem) GetContact() string { - if x != nil { - return x.Contact - } - return "" -} - -func (x *OrderSummaryItem) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *OrderSummaryItem) GetDeliveryTime() string { - if x != nil { - return x.DeliveryTime - } - return "" -} - -func (x *OrderSummaryItem) GetDeliveryIdentity() string { - if x != nil { - return x.DeliveryIdentity - } - return "" -} - -func (x *OrderSummaryItem) GetPayType() int32 { - if x != nil { - return x.PayType - } - return 0 -} - -func (x *OrderSummaryItem) GetPayAmount() int64 { - if x != nil { - return x.PayAmount - } - return 0 -} - -func (x *OrderSummaryItem) GetPayTradeNo() string { - if x != nil { - return x.PayTradeNo - } - return "" -} - -func (x *OrderSummaryItem) GetPayTime() string { - if x != nil { - return x.PayTime - } - return "" -} - -func (x *OrderSummaryItem) GetPayRemark() string { - if x != nil { - return x.PayRemark - } - return "" -} - -func (x *OrderSummaryItem) GetCreated() string { - if x != nil { - return x.Created - } - return "" -} - -func (x *OrderSummaryItem) GetUpdated() string { - if x != nil { - return x.Updated - } - return "" -} - -func (x *OrderSummaryItem) GetDetails() []*OrderDetails { - if x != nil { - return x.Details - } - return nil -} - -func (x *OrderSummaryItem) GetAddr() string { - if x != nil { - return x.Addr - } - return "" -} - -func (x *OrderSummaryItem) GetCarIdentity() string { - if x != nil { - return x.CarIdentity - } - return "" -} - -func (x *OrderSummaryItem) GetDeliveryAddress() string { - if x != nil { - return x.DeliveryAddress - } - return "" -} - -func (x *OrderSummaryItem) GetBrand() string { - if x != nil { - return x.Brand - } - return "" -} - -func (x *OrderSummaryItem) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *OrderSummaryItem) GetLicenseNumber() string { - if x != nil { - return x.LicenseNumber - } - return "" -} - -func (x *OrderSummaryItem) GetMemberName() string { - if x != nil { - return x.MemberName - } - return "" -} - -func (x *OrderSummaryItem) GetMemberPhone() string { - if x != nil { - return x.MemberPhone - } - return "" -} - -func (x *OrderSummaryItem) GetApprove() int32 { - if x != nil { - return x.Approve - } - return 0 -} - -type OrderDetails struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - ProductId int64 `protobuf:"varint,2,opt,name=product_id,proto3" json:"product_id,omitempty"` - SpecNo string `protobuf:"bytes,3,opt,name=spec_no,proto3" json:"spec_no,omitempty"` - Spec string `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - Type int64 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` - Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` - CoverImage string `protobuf:"bytes,7,opt,name=cover_image,proto3" json:"cover_image,omitempty"` - SalesPrice int64 `protobuf:"varint,8,opt,name=sales_price,proto3" json:"sales_price,omitempty"` - ProductArgs string `protobuf:"bytes,9,opt,name=product_args,proto3" json:"product_args,omitempty"` - Number int64 `protobuf:"varint,10,opt,name=number,proto3" json:"number,omitempty"` - UnitPrice int64 `protobuf:"varint,11,opt,name=unit_price,proto3" json:"unit_price,omitempty"` - SpecId int64 `protobuf:"varint,12,opt,name=spec_id,proto3" json:"spec_id,omitempty"` - ProductIdentity string `protobuf:"bytes,13,opt,name=product_identity,proto3" json:"product_identity,omitempty"` - GasTypes int64 `protobuf:"varint,14,opt,name=gas_types,proto3" json:"gas_types,omitempty"` - TotalPrice int64 `protobuf:"varint,15,opt,name=total_price,proto3" json:"total_price,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *OrderDetails) Reset() { - *x = OrderDetails{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *OrderDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderDetails) ProtoMessage() {} - -func (x *OrderDetails) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[26] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderDetails.ProtoReflect.Descriptor instead. -func (*OrderDetails) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{26} -} - -func (x *OrderDetails) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *OrderDetails) GetProductId() int64 { - if x != nil { - return x.ProductId - } - return 0 -} - -func (x *OrderDetails) GetSpecNo() string { - if x != nil { - return x.SpecNo - } - return "" -} - -func (x *OrderDetails) GetSpec() string { - if x != nil { - return x.Spec - } - return "" -} - -func (x *OrderDetails) GetType() int64 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *OrderDetails) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *OrderDetails) GetCoverImage() string { - if x != nil { - return x.CoverImage - } - return "" -} - -func (x *OrderDetails) GetSalesPrice() int64 { - if x != nil { - return x.SalesPrice - } - return 0 -} - -func (x *OrderDetails) GetProductArgs() string { - if x != nil { - return x.ProductArgs - } - return "" -} - -func (x *OrderDetails) GetNumber() int64 { - if x != nil { - return x.Number - } - return 0 -} - -func (x *OrderDetails) GetUnitPrice() int64 { - if x != nil { - return x.UnitPrice - } - return 0 -} - -func (x *OrderDetails) GetSpecId() int64 { - if x != nil { - return x.SpecId - } - return 0 -} - -func (x *OrderDetails) GetProductIdentity() string { - if x != nil { - return x.ProductIdentity - } - return "" -} - -func (x *OrderDetails) GetGasTypes() int64 { - if x != nil { - return x.GasTypes - } - return 0 -} - -func (x *OrderDetails) GetTotalPrice() int64 { - if x != nil { - return x.TotalPrice - } - return 0 -} - -// Social feed messages. -type FeedPostListReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*FeedPostItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Cnt int64 `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FeedPostListReply) Reset() { - *x = FeedPostListReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FeedPostListReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeedPostListReply) ProtoMessage() {} - -func (x *FeedPostListReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[27] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeedPostListReply.ProtoReflect.Descriptor instead. -func (*FeedPostListReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{27} -} - -func (x *FeedPostListReply) GetList() []*FeedPostItem { - if x != nil { - return x.List - } - return nil -} - -func (x *FeedPostListReply) GetCnt() int64 { - if x != nil { - return x.Cnt - } - return 0 -} - -type FeedPostItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - FeedId int64 `protobuf:"varint,3,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` - FeedIdentity string `protobuf:"bytes,4,opt,name=feed_identity,json=feedIdentity,proto3" json:"feed_identity,omitempty"` - IsOpen bool `protobuf:"varint,5,opt,name=is_open,json=isOpen,proto3" json:"is_open,omitempty"` - CntUnlike int64 `protobuf:"varint,6,opt,name=cnt_unlike,json=cntUnlike,proto3" json:"cnt_unlike,omitempty"` - CntComment int64 `protobuf:"varint,7,opt,name=cnt_comment,json=cntComment,proto3" json:"cnt_comment,omitempty"` - CntLike int64 `protobuf:"varint,8,opt,name=cnt_like,json=cntLike,proto3" json:"cnt_like,omitempty"` - Attachs []*FeedAttachItem `protobuf:"bytes,9,rep,name=attachs,proto3" json:"attachs,omitempty"` - Tags []*FeedTagItem `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FeedPostItem) Reset() { - *x = FeedPostItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FeedPostItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeedPostItem) ProtoMessage() {} - -func (x *FeedPostItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[28] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeedPostItem.ProtoReflect.Descriptor instead. -func (*FeedPostItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{28} -} - -func (x *FeedPostItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *FeedPostItem) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *FeedPostItem) GetFeedId() int64 { - if x != nil { - return x.FeedId - } - return 0 -} - -func (x *FeedPostItem) GetFeedIdentity() string { - if x != nil { - return x.FeedIdentity - } - return "" -} - -func (x *FeedPostItem) GetIsOpen() bool { - if x != nil { - return x.IsOpen - } - return false -} - -func (x *FeedPostItem) GetCntUnlike() int64 { - if x != nil { - return x.CntUnlike - } - return 0 -} - -func (x *FeedPostItem) GetCntComment() int64 { - if x != nil { - return x.CntComment - } - return 0 -} - -func (x *FeedPostItem) GetCntLike() int64 { - if x != nil { - return x.CntLike - } - return 0 -} - -func (x *FeedPostItem) GetAttachs() []*FeedAttachItem { - if x != nil { - return x.Attachs - } - return nil -} - -func (x *FeedPostItem) GetTags() []*FeedTagItem { - if x != nil { - return x.Tags - } - return nil -} - -type FeedAttachItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - AttachType string `protobuf:"bytes,2,opt,name=attach_type,json=attachType,proto3" json:"attach_type,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FeedAttachItem) Reset() { - *x = FeedAttachItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FeedAttachItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeedAttachItem) ProtoMessage() {} - -func (x *FeedAttachItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[29] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeedAttachItem.ProtoReflect.Descriptor instead. -func (*FeedAttachItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{29} -} - -func (x *FeedAttachItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *FeedAttachItem) GetAttachType() string { - if x != nil { - return x.AttachType - } - return "" -} - -func (x *FeedAttachItem) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -type FeedTagItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FeedTagItem) Reset() { - *x = FeedTagItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FeedTagItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeedTagItem) ProtoMessage() {} - -func (x *FeedTagItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[30] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeedTagItem.ProtoReflect.Descriptor instead. -func (*FeedTagItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{30} -} - -func (x *FeedTagItem) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *FeedTagItem) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -// Social group messages. -type GroupPostListReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*GroupPostItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Cnt int64 `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GroupPostListReply) Reset() { - *x = GroupPostListReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GroupPostListReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupPostListReply) ProtoMessage() {} - -func (x *GroupPostListReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[31] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupPostListReply.ProtoReflect.Descriptor instead. -func (*GroupPostListReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{31} -} - -func (x *GroupPostListReply) GetList() []*GroupPostItem { - if x != nil { - return x.List - } - return nil -} - -func (x *GroupPostListReply) GetCnt() int64 { - if x != nil { - return x.Cnt - } - return 0 -} - -type GroupPostItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - PassportId int64 `protobuf:"varint,3,opt,name=passport_id,json=passportId,proto3" json:"passport_id,omitempty"` - PassportIdentity string `protobuf:"bytes,4,opt,name=passport_identity,json=passportIdentity,proto3" json:"passport_identity,omitempty"` - IsOpen bool `protobuf:"varint,5,opt,name=is_open,json=isOpen,proto3" json:"is_open,omitempty"` - CntUnlike int64 `protobuf:"varint,6,opt,name=cnt_unlike,json=cntUnlike,proto3" json:"cnt_unlike,omitempty"` - CntComment int64 `protobuf:"varint,7,opt,name=cnt_comment,json=cntComment,proto3" json:"cnt_comment,omitempty"` - CntLike int64 `protobuf:"varint,8,opt,name=cnt_like,json=cntLike,proto3" json:"cnt_like,omitempty"` - Attachs []*GroupAttachItem `protobuf:"bytes,9,rep,name=attachs,proto3" json:"attachs,omitempty"` - Tags []*GroupTagItem `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GroupPostItem) Reset() { - *x = GroupPostItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GroupPostItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupPostItem) ProtoMessage() {} - -func (x *GroupPostItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[32] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupPostItem.ProtoReflect.Descriptor instead. -func (*GroupPostItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{32} -} - -func (x *GroupPostItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *GroupPostItem) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *GroupPostItem) GetPassportId() int64 { - if x != nil { - return x.PassportId - } - return 0 -} - -func (x *GroupPostItem) GetPassportIdentity() string { - if x != nil { - return x.PassportIdentity - } - return "" -} - -func (x *GroupPostItem) GetIsOpen() bool { - if x != nil { - return x.IsOpen - } - return false -} - -func (x *GroupPostItem) GetCntUnlike() int64 { - if x != nil { - return x.CntUnlike - } - return 0 -} - -func (x *GroupPostItem) GetCntComment() int64 { - if x != nil { - return x.CntComment - } - return 0 -} - -func (x *GroupPostItem) GetCntLike() int64 { - if x != nil { - return x.CntLike - } - return 0 -} - -func (x *GroupPostItem) GetAttachs() []*GroupAttachItem { - if x != nil { - return x.Attachs - } - return nil -} - -func (x *GroupPostItem) GetTags() []*GroupTagItem { - if x != nil { - return x.Tags - } - return nil -} - -type GroupAttachItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - AttachType string `protobuf:"bytes,2,opt,name=attach_type,json=attachType,proto3" json:"attach_type,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GroupAttachItem) Reset() { - *x = GroupAttachItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GroupAttachItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupAttachItem) ProtoMessage() {} - -func (x *GroupAttachItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[33] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupAttachItem.ProtoReflect.Descriptor instead. -func (*GroupAttachItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{33} -} - -func (x *GroupAttachItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *GroupAttachItem) GetAttachType() string { - if x != nil { - return x.AttachType - } - return "" -} - -func (x *GroupAttachItem) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -type GroupTagItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GroupTagItem) Reset() { - *x = GroupTagItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GroupTagItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupTagItem) ProtoMessage() {} - -func (x *GroupTagItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[34] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupTagItem.ProtoReflect.Descriptor instead. -func (*GroupTagItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{34} -} - -func (x *GroupTagItem) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *GroupTagItem) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -// Social relation messages. -type RelationItem struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` - RemarkName string `protobuf:"bytes,3,opt,name=remark_name,json=remarkName,proto3" json:"remark_name,omitempty"` - Popular int32 `protobuf:"varint,4,opt,name=popular,proto3" json:"popular,omitempty"` - Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` - Birthday string `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"` - Sex int32 `protobuf:"varint,7,opt,name=sex,proto3" json:"sex,omitempty"` - Province int32 `protobuf:"varint,8,opt,name=province,proto3" json:"province,omitempty"` - City int32 `protobuf:"varint,9,opt,name=city,proto3" json:"city,omitempty"` - Area int32 `protobuf:"varint,10,opt,name=area,proto3" json:"area,omitempty"` - Sign string `protobuf:"bytes,11,opt,name=sign,proto3" json:"sign,omitempty"` - Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"` - ForeignStatus int32 `protobuf:"varint,13,opt,name=foreign_status,json=foreignStatus,proto3" json:"foreign_status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RelationItem) Reset() { - *x = RelationItem{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RelationItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelationItem) ProtoMessage() {} - -func (x *RelationItem) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[35] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelationItem.ProtoReflect.Descriptor instead. -func (*RelationItem) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{35} -} - -func (x *RelationItem) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -func (x *RelationItem) GetNickname() string { - if x != nil { - return x.Nickname - } - return "" -} - -func (x *RelationItem) GetRemarkName() string { - if x != nil { - return x.RemarkName - } - return "" -} - -func (x *RelationItem) GetPopular() int32 { - if x != nil { - return x.Popular - } - return 0 -} - -func (x *RelationItem) GetAvatar() string { - if x != nil { - return x.Avatar - } - return "" -} - -func (x *RelationItem) GetBirthday() string { - if x != nil { - return x.Birthday - } - return "" -} - -func (x *RelationItem) GetSex() int32 { - if x != nil { - return x.Sex - } - return 0 -} - -func (x *RelationItem) GetProvince() int32 { - if x != nil { - return x.Province - } - return 0 -} - -func (x *RelationItem) GetCity() int32 { - if x != nil { - return x.City - } - return 0 -} - -func (x *RelationItem) GetArea() int32 { - if x != nil { - return x.Area - } - return 0 -} - -func (x *RelationItem) GetSign() string { - if x != nil { - return x.Sign - } - return "" -} - -func (x *RelationItem) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -func (x *RelationItem) GetForeignStatus() int32 { - if x != nil { - return x.ForeignStatus - } - return 0 -} - -type FetchRelationItemReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Data []*RelationItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FetchRelationItemReply) Reset() { - *x = FetchRelationItemReply{} - mi := &file_module_base_ads_proto_const_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FetchRelationItemReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchRelationItemReply) ProtoMessage() {} - -func (x *FetchRelationItemReply) ProtoReflect() protoreflect.Message { - mi := &file_module_base_ads_proto_const_proto_msgTypes[36] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchRelationItemReply.ProtoReflect.Descriptor instead. -func (*FetchRelationItemReply) Descriptor() ([]byte, []int) { - return file_module_base_ads_proto_const_proto_rawDescGZIP(), []int{36} -} - -func (x *FetchRelationItemReply) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *FetchRelationItemReply) GetData() []*RelationItem { - if x != nil { - return x.Data - } - return nil -} - -var File_module_base_ads_proto_const_proto protoreflect.FileDescriptor - -const file_module_base_ads_proto_const_proto_rawDesc = "" + - "\n" + - "!module/base/ads/proto/const.proto\x12\x0fbase_ads_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\x12A\n" + - "\x06params\x18\x03 \x03(\v2).base_ads_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" + - "\fIdentRequest\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" + - "\x0eVersionRequest\x12\x18\n" + - "\aversion\x18\x01 \x01(\x03R\aversion\")\n" + - "\rSearchRequest\x12\x18\n" + - "\akeyword\x18\x01 \x01(\tR\akeyword\"o\n" + - "\vStatusReply\x12\x12\n" + - "\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage\x12\x18\n" + - "\adetails\x18\x03 \x01(\tR\adetails\x12\x18\n" + - "\atimeseq\x18\x04 \x01(\x03R\atimeseq\"d\n" + - "\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\"\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\x12E\n" + - "\x06params\x18\x03 \x03(\v2-.base_ads_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" + - "categoryId\x12\x12\n" + - "\x04sort\x18\a \x01(\tR\x04sort\x12\x1c\n" + - "\tmin_price\x18\b \x01(\x03R\tmin_price\x12\x1c\n" + - "\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\"\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\x12G\n" + - "\x06params\x18\x03 \x03(\v2/.base_ads_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" + - "\aapprove\x18\a \x01(\x05R\aapprove\x1a9\n" + - "\vParamsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb0\x01\n" + - "\x11OrderIdentRequest\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" + - "\x06reason\x18\x03 \x01(\tR\x06reason\x12\x18\n" + - "\aapprove\x18\x04 \x01(\x05R\aapprove\x12\x16\n" + - "\x06agency\x18\x05 \x01(\tR\x06agency\x12%\n" + - "\x0estore_identity\x18\x06 \x01(\tR\rstoreIdentity\"}\n" + - "\x13DeliveryStatusReply\x12\x16\n" + - "\x06status\x18\x01 \x01(\x03R\x06status\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" + - "\atimeseq\x18\x04 \x01(\x03R\atimeseq\"y\n" + - "\x13IdentityStatusReply\x12\x12\n" + - "\x04code\x18\x01 \x01(\x05R\x04code\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" + - "\atimeseq\x18\x04 \x01(\x03R\atimeseq\"\x8e\x01\n" + - "\x10OrderStatusReply\x12\x12\n" + - "\x04code\x18\x01 \x01(\x05R\x04code\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" + - "\atimeseq\x18\x04 \x01(\x03R\atimeseq\x12\x16\n" + - "\x06reason\x18\x05 \x01(\tR\x06reason\"?\n" + - "\x0fDataStatusReply\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + - "\atimeseq\x18\x02 \x01(\x03R\atimeseq\"Z\n" + - "\x12StoreSerialRequest\x12&\n" + - "\x0estore_identity\x18\x01 \x01(\tR\x0estore_identity\x12\x1c\n" + - "\tserial_id\x18\x02 \x03(\tR\tserial_id\"\x1b\n" + - "\tIDRequest\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x04R\x02id\"!\n" + - "\rIDListRequest\x12\x10\n" + - "\x03ids\x18\x01 \x03(\x04R\x03ids\"x\n" + - "\tStdIicuds\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x04R\x02id\x12\x1d\n" + - "\n" + - "created_at\x18\x02 \x01(\tR\tcreatedAt\x12\x1d\n" + - "\n" + - "updated_at\x18\x03 \x01(\tR\tupdatedAt\x12\x1d\n" + - "\n" + - "deleted_at\x18\x04 \x01(\tR\tdeletedAt\"[\n" + - "\vStdPassport\x12\x1f\n" + - "\vpassport_id\x18\x01 \x01(\x04R\n" + - "passportId\x12+\n" + - "\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\"\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" + - "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1c\n" + - "\tparent_id\x18\x04 \x01(\x03R\tparent_id\x12\x14\n" + - "\x05title\x18\x05 \x01(\tR\x05title\x12\x1e\n" + - "\n" + - "cover_path\x18\x06 \x01(\tR\n" + - "cover_path\x12\x14\n" + - "\x05intro\x18\a \x01(\tR\x05intro\x12\x1e\n" + - "\n" + - "created_at\x18\b \x01(\tR\n" + - "created_at\x12\x1e\n" + - "\n" + - "updated_at\x18\t \x01(\tR\n" + - "updated_at\x126\n" + - "\x05child\x18\n" + - " \x03(\v2 .base_ads_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" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" + - "\x05title\x18\x03 \x01(\tR\x05title\x12\x1e\n" + - "\n" + - "cover_path\x18\x04 \x01(\tR\n" + - "cover_path\x12\x14\n" + - "\x05intro\x18\x05 \x01(\tR\x05intro\x12\x1e\n" + - "\n" + - "created_at\x18\x06 \x01(\tR\n" + - "created_at\"\x82\x01\n" + - "\x10CmsAccessoryItem\x12\x1a\n" + - "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" + - "\x05title\x18\x02 \x01(\tR\x05title\x12\x1c\n" + - "\tfile_path\x18\x03 \x01(\tR\tfile_path\x12\x1e\n" + - "\n" + - "created_at\x18\x04 \x01(\tR\n" + - "created_at\"\xbd\x01\n" + - "\fVerifyStatus\x12!\n" + - "\femail_verify\x18\x01 \x01(\x05R\vemailVerify\x12!\n" + - "\fphone_verify\x18\x02 \x01(\x05R\vphoneVerify\x12\x1f\n" + - "\vface_verify\x18\x03 \x01(\x05R\n" + - "faceVerify\x12'\n" + - "\x0fdocument_verify\x18\x04 \x01(\x05R\x0edocumentVerify\x12\x1d\n" + - "\n" + - "kyc_verify\x18\x05 \x01(\x05R\tkycVerify\"\x8a\x02\n" + - "\x10MarketLoginReply\x12\x14\n" + - "\x05token\x18\x01 \x01(\tR\x05token\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12(\n" + - "\x0fmarket_identity\x18\x03 \x01(\tR\x0fmarket_identity\x12\x12\n" + - "\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n" + - "\aaccount\x18\x05 \x01(\tR\aaccount\x12\x12\n" + - "\x04role\x18\x06 \x01(\tR\x04role\x12\x16\n" + - "\x06status\x18\a \x01(\x05R\x06status\x12\x1e\n" + - "\n" + - "created_at\x18\b \x01(\tR\n" + - "created_at\x12 \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" + - "\n" + - "partner_id\x18\x03 \x01(\x03R\n" + - "partner_id\x12\x1a\n" + - "\bidentity\x18\x04 \x01(\tR\bidentity\x12 \n" + - "\vtotal_price\x18\a \x01(\x03R\vtotal_price\x12 \n" + - "\vtrans_price\x18\b \x01(\x03R\vtrans_price\x12\"\n" + - "\frefund_price\x18\t \x01(\x03R\frefund_price\x12$\n" + - "\rlogistics_fee\x18\v \x01(\x03R\rlogistics_fee\x12$\n" + - "\rcoupon_amount\x18\f \x01(\x03R\rcoupon_amount\x12\x16\n" + - "\x06remark\x18\r \x01(\tR\x06remark\x12\x16\n" + - "\x06status\x18\x0e \x01(\x05R\x06status\x12*\n" + - "\x10logistics_number\x18\x0f \x01(\tR\x10logistics_number\x12*\n" + - "\x10address_identity\x18\x10 \x01(\tR\x10address_identity\x12\x16\n" + - "\x06county\x18\x11 \x01(\tR\x06county\x12\x1a\n" + - "\bprovince\x18\x12 \x01(\tR\bprovince\x12\x12\n" + - "\x04city\x18\x13 \x01(\tR\x04city\x12\x12\n" + - "\x04area\x18\x14 \x01(\tR\x04area\x12\x18\n" + - "\aaddress\x18\x15 \x01(\tR\aaddress\x12\x18\n" + - "\acontact\x18\x16 \x01(\tR\acontact\x12\x14\n" + - "\x05phone\x18\x17 \x01(\tR\x05phone\x12$\n" + - "\rdelivery_time\x18\x18 \x01(\tR\rdelivery_time\x12,\n" + - "\x11delivery_identity\x18\x19 \x01(\tR\x11delivery_identity\x12\x1a\n" + - "\bpay_type\x18\x1a \x01(\x05R\bpay_type\x12\x1e\n" + - "\n" + - "pay_amount\x18\x1b \x01(\x03R\n" + - "pay_amount\x12\"\n" + - "\fpay_trade_no\x18\x1c \x01(\tR\fpay_trade_no\x12\x1a\n" + - "\bpay_time\x18\x1d \x01(\tR\bpay_time\x12\x1e\n" + - "\n" + - "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\x127\n" + - "\adetails\x18! \x03(\v2\x1d.base_ads_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" + - "\x05brand\x18% \x01(\tR\x05brand\x12\x18\n" + - "\aversion\x18& \x01(\tR\aversion\x12&\n" + - "\x0elicense_number\x18' \x01(\tR\x0elicense_number\x12 \n" + - "\vmember_name\x18( \x01(\tR\vmember_name\x12\"\n" + - "\fmember_phone\x18) \x01(\tR\fmember_phone\x12\x18\n" + - "\aapprove\x18* \x01(\x05R\aapprove\"\xbc\x03\n" + - "\fOrderDetails\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1e\n" + - "\n" + - "product_id\x18\x02 \x01(\x03R\n" + - "product_id\x12\x18\n" + - "\aspec_no\x18\x03 \x01(\tR\aspec_no\x12\x12\n" + - "\x04spec\x18\x04 \x01(\tR\x04spec\x12\x12\n" + - "\x04type\x18\x05 \x01(\x03R\x04type\x12\x14\n" + - "\x05title\x18\x06 \x01(\tR\x05title\x12 \n" + - "\vcover_image\x18\a \x01(\tR\vcover_image\x12 \n" + - "\vsales_price\x18\b \x01(\x03R\vsales_price\x12\"\n" + - "\fproduct_args\x18\t \x01(\tR\fproduct_args\x12\x16\n" + - "\x06number\x18\n" + - " \x01(\x03R\x06number\x12\x1e\n" + - "\n" + - "unit_price\x18\v \x01(\x03R\n" + - "unit_price\x12\x18\n" + - "\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\"X\n" + - "\x11FeedPostListReply\x121\n" + - "\x04list\x18\x01 \x03(\v2\x1d.base_ads_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" + - "\afeed_id\x18\x03 \x01(\x03R\x06feedId\x12#\n" + - "\rfeed_identity\x18\x04 \x01(\tR\ffeedIdentity\x12\x17\n" + - "\ais_open\x18\x05 \x01(\bR\x06isOpen\x12\x1d\n" + - "\n" + - "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\x129\n" + - "\aattachs\x18\t \x03(\v2\x1f.base_ads_blocks.FeedAttachItemR\aattachs\x120\n" + - "\x04tags\x18\n" + - " \x03(\v2\x1c.base_ads_blocks.FeedTagItemR\x04tags\"_\n" + - "\x0eFeedAttachItem\x12\x1a\n" + - "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" + - "\vattach_type\x18\x02 \x01(\tR\n" + - "attachType\x12\x10\n" + - "\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\"Z\n" + - "\x12GroupPostListReply\x122\n" + - "\x04list\x18\x01 \x03(\v2\x1e.base_ads_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" + - "\vpassport_id\x18\x03 \x01(\x03R\n" + - "passportId\x12+\n" + - "\x11passport_identity\x18\x04 \x01(\tR\x10passportIdentity\x12\x17\n" + - "\ais_open\x18\x05 \x01(\bR\x06isOpen\x12\x1d\n" + - "\n" + - "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\x12:\n" + - "\aattachs\x18\t \x03(\v2 .base_ads_blocks.GroupAttachItemR\aattachs\x121\n" + - "\x04tags\x18\n" + - " \x03(\v2\x1d.base_ads_blocks.GroupTagItemR\x04tags\"`\n" + - "\x0fGroupAttachItem\x12\x1a\n" + - "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" + - "\vattach_type\x18\x02 \x01(\tR\n" + - "attachType\x12\x10\n" + - "\x03url\x18\x03 \x01(\tR\x03url\":\n" + - "\fGroupTagItem\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" + - "\acontent\x18\x02 \x01(\tR\acontent\"\xda\x02\n" + - "\fRelationItem\x12\x1a\n" + - "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" + - "\bnickname\x18\x02 \x01(\tR\bnickname\x12\x1f\n" + - "\vremark_name\x18\x03 \x01(\tR\n" + - "remarkName\x12\x18\n" + - "\apopular\x18\x04 \x01(\x05R\apopular\x12\x16\n" + - "\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x1a\n" + - "\bbirthday\x18\x06 \x01(\tR\bbirthday\x12\x10\n" + - "\x03sex\x18\a \x01(\x05R\x03sex\x12\x1a\n" + - "\bprovince\x18\b \x01(\x05R\bprovince\x12\x12\n" + - "\x04city\x18\t \x01(\x05R\x04city\x12\x12\n" + - "\x04area\x18\n" + - " \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\"a\n" + - "\x16FetchRelationItemReply\x12\x14\n" + - "\x05total\x18\x01 \x01(\x03R\x05total\x121\n" + - "\x04data\x18\x02 \x03(\v2\x1d.base_ads_blocks.RelationItemR\x04dataB!Z\x1fbsm/full/module/base/ads/pb;adsb\x06proto3" - -var ( - file_module_base_ads_proto_const_proto_rawDescOnce sync.Once - file_module_base_ads_proto_const_proto_rawDescData []byte -) - -func file_module_base_ads_proto_const_proto_rawDescGZIP() []byte { - file_module_base_ads_proto_const_proto_rawDescOnce.Do(func() { - file_module_base_ads_proto_const_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_ads_proto_const_proto_rawDesc), len(file_module_base_ads_proto_const_proto_rawDesc))) - }) - return file_module_base_ads_proto_const_proto_rawDescData -} - -var file_module_base_ads_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40) -var file_module_base_ads_proto_const_proto_goTypes = []any{ - (*Empty)(nil), // 0: base_ads_blocks.Empty - (*FetchRequest)(nil), // 1: base_ads_blocks.FetchRequest - (*IdentRequest)(nil), // 2: base_ads_blocks.IdentRequest - (*VersionRequest)(nil), // 3: base_ads_blocks.VersionRequest - (*SearchRequest)(nil), // 4: base_ads_blocks.SearchRequest - (*StatusReply)(nil), // 5: base_ads_blocks.StatusReply - (*CmsSearchRequest)(nil), // 6: base_ads_blocks.CmsSearchRequest - (*MallFetchRequest)(nil), // 7: base_ads_blocks.MallFetchRequest - (*MarketFetchRequest)(nil), // 8: base_ads_blocks.MarketFetchRequest - (*OrderIdentRequest)(nil), // 9: base_ads_blocks.OrderIdentRequest - (*DeliveryStatusReply)(nil), // 10: base_ads_blocks.DeliveryStatusReply - (*IdentityStatusReply)(nil), // 11: base_ads_blocks.IdentityStatusReply - (*OrderStatusReply)(nil), // 12: base_ads_blocks.OrderStatusReply - (*DataStatusReply)(nil), // 13: base_ads_blocks.DataStatusReply - (*StoreSerialRequest)(nil), // 14: base_ads_blocks.StoreSerialRequest - (*IDRequest)(nil), // 15: base_ads_blocks.IDRequest - (*IDListRequest)(nil), // 16: base_ads_blocks.IDListRequest - (*StdIicuds)(nil), // 17: base_ads_blocks.StdIicuds - (*StdPassport)(nil), // 18: base_ads_blocks.StdPassport - (*CloudBase)(nil), // 19: base_ads_blocks.CloudBase - (*CmsCategoryItem)(nil), // 20: base_ads_blocks.CmsCategoryItem - (*CmsTagsItem)(nil), // 21: base_ads_blocks.CmsTagsItem - (*CmsAccessoryItem)(nil), // 22: base_ads_blocks.CmsAccessoryItem - (*VerifyStatus)(nil), // 23: base_ads_blocks.VerifyStatus - (*MarketLoginReply)(nil), // 24: base_ads_blocks.MarketLoginReply - (*OrderSummaryItem)(nil), // 25: base_ads_blocks.OrderSummaryItem - (*OrderDetails)(nil), // 26: base_ads_blocks.OrderDetails - (*FeedPostListReply)(nil), // 27: base_ads_blocks.FeedPostListReply - (*FeedPostItem)(nil), // 28: base_ads_blocks.FeedPostItem - (*FeedAttachItem)(nil), // 29: base_ads_blocks.FeedAttachItem - (*FeedTagItem)(nil), // 30: base_ads_blocks.FeedTagItem - (*GroupPostListReply)(nil), // 31: base_ads_blocks.GroupPostListReply - (*GroupPostItem)(nil), // 32: base_ads_blocks.GroupPostItem - (*GroupAttachItem)(nil), // 33: base_ads_blocks.GroupAttachItem - (*GroupTagItem)(nil), // 34: base_ads_blocks.GroupTagItem - (*RelationItem)(nil), // 35: base_ads_blocks.RelationItem - (*FetchRelationItemReply)(nil), // 36: base_ads_blocks.FetchRelationItemReply - nil, // 37: base_ads_blocks.FetchRequest.ParamsEntry - nil, // 38: base_ads_blocks.MallFetchRequest.ParamsEntry - nil, // 39: base_ads_blocks.MarketFetchRequest.ParamsEntry -} -var file_module_base_ads_proto_const_proto_depIdxs = []int32{ - 37, // 0: base_ads_blocks.FetchRequest.params:type_name -> base_ads_blocks.FetchRequest.ParamsEntry - 38, // 1: base_ads_blocks.MallFetchRequest.params:type_name -> base_ads_blocks.MallFetchRequest.ParamsEntry - 39, // 2: base_ads_blocks.MarketFetchRequest.params:type_name -> base_ads_blocks.MarketFetchRequest.ParamsEntry - 20, // 3: base_ads_blocks.CmsCategoryItem.child:type_name -> base_ads_blocks.CmsCategoryItem - 26, // 4: base_ads_blocks.OrderSummaryItem.details:type_name -> base_ads_blocks.OrderDetails - 28, // 5: base_ads_blocks.FeedPostListReply.list:type_name -> base_ads_blocks.FeedPostItem - 29, // 6: base_ads_blocks.FeedPostItem.attachs:type_name -> base_ads_blocks.FeedAttachItem - 30, // 7: base_ads_blocks.FeedPostItem.tags:type_name -> base_ads_blocks.FeedTagItem - 32, // 8: base_ads_blocks.GroupPostListReply.list:type_name -> base_ads_blocks.GroupPostItem - 33, // 9: base_ads_blocks.GroupPostItem.attachs:type_name -> base_ads_blocks.GroupAttachItem - 34, // 10: base_ads_blocks.GroupPostItem.tags:type_name -> base_ads_blocks.GroupTagItem - 35, // 11: base_ads_blocks.FetchRelationItemReply.data:type_name -> base_ads_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 - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_module_base_ads_proto_const_proto_init() } -func file_module_base_ads_proto_const_proto_init() { - if File_module_base_ads_proto_const_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_ads_proto_const_proto_rawDesc), len(file_module_base_ads_proto_const_proto_rawDesc)), - NumEnums: 0, - NumMessages: 40, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_module_base_ads_proto_const_proto_goTypes, - DependencyIndexes: file_module_base_ads_proto_const_proto_depIdxs, - MessageInfos: file_module_base_ads_proto_const_proto_msgTypes, - }.Build() - File_module_base_ads_proto_const_proto = out.File - file_module_base_ads_proto_const_proto_goTypes = nil - file_module_base_ads_proto_const_proto_depIdxs = nil -} diff --git a/module/base/ads/proto/ads.proto b/module/base/ads/proto/ads.proto index e31c4e0..1a913ce 100644 --- a/module/base/ads/proto/ads.proto +++ b/module/base/ads/proto/ads.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package ads; -option go_package = "bsm/full/module/base/ads/pb;ads"; +option go_package = ".;ads"; //广告子系统 service Fetch{ diff --git a/module/base/ads/proto/const.proto b/module/base/ads/proto/const.proto deleted file mode 100644 index cd86e72..0000000 --- a/module/base/ads/proto/const.proto +++ /dev/null @@ -1,326 +0,0 @@ -syntax = "proto3"; - -package base_ads_blocks; - -option go_package = "bsm/full/module/base/ads/pb;ads"; - -// Shared request and response messages. -message Empty {} - -message FetchRequest { - int64 page_no = 1 [json_name = "page_no"]; - int64 page_size = 2 [json_name = "page_size"]; - map params = 3; -} - -message IdentRequest { - int64 id = 1; - string identity = 2; -} - -message VersionRequest { - int64 version = 1; -} - -message SearchRequest { - string keyword = 1; -} - -message StatusReply { - int32 code = 1; - string message = 2; - string details = 3; - int64 timeseq = 4; -} - -// Service-specific variants whose wire formats differ from the shared types. -message CmsSearchRequest { - string keyword = 1; - int64 page_no = 2 [json_name = "page_no"]; - int64 page_size = 3 [json_name = "page_size"]; -} - -message MallFetchRequest { - int64 page_no = 1 [json_name = "page_no"]; - int64 page_size = 2 [json_name = "page_size"]; - map params = 3; - string store_identity = 4 [json_name = "store_identity"]; - string keyword = 5; - repeated int64 category_id = 6; - string sort = 7; - int64 min_price = 8 [json_name = "min_price"]; - int64 max_price = 9 [json_name = "max_price"]; -} - -message MarketFetchRequest { - int64 page_no = 1 [json_name = "page_no"]; - int64 page_size = 2 [json_name = "page_size"]; - map params = 3; - string identity = 4; - string keyword = 5; - int32 status = 6; - int32 approve = 7; -} - -message OrderIdentRequest { - int64 id = 1; - string identity = 2; - string reason = 3; - int32 approve = 4; - string agency = 5; - string store_identity = 6; -} - -message DeliveryStatusReply { - int64 status = 1; - string identity = 2; - string message = 3; - int64 timeseq = 4; -} - -message IdentityStatusReply { - int32 code = 1; - string identity = 2; - string message = 3; - int64 timeseq = 4; -} - -message OrderStatusReply { - int32 code = 1; - string identity = 2; - string message = 3; - int64 timeseq = 4; - string reason = 5; -} - -message DataStatusReply { - string data = 1; - int64 timeseq = 2; -} - -message StoreSerialRequest { - string store_identity = 1 [json_name = "store_identity"]; - repeated string serial_id = 2 [json_name = "serial_id"]; -} - -// Cloud messages. -message IDRequest { - uint64 id = 1; -} - -message IDListRequest { - repeated uint64 ids = 1; -} - -message StdIicuds { - uint64 id = 1; - string created_at = 2; - string updated_at = 3; - string deleted_at = 4; -} - -message StdPassport { - uint64 passport_id = 1; - string passport_identity = 2; -} - -message CloudBase { - uint64 cloud_id = 1; - string cloud_identity = 2; -} - -// CMS messages. -message CmsCategoryItem { - string site_identity = 1 [json_name = "site_identity"]; - int64 id = 2; - string identity = 3; - int64 parent_id = 4 [json_name = "parent_id"]; - string title = 5; - string cover_path = 6 [json_name = "cover_path"]; - string intro = 7; - string created_at = 8 [json_name = "created_at"]; - string updated_at = 9 [json_name = "updated_at"]; - repeated CmsCategoryItem child = 10; - string category_key = 11 [json_name = "category_key"]; -} - -message CmsTagsItem { - int64 id = 1; - string identity = 2; - string title = 3; - string cover_path = 4 [json_name = "cover_path"]; - string intro = 5; - string created_at = 6 [json_name = "created_at"]; -} - -message CmsAccessoryItem { - string identity = 1; - string title = 2; - string file_path = 3 [json_name = "file_path"]; - string created_at = 4 [json_name = "created_at"]; -} - -// Passport messages. -message VerifyStatus { - int32 email_verify = 1; - int32 phone_verify = 2; - int32 face_verify = 3; - int32 document_verify = 4; - int32 kyc_verify = 5; -} - -// Market messages. -message MarketLoginReply { - string token = 1; - string identity = 2; - string market_identity = 3 [json_name = "market_identity"]; - string name = 4; - string account = 5; - string role = 6; - int32 status = 7; - string created_at = 8 [json_name = "created_at"]; - string market_name = 9 [json_name = "market_name"]; -} - -// Order messages. -message OrderSummaryItem { - int64 id = 1; - string order_no = 2 [json_name = "order_no"]; - int64 partner_id = 3 [json_name = "partner_id"]; - string identity = 4; - int64 total_price = 7 [json_name = "total_price"]; - int64 trans_price = 8 [json_name = "trans_price"]; - int64 refund_price = 9 [json_name = "refund_price"]; - int64 logistics_fee = 11 [json_name = "logistics_fee"]; - int64 coupon_amount = 12 [json_name = "coupon_amount"]; - string remark = 13; - int32 status = 14; - string logistics_number = 15 [json_name = "logistics_number"]; - string address_identity = 16 [json_name = "address_identity"]; - string county = 17; - string province = 18; - string city = 19; - string area = 20; - string address = 21; - string contact = 22; - string phone = 23; - string delivery_time = 24 [json_name = "delivery_time"]; - string delivery_identity = 25 [json_name = "delivery_identity"]; - int32 pay_type = 26 [json_name = "pay_type"]; - int64 pay_amount = 27 [json_name = "pay_amount"]; - string pay_trade_no = 28 [json_name = "pay_trade_no"]; - string pay_time = 29 [json_name = "pay_time"]; - string pay_remark = 30 [json_name = "pay_remark"]; - string created = 31; - string updated = 32; - repeated OrderDetails details = 33; - string addr = 34; - string car_identity = 35 [json_name = "car_identity"]; - string delivery_address = 36 [json_name = "delivery_address"]; - string brand = 37; - string version = 38; - string license_number = 39 [json_name = "license_number"]; - string member_name = 40 [json_name = "member_name"]; - string member_phone = 41 [json_name = "member_phone"]; - int32 approve = 42; -} - -message OrderDetails { - int64 id = 1; - int64 product_id = 2 [json_name = "product_id"]; - string spec_no = 3 [json_name = "spec_no"]; - string spec = 4; - int64 type = 5; - string title = 6; - string cover_image = 7 [json_name = "cover_image"]; - int64 sales_price = 8 [json_name = "sales_price"]; - string product_args = 9 [json_name = "product_args"]; - int64 number = 10; - int64 unit_price = 11 [json_name = "unit_price"]; - int64 spec_id = 12 [json_name = "spec_id"]; - string product_identity = 13 [json_name = "product_identity"]; - int64 gas_types = 14 [json_name = "gas_types"]; - int64 total_price = 15 [json_name = "total_price"]; -} - -// Social feed messages. -message FeedPostListReply { - repeated FeedPostItem list = 1; - int64 cnt = 2; -} - -message FeedPostItem { - string identity = 1; - string content = 2; - int64 feed_id = 3; - string feed_identity = 4; - bool is_open = 5; - int64 cnt_unlike = 6; - int64 cnt_comment = 7; - int64 cnt_like = 8; - repeated FeedAttachItem attachs = 9; - repeated FeedTagItem tags = 10; -} - -message FeedAttachItem { - string identity = 1; - string attach_type = 2; - string url = 3; -} - -message FeedTagItem { - string key = 1; - string content = 2; -} - -// Social group messages. -message GroupPostListReply { - repeated GroupPostItem list = 1; - int64 cnt = 2; -} - -message GroupPostItem { - string identity = 1; - string content = 2; - int64 passport_id = 3; - string passport_identity = 4; - bool is_open = 5; - int64 cnt_unlike = 6; - int64 cnt_comment = 7; - int64 cnt_like = 8; - repeated GroupAttachItem attachs = 9; - repeated GroupTagItem tags = 10; -} - -message GroupAttachItem { - string identity = 1; - string attach_type = 2; - string url = 3; -} - -message GroupTagItem { - string key = 1; - string content = 2; -} - -// Social relation messages. -message RelationItem { - string identity = 1; - string nickname = 2; - string remark_name = 3; - int32 popular = 4; - string avatar = 5; - string birthday = 6; - int32 sex = 7; - int32 province = 8; - int32 city = 9; - int32 area = 10; - string sign = 11; - repeated string tags = 12; - int32 foreign_status = 13; -} - -message FetchRelationItemReply { - int64 total = 1; - repeated RelationItem data = 2; -} diff --git a/module/base/passport/build-pb.sh b/module/base/passport/build-pb.sh deleted file mode 100644 index 9e06faa..0000000 --- a/module/base/passport/build-pb.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -cd -- "$(dirname -- "${BASH_SOURCE[0]}")" - -protoc -I ./proto \ - --go_out=paths=source_relative:pb \ - --go_out=paths=source_relative:../../../sdk/client/golang/passport \ - --go-grpc_out=paths=source_relative:pb \ - --go-grpc_out=paths=source_relative:../../../sdk/client/golang/passport \ - --grpc-gateway_out=paths=source_relative,generate_unbound_methods=True:pb \ - --slc_out=./ \ - --ts_out=../../../sdk/client/typescript \ - --markdown_out=paths=source_relative:../../../sdk/docs/passport \ - proto/*.proto diff --git a/scripts/build-proto.sh b/scripts/build-proto.sh new file mode 100644 index 0000000..9c48ef8 --- /dev/null +++ b/scripts/build-proto.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash +set -Eeuo pipefail + +if [[ $# -ne 1 ]]; then + echo "usage: $0 " >&2 + echo "example: $0 passport" >&2 + exit 2 +fi + +readonly SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +readonly WORKSPACE_ROOT="$(cd -- "${SCRIPT_DIR}/.." && pwd)" +readonly MODULE_NAME="$1" + +mapfile -t MODULE_DIRS < <(find "${WORKSPACE_ROOT}/module" -mindepth 2 -maxdepth 2 -type d -name "${MODULE_NAME}" -print) +if [[ ${#MODULE_DIRS[@]} -ne 1 ]]; then + echo "error: expected one module named '${MODULE_NAME}', found ${#MODULE_DIRS[@]}" >&2 + exit 1 +fi + +readonly MODULE_DIR="${MODULE_DIRS[0]}" +readonly PROTO_DIR="${MODULE_DIR}/proto" +readonly PB_DIR="${MODULE_DIR}/pb" +readonly MODULE_REL="${MODULE_DIR#${WORKSPACE_ROOT}/}" +readonly DOCS_DIR="sdk/docs/${MODULE_NAME}" +readonly DOCS_GO_DIR="sdk/docs/client/golang/${MODULE_NAME}" +readonly DOCS_TS_DIR="sdk/docs/client/typescript/${MODULE_NAME}" +readonly CLIENT_GO_DIR="sdk/client/golang/${MODULE_NAME}" +readonly CLIENT_TS_DIR="sdk/client/typescript/${MODULE_NAME}" +[[ -d "${PROTO_DIR}" ]] || { echo "error: ${PROTO_DIR} does not exist" >&2; exit 1; } +mapfile -t PROTO_FILES < <(find "${PROTO_DIR}" -maxdepth 1 -type f -name '*.proto' -print | sort) +(( ${#PROTO_FILES[@]} > 0 )) || { echo "error: no proto files found in ${PROTO_DIR}" >&2; exit 1; } + +cd -- "${WORKSPACE_ROOT}" +mkdir -p "${MODULE_REL}/pb" +mkdir -p \ + "${DOCS_DIR}" "${DOCS_GO_DIR}" "${DOCS_TS_DIR}" \ + "${CLIENT_GO_DIR}" "${CLIENT_TS_DIR}" +protoc \ + --proto_path="${MODULE_REL}/proto" \ + --go_out="paths=source_relative:${MODULE_REL}/pb" \ + --go_out="paths=source_relative:sdk/client/golang/${MODULE_NAME}" \ + --go-grpc_out="paths=source_relative:${MODULE_REL}/pb" \ + --go-grpc_out="paths=source_relative:sdk/client/golang/${MODULE_NAME}" \ + --grpc-gateway_out="paths=source_relative,generate_unbound_methods=true:${MODULE_REL}/pb" \ + --ts_out="sdk/client/typescript" \ + --markdown_out="paths=source_relative:${DOCS_DIR}" \ + "${MODULE_REL}/proto/"*.proto + +(cd -- "${MODULE_REL}" && protoc \ + --proto_path=proto \ + --slc_out=./ \ + proto/*.proto) diff --git a/sdk/client/golang/ads/ads.pb.go b/sdk/client/golang/ads/ads.pb.go new file mode 100644 index 0000000..07dda83 --- /dev/null +++ b/sdk/client/golang/ads/ads.pb.go @@ -0,0 +1,267 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.12 +// protoc v7.36.0 +// source: ads.proto + +package ads + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ByPosRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ByPosRequest) Reset() { + *x = ByPosRequest{} + mi := &file_ads_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ByPosRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ByPosRequest) ProtoMessage() {} + +func (x *ByPosRequest) ProtoReflect() protoreflect.Message { + mi := &file_ads_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ByPosRequest.ProtoReflect.Descriptor instead. +func (*ByPosRequest) Descriptor() ([]byte, []int) { + return file_ads_proto_rawDescGZIP(), []int{0} +} + +func (x *ByPosRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +type ByPosReply struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*AdsItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ByPosReply) Reset() { + *x = ByPosReply{} + mi := &file_ads_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ByPosReply) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ByPosReply) ProtoMessage() {} + +func (x *ByPosReply) ProtoReflect() protoreflect.Message { + mi := &file_ads_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ByPosReply.ProtoReflect.Descriptor instead. +func (*ByPosReply) Descriptor() ([]byte, []int) { + return file_ads_proto_rawDescGZIP(), []int{1} +} + +func (x *ByPosReply) GetData() []*AdsItem { + if x != nil { + return x.Data + } + return nil +} + +type AdsItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` //广告名称 + Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //广告内容 + Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` //广告类型 1.文本 2.图片 3.视频 + ToUrl string `protobuf:"bytes,5,opt,name=toUrl,proto3" json:"toUrl,omitempty"` + Created string `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AdsItem) Reset() { + *x = AdsItem{} + mi := &file_ads_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AdsItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdsItem) ProtoMessage() {} + +func (x *AdsItem) ProtoReflect() protoreflect.Message { + mi := &file_ads_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AdsItem.ProtoReflect.Descriptor instead. +func (*AdsItem) Descriptor() ([]byte, []int) { + return file_ads_proto_rawDescGZIP(), []int{2} +} + +func (x *AdsItem) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *AdsItem) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *AdsItem) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *AdsItem) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *AdsItem) GetToUrl() string { + if x != nil { + return x.ToUrl + } + return "" +} + +func (x *AdsItem) GetCreated() string { + if x != nil { + return x.Created + } + return "" +} + +var File_ads_proto protoreflect.FileDescriptor + +const file_ads_proto_rawDesc = "" + + "\n" + + "\tads.proto\x12\x03ads\" \n" + + "\fByPosRequest\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\".\n" + + "\n" + + "ByPosReply\x12 \n" + + "\x04data\x18\x01 \x03(\v2\f.ads.AdsItemR\x04data\"\x8d\x01\n" + + "\aAdsItem\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" + + "\acontent\x18\x03 \x01(\tR\acontent\x12\x12\n" + + "\x04type\x18\x04 \x01(\x05R\x04type\x12\x14\n" + + "\x05toUrl\x18\x05 \x01(\tR\x05toUrl\x12\x18\n" + + "\acreated\x18\x06 \x01(\tR\acreated26\n" + + "\x05Fetch\x12-\n" + + "\x05ByPos\x12\x11.ads.ByPosRequest\x1a\x0f.ads.ByPosReply\"\x00B\aZ\x05.;adsb\x06proto3" + +var ( + file_ads_proto_rawDescOnce sync.Once + file_ads_proto_rawDescData []byte +) + +func file_ads_proto_rawDescGZIP() []byte { + file_ads_proto_rawDescOnce.Do(func() { + file_ads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc))) + }) + return file_ads_proto_rawDescData +} + +var file_ads_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_ads_proto_goTypes = []any{ + (*ByPosRequest)(nil), // 0: ads.ByPosRequest + (*ByPosReply)(nil), // 1: ads.ByPosReply + (*AdsItem)(nil), // 2: ads.AdsItem +} +var file_ads_proto_depIdxs = []int32{ + 2, // 0: ads.ByPosReply.data:type_name -> ads.AdsItem + 0, // 1: ads.Fetch.ByPos:input_type -> ads.ByPosRequest + 1, // 2: ads.Fetch.ByPos:output_type -> ads.ByPosReply + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ads_proto_init() } +func file_ads_proto_init() { + if File_ads_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ads_proto_rawDesc), len(file_ads_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_ads_proto_goTypes, + DependencyIndexes: file_ads_proto_depIdxs, + MessageInfos: file_ads_proto_msgTypes, + }.Build() + File_ads_proto = out.File + file_ads_proto_goTypes = nil + file_ads_proto_depIdxs = nil +} diff --git a/sdk/client/golang/ads/ads_grpc.pb.go b/sdk/client/golang/ads/ads_grpc.pb.go new file mode 100644 index 0000000..8e96bf6 --- /dev/null +++ b/sdk/client/golang/ads/ads_grpc.pb.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.6.2 +// - protoc v7.36.0 +// source: ads.proto + +package ads + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Fetch_ByPos_FullMethodName = "/ads.Fetch/ByPos" +) + +// FetchClient is the client API for Fetch service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// 广告子系统 +type FetchClient interface { + //通过广告位获取广告信息 + ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc.CallOption) (*ByPosReply, error) +} + +type fetchClient struct { + cc grpc.ClientConnInterface +} + +func NewFetchClient(cc grpc.ClientConnInterface) FetchClient { + return &fetchClient{cc} +} + +func (c *fetchClient) ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc.CallOption) (*ByPosReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ByPosReply) + err := c.cc.Invoke(ctx, Fetch_ByPos_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FetchServer is the server API for Fetch service. +// All implementations must embed UnimplementedFetchServer +// for forward compatibility. +// +// 广告子系统 +type FetchServer interface { + //通过广告位获取广告信息 + ByPos(context.Context, *ByPosRequest) (*ByPosReply, error) + mustEmbedUnimplementedFetchServer() +} + +// UnimplementedFetchServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFetchServer struct{} + +func (UnimplementedFetchServer) ByPos(context.Context, *ByPosRequest) (*ByPosReply, error) { + return nil, status.Error(codes.Unimplemented, "method ByPos not implemented") +} +func (UnimplementedFetchServer) mustEmbedUnimplementedFetchServer() {} +func (UnimplementedFetchServer) testEmbeddedByValue() {} + +// UnsafeFetchServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to FetchServer will +// result in compilation errors. +type UnsafeFetchServer interface { + mustEmbedUnimplementedFetchServer() +} + +func RegisterFetchServer(s grpc.ServiceRegistrar, srv FetchServer) { + // If the following call panics, it indicates UnimplementedFetchServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Fetch_ServiceDesc, srv) +} + +func _Fetch_ByPos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ByPosRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FetchServer).ByPos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Fetch_ByPos_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FetchServer).ByPos(ctx, req.(*ByPosRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Fetch_ServiceDesc is the grpc.ServiceDesc for Fetch service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Fetch_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "ads.Fetch", + HandlerType: (*FetchServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ByPos", + Handler: _Fetch_ByPos_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ads.proto", +} diff --git a/sdk/client/golang/go.mod b/sdk/client/golang/go.mod new file mode 100644 index 0000000..b8415db --- /dev/null +++ b/sdk/client/golang/go.mod @@ -0,0 +1,3 @@ +module bsm/sdk/client + +go 1.27.1 \ No newline at end of file diff --git a/sdk/client/typescript/ads/index.ts b/sdk/client/typescript/ads/index.ts new file mode 100644 index 0000000..00a7097 --- /dev/null +++ b/sdk/client/typescript/ads/index.ts @@ -0,0 +1,44 @@ +// Code generated by protoc-gen-typescript-http. DO NOT EDIT. +/* eslint-disable camelcase */ +// @ts-nocheck + +export type ByPosRequest = { + key?: string; +}; + +export type ByPosReply = { + data?: AdsItem[]; +}; + +export type AdsItem = { + id?: number; + /** 广告名称 */ + title?: string; + /** 广告内容 */ + content?: string; + /** 广告类型 1.文本 2.图片 3.视频 */ + type?: number; + toUrl?: string; + created?: string; +}; + +/** 广告子系统 */ +export interface Fetch { +} + +type RequestType = { + path: string; + method: string; + body: string | null; +}; + +type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise; + +export function createFetchClient( + handler: RequestHandler +): Fetch { + return { + }; +} + +// @@protoc_insertion_point(typescript-http-eof) diff --git a/sdk/docs/ads/ads.md b/sdk/docs/ads/ads.md new file mode 100644 index 0000000..463a35e --- /dev/null +++ b/sdk/docs/ads/ads.md @@ -0,0 +1,32 @@ +# Fetch + +广告子系统 + +- [/ads.Fetch/ByPos](#adsfetchbypos) + +## /ads.Fetch/ByPos + +通过广告位获取广告信息 + + +### Request +```javascript +{ + key: "", // type +} +``` + +### Reply +```javascript +{ + data: [{ + id: "0", // type + title: "", // type, 广告名称 + content: "", // type, 广告内容 + type: 0, // type, 广告类型 1.文本 2.图片 3.视频 + toUrl: "", // type + created: "", // type + }], // list +} +``` +