goods

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 (
	Goods_GetGoodsFilterList_FullMethodName = "/goods.Goods/GetGoodsFilterList"
	Goods_GetBatchGoodsList_FullMethodName  = "/goods.Goods/GetBatchGoodsList"
	Goods_GetGoodsDetail_FullMethodName     = "/goods.Goods/GetGoodsDetail"
	Goods_CreateGoods_FullMethodName        = "/goods.Goods/CreateGoods"
	Goods_UpdateGoods_FullMethodName        = "/goods.Goods/UpdateGoods"
	Goods_DeleteGoods_FullMethodName        = "/goods.Goods/DeleteGoods"
	Goods_Ping_FullMethodName               = "/goods.Goods/Ping"
)

Variables

View Source
var File_proto_goods_goods_proto protoreflect.FileDescriptor
View Source
var Goods_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goods.Goods",
	HandlerType: (*GoodsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGoodsFilterList",
			Handler:    _Goods_GetGoodsFilterList_Handler,
		},
		{
			MethodName: "GetBatchGoodsList",
			Handler:    _Goods_GetBatchGoodsList_Handler,
		},
		{
			MethodName: "GetGoodsDetail",
			Handler:    _Goods_GetGoodsDetail_Handler,
		},
		{
			MethodName: "CreateGoods",
			Handler:    _Goods_CreateGoods_Handler,
		},
		{
			MethodName: "UpdateGoods",
			Handler:    _Goods_UpdateGoods_Handler,
		},
		{
			MethodName: "DeleteGoods",
			Handler:    _Goods_DeleteGoods_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _Goods_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/goods/goods.proto",
}

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

Functions

func RegisterGoodsServer

func RegisterGoodsServer(s grpc.ServiceRegistrar, srv GoodsServer)

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 CategoryBriefInfoResponse

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

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

Deprecated: Use CategoryBriefInfoResponse.ProtoReflect.Descriptor instead.

func (*CategoryBriefInfoResponse) GetId

func (x *CategoryBriefInfoResponse) GetId() int32

func (*CategoryBriefInfoResponse) GetName

func (x *CategoryBriefInfoResponse) GetName() string

func (*CategoryBriefInfoResponse) ProtoMessage

func (*CategoryBriefInfoResponse) ProtoMessage()

func (*CategoryBriefInfoResponse) ProtoReflect

func (*CategoryBriefInfoResponse) Reset

func (x *CategoryBriefInfoResponse) Reset()

func (*CategoryBriefInfoResponse) String

func (x *CategoryBriefInfoResponse) String() string

type CreateGoodsCategoryRequest

