v2

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_sku_v2_sku_proto protoreflect.FileDescriptor
View Source
var Sku_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.sku.v2.Sku",
	HandlerType: (*SkuServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Find",
			Handler:    _Sku_Find_Handler,
		},
		{
			MethodName: "SetMedia",
			Handler:    _Sku_SetMedia_Handler,
		},
		{
			MethodName: "GetSku",
			Handler:    _Sku_GetSku_Handler,
		},
		{
			MethodName: "SetSku",
			Handler:    _Sku_SetSku_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _Sku_Search_Handler,
		},
		{
			MethodName: "AddSku",
			Handler:    _Sku_AddSku_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _Sku_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/sku/v2/sku.proto",
}

Sku_ServiceDesc is the grpc.ServiceDesc for Sku service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSkuServer

func RegisterSkuServer(s grpc.ServiceRegistrar, srv SkuServer)

Types

type AddSkuRequest added in v0.0.2

type AddSkuRequest struct {
	Model    string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"`
	Brand    int64  `protobuf:"varint,2,opt,name=Brand,proto3" json:"Brand,omitempty"`
	Encap    int64  `protobuf:"varint,3,opt,name=Encap,proto3" json:"Encap,omitempty"`
	Category int64  `protobuf:"varint,4,opt,name=Category,proto3" json:"Category,omitempty"`
	Spec     string `protobuf:"bytes,5,opt,name=Spec,proto3" json:"Spec,omitempty"`
	Desc     string `protobuf:"bytes,6,opt,name=Desc,proto3" json:"Desc,omitempty"`
	IMG      string `protobuf:"bytes,7,opt,name=IMG,proto3" json:"IMG,omitempty"`
	PDF      string `protobuf:"bytes,8,opt,name=PDF,proto3" json:"PDF,omitempty"`
	// contains filtered or unexported fields
}

func (*AddSkuRequest) Descriptor deprecated added in v0.0.2

func (*AddSkuRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddSkuRequest.ProtoReflect.Descriptor instead.

func (*AddSkuRequest) GetBrand added in v0.0.2

func (x *AddSkuRequest) GetBrand() int64

func (*AddSkuRequest) GetCategory added in v0.0.2

func (x *AddSkuRequest) GetCategory() int64

func (*AddSkuRequest) GetDesc added in v0.0.2

func (x *AddSkuRequest) GetDesc() string

func (*AddSkuRequest) GetEncap added in v0.0.2

func (x *AddSkuRequest) GetEncap() int64

func (*AddSkuRequest) GetIMG added in v0.0.2

func (x *AddSkuRequest) GetIMG() string

func (*AddSkuRequest) GetModel added in v0.0.2

func (x *AddSkuRequest) GetModel() string

func (*AddSkuRequest) GetPDF added in v0.0.2

func (x *AddSkuRequest) GetPDF() string

func (*AddSkuRequest) GetSpec added in v0.0.2

func (x *AddSkuRequest) GetSpec() string

func (*AddSkuRequest) ProtoMessage added in v0.0.2

func (*AddSkuRequest) ProtoMessage()

func (*AddSkuRequest) ProtoReflect added in v0.0.2

func (x *AddSkuRequest) ProtoReflect() protoreflect.Message

func (*AddSkuRequest) Reset added in v0.0.2

func (x *AddSkuRequest) Reset()

func (*AddSkuRequest) String added in v0.0.2

func (x *AddSkuRequest) String() string

type FindReply added in v0.0.3

type FindReply struct {
	SKU         string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"`
	Model       string `protobuf:"bytes,2,opt,name=Model,proto3" json:"Model,omitempty"`
	BrandName   string `protobuf:"bytes,3,opt,name=BrandName,proto3" json:"BrandName,omitempty"`
	BrandCode   string `protobuf:"bytes,4,opt,name=BrandCode,proto3" json:"BrandCode,omitempty"`
	CateName    string `protobuf:"bytes,5,opt,name=CateName,proto3" json:"CateName,omitempty"`
	CateCode    string `protobuf:"bytes,6,opt,name=CateCode,proto3" json:"CateCode,omitempty"`
	Metas       string `protobuf:"bytes,7,opt,name=Metas,proto3" json:"Metas,omitempty"`
	State       int64  `protobuf:"varint,8,opt,name=State,proto3" json:"State,omitempty"`
	IMG         string `protobuf:"bytes,9,opt,name=IMG,proto3" json:"IMG,omitempty"`
	PDF         string `protobuf:"bytes,10,opt,name=PDF,proto3" json:"PDF,omitempty"`
	Description string `protobuf:"bytes,11,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*FindReply) Descriptor deprecated added in v0.0.3

func (*FindReply) Descriptor() ([]byte, []int)

Deprecated: Use FindReply.ProtoReflect.Descriptor instead.

func (*FindReply) GetBrandCode added in v0.0.3

func (x *FindReply) GetBrandCode() string

func (*FindReply) GetBrandName added in v0.0.3

func (x *FindReply) GetBrandName() string

func (*FindReply) GetCateCode added in v0.0.3

func (x *FindReply) GetCateCode() string

func (*FindReply) GetCateName added in v0.0.3

func (x *FindReply) GetCateName() string

func (*FindReply) GetDescription added in v0.0.3

func (x *FindReply) GetDescription() string

func (*FindReply) GetIMG added in v0.0.3

func (x *FindReply) GetIMG() string

func (*FindReply) GetMetas added in v0.0.3

func (x *FindReply) GetMetas() string

func (*FindReply) GetModel added in v0.0.3

func (x *FindReply) GetModel() string

func (*FindReply) GetPDF added in v0.0.3

func (x *FindReply) GetPDF() string

func (*FindReply) GetSKU added in v0.0.3

func (x *FindReply) GetSKU() string

func (*FindReply) GetState added in v0.0.3

func (x *FindReply) GetState() int64

func (*FindReply) ProtoMessage added in v0.0.3

func (*FindReply) ProtoMessage()

func (*FindReply) ProtoReflect added in v0.0.3

func (x *FindReply) ProtoReflect() protoreflect.Message

func (*FindReply) Reset added in v0.0.3

func (x *FindReply) Reset()

func (*FindReply) String added in v0.0.3

func (x *FindReply) String() string

type FindRequest added in v0.0.3

type FindRequest struct {
	SKU string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRequest) Descriptor deprecated added in v0.0.3

func (*FindRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.

func (*FindRequest) GetSKU added in v0.0.3

func (x *FindRequest) GetSKU() string

func (*FindRequest) ProtoMessage added in v0.0.3

func (*FindRequest) ProtoMessage()

func (*FindRequest) ProtoReflect added in v0.0.3

func (x *FindRequest) ProtoReflect() protoreflect.Message

func (*FindRequest) Reset added in v0.0.3

func (x *FindRequest) Reset()

func (*FindRequest) String added in v0.0.3

func (x *FindRequest) String() string

type GetSkuReply

type GetSkuReply struct {
	SKU         string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"`
	Model       string `protobuf:"bytes,2,opt,name=Model,proto3" json:"Model,omitempty"`
	BrandName   string `protobuf:"bytes,3,opt,name=BrandName,proto3" json:"BrandName,omitempty"`
	BrandCode   string `protobuf:"bytes,4,opt,name=BrandCode,proto3" json:"BrandCode,omitempty"`
	CateName    string `protobuf:"bytes,5,opt,name=CateName,proto3" json:"CateName,omitempty"`
	CateCode    string `protobuf:"bytes,6,opt,name=CateCode,proto3" json:"CateCode,omitempty"`
	Metas       string `protobuf:"bytes,7,opt,name=Metas,proto3" json:"Metas,omitempty"`
	State       int64  `protobuf:"varint,8,opt,name=State,proto3" json:"State,omitempty"`
	IMG         string `protobuf:"bytes,9,opt,name=IMG,proto3" json:"IMG,omitempty"`
	PDF         string `protobuf:"bytes,10,opt,name=PDF,proto3" json:"PDF,omitempty"`
	Description string `protobuf:"bytes,11,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSkuReply) Descriptor deprecated

func (*GetSkuReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSkuReply.ProtoReflect.Descriptor instead.

func (*GetSkuReply) GetBrandCode added in v0.0.3

func (x *GetSkuReply) GetBrandCode() string

func (*GetSkuReply) GetBrandName added in v0.0.3

func (x *GetSkuReply) GetBrandName() string

func (*GetSkuReply) GetCateCode added in v0.0.3

func (x *GetSkuReply) GetCateCode() string

func (*GetSkuReply) GetCateName added in v0.0.3

func (x *GetSkuReply) GetCateName() string

func (*GetSkuReply) GetDescription added in v0.0.3

func (x *GetSkuReply) GetDescription() string

func (*GetSkuReply) GetIMG

func (x *GetSkuReply) GetIMG() string

func (*GetSkuReply) GetMetas

func (x *GetSkuReply) GetMetas() string

func (*GetSkuReply) GetModel

func (x *GetSkuReply) GetModel() string

func (*GetSkuReply) GetPDF

func (x *GetSkuReply) GetPDF() string

func (*GetSkuReply) GetSKU

func (x *GetSkuReply) GetSKU() string

func (*GetSkuReply) GetState added in v0.0.3

func (x *GetSkuReply) GetState() int64

func (*GetSkuReply) ProtoMessage

func (*GetSkuReply) ProtoMessage()

func (*GetSkuReply) ProtoReflect

func (x *GetSkuReply) ProtoReflect() protoreflect.Message

func (*GetSkuReply) Reset

func (x *GetSkuReply) Reset()

func (*GetSkuReply) String

func (x *GetSkuReply) String() string

type GetSkuRequest

type GetSkuRequest struct {
	Model string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"`
	Brand string `protobuf:"bytes,2,opt,name=Brand,proto3" json:"Brand,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSkuRequest) Descriptor deprecated

func (*GetSkuRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSkuRequest.ProtoReflect.Descriptor instead.

func (*GetSkuRequest) GetBrand

func (x *GetSkuRequest) GetBrand() string

func (*GetSkuRequest) GetModel

func (x *GetSkuRequest) GetModel() string

func (*GetSkuRequest) ProtoMessage

func (*GetSkuRequest) ProtoMessage()

func (*GetSkuRequest) ProtoReflect

func (x *GetSkuRequest) ProtoReflect() protoreflect.Message

func (*GetSkuRequest) Reset

func (x *GetSkuRequest) Reset()

func (*GetSkuRequest) String

func (x *GetSkuRequest) String() string

type SearchReply added in v0.0.3

type SearchReply struct {
	List []*FindReply `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReply) Descriptor deprecated added in v0.0.3

func (*SearchReply) Descriptor() ([]byte, []int)

Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.

func (*SearchReply) GetList added in v0.0.3

func (x *SearchReply) GetList() []*FindReply

func (*SearchReply) ProtoMessage added in v0.0.3

func (*SearchReply) ProtoMessage()

func (*SearchReply) ProtoReflect added in v0.0.3

func (x *SearchReply) ProtoReflect() protoreflect.Message

func (*SearchReply) Reset added in v0.0.3

func (x *SearchReply) Reset()

func (*SearchReply) String added in v0.0.3

func (x *SearchReply) String() string

type SearchRequest added in v0.0.3

type SearchRequest struct {
	Model string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated added in v0.0.3

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetModel added in v0.0.3

func (x *SearchRequest) GetModel() string

func (*SearchRequest) ProtoMessage added in v0.0.3

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect added in v0.0.3

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset added in v0.0.3

func (x *SearchRequest) Reset()

func (*SearchRequest) String added in v0.0.3

func (x *SearchRequest) String() string

type SetMediaReply added in v0.0.3

type SetMediaReply struct {
	MID  int64  `protobuf:"varint,1,opt,name=MID,proto3" json:"MID,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"`
	Url  string `protobuf:"bytes,3,opt,name=Url,proto3" json:"Url,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMediaReply) Descriptor deprecated added in v0.0.3

func (*SetMediaReply) Descriptor() ([]byte, []int)

Deprecated: Use SetMediaReply.ProtoReflect.Descriptor instead.

func (*SetMediaReply) GetMID added in v0.0.3

func (x *SetMediaReply) GetMID() int64

func (*SetMediaReply) GetPath added in v0.0.3

func (x *SetMediaReply) GetPath() string

func (*SetMediaReply) GetUrl added in v0.0.4

func (x *SetMediaReply) GetUrl() string

func (*SetMediaReply) ProtoMessage added in v0.0.3

func (*SetMediaReply) ProtoMessage()

func (*SetMediaReply) ProtoReflect added in v0.0.3

func (x *SetMediaReply) ProtoReflect() protoreflect.Message

func (*SetMediaReply) Reset added in v0.0.3

func (x *SetMediaReply) Reset()

func (*SetMediaReply) String added in v0.0.3

func (x *SetMediaReply) String() string

type SetMediaRequest added in v0.0.3

type SetMediaRequest struct {
	Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
	Meta string `protobuf:"bytes,2,opt,name=Meta,proto3" json:"Meta,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMediaRequest) Descriptor deprecated added in v0.0.3

func (*SetMediaRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetMediaRequest.ProtoReflect.Descriptor instead.

func (*SetMediaRequest) GetMeta added in v0.0.4

func (x *SetMediaRequest) GetMeta() string

func (*SetMediaRequest) GetPath added in v0.0.4

func (x *SetMediaRequest) GetPath() string

func (*SetMediaRequest) ProtoMessage added in v0.0.3

func (*SetMediaRequest) ProtoMessage()

func (*SetMediaRequest) ProtoReflect added in v0.0.3

func (x *SetMediaRequest) ProtoReflect() protoreflect.Message

func (*SetMediaRequest) Reset added in v0.0.3

func (x *SetMediaRequest) Reset()

func (*SetMediaRequest) String added in v0.0.3

func (x *SetMediaRequest) String() string

type SetSkuReply added in v0.0.2

type SetSkuReply struct {
	SKU string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSkuReply) Descriptor deprecated added in v0.0.2

func (*SetSkuReply) Descriptor() ([]byte, []int)

Deprecated: Use SetSkuReply.ProtoReflect.Descriptor instead.

func (*SetSkuReply) GetSKU added in v0.0.2

func (x *SetSkuReply) GetSKU() string

func (*SetSkuReply) ProtoMessage added in v0.0.2

func (*SetSkuReply) ProtoMessage()

func (*SetSkuReply) ProtoReflect added in v0.0.2

func (x *SetSkuReply) ProtoReflect() protoreflect.Message

func (*SetSkuReply) Reset added in v0.0.2

func (x *SetSkuReply) Reset()

func (*SetSkuReply) String added in v0.0.2

func (x *SetSkuReply) String() string

type SetSkuRequest added in v0.0.2

type SetSkuRequest struct {
	Model       string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"`
	BrandCode   string `protobuf:"bytes,2,opt,name=BrandCode,proto3" json:"BrandCode,omitempty"`
	CateCode    string `protobuf:"bytes,3,opt,name=CateCode,proto3" json:"CateCode,omitempty"`
	IMG         string `protobuf:"bytes,4,opt,name=IMG,proto3" json:"IMG,omitempty"`
	PDF         string `protobuf:"bytes,5,opt,name=PDF,proto3" json:"PDF,omitempty"`
	State       int64  `protobuf:"varint,6,opt,name=State,proto3" json:"State,omitempty"`
	Metas       string `protobuf:"bytes,7,opt,name=Metas,proto3" json:"Metas,omitempty"`
	Description string `protobuf:"bytes,8,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSkuRequest) Descriptor deprecated added in v0.0.2

func (*SetSkuRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetSkuRequest.ProtoReflect.Descriptor instead.

func (*SetSkuRequest) GetBrandCode added in v0.0.2

func (x *SetSkuRequest) GetBrandCode() string

func (*SetSkuRequest) GetCateCode added in v0.0.2

func (x *SetSkuRequest) GetCateCode() string

func (*SetSkuRequest) GetDescription added in v0.0.2

func (x *SetSkuRequest) GetDescription() string

func (*SetSkuRequest) GetIMG added in v0.0.2

func (x *SetSkuRequest) GetIMG() string

func (*SetSkuRequest) GetMetas added in v0.0.2

func (x *SetSkuRequest) GetMetas() string

func (*SetSkuRequest) GetModel added in v0.0.2

func (x *SetSkuRequest) GetModel() string

func (*SetSkuRequest) GetPDF added in v0.0.2

func (x *SetSkuRequest) GetPDF() string

func (*SetSkuRequest) GetState added in v0.0.2

func (x *SetSkuRequest) GetState() int64

func (*SetSkuRequest) ProtoMessage added in v0.0.2

func (*SetSkuRequest) ProtoMessage()

func (*SetSkuRequest) ProtoReflect added in v0.0.2

func (x *SetSkuRequest) ProtoReflect() protoreflect.Message

func (*SetSkuRequest) Reset added in v0.0.2

func (x *SetSkuRequest) Reset()

func (*SetSkuRequest) String added in v0.0.2

func (x *SetSkuRequest) String() string

type SkuClient

type SkuClient interface {
	//	rpc GetCategory(GetCategoryRequest) returns (GetCategoryReply);
	//	rpc SetCategory(SetCategoryRequest) returns (SetCategoryReply);
	//	rpc GetBrand(GetBrandRequest) returns (GetBrancReply);
	//	rpc SetBrand(SetBrandRequest) returns (SetBrancReply);
	//	rpc GetEncap(GetEncapRequest) returns (GetEncapReply);
	//	rpc SetEncap(SetEncapRequest) returns (SetEncapReply);
	//	rpc GetMedia(GetMediaRequest) returns (GetMediaReply);
	Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (*FindReply, error)
	SetMedia(ctx context.Context, in *SetMediaRequest, opts ...grpc.CallOption) (*SetMediaReply, error)
	GetSku(ctx context.Context, in *GetSkuRequest, opts ...grpc.CallOption) (*GetSkuReply, error)
	SetSku(ctx context.Context, in *SetSkuRequest, opts ...grpc.CallOption) (*SetSkuReply, error)
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error)
	AddSku(ctx context.Context, in *AddSkuRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SkuClient is the client API for Sku 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.

func Client

func Client() (SkuClient, error)

func NewSkuClient

func NewSkuClient(cc grpc.ClientConnInterface) SkuClient

type SkuServer

type SkuServer interface {
	//	rpc GetCategory(GetCategoryRequest) returns (GetCategoryReply);
	//	rpc SetCategory(SetCategoryRequest) returns (SetCategoryReply);
	//	rpc GetBrand(GetBrandRequest) returns (GetBrancReply);
	//	rpc SetBrand(SetBrandRequest) returns (SetBrancReply);
	//	rpc GetEncap(GetEncapRequest) returns (GetEncapReply);
	//	rpc SetEncap(SetEncapRequest) returns (SetEncapReply);
	//	rpc GetMedia(GetMediaRequest) returns (GetMediaReply);
	Find(context.Context, *FindRequest) (*FindReply, error)
	SetMedia(context.Context, *SetMediaRequest) (*SetMediaReply, error)
	GetSku(context.Context, *GetSkuRequest) (*GetSkuReply, error)
	SetSku(context.Context, *SetSkuRequest) (*SetSkuReply, error)
	Search(context.Context, *SearchRequest) (*SearchReply, error)
	AddSku(context.Context, *AddSkuRequest) (*emptypb.Empty, error)
	Ping(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

SkuServer is the server API for Sku service. All implementations must embed UnimplementedSkuServer for forward compatibility

type UnimplementedSkuServer

type UnimplementedSkuServer struct {
}

UnimplementedSkuServer must be embedded to have forward compatible implementations.

func (UnimplementedSkuServer) AddSku added in v0.0.2

func (UnimplementedSkuServer) Find added in v0.0.2

func (UnimplementedSkuServer) GetSku

func (UnimplementedSkuServer) Ping

func (UnimplementedSkuServer) Search added in v0.0.3

func (UnimplementedSkuServer) SetMedia added in v0.0.3

func (UnimplementedSkuServer) SetSku added in v0.0.2

type UnsafeSkuServer

type UnsafeSkuServer interface {
	// contains filtered or unexported methods
}

UnsafeSkuServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SkuServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL