fs_srv_goods

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_goods_goods_proto protoreflect.FileDescriptor

Functions

func RegisterGoodsHandler

func RegisterGoodsHandler(s server.Server, hdlr GoodsHandler, opts ...server.HandlerOption) error

Types

type Good

type Good struct {
	Id    int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*Good) Descriptor deprecated

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

Deprecated: Use Good.ProtoReflect.Descriptor instead.

func (*Good) GetCount

func (x *Good) GetCount() int64

func (*Good) GetId

func (x *Good) GetId() int64

func (*Good) ProtoMessage

func (*Good) ProtoMessage()

func (*Good) ProtoReflect

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

func (*Good) Reset

func (x *Good) Reset()

func (*Good) String

func (x *Good) String() string

type GoodsHandler

type GoodsHandler interface {
	UpdateCount(context.Context, *UpdateCountReq, *UpdateCountResp) error
}

type GoodsService

type GoodsService interface {
	UpdateCount(ctx context.Context, in *UpdateCountReq, opts ...client.CallOption) (*UpdateCountResp, error)
}

func NewGoodsService

func NewGoodsService(name string, c client.Client) GoodsService

type UpdateCountReq

type UpdateCountReq struct {
	Goods                   []*Good `protobuf:"bytes,1,rep,name=goods,proto3" json:"goods,omitempty"`
	DecorPrice              int64   `protobuf:"varint,2,opt,name=decorPrice,proto3" json:"decorPrice,omitempty"`
	DeliveryPrice           int64   `protobuf:"varint,3,opt,name=deliveryPrice,proto3" json:"deliveryPrice,omitempty"`
	AdditionalDecorPrice    int64   `protobuf:"varint,4,opt,name=additionalDecorPrice,proto3" json:"additionalDecorPrice,omitempty"`
	SalePrice               int64   `protobuf:"varint,5,opt,name=salePrice,proto3" json:"salePrice,omitempty"`
	TotalCost               int64   `protobuf:"varint,6,opt,name=totalCost,proto3" json:"totalCost,omitempty"`
	ManagerId               int64   `protobuf:"varint,7,opt,name=managerId,proto3" json:"managerId,omitempty"`
	NeedCalculateDifference bool    `protobuf:"varint,8,opt,name=needCalculateDifference,proto3" json:"needCalculateDifference,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCountReq) Descriptor deprecated

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

Deprecated: Use UpdateCountReq.ProtoReflect.Descriptor instead.

func (*UpdateCountReq) GetAdditionalDecorPrice

func (x *UpdateCountReq) GetAdditionalDecorPrice() int64

func (*UpdateCountReq) GetDecorPrice

func (x *UpdateCountReq) GetDecorPrice() int64

func (*UpdateCountReq) GetDeliveryPrice

func (x *UpdateCountReq) GetDeliveryPrice() int64

func (*UpdateCountReq) GetGoods

func (x *UpdateCountReq) GetGoods() []*Good

func (*UpdateCountReq) GetManagerId

func (x *UpdateCountReq) GetManagerId() int64

func (*UpdateCountReq) GetNeedCalculateDifference

func (x *UpdateCountReq) GetNeedCalculateDifference() bool

func (*UpdateCountReq) GetSalePrice

func (x *UpdateCountReq) GetSalePrice() int64

func (*UpdateCountReq) GetTotalCost

func (x *UpdateCountReq) GetTotalCost() int64

func (*UpdateCountReq) ProtoMessage

func (*UpdateCountReq) ProtoMessage()

func (*UpdateCountReq) ProtoReflect

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

func (*UpdateCountReq) Reset

func (x *UpdateCountReq) Reset()

func (*UpdateCountReq) String

func (x *UpdateCountReq) String() string

type UpdateCountResp

type UpdateCountResp struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCountResp) Descriptor deprecated

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

Deprecated: Use UpdateCountResp.ProtoReflect.Descriptor instead.

func (*UpdateCountResp) GetOk

func (x *UpdateCountResp) GetOk() bool

func (*UpdateCountResp) ProtoMessage

func (*UpdateCountResp) ProtoMessage()

func (*UpdateCountResp) ProtoReflect

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

func (*UpdateCountResp) Reset

func (x *UpdateCountResp) Reset()

func (*UpdateCountResp) String

func (x *UpdateCountResp) String() string

Jump to

Keyboard shortcuts

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