brand_category

package
v0.0.0-...-86f108f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CategoryBrand_GetCategoryBrandFilterList_FullMethodName = "/category_brand.CategoryBrand/GetCategoryBrandFilterList"
	CategoryBrand_GetBrandListByCategory_FullMethodName     = "/category_brand.CategoryBrand/GetBrandListByCategory"
	CategoryBrand_CreateCategoryBrand_FullMethodName        = "/category_brand.CategoryBrand/CreateCategoryBrand"
	CategoryBrand_UpdateCategoryBrand_FullMethodName        = "/category_brand.CategoryBrand/UpdateCategoryBrand"
	CategoryBrand_DeleteCategoryBrand_FullMethodName        = "/category_brand.CategoryBrand/DeleteCategoryBrand"
	CategoryBrand_Ping_FullMethodName                       = "/category_brand.CategoryBrand/Ping"
)

Variables

View Source
var CategoryBrand_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "category_brand.CategoryBrand",
	HandlerType: (*CategoryBrandServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCategoryBrandFilterList",
			Handler:    _CategoryBrand_GetCategoryBrandFilterList_Handler,
		},
		{
			MethodName: "GetBrandListByCategory",
			Handler:    _CategoryBrand_GetBrandListByCategory_Handler,
		},
		{
			MethodName: "CreateCategoryBrand",
			Handler:    _CategoryBrand_CreateCategoryBrand_Handler,
		},
		{
			MethodName: "UpdateCategoryBrand",
			Handler:    _CategoryBrand_UpdateCategoryBrand_Handler,
		},
		{
			MethodName: "DeleteCategoryBrand",
			Handler:    _CategoryBrand_DeleteCategoryBrand_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _CategoryBrand_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/goods/category_brand.proto",
}

CategoryBrand_ServiceDesc is the grpc.ServiceDesc for CategoryBrand 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_category_brand_proto protoreflect.FileDescriptor

Functions

func RegisterCategoryBrandServer

func RegisterCategoryBrandServer(s grpc.ServiceRegistrar, srv CategoryBrandServer)

Types

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 CategoryBrandClient

type CategoryBrandClient interface {
	// 品牌分类接口
	GetCategoryBrandFilterList(ctx context.Context, in *GetCategoryBrandFilterListRequest, opts ...grpc.CallOption) (*CategoryBrandListResponse, error)
	GetBrandListByCategory(ctx context.Context, in *CategoryInfoRequest, opts ...grpc.CallOption) (*BrandListResponse, error)
	CreateCategoryBrand(ctx context.Context, in *CreateCategoryBrandRequest, opts ...grpc.CallOption) (*CategoryBrandInfoResponse, error)
	UpdateCategoryBrand(ctx context.Context, in *UpdateCategoryBrandRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteCategoryBrand(ctx context.Context, in *DeleteCategoryBrandRequest, opts ...grpc.CallOption) (*Empty, error)
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

CategoryBrandClient is the client API for CategoryBrand 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 CategoryBrandInfoResponse

type CategoryBrandInfoResponse 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 (*CategoryBrandInfoResponse) Descriptor deprecated

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

Deprecated: Use CategoryBrandInfoResponse.ProtoReflect.Descriptor instead.

func (*CategoryBrandInfoResponse) GetBrand

func (*CategoryBrandInfoResponse) GetCategory

func (*CategoryBrandInfoResponse) GetId

func (x *CategoryBrandInfoResponse) GetId() int32

func (*CategoryBrandInfoResponse) ProtoMessage

func (*CategoryBrandInfoResponse) ProtoMessage()

func (*CategoryBrandInfoResponse) ProtoReflect

func (*CategoryBrandInfoResponse) Reset

func (x *CategoryBrandInfoResponse) Reset()

func (*CategoryBrandInfoResponse) String

func (x *CategoryBrandInfoResponse) String() string

type CategoryBrandListResponse

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

func (*CategoryBrandListResponse) Descriptor deprecated

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

Deprecated: Use CategoryBrandListResponse.ProtoReflect.Descriptor instead.

func (*CategoryBrandListResponse) GetData

func (*CategoryBrandListResponse) GetTotal

func (x *CategoryBrandListResponse) GetTotal() int32

func (*CategoryBrandListResponse) ProtoMessage

func (*CategoryBrandListResponse) ProtoMessage()

func (*CategoryBrandListResponse) ProtoReflect

func (*CategoryBrandListResponse) Reset

func (x *CategoryBrandListResponse) Reset()

func (*CategoryBrandListResponse) String

func (x *CategoryBrandListResponse) String() string

type CategoryBrandServer

type CategoryBrandServer interface {
	// 品牌分类接口
	GetCategoryBrandFilterList(context.Context, *GetCategoryBrandFilterListRequest) (*CategoryBrandListResponse, error)
	GetBrandListByCategory(context.Context, *CategoryInfoRequest) (*BrandListResponse, error)
	CreateCategoryBrand(context.Context, *CreateCategoryBrandRequest) (*CategoryBrandInfoResponse, error)
	UpdateCategoryBrand(context.Context, *UpdateCategoryBrandRequest) (*Empty, error)
	DeleteCategoryBrand(context.Context, *DeleteCategoryBrandRequest) (*Empty, error)
	Ping(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

CategoryBrandServer is the server API for CategoryBrand service. All implementations must embed UnimplementedCategoryBrandServer for forward compatibility

type CategoryInfoRequest

type CategoryInfoRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 分类id
	// 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) 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 CreateCategoryBrandRequest

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

func (*CreateCategoryBrandRequest) Descriptor deprecated

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

Deprecated: Use CreateCategoryBrandRequest.ProtoReflect.Descriptor instead.

func (*CreateCategoryBrandRequest) GetId

func (x *CreateCategoryBrandRequest) GetId() int32

func (*CreateCategoryBrandRequest) ProtoMessage

func (*CreateCategoryBrandRequest) ProtoMessage()

func (*CreateCategoryBrandRequest) ProtoReflect

func (*CreateCategoryBrandRequest) Reset

func (x *CreateCategoryBrandRequest) Reset()

func (*CreateCategoryBrandRequest) String

func (x *CreateCategoryBrandRequest) String() string

type DeleteCategoryBrandRequest

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

func (*DeleteCategoryBrandRequest) Descriptor deprecated

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

Deprecated: Use DeleteCategoryBrandRequest.ProtoReflect.Descriptor instead.

func (*DeleteCategoryBrandRequest) GetId

func (x *DeleteCategoryBrandRequest) GetId() int32

func (*DeleteCategoryBrandRequest) ProtoMessage

func (*DeleteCategoryBrandRequest) ProtoMessage()

func (*DeleteCategoryBrandRequest) ProtoReflect

func (*DeleteCategoryBrandRequest) Reset

func (x *DeleteCategoryBrandRequest) Reset()

func (*DeleteCategoryBrandRequest) String

func (x *DeleteCategoryBrandRequest) 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 GetCategoryBrandFilterListRequest

type GetCategoryBrandFilterListRequest 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 (*GetCategoryBrandFilterListRequest) Descriptor deprecated

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

Deprecated: Use GetCategoryBrandFilterListRequest.ProtoReflect.Descriptor instead.

func (*GetCategoryBrandFilterListRequest) GetPagePerNums

func (x *GetCategoryBrandFilterListRequest) GetPagePerNums() int32

func (*GetCategoryBrandFilterListRequest) GetPages

func (*GetCategoryBrandFilterListRequest) ProtoMessage

func (*GetCategoryBrandFilterListRequest) ProtoMessage()

func (*GetCategoryBrandFilterListRequest) ProtoReflect

func (*GetCategoryBrandFilterListRequest) Reset

func (*GetCategoryBrandFilterListRequest) 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 UnimplementedCategoryBrandServer

type UnimplementedCategoryBrandServer struct {
}

UnimplementedCategoryBrandServer must be embedded to have forward compatible implementations.

func (UnimplementedCategoryBrandServer) CreateCategoryBrand

func (UnimplementedCategoryBrandServer) DeleteCategoryBrand

func (UnimplementedCategoryBrandServer) GetBrandListByCategory

func (UnimplementedCategoryBrandServer) Ping

func (UnimplementedCategoryBrandServer) UpdateCategoryBrand

type UnsafeCategoryBrandServer

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

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

type UpdateCategoryBrandRequest

type UpdateCategoryBrandRequest 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 (*UpdateCategoryBrandRequest) Descriptor deprecated

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

Deprecated: Use UpdateCategoryBrandRequest.ProtoReflect.Descriptor instead.

func (*UpdateCategoryBrandRequest) GetBrandId

func (x *UpdateCategoryBrandRequest) GetBrandId() int32

func (*UpdateCategoryBrandRequest) GetCategoryId

func (x *UpdateCategoryBrandRequest) GetCategoryId() int32

func (*UpdateCategoryBrandRequest) GetId

func (x *UpdateCategoryBrandRequest) GetId() int32

func (*UpdateCategoryBrandRequest) ProtoMessage

func (*UpdateCategoryBrandRequest) ProtoMessage()

func (*UpdateCategoryBrandRequest) ProtoReflect

func (*UpdateCategoryBrandRequest) Reset

func (x *UpdateCategoryBrandRequest) Reset()

func (*UpdateCategoryBrandRequest) String

func (x *UpdateCategoryBrandRequest) String() string

Jump to

Keyboard shortcuts

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