type CreateGoodsCategoryRequest struct {
	Name           string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                      // 分类名称
	Id             int32  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`                         // 分类id
	ParentCategory int32  `protobuf:"varint,3,opt,name=parentCategory,proto3" json:"parentCategory,omitempty"` // 父分类
	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 (*CreateGoodsCategoryRequest) Descriptor deprecated

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

Deprecated: Use CreateGoodsCategoryRequest.ProtoReflect.Descriptor instead.

func (*CreateGoodsCategoryRequest) GetId

func (x *CreateGoodsCategoryRequest) GetId() int32

func (*CreateGoodsCategoryRequest) GetIsTab

func (x *CreateGoodsCategoryRequest) GetIsTab() bool

func (*CreateGoodsCategoryRequest) GetLevel

func (x *CreateGoodsCategoryRequest) GetLevel() int32

func (*CreateGoodsCategoryRequest) GetName

func (x *CreateGoodsCategoryRequest) GetName() string

func (*CreateGoodsCategoryRequest) GetParentCategory

func (x *CreateGoodsCategoryRequest) GetParentCategory() int32

func (*CreateGoodsCategoryRequest) ProtoMessage

func (*CreateGoodsCategoryRequest) ProtoMessage()

func (*CreateGoodsCategoryRequest) ProtoReflect

func (*CreateGoodsCategoryRequest) Reset

func (x *CreateGoodsCategoryRequest) Reset()

func (*CreateGoodsCategoryRequest) String

func (x *CreateGoodsCategoryRequest) String() string

type CreateGoodsRequest

type CreateGoodsRequest struct {

	// 创建商品请求
	Id               int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                             // 商品id
	StockNum         int32    `protobuf:"varint,2,opt,name=stockNum,proto3" json:"stockNum,omitempty"`                 // 库存数量
	CategoryId       int32    `protobuf:"varint,3,opt,name=categoryId,proto3" json:"categoryId,omitempty"`             // 商品分类id
	BrandId          int32    `protobuf:"varint,4,opt,name=brandId,proto3" json:"brandId,omitempty"`                   // 品牌id
	MarketPrice      float32  `protobuf:"fixed32,5,opt,name=marketPrice,proto3" json:"marketPrice,omitempty"`          // 市场价
	ShopPrice        float32  `protobuf:"fixed32,6,opt,name=shopPrice,proto3" json:"shopPrice,omitempty"`              // 商城价
	IsNew            bool     `protobuf:"varint,7,opt,name=isNew,proto3" json:"isNew,omitempty"`                       // 是否新品
	IsHot            bool     `protobuf:"varint,8,opt,name=isHot,proto3" json:"isHot,omitempty"`                       // 是否热门
	OnSale           bool     `protobuf:"varint,9,opt,name=onSale,proto3" json:"onSale,omitempty"`                     // 是否上架
	ShipFree         bool     `protobuf:"varint,10,opt,name=shipFree,proto3" json:"shipFree,omitempty"`                // 是否包邮
	GoodsBrief       string   `protobuf:"bytes,11,opt,name=goodsBrief,proto3" json:"goodsBrief,omitempty"`             // 商品简介
	GoodsDesc        string   `protobuf:"bytes,12,opt,name=goodsDesc,proto3" json:"goodsDesc,omitempty"`               // 商品描述
	GoodsFrontImages string   `protobuf:"bytes,13,opt,name=goodsFrontImages,proto3" json:"goodsFrontImages,omitempty"` // 商品封面图
	Name             string   `protobuf:"bytes,14,opt,name=name,proto3" json:"name,omitempty"`                         // 商品名称
	GoodsSn          string   `protobuf:"bytes,15,opt,name=goodsSn,proto3" json:"goodsSn,omitempty"`                   // 商品编号
	Images           []string `protobuf:"bytes,16,rep,name=images,proto3" json:"images,omitempty"`                     // 商品图片
	DescImages       []string `protobuf:"bytes,17,rep,name=descImages,proto3" json:"descImages,omitempty"`             // 商品详情图片
	// contains filtered or unexported fields
}

func (*CreateGoodsRequest) Descriptor deprecated

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

Deprecated: Use CreateGoodsRequest.ProtoReflect.Descriptor instead.

func (*CreateGoodsRequest) GetBrandId

func (x *CreateGoodsRequest) GetBrandId() int32

func (*CreateGoodsRequest) GetCategoryId

func (x *CreateGoodsRequest) GetCategoryId() int32

func (*CreateGoodsRequest) GetDescImages

func (x *CreateGoodsRequest) GetDescImages() []string

func (*CreateGoodsRequest) GetGoodsBrief

func (x *CreateGoodsRequest) GetGoodsBrief() string

func (*CreateGoodsRequest) GetGoodsDesc

func (x *CreateGoodsRequest) GetGoodsDesc() string

func (*CreateGoodsRequest) GetGoodsFrontImages

func (x *CreateGoodsRequest) GetGoodsFrontImages() string

func (*CreateGoodsRequest) GetGoodsSn

func (x *CreateGoodsRequest) GetGoodsSn() string

func (*CreateGoodsRequest) GetId

func (x *CreateGoodsRequest) GetId() int32

func (*CreateGoodsRequest) GetImages

func (x *CreateGoodsRequest) GetImages() []string

func (*CreateGoodsRequest) GetIsHot

func (x *CreateGoodsRequest) GetIsHot() bool

func (*CreateGoodsRequest) GetIsNew

func (x *CreateGoodsRequest) GetIsNew() bool

func (*CreateGoodsRequest) GetMarketPrice

func (x *CreateGoodsRequest) GetMarketPrice() float32

func (*CreateGoodsRequest) GetName

func (x *CreateGoodsRequest) GetName() string

func (*CreateGoodsRequest) GetOnSale

func (x *CreateGoodsRequest) GetOnSale() bool

func (*CreateGoodsRequest) GetShipFree

func (x *CreateGoodsRequest) GetShipFree() bool

func (*CreateGoodsRequest) GetShopPrice

func (x *CreateGoodsRequest) GetShopPrice() float32

func (*CreateGoodsRequest) GetStockNum

func (x *CreateGoodsRequest) GetStockNum() int32

func (*CreateGoodsRequest) ProtoMessage

func (*CreateGoodsRequest) ProtoMessage()

func (*CreateGoodsRequest) ProtoReflect

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

func (*CreateGoodsRequest) Reset

func (x *CreateGoodsRequest) Reset()

func (*CreateGoodsRequest) String

func (x *CreateGoodsRequest) String() string

type DeleteGoodsCategoryRequest

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

func (*DeleteGoodsCategoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteGoodsCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteGoodsCategoryRequest) GetId

func (x *DeleteGoodsCategoryRequest) GetId() int32

func (*DeleteGoodsCategoryRequest) ProtoMessage

func (*DeleteGoodsCategoryRequest) ProtoMessage()

func (*DeleteGoodsCategoryRequest) ProtoReflect

func (*DeleteGoodsCategoryRequest) Reset

func (x *DeleteGoodsCategoryRequest) Reset()

func (*DeleteGoodsCategoryRequest) String

func (x *DeleteGoodsCategoryRequest) String() string

type DeleteGoodsRequest

type DeleteGoodsRequest struct {

	// 删除商品请求
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 商品id
	// contains filtered or unexported fields
}

func (*DeleteGoodsRequest) Descriptor deprecated

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

Deprecated: Use DeleteGoodsRequest.ProtoReflect.Descriptor instead.

func (*DeleteGoodsRequest) GetId

func (x *DeleteGoodsRequest) GetId() int32

func (*DeleteGoodsRequest) ProtoMessage

func (*DeleteGoodsRequest) ProtoMessage()

func (*DeleteGoodsRequest) ProtoReflect

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

func (*DeleteGoodsRequest) Reset

func (x *DeleteGoodsRequest) Reset()

func (*DeleteGoodsRequest) String

func (x *DeleteGoodsRequest) 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 GetBatchGoodsListRequest

type GetBatchGoodsListRequest struct {
	Id []int32 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` // 商品id列表
	// contains filtered or unexported fields
}

