// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc (unknown) // source: blocks.proto package market 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 Empty struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Empty) Reset() { *x = Empty{} mi := &file_blocks_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_blocks_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_blocks_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"` // 条件参数,key=val,eg key:categoryId=?,vlaue=11 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"` // 状态:默认为0,-1禁止,1为正常 Approve int32 `protobuf:"varint,7,opt,name=approve,proto3" json:"approve,omitempty"` // 审核状态:0:待审核 2:审核通过 -2:审核未通过 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FetchRequest) Reset() { *x = FetchRequest{} mi := &file_blocks_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_blocks_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_blocks_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 } func (x *FetchRequest) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *FetchRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } func (x *FetchRequest) GetStatus() int32 { if x != nil { return x.Status } return 0 } func (x *FetchRequest) GetApprove() int32 { if x != nil { return x.Approve } return 0 } type IdentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID 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_blocks_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_blocks_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_blocks_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 StoreSerialRequest struct { state protoimpl.MessageState `protogen:"open.v1"` StoreIdentity string `protobuf:"bytes,1,opt,name=store_identity,proto3" json:"store_identity,omitempty"` // 店铺Identity SerialId []string `protobuf:"bytes,2,rep,name=serial_id,proto3" json:"serial_id,omitempty"` // 序列Identity unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StoreSerialRequest) Reset() { *x = StoreSerialRequest{} mi := &file_blocks_proto_msgTypes[3] 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_blocks_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 StoreSerialRequest.ProtoReflect.Descriptor instead. func (*StoreSerialRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{3} } 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 } type StatusReply 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 *StatusReply) Reset() { *x = StatusReply{} mi := &file_blocks_proto_msgTypes[4] 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_blocks_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 StatusReply.ProtoReflect.Descriptor instead. func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{4} } func (x *StatusReply) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *StatusReply) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *StatusReply) GetMessage() string { if x != nil { return x.Message } return "" } func (x *StatusReply) GetTimeseq() int64 { if x != nil { return x.Timeseq } return 0 } type LoginReply struct { state protoimpl.MessageState `protogen:"open.v1"` Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token 授权码 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 *LoginReply) Reset() { *x = LoginReply{} mi := &file_blocks_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LoginReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*LoginReply) ProtoMessage() {} func (x *LoginReply) ProtoReflect() protoreflect.Message { mi := &file_blocks_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 LoginReply.ProtoReflect.Descriptor instead. func (*LoginReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{5} } func (x *LoginReply) GetToken() string { if x != nil { return x.Token } return "" } func (x *LoginReply) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *LoginReply) GetMarketIdentity() string { if x != nil { return x.MarketIdentity } return "" } func (x *LoginReply) GetName() string { if x != nil { return x.Name } return "" } func (x *LoginReply) GetAccount() string { if x != nil { return x.Account } return "" } func (x *LoginReply) GetRole() string { if x != nil { return x.Role } return "" } func (x *LoginReply) GetStatus() int32 { if x != nil { return x.Status } return 0 } func (x *LoginReply) GetCreatedAt() string { if x != nil { return x.CreatedAt } return "" } func (x *LoginReply) GetMarketName() string { if x != nil { return x.MarketName } 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_blocks_proto_msgTypes[6] 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_blocks_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 VersionRequest.ProtoReflect.Descriptor instead. func (*VersionRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{6} } 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_blocks_proto_msgTypes[7] 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_blocks_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 SearchRequest.ProtoReflect.Descriptor instead. func (*SearchRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{7} } func (x *SearchRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } var File_blocks_proto protoreflect.FileDescriptor const file_blocks_proto_rawDesc = "" + "\n" + "\x13market/blocks.proto\x12\x06market\"\a\n" + "\x05Empty\"\xa3\x02\n" + "\fFetchRequest\x12\x18\n" + "\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" + "\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" + "\x06params\x18\x03 \x03(\v2 .market.FetchRequest.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\":\n" + "\fIdentRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + "\bidentity\x18\x02 \x01(\tR\bidentity\"Z\n" + "\x12StoreSerialRequest\x12&\n" + "\x0estore_identity\x18\x01 \x01(\tR\x0estore_identity\x12\x1c\n" + "\tserial_id\x18\x02 \x03(\tR\tserial_id\"q\n" + "\vStatusReply\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\"\x84\x02\n" + "\n" + "LoginReply\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\"*\n" + "\x0eVersionRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\x03R\aversion\")\n" + "\rSearchRequest\x12\x18\n" + "\akeyword\x18\x01 \x01(\tR\akeywordB\n" + "Z\b.;marketb\x06proto3" var ( file_blocks_proto_rawDescOnce sync.Once file_blocks_proto_rawDescData []byte ) func file_blocks_proto_rawDescGZIP() []byte { file_blocks_proto_rawDescOnce.Do(func() { file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc))) }) return file_blocks_proto_rawDescData } var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_blocks_proto_goTypes = []any{ (*Empty)(nil), // 0: market.Empty (*FetchRequest)(nil), // 1: market.FetchRequest (*IdentRequest)(nil), // 2: market.IdentRequest (*StoreSerialRequest)(nil), // 3: market.StoreSerialRequest (*StatusReply)(nil), // 4: market.StatusReply (*LoginReply)(nil), // 5: market.LoginReply (*VersionRequest)(nil), // 6: market.VersionRequest (*SearchRequest)(nil), // 7: market.SearchRequest nil, // 8: market.FetchRequest.ParamsEntry } var file_blocks_proto_depIdxs = []int32{ 8, // 0: market.FetchRequest.params:type_name -> market.FetchRequest.ParamsEntry 1, // [1:1] is the sub-list for method output_type 1, // [1:1] 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_blocks_proto_init() } func file_blocks_proto_init() { if File_blocks_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 0, }, GoTypes: file_blocks_proto_goTypes, DependencyIndexes: file_blocks_proto_depIdxs, MessageInfos: file_blocks_proto_msgTypes, }.Build() File_blocks_proto = out.File file_blocks_proto_goTypes = nil file_blocks_proto_depIdxs = nil }