brand_category

package
v0.0.0-...-6f596e7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrandCategory_GetBrandCategoryFilterList_FullMethodName = "/brand_category.BrandCategory/GetBrandCategoryFilterList"
	BrandCategory_GetBrandListByCategory_FullMethodName     = "/brand_category.BrandCategory/GetBrandListByCategory"
	BrandCategory_CreateBrandCategory_FullMethodName        = "/brand_category.BrandCategory/CreateBrandCategory"
	BrandCategory_UpdateBrandCategory_FullMethodName        = "/brand_category.BrandCategory/UpdateBrandCategory"
	BrandCategory_DeleteBrandCategory_FullMethodName        = "/brand_category.BrandCategory/DeleteBrandCategory"
	BrandCategory_Ping_FullMethodName                       = "/brand_category.BrandCategory/Ping"
)

Variables

View Source
var BrandCategory_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "brand_category.BrandCategory",
	HandlerType: (*BrandCategoryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBrandCategoryFilterList",
			Handler:    _BrandCategory_GetBrandCategoryFilterList_Handler,
		},
		{
			MethodName: "GetBrandListByCategory",
			Handler:    _BrandCategory_GetBrandListByCategory_Handler,
		},
		{
			MethodName: "CreateBrandCategory",
			Handler:    _BrandCategory_CreateBrandCategory_Handler,
		},
		{
			MethodName: "UpdateBrandCategory",
			Handler:    _BrandCategory_UpdateBrandCategory_Handler,
		},
		{
			MethodName: "DeleteBrandCategory",
			Handler:    _BrandCategory_DeleteBrandCategory_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _BrandCategory_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/goods/brand_category.proto",
}

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

View Source
var File_proto_goods_brand_category_proto protoreflect.FileDescriptor

Functions

func RegisterBrandCategoryServer

func RegisterBrandCategoryServer(s grpc.ServiceRegistrar, srv BrandCategoryServer)

Types

type BrandCategoryClient

type BrandCategoryClient interface {
	// 品牌分类接口
	GetBrandCategoryFilterList(ctx context.Context, in *GetBrandCategoryFilterListResponse, opts ...grpc.CallOption) (*BrandCategoryListResponse, error)
	GetBrandListByCategory(ctx context.Context, in *CategoryInfoRequest, opts ...grpc.CallOption) (*BrandListResponse, error)
	CreateBrandCategory(ctx context.Context, in *CreateBrandCategoryRequest, opts ...grpc.CallOption) (*BrandCategoryInfoResponse, error)
	UpdateBrandCategory(ctx context.Context, in *CreateBrandCategoryRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteBrandCategory(ctx context.Context, in *DeleteBrandCategoryRequest, opts ...grpc.CallOption) (*Empty, error)
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

BrandCategoryClient is the client API for BrandCategory 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 BrandCategoryInfoResponse

type BrandCategoryInfoResponse struct {
	Id       int32                      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`            // 品牌分类id
	Brand    *BrandInfoResponse         `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"`       // 品牌信息
	Category *GoodsCategoryInfoResponse `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` // 商品分类信息
	// contains filtered or unexported fields
}

func (*BrandCategoryInfoResponse) Descriptor deprecated

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

Deprecated: Use BrandCategoryInfoResponse.ProtoReflect.Descriptor instead.

func (*BrandCategoryInfoResponse) GetBrand

func (*BrandCategoryInfoResponse) GetCategory

func (*BrandCategoryInfoResponse) GetId

func (x *BrandCategoryInfoResponse) GetId() int32

func (*BrandCategoryInfoResponse) ProtoMessage

func (*BrandCategoryInfoResponse) ProtoMessage()

func (*BrandCategoryInfoResponse) ProtoReflect

func (*BrandCategoryInfoResponse) Reset

func (x *BrandCategoryInfoResponse) Reset()

func (*BrandCategoryInfoResponse) String

func (x *BrandCategoryInfoResponse) String() string

type BrandCategoryListResponse

type BrandCategoryListResponse struct {
	Total int32                        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总数
	Data  []*BrandCategoryInfoResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`    // 品牌分类列表
	// contains filtered or unexported fields
}

func (*BrandCategoryListResponse) Descriptor deprecated

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

Deprecated: Use BrandCategoryListResponse.ProtoReflect.Descriptor instead.

func (*BrandCategoryListResponse) GetData

func (*BrandCategoryListResponse) GetTotal

func (x *BrandCategoryListResponse) GetTotal() int32

func (*BrandCategoryListResponse) ProtoMessage

func (*BrandCategoryListResponse) ProtoMessage()

func (*BrandCategoryListResponse) ProtoReflect

func (*BrandCategoryListResponse) Reset

func (x *BrandCategoryListResponse) Reset()

func (*BrandCategoryListResponse) String

func (x *BrandCategoryListResponse) String() string

type BrandCategoryServer

type BrandCategoryServer interface {
	// 品牌分类接口
	GetBrandCategoryFilterList(context.Context, *GetBrandCategoryFilterListResponse) (*BrandCategoryListResponse, error)
	GetBrandListByCategory(context.Context, *CategoryInfoRequest) (*BrandListResponse, error)
	CreateBrandCategory(context.Context, *CreateBrandCategoryRequest) (*BrandCategoryInfoResponse, error)
	UpdateBrandCategory(context.Context, *CreateBrandCategoryRequest) (*Empty, error)
	DeleteBrandCategory(context.Context, *DeleteBrandCategoryRequest) (*Empty, error)
	Ping(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

BrandCategoryServer is the server API for BrandCategory service. All implementations must embed UnimplementedBrandCategoryServer for forward compatibility

type BrandInfoResponse

type BrandInfoResponse struct {

	// 品牌信息
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`    // 品牌id
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 品牌名称
	// contains filtered or unexported fields
}

func (*BrandInfoResponse) Descriptor deprecated

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

Deprecated: Use BrandInfoResponse.ProtoReflect.Descriptor instead.

func (*BrandInfoResponse) GetId

func (x *BrandInfoResponse) GetId() int32
func (x *BrandInfoResponse) GetLogo() string

func (*BrandInfoResponse) GetName

func (x *BrandInfoResponse) GetName() string

func (*BrandInfoResponse) ProtoMessage

func (*BrandInfoResponse) ProtoMessage()

func (*BrandInfoResponse) ProtoReflect

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

func (*BrandInfoResponse) Reset

func (x *BrandInfoResponse) Reset()

func (*BrandInfoResponse) String

func (x *BrandInfoResponse) String() string

type BrandListResponse

type BrandListResponse struct {
	Total int32                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总数
	Data  []*BrandInfoResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`    // 品牌列表
	// contains filtered or unexported fields
}

func (*BrandListResponse) Descriptor deprecated

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

Deprecated: Use BrandListResponse.ProtoReflect.Descriptor instead.

func (*BrandListResponse) GetData

func (x *BrandListResponse) GetData() []*BrandInfoResponse

func (*BrandListResponse) GetTotal

func (x *BrandListResponse) GetTotal() int32

func (*BrandListResponse) ProtoMessage

func (*BrandListResponse) ProtoMessage()

func (*BrandListResponse) ProtoReflect

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

func (*BrandListResponse) Reset

func (x *BrandListResponse) Reset()

func (*BrandListResponse) String

func (x *BrandListResponse) String() string

type CategoryInfoRequest

type CategoryInfoRequest struct {
	Id             int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                         // 分类id
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                      // 分类名称
	Level          int32  `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`                   // 分类级别
	ParentCategory int32  `protobuf:"varint,4,opt,name=parentCategory,proto3" json:"parentCategory,omitempty"` // 父分类
	IsTab          bool   `protobuf:"varint,5,opt,name=isTab,proto3" json:"isTab,omitempty"`                   // 是否为tab
	// contains filtered or unexported fields
}

func (*CategoryInfoRequest) Descriptor deprecated

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

Deprecated: Use CategoryInfoRequest.ProtoReflect.Descriptor instead.

func (*CategoryInfoRequest) GetId

func (x *CategoryInfoRequest) GetId() int32

func (*CategoryInfoRequest) GetIsTab

func (x *CategoryInfoRequest) GetIsTab() bool

func (*CategoryInfoRequest) GetLevel

func (x *CategoryInfoRequest) GetLevel() int32

func (*CategoryInfoRequest) GetName

func (x *CategoryInfoRequest) GetName() string

func (*CategoryInfoRequest) GetParentCategory

func (x *CategoryInfoRequest) GetParentCategory() int32

func (*CategoryInfoRequest) ProtoMessage

func (*CategoryInfoRequest) ProtoMessage()

func (*CategoryInfoRequest) ProtoReflect

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

func (*CategoryInfoRequest) Reset

func (x *CategoryInfoRequest) Reset()

func (*CategoryInfoRequest) String

func (x *CategoryInfoRequest) String() string

type CreateBrandCategoryRequest

type CreateBrandCategoryRequest struct {
	Id         int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                 // id
	CategoryId int32 `protobuf:"varint,2,opt,name=categoryId,proto3" json:"categoryId,omitempty"` // 分类id
	BrandId    int32 `protobuf:"varint,3,opt,name=brandId,proto3" json:"brandId,omitempty"`       // 品牌id
	// contains filtered or unexported fields
}

func (*CreateBrandCategoryRequest) Descriptor deprecated

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

Deprecated: Use CreateBrandCategoryRequest.ProtoReflect.Descriptor instead.

func (*CreateBrandCategoryRequest) GetBrandId

func (x *CreateBrandCategoryRequest) GetBrandId() int32

func (*CreateBrandCategoryRequest) GetCategoryId

func (x *CreateBrandCategoryRequest) GetCategoryId() int32

func (*CreateBrandCategoryRequest) GetId

func (x *CreateBrandCategoryRequest) GetId() int32

func (*CreateBrandCategoryRequest) ProtoMessage

func (*CreateBrandCategoryRequest) ProtoMessage()

func (*CreateBrandCategoryRequest) ProtoReflect

func (*CreateBrandCategoryRequest) Reset

func (x *CreateBrandCategoryRequest) Reset()

func (*CreateBrandCategoryRequest) String

func (x *CreateBrandCategoryRequest) String() string

type DeleteBrandCategoryRequest

type DeleteBrandCategoryRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 品牌分类id
	// contains filtered or unexported fields
}

func (*DeleteBrandCategoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteBrandCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteBrandCategoryRequest) GetId

func (x *DeleteBrandCategoryRequest) GetId() int32

func (*DeleteBrandCategoryRequest) ProtoMessage

func (*DeleteBrandCategoryRequest) ProtoMessage()

func (*DeleteBrandCategoryRequest) ProtoReflect

func (*DeleteBrandCategoryRequest) Reset

func (x *DeleteBrandCategoryRequest) Reset()

func (*DeleteBrandCategoryRequest) String

func (x *DeleteBrandCategoryRequest) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetBrandCategoryFilterListResponse

type GetBrandCategoryFilterListResponse struct {
	Pages       int32 `protobuf:"varint,1,opt,name=pages,proto3" json:"pages,omitempty"`
	PagePerNums int32 `protobuf:"varint,2,opt,name=pagePerNums,proto3" json:"pagePerNums,omitempty"` // 每页显示数量
	// contains filtered or unexported fields
}

func (*GetBrandCategoryFilterListResponse) Descriptor deprecated

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

Deprecated: Use GetBrandCategoryFilterListResponse.ProtoReflect.Descriptor instead.

func (*GetBrandCategoryFilterListResponse) GetPagePerNums

func (x *GetBrandCategoryFilterListResponse) GetPagePerNums() int32

func (*GetBrandCategoryFilterListResponse) GetPages

func (*GetBrandCategoryFilterListResponse) ProtoMessage

func (*GetBrandCategoryFilterListResponse) ProtoMessage()

func (*GetBrandCategoryFilterListResponse) ProtoReflect

func (*GetBrandCategoryFilterListResponse) Reset

func (*GetBrandCategoryFilterListResponse) String

type GoodsCategoryInfoResponse

type GoodsCategoryInfoResponse struct {
	Id             int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                         // 分类id
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                      // 分类名称
	ParentCategory int32  `protobuf:"varint,3,opt,name=parentCategory,proto3" json:"parentCategory,omitempty"` // 父分类id
	Level          int32  `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`                   // 分类级别
	IsTab          bool   `protobuf:"varint,5,opt,name=isTab,proto3" json:"isTab,omitempty"`                   // 是否为tab分类
	// contains filtered or unexported fields
}

func (*GoodsCategoryInfoResponse) Descriptor deprecated

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

Deprecated: Use GoodsCategoryInfoResponse.ProtoReflect.Descriptor instead.

func (*GoodsCategoryInfoResponse) GetId

func (x *GoodsCategoryInfoResponse) GetId() int32

func (*GoodsCategoryInfoResponse) GetIsTab

func (x *GoodsCategoryInfoResponse) GetIsTab() bool

func (*GoodsCategoryInfoResponse) GetLevel

func (x *GoodsCategoryInfoResponse) GetLevel() int32

func (*GoodsCategoryInfoResponse) GetName

func (x *GoodsCategoryInfoResponse) GetName() string

func (*GoodsCategoryInfoResponse) GetParentCategory

func (x *GoodsCategoryInfoResponse) GetParentCategory() int32

func (*GoodsCategoryInfoResponse) ProtoMessage

func (*GoodsCategoryInfoResponse) ProtoMessage()

func (*GoodsCategoryInfoResponse) ProtoReflect

func (*GoodsCategoryInfoResponse) Reset

func (x *GoodsCategoryInfoResponse) Reset()

func (*GoodsCategoryInfoResponse) String

func (x *GoodsCategoryInfoResponse) String() string

type UnimplementedBrandCategoryServer

type UnimplementedBrandCategoryServer struct {
}

UnimplementedBrandCategoryServer must be embedded to have forward compatible implementations.

func (UnimplementedBrandCategoryServer) CreateBrandCategory

func (UnimplementedBrandCategoryServer) DeleteBrandCategory

func (UnimplementedBrandCategoryServer) GetBrandListByCategory

func (UnimplementedBrandCategoryServer) Ping

func (UnimplementedBrandCategoryServer) UpdateBrandCategory

type UnsafeBrandCategoryServer

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

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

Jump to

Keyboard shortcuts

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