func (*GetBatchGoodsListRequest) Descriptor deprecated

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

Deprecated: Use GetBatchGoodsListRequest.ProtoReflect.Descriptor instead.

func (*GetBatchGoodsListRequest) GetId

func (x *GetBatchGoodsListRequest) GetId() []int32

func (*GetBatchGoodsListRequest) ProtoMessage

func (*GetBatchGoodsListRequest) ProtoMessage()

func (*GetBatchGoodsListRequest) ProtoReflect

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

func (*GetBatchGoodsListRequest) Reset

func (x *GetBatchGoodsListRequest) Reset()

func (*GetBatchGoodsListRequest) String

func (x *GetBatchGoodsListRequest) String() string

type GetGoodsDetailRequest

type GetGoodsDetailRequest struct {

	// 获取商品详情请求
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 商品id
	// contains filtered or unexported fields
}

func (*GetGoodsDetailRequest) Descriptor deprecated

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

Deprecated: Use GetGoodsDetailRequest.ProtoReflect.Descriptor instead.

func (*GetGoodsDetailRequest) GetId

func (x *GetGoodsDetailRequest) GetId() int32

func (*GetGoodsDetailRequest) ProtoMessage

func (*GetGoodsDetailRequest) ProtoMessage()

func (*GetGoodsDetailRequest) ProtoReflect

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

func (*GetGoodsDetailRequest) Reset

func (x *GetGoodsDetailRequest) Reset()

func (*GetGoodsDetailRequest) String

func (x *GetGoodsDetailRequest) String() string

type GetGoodsFilterListRequest

type GetGoodsFilterListRequest struct {

	// 获取商品列表请求
	PriceMin    int32  `protobuf:"varint,1,opt,name=priceMin,proto3" json:"priceMin,omitempty"`       // 最低价格
	PriceMax    int32  `protobuf:"varint,2,opt,name=priceMax,proto3" json:"priceMax,omitempty"`       // 最高价格
	IsHot       bool   `protobuf:"varint,3,opt,name=isHot,proto3" json:"isHot,omitempty"`             // 是否热门
	IsNew       bool   `protobuf:"varint,4,opt,name=isNew,proto3" json:"isNew,omitempty"`             // 是否新品
	IsTab       bool   `protobuf:"varint,5,opt,name=isTab,proto3" json:"isTab,omitempty"`             // 是否推荐
	TopCategory int32  `protobuf:"varint,6,opt,name=topCategory,proto3" json:"topCategory,omitempty"` // 一级分类
	Pages       int32  `protobuf:"varint,7,opt,name=pages,proto3" json:"pages,omitempty"`             // 当前页数
	PagePerNums int32  `protobuf:"varint,8,opt,name=pagePerNums,proto3" json:"pagePerNums,omitempty"` // 每页显示数量
	Brand       int32  `protobuf:"varint,9,opt,name=brand,proto3" json:"brand,omitempty"`             // 品牌
	Keyword     string `protobuf:"bytes,10,opt,name=keyword,proto3" json:"keyword,omitempty"`         // 关键字
	// contains filtered or unexported fields
}

func (*GetGoodsFilterListRequest) Descriptor deprecated

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

Deprecated: Use GetGoodsFilterListRequest.ProtoReflect.Descriptor instead.

func (*GetGoodsFilterListRequest) GetBrand

func (x *GetGoodsFilterListRequest) GetBrand() int32

func (*GetGoodsFilterListRequest) GetIsHot

func (x *GetGoodsFilterListRequest) GetIsHot() bool

func (*GetGoodsFilterListRequest) GetIsNew

func (x *GetGoodsFilterListRequest) GetIsNew() bool

func (*GetGoodsFilterListRequest) GetIsTab

func (x *GetGoodsFilterListRequest) GetIsTab() bool

func (*GetGoodsFilterListRequest) GetKeyword

func (x *GetGoodsFilterListRequest) GetKeyword() string

func (*GetGoodsFilterListRequest) GetPagePerNums

func (x *GetGoodsFilterListRequest) GetPagePerNums() int32

func (*GetGoodsFilterListRequest) GetPages

func (x *GetGoodsFilterListRequest) GetPages() int32

func (*GetGoodsFilterListRequest) GetPriceMax

func (x *GetGoodsFilterListRequest) GetPriceMax() int32

func (*GetGoodsFilterListRequest) GetPriceMin

func (x *GetGoodsFilterListRequest) GetPriceMin() int32

func (*GetGoodsFilterListRequest) GetTopCategory

func (x *GetGoodsFilterListRequest) GetTopCategory() int32

func (*GetGoodsFilterListRequest) ProtoMessage

func (*GetGoodsFilterListRequest) ProtoMessage()

func (*GetGoodsFilterListRequest) ProtoReflect

func (*GetGoodsFilterListRequest) Reset

func (x *GetGoodsFilterListRequest) Reset()

func (*GetGoodsFilterListRequest) String

func (x *GetGoodsFilterListRequest) String() string

type GetSubGoodsCategoryListRequest

type GetSubGoodsCategoryListRequest struct {

	// 获取商品子分类列表请求
	Id    int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`       // 商品分类id
	Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // 商品分类级别
	// contains filtered or unexported fields
}

func (*GetSubGoodsCategoryListRequest) Descriptor deprecated

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

Deprecated: Use GetSubGoodsCategoryListRequest.ProtoReflect.Descriptor instead.

func (*GetSubGoodsCategoryListRequest) GetId

func (*GetSubGoodsCategoryListRequest) GetLevel

func (x *GetSubGoodsCategoryListRequest) GetLevel() int32

func (*GetSubGoodsCategoryListRequest) ProtoMessage

func (*GetSubGoodsCategoryListRequest) ProtoMessage()

func (*GetSubGoodsCategoryListRequest) ProtoReflect

func (*GetSubGoodsCategoryListRequest) Reset

func (x *GetSubGoodsCategoryListRequest) Reset()

func (*GetSubGoodsCategoryListRequest) 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 GoodsCategoryListResponse

type GoodsCategoryListResponse struct {
	Total    int32                        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`      // 总数
	Info     []*GoodsCategoryInfoResponse `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty"`         // 分类信息
	JsonData string                       `protobuf:"bytes,3,opt,name=jsonData,proto3" json:"jsonData,omitempty"` // 分类信息json格式
	// contains filtered or unexported fields
}

func (*GoodsCategoryListResponse) Descriptor deprecated

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

Deprecated: Use GoodsCategoryListResponse.ProtoReflect.Descriptor instead.

func (*GoodsCategoryListResponse) GetInfo

func (*GoodsCategoryListResponse) GetJsonData

func (x *GoodsCategoryListResponse) GetJsonData() string

func (*GoodsCategoryListResponse) GetTotal

func (x *GoodsCategoryListResponse) GetTotal() int32

func (*GoodsCategoryListResponse) ProtoMessage

func (*GoodsCategoryListResponse) ProtoMessage()

func (*GoodsCategoryListResponse) ProtoReflect

func (*GoodsCategoryListResponse) Reset

func (x *GoodsCategoryListResponse) Reset()

func (*GoodsCategoryListResponse) String

func (x *GoodsCategoryListResponse) String() string

type GoodsClient

type GoodsClient interface {
	// 商品接口
	GetGoodsFilterList(ctx context.Context, in *GetGoodsFilterListRequest, opts ...grpc.CallOption) (*GoodsListResponse, error)
	GetBatchGoodsList(ctx context.Context, in *GetBatchGoodsListRequest, opts ...grpc.CallOption) (*GoodsListResponse, error)
	GetGoodsDetail(ctx context.Context, in *GetGoodsDetailRequest, opts ...grpc.CallOption) (*GoodsInfoResponse, error)
	CreateGoods(ctx context.Context, in *CreateGoodsRequest, opts ...grpc.CallOption) (*GoodsInfoResponse, error)
	UpdateGoods(ctx context.Context, in *CreateGoodsRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteGoods(ctx context.Context, in *DeleteGoodsRequest, opts ...grpc.CallOption) (*Empty, error)
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

GoodsClient is the client API for Goods 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 NewGoodsClient

func NewGoodsClient(cc grpc.ClientConnInterface) GoodsClient

type GoodsInfoResponse

type GoodsInfoResponse 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
	ClickNum         int32                      `protobuf:"varint,3,opt,name=clickNum,proto3" json:"clickNum,omitempty"`                 // 点击数
	SoldNum          int32                      `protobuf:"varint,4,opt,name=soldNum,proto3" json:"soldNum,omitempty"`                   // 销售数
	FavNum           int32                      `protobuf:"varint,5,opt,name=favNum,proto3" json:"favNum,omitempty"`                     // 收藏数
	AddTime          int64                      `protobuf:"varint,6,opt,name=addTime,proto3" json:"addTime,omitempty"`                   // 添加时间
	MarketPrice      float32                    `protobuf:"fixed32,7,opt,name=marketPrice,proto3" json:"marketPrice,omitempty"`          // 市场价
	ShopPrice        float32                    `protobuf:"fixed32,8,opt,name=shopPrice,proto3" json:"shopPrice,omitempty"`              // 商城价
	IsNew            bool                       `protobuf:"varint,9,opt,name=isNew,proto3" json:"isNew,omitempty"`                       // 是否新品
	IsHot            bool                       `protobuf:"varint,10,opt,name=isHot,proto3" json:"isHot,omitempty"`                      // 是否热门
	OnSale           bool                       `protobuf:"varint,11,opt,name=onSale,proto3" json:"onSale,omitempty"`                    // 是否上架
	ShipFree         bool                       `protobuf:"varint,12,opt,name=shipFree,proto3" json:"shipFree,omitempty"`                // 是否包邮
	GoodsBrief       string                     `protobuf:"bytes,13,opt,name=goodsBrief,proto3" json:"goodsBrief,omitempty"`             // 商品简介
	GoodsDesc        string                     `protobuf:"bytes,14,opt,name=goodsDesc,proto3" json:"goodsDesc,omitempty"`               // 商品描述
	GoodsFrontImages string                     `protobuf:"bytes,15,opt,name=goodsFrontImages,proto3" json:"goodsFrontImages,omitempty"` // 商品封面图
	Name             string                     `protobuf:"bytes,16,opt,name=name,proto3" json:"name,omitempty"`                         // 商品名称
	GoodsSn          string                     `protobuf:"bytes,17,opt,name=goodsSn,proto3" json:"goodsSn,omitempty"`                   // 商品编号
	Images           []string                   `protobuf:"bytes,18,rep,name=images,proto3" json:"images,omitempty"`                     // 商品图片
	DescImages       []string                   `protobuf:"bytes,19,rep,name=descImages,proto3" json:"descImages,omitempty"`             // 商品详情图片
	Category         *CategoryBriefInfoResponse `protobuf:"bytes,20,opt,name=category,proto3" json:"category,omitempty"`                 // 商品分类
	Brand            *BrandInfoResponse         `protobuf:"bytes,21,opt,name=brand,proto3" json:"brand,omitempty"`                       // 品牌
	// contains filtered or unexported fields
}

func (*GoodsInfoResponse) Descriptor deprecated

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

Deprecated: Use GoodsInfoResponse.ProtoReflect.Descriptor instead.

func (*GoodsInfoResponse) GetAddTime

func (x *GoodsInfoResponse) GetAddTime() int64

func (*GoodsInfoResponse) GetBrand

func (x *GoodsInfoResponse) GetBrand() *BrandInfoResponse

func (*GoodsInfoResponse) GetCategory

func (x *GoodsInfoResponse) GetCategory() *CategoryBriefInfoResponse

func (*GoodsInfoResponse) GetCategoryId

func (x *GoodsInfoResponse) GetCategoryId() int32

func (*GoodsInfoResponse) GetClickNum

func (x *GoodsInfoResponse) GetClickNum() int32

func (*GoodsInfoResponse) GetDescImages

func (x *GoodsInfoResponse) GetDescImages() []string

func (*GoodsInfoResponse) GetFavNum

func (x *GoodsInfoResponse) GetFavNum() int32

func (*GoodsInfoResponse) GetGoodsBrief

func (x *GoodsInfoResponse) GetGoodsBrief() string

func (*GoodsInfoResponse) GetGoodsDesc

func (x *GoodsInfoResponse) GetGoodsDesc() string

func (*GoodsInfoResponse) GetGoodsFrontImages

func (x *GoodsInfoResponse) GetGoodsFrontImages() string

func (*GoodsInfoResponse) GetGoodsSn

func (x *GoodsInfoResponse) GetGoodsSn() string

func (*GoodsInfoResponse) GetId

func (x *GoodsInfoResponse) GetId() int32

func (*GoodsInfoResponse) GetImages

func (x *GoodsInfoResponse) GetImages() []string

func (*GoodsInfoResponse) GetIsHot

func (x *GoodsInfoResponse) GetIsHot() bool

func (*GoodsInfoResponse) GetIsNew

func (x *GoodsInfoResponse) GetIsNew() bool

func (*GoodsInfoResponse) GetMarketPrice

func (x *GoodsInfoResponse) GetMarketPrice() float32

func (*GoodsInfoResponse) GetName

func (x *GoodsInfoResponse) GetName() string

func (*GoodsInfoResponse) GetOnSale

func (x *GoodsInfoResponse) GetOnSale() bool

func (*GoodsInfoResponse) GetShipFree

func (x *GoodsInfoResponse) GetShipFree() bool

func (*GoodsInfoResponse) GetShopPrice

func (x *GoodsInfoResponse) GetShopPrice() float32

func (*GoodsInfoResponse) GetSoldNum

func (x *GoodsInfoResponse) GetSoldNum() int32

func (*GoodsInfoResponse) ProtoMessage

func (*GoodsInfoResponse) ProtoMessage()

func (*GoodsInfoResponse) ProtoReflect

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

func (*GoodsInfoResponse) Reset

func (x *GoodsInfoResponse) Reset()

func (*GoodsInfoResponse) String

func (x *GoodsInfoResponse) String() string

type GoodsListResponse

type GoodsListResponse struct {

	// 商品列表响应
	Goods []*GoodsInfoResponse `protobuf:"bytes,1,rep,name=goods,proto3" json:"goods,omitempty"`  // 商品列表
	Total int32                `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总数
	// contains filtered or unexported fields
}

func (*GoodsListResponse) Descriptor deprecated

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

Deprecated: Use GoodsListResponse.ProtoReflect.Descriptor instead.

func (*GoodsListResponse) GetGoods

func (x *GoodsListResponse) GetGoods() []*GoodsInfoResponse

func (*GoodsListResponse) GetTotal

func (x *GoodsListResponse) GetTotal() int32

func (*GoodsListResponse) ProtoMessage

func (*GoodsListResponse) ProtoMessage()

func (*GoodsListResponse) ProtoReflect

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

func (*GoodsListResponse) Reset

func (x *GoodsListResponse) Reset()

func (*GoodsListResponse) String

func (x *GoodsListResponse) String() string

type GoodsServer

type GoodsServer interface {
	// 商品接口
	GetGoodsFilterList(context.Context, *GetGoodsFilterListRequest) (*GoodsListResponse, error)
	GetBatchGoodsList(context.Context, *GetBatchGoodsListRequest) (*GoodsListResponse, error)
	GetGoodsDetail(context.Context, *GetGoodsDetailRequest) (*GoodsInfoResponse, error)
	CreateGoods(context.Context, *CreateGoodsRequest) (*GoodsInfoResponse, error)
	UpdateGoods(context.Context, *CreateGoodsRequest) (*Empty, error)
	DeleteGoods(context.Context, *DeleteGoodsRequest) (*Empty, error)
	Ping(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

GoodsServer is the server API for Goods service. All implementations must embed UnimplementedGoodsServer for forward compatibility

type SubGoodsCategoryListResponse

type SubGoodsCategoryListResponse struct {
	Total        int32                        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`              // 总数
	Info         *GoodsCategoryInfoResponse   `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`                 // 本身分类信息
	SubCategorys []*GoodsCategoryInfoResponse `protobuf:"bytes,3,rep,name=subCategorys,proto3" json:"subCategorys,omitempty"` // 子分类信息
	// contains filtered or unexported fields
}

func (*SubGoodsCategoryListResponse) Descriptor deprecated

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

Deprecated: Use SubGoodsCategoryListResponse.ProtoReflect.Descriptor instead.

func (*SubGoodsCategoryListResponse) GetInfo

func (*SubGoodsCategoryListResponse) GetSubCategorys

func (*SubGoodsCategoryListResponse) GetTotal

func (x *SubGoodsCategoryListResponse) GetTotal() int32

func (*SubGoodsCategoryListResponse) ProtoMessage

func (*SubGoodsCategoryListResponse) ProtoMessage()

func (*SubGoodsCategoryListResponse) ProtoReflect

func (*SubGoodsCategoryListResponse) Reset

func (x *SubGoodsCategoryListResponse) Reset()

func (*SubGoodsCategoryListResponse) String

type UnimplementedGoodsServer

type UnimplementedGoodsServer struct {
}

UnimplementedGoodsServer must be embedded to have forward compatible implementations.

func (UnimplementedGoodsServer) CreateGoods

func (UnimplementedGoodsServer) DeleteGoods

func (UnimplementedGoodsServer) GetBatchGoodsList

func (UnimplementedGoodsServer) GetGoodsDetail

func (UnimplementedGoodsServer) GetGoodsFilterList

func (UnimplementedGoodsServer) Ping

func (UnimplementedGoodsServer) UpdateGoods

type UnsafeGoodsServer

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

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

Jump to

Keyboard shortcuts

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