Documentation ¶
Overview ¶
Package event_proto is a generated protocol buffer package.
It is generated from these files:
proto/event/event.proto
It has these top-level messages:
EventInfo EventDetailedInfo ProductInfo FrontEventInfo GeneralRequest GeneralResponse AddEventRequest GetEventListRequest GetEventListResponse GetEventResponse EditEventRequest GetFrontEventListRequest GetFrontEventListResponse GetFrontEventResponse
Index ¶
- Variables
- func RegisterEventServiceHandler(s server.Server, hdlr EventServiceHandler, opts ...server.HandlerOption) error
- type AddEventRequest
- type EditEventRequest
- type EventDetailedInfo
- func (*EventDetailedInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EventDetailedInfo) GetEventCreateTime() string
- func (x *EventDetailedInfo) GetEventInfo() *EventInfo
- func (x *EventDetailedInfo) GetProductName() string
- func (*EventDetailedInfo) ProtoMessage()
- func (x *EventDetailedInfo) ProtoReflect() protoreflect.Message
- func (x *EventDetailedInfo) Reset()
- func (x *EventDetailedInfo) String() string
- type EventInfo
- func (*EventInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EventInfo) GetDescription() string
- func (x *EventInfo) GetEndTime() string
- func (x *EventInfo) GetEventNum() int32
- func (x *EventInfo) GetEventPrice() float32
- func (x *EventInfo) GetId() string
- func (x *EventInfo) GetName() string
- func (x *EventInfo) GetProductId() string
- func (x *EventInfo) GetStartTime() string
- func (*EventInfo) ProtoMessage()
- func (x *EventInfo) ProtoReflect() protoreflect.Message
- func (x *EventInfo) Reset()
- func (x *EventInfo) String() string
- type EventService
- type EventServiceHandler
- type FrontEventInfo
- func (*FrontEventInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FrontEventInfo) GetEventDetailedInfo() *EventDetailedInfo
- func (x *FrontEventInfo) GetProductInfo() *ProductInfo
- func (*FrontEventInfo) ProtoMessage()
- func (x *FrontEventInfo) ProtoReflect() protoreflect.Message
- func (x *FrontEventInfo) Reset()
- func (x *FrontEventInfo) String() string
- type GeneralRequest
- type GeneralResponse
- func (*GeneralResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneralResponse) GetCode() string
- func (x *GeneralResponse) GetMsg() string
- func (*GeneralResponse) ProtoMessage()
- func (x *GeneralResponse) ProtoReflect() protoreflect.Message
- func (x *GeneralResponse) Reset()
- func (x *GeneralResponse) String() string
- type GetEventListRequest
- func (*GetEventListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventListRequest) GetAmount() int32
- func (x *GetEventListRequest) GetStart() int32
- func (*GetEventListRequest) ProtoMessage()
- func (x *GetEventListRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventListRequest) Reset()
- func (x *GetEventListRequest) String() string
- type GetEventListResponse
- func (*GetEventListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventListResponse) GetEventList() []*EventDetailedInfo
- func (x *GetEventListResponse) GetGeneralResponse() *GeneralResponse
- func (x *GetEventListResponse) GetTotal() int32
- func (*GetEventListResponse) ProtoMessage()
- func (x *GetEventListResponse) ProtoReflect() protoreflect.Message
- func (x *GetEventListResponse) Reset()
- func (x *GetEventListResponse) String() string
- type GetEventResponse
- func (*GetEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventResponse) GetEventDetailedInfo() *EventDetailedInfo
- func (x *GetEventResponse) GetGeneralResponse() *GeneralResponse
- func (*GetEventResponse) ProtoMessage()
- func (x *GetEventResponse) ProtoReflect() protoreflect.Message
- func (x *GetEventResponse) Reset()
- func (x *GetEventResponse) String() string
- type GetFrontEventListRequest
- func (*GetFrontEventListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFrontEventListRequest) GetAmount() int32
- func (x *GetFrontEventListRequest) GetStart() int32
- func (*GetFrontEventListRequest) ProtoMessage()
- func (x *GetFrontEventListRequest) ProtoReflect() protoreflect.Message
- func (x *GetFrontEventListRequest) Reset()
- func (x *GetFrontEventListRequest) String() string
- type GetFrontEventListResponse
- func (*GetFrontEventListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFrontEventListResponse) GetFrontEventList() []*FrontEventInfo
- func (x *GetFrontEventListResponse) GetGeneralResponse() *GeneralResponse
- func (x *GetFrontEventListResponse) GetTotal() int32
- func (*GetFrontEventListResponse) ProtoMessage()
- func (x *GetFrontEventListResponse) ProtoReflect() protoreflect.Message
- func (x *GetFrontEventListResponse) Reset()
- func (x *GetFrontEventListResponse) String() string
- type GetFrontEventResponse
- func (*GetFrontEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFrontEventResponse) GetFrontEventInfo() *FrontEventInfo
- func (x *GetFrontEventResponse) GetGeneralResponse() *GeneralResponse
- func (*GetFrontEventResponse) ProtoMessage()
- func (x *GetFrontEventResponse) ProtoReflect() protoreflect.Message
- func (x *GetFrontEventResponse) Reset()
- func (x *GetFrontEventResponse) String() string
- type ProductInfo
- func (*ProductInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProductInfo) GetCreateTime() string
- func (x *ProductInfo) GetDescription() string
- func (x *ProductInfo) GetImage() string
- func (x *ProductInfo) GetLeftNum() int32
- func (x *ProductInfo) GetName() string
- func (x *ProductInfo) GetPrice() float32
- func (x *ProductInfo) GetProductId() string
- func (x *ProductInfo) GetUnit() string
- func (*ProductInfo) ProtoMessage()
- func (x *ProductInfo) ProtoReflect() protoreflect.Message
- func (x *ProductInfo) Reset()
- func (x *ProductInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_event_event_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventServiceHandler ¶
func RegisterEventServiceHandler(s server.Server, hdlr EventServiceHandler, opts ...server.HandlerOption) error
Types ¶
type AddEventRequest ¶
type AddEventRequest struct { EventInfo *EventInfo `protobuf:"bytes,1,opt,name=eventInfo,proto3" json:"eventInfo,omitempty"` // contains filtered or unexported fields }
func (*AddEventRequest) Descriptor
deprecated
func (*AddEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddEventRequest.ProtoReflect.Descriptor instead.
func (*AddEventRequest) GetEventInfo ¶
func (x *AddEventRequest) GetEventInfo() *EventInfo
func (*AddEventRequest) ProtoMessage ¶
func (*AddEventRequest) ProtoMessage()
func (*AddEventRequest) ProtoReflect ¶
func (x *AddEventRequest) ProtoReflect() protoreflect.Message
func (*AddEventRequest) Reset ¶
func (x *AddEventRequest) Reset()
func (*AddEventRequest) String ¶
func (x *AddEventRequest) String() string
type EditEventRequest ¶
type EditEventRequest struct { EventInfo *EventInfo `protobuf:"bytes,1,opt,name=eventInfo,proto3" json:"eventInfo,omitempty"` // contains filtered or unexported fields }
func (*EditEventRequest) Descriptor
deprecated
func (*EditEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditEventRequest.ProtoReflect.Descriptor instead.
func (*EditEventRequest) GetEventInfo ¶
func (x *EditEventRequest) GetEventInfo() *EventInfo
func (*EditEventRequest) ProtoMessage ¶
func (*EditEventRequest) ProtoMessage()
func (*EditEventRequest) ProtoReflect ¶
func (x *EditEventRequest) ProtoReflect() protoreflect.Message
func (*EditEventRequest) Reset ¶
func (x *EditEventRequest) Reset()
func (*EditEventRequest) String ¶
func (x *EditEventRequest) String() string
type EventDetailedInfo ¶
type EventDetailedInfo struct { EventInfo *EventInfo `protobuf:"bytes,1,opt,name=eventInfo,proto3" json:"eventInfo,omitempty"` EventCreateTime string `protobuf:"bytes,2,opt,name=eventCreateTime,proto3" json:"eventCreateTime,omitempty"` ProductName string `protobuf:"bytes,3,opt,name=productName,proto3" json:"productName,omitempty"` // contains filtered or unexported fields }
func (*EventDetailedInfo) Descriptor
deprecated
func (*EventDetailedInfo) Descriptor() ([]byte, []int)
Deprecated: Use EventDetailedInfo.ProtoReflect.Descriptor instead.
func (*EventDetailedInfo) GetEventCreateTime ¶
func (x *EventDetailedInfo) GetEventCreateTime() string
func (*EventDetailedInfo) GetEventInfo ¶
func (x *EventDetailedInfo) GetEventInfo() *EventInfo
func (*EventDetailedInfo) GetProductName ¶
func (x *EventDetailedInfo) GetProductName() string
func (*EventDetailedInfo) ProtoMessage ¶
func (*EventDetailedInfo) ProtoMessage()
func (*EventDetailedInfo) ProtoReflect ¶
func (x *EventDetailedInfo) ProtoReflect() protoreflect.Message
func (*EventDetailedInfo) Reset ¶
func (x *EventDetailedInfo) Reset()
func (*EventDetailedInfo) String ¶
func (x *EventDetailedInfo) String() string
type EventInfo ¶
type EventInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` EventPrice float32 `protobuf:"fixed32,3,opt,name=eventPrice,proto3" json:"eventPrice,omitempty"` EventNum int32 `protobuf:"varint,4,opt,name=eventNum,proto3" json:"eventNum,omitempty"` StartTime string `protobuf:"bytes,5,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,6,opt,name=endTime,proto3" json:"endTime,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` ProductId string `protobuf:"bytes,8,opt,name=productId,proto3" json:"productId,omitempty"` // contains filtered or unexported fields }
数据库表信息
func (*EventInfo) Descriptor
deprecated
func (*EventInfo) GetDescription ¶
func (*EventInfo) GetEndTime ¶
func (*EventInfo) GetEventNum ¶
func (*EventInfo) GetEventPrice ¶
func (*EventInfo) GetProductId ¶
func (*EventInfo) GetStartTime ¶
func (*EventInfo) ProtoMessage ¶
func (*EventInfo) ProtoMessage()
func (*EventInfo) ProtoReflect ¶
func (x *EventInfo) ProtoReflect() protoreflect.Message
type EventService ¶
type EventService interface { AddEvent(ctx context.Context, in *AddEventRequest, opts ...client.CallOption) (*GeneralResponse, error) GetEventList(ctx context.Context, in *GetEventListRequest, opts ...client.CallOption) (*GetEventListResponse, error) GetEvent(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GetEventResponse, error) EditEvent(ctx context.Context, in *EditEventRequest, opts ...client.CallOption) (*GeneralResponse, error) DeleteEvent(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GeneralResponse, error) GetFrontEventList(ctx context.Context, in *GetFrontEventListRequest, opts ...client.CallOption) (*GetFrontEventListResponse, error) GetFrontEvent(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GetFrontEventResponse, error) }
func NewEventService ¶
func NewEventService(name string, c client.Client) EventService
type EventServiceHandler ¶
type EventServiceHandler interface { AddEvent(context.Context, *AddEventRequest, *GeneralResponse) error GetEventList(context.Context, *GetEventListRequest, *GetEventListResponse) error GetEvent(context.Context, *GeneralRequest, *GetEventResponse) error EditEvent(context.Context, *EditEventRequest, *GeneralResponse) error DeleteEvent(context.Context, *GeneralRequest, *GeneralResponse) error GetFrontEventList(context.Context, *GetFrontEventListRequest, *GetFrontEventListResponse) error GetFrontEvent(context.Context, *GeneralRequest, *GetFrontEventResponse) error }
type FrontEventInfo ¶
type FrontEventInfo struct { EventDetailedInfo *EventDetailedInfo `protobuf:"bytes,1,opt,name=eventDetailedInfo,proto3" json:"eventDetailedInfo,omitempty"` ProductInfo *ProductInfo `protobuf:"bytes,2,opt,name=productInfo,proto3" json:"productInfo,omitempty"` // contains filtered or unexported fields }
func (*FrontEventInfo) Descriptor
deprecated
func (*FrontEventInfo) Descriptor() ([]byte, []int)
Deprecated: Use FrontEventInfo.ProtoReflect.Descriptor instead.
func (*FrontEventInfo) GetEventDetailedInfo ¶
func (x *FrontEventInfo) GetEventDetailedInfo() *EventDetailedInfo
func (*FrontEventInfo) GetProductInfo ¶
func (x *FrontEventInfo) GetProductInfo() *ProductInfo
func (*FrontEventInfo) ProtoMessage ¶
func (*FrontEventInfo) ProtoMessage()
func (*FrontEventInfo) ProtoReflect ¶
func (x *FrontEventInfo) ProtoReflect() protoreflect.Message
func (*FrontEventInfo) Reset ¶
func (x *FrontEventInfo) Reset()
func (*FrontEventInfo) String ¶
func (x *FrontEventInfo) String() string
type GeneralRequest ¶
type GeneralRequest struct { EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"` // contains filtered or unexported fields }
func (*GeneralRequest) Descriptor
deprecated
func (*GeneralRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneralRequest.ProtoReflect.Descriptor instead.
func (*GeneralRequest) GetEventId ¶
func (x *GeneralRequest) GetEventId() string
func (*GeneralRequest) ProtoMessage ¶
func (*GeneralRequest) ProtoMessage()
func (*GeneralRequest) ProtoReflect ¶
func (x *GeneralRequest) ProtoReflect() protoreflect.Message
func (*GeneralRequest) Reset ¶
func (x *GeneralRequest) Reset()
func (*GeneralRequest) String ¶
func (x *GeneralRequest) String() string
type GeneralResponse ¶
type GeneralResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*GeneralResponse) Descriptor
deprecated
func (*GeneralResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneralResponse.ProtoReflect.Descriptor instead.
func (*GeneralResponse) GetCode ¶
func (x *GeneralResponse) GetCode() string
func (*GeneralResponse) GetMsg ¶
func (x *GeneralResponse) GetMsg() string
func (*GeneralResponse) ProtoMessage ¶
func (*GeneralResponse) ProtoMessage()
func (*GeneralResponse) ProtoReflect ¶
func (x *GeneralResponse) ProtoReflect() protoreflect.Message
func (*GeneralResponse) Reset ¶
func (x *GeneralResponse) Reset()
func (*GeneralResponse) String ¶
func (x *GeneralResponse) String() string
type GetEventListRequest ¶
type GetEventListRequest struct { Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*GetEventListRequest) Descriptor
deprecated
func (*GetEventListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEventListRequest.ProtoReflect.Descriptor instead.
func (*GetEventListRequest) GetAmount ¶
func (x *GetEventListRequest) GetAmount() int32
func (*GetEventListRequest) GetStart ¶
func (x *GetEventListRequest) GetStart() int32
func (*GetEventListRequest) ProtoMessage ¶
func (*GetEventListRequest) ProtoMessage()
func (*GetEventListRequest) ProtoReflect ¶
func (x *GetEventListRequest) ProtoReflect() protoreflect.Message
func (*GetEventListRequest) Reset ¶
func (x *GetEventListRequest) Reset()
func (*GetEventListRequest) String ¶
func (x *GetEventListRequest) String() string
type GetEventListResponse ¶
type GetEventListResponse struct { GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` EventList []*EventDetailedInfo `protobuf:"bytes,3,rep,name=eventList,proto3" json:"eventList,omitempty"` // contains filtered or unexported fields }
func (*GetEventListResponse) Descriptor
deprecated
func (*GetEventListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEventListResponse.ProtoReflect.Descriptor instead.
func (*GetEventListResponse) GetEventList ¶
func (x *GetEventListResponse) GetEventList() []*EventDetailedInfo
func (*GetEventListResponse) GetGeneralResponse ¶
func (x *GetEventListResponse) GetGeneralResponse() *GeneralResponse
func (*GetEventListResponse) GetTotal ¶
func (x *GetEventListResponse) GetTotal() int32
func (*GetEventListResponse) ProtoMessage ¶
func (*GetEventListResponse) ProtoMessage()
func (*GetEventListResponse) ProtoReflect ¶
func (x *GetEventListResponse) ProtoReflect() protoreflect.Message
func (*GetEventListResponse) Reset ¶
func (x *GetEventListResponse) Reset()
func (*GetEventListResponse) String ¶
func (x *GetEventListResponse) String() string
type GetEventResponse ¶
type GetEventResponse struct { GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"` EventDetailedInfo *EventDetailedInfo `protobuf:"bytes,2,opt,name=eventDetailedInfo,proto3" json:"eventDetailedInfo,omitempty"` // contains filtered or unexported fields }
func (*GetEventResponse) Descriptor
deprecated
func (*GetEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEventResponse.ProtoReflect.Descriptor instead.
func (*GetEventResponse) GetEventDetailedInfo ¶
func (x *GetEventResponse) GetEventDetailedInfo() *EventDetailedInfo
func (*GetEventResponse) GetGeneralResponse ¶
func (x *GetEventResponse) GetGeneralResponse() *GeneralResponse
func (*GetEventResponse) ProtoMessage ¶
func (*GetEventResponse) ProtoMessage()
func (*GetEventResponse) ProtoReflect ¶
func (x *GetEventResponse) ProtoReflect() protoreflect.Message
func (*GetEventResponse) Reset ¶
func (x *GetEventResponse) Reset()
func (*GetEventResponse) String ¶
func (x *GetEventResponse) String() string
type GetFrontEventListRequest ¶
type GetFrontEventListRequest struct { Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*GetFrontEventListRequest) Descriptor
deprecated
func (*GetFrontEventListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFrontEventListRequest.ProtoReflect.Descriptor instead.
func (*GetFrontEventListRequest) GetAmount ¶
func (x *GetFrontEventListRequest) GetAmount() int32
func (*GetFrontEventListRequest) GetStart ¶
func (x *GetFrontEventListRequest) GetStart() int32
func (*GetFrontEventListRequest) ProtoMessage ¶
func (*GetFrontEventListRequest) ProtoMessage()
func (*GetFrontEventListRequest) ProtoReflect ¶
func (x *GetFrontEventListRequest) ProtoReflect() protoreflect.Message
func (*GetFrontEventListRequest) Reset ¶
func (x *GetFrontEventListRequest) Reset()
func (*GetFrontEventListRequest) String ¶
func (x *GetFrontEventListRequest) String() string
type GetFrontEventListResponse ¶
type GetFrontEventListResponse struct { GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` FrontEventList []*FrontEventInfo `protobuf:"bytes,3,rep,name=frontEventList,proto3" json:"frontEventList,omitempty"` // contains filtered or unexported fields }
func (*GetFrontEventListResponse) Descriptor
deprecated
func (*GetFrontEventListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFrontEventListResponse.ProtoReflect.Descriptor instead.
func (*GetFrontEventListResponse) GetFrontEventList ¶
func (x *GetFrontEventListResponse) GetFrontEventList() []*FrontEventInfo
func (*GetFrontEventListResponse) GetGeneralResponse ¶
func (x *GetFrontEventListResponse) GetGeneralResponse() *GeneralResponse
func (*GetFrontEventListResponse) GetTotal ¶
func (x *GetFrontEventListResponse) GetTotal() int32
func (*GetFrontEventListResponse) ProtoMessage ¶
func (*GetFrontEventListResponse) ProtoMessage()
func (*GetFrontEventListResponse) ProtoReflect ¶
func (x *GetFrontEventListResponse) ProtoReflect() protoreflect.Message
func (*GetFrontEventListResponse) Reset ¶
func (x *GetFrontEventListResponse) Reset()
func (*GetFrontEventListResponse) String ¶
func (x *GetFrontEventListResponse) String() string
type GetFrontEventResponse ¶
type GetFrontEventResponse struct { GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"` FrontEventInfo *FrontEventInfo `protobuf:"bytes,2,opt,name=frontEventInfo,proto3" json:"frontEventInfo,omitempty"` // contains filtered or unexported fields }
func (*GetFrontEventResponse) Descriptor
deprecated
func (*GetFrontEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFrontEventResponse.ProtoReflect.Descriptor instead.
func (*GetFrontEventResponse) GetFrontEventInfo ¶
func (x *GetFrontEventResponse) GetFrontEventInfo() *FrontEventInfo
func (*GetFrontEventResponse) GetGeneralResponse ¶
func (x *GetFrontEventResponse) GetGeneralResponse() *GeneralResponse
func (*GetFrontEventResponse) ProtoMessage ¶
func (*GetFrontEventResponse) ProtoMessage()
func (*GetFrontEventResponse) ProtoReflect ¶
func (x *GetFrontEventResponse) ProtoReflect() protoreflect.Message
func (*GetFrontEventResponse) Reset ¶
func (x *GetFrontEventResponse) Reset()
func (*GetFrontEventResponse) String ¶
func (x *GetFrontEventResponse) String() string
type ProductInfo ¶
type ProductInfo struct { ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"` LeftNum int32 `protobuf:"varint,4,opt,name=leftNum,proto3" json:"leftNum,omitempty"` Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` CreateTime string `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"` // contains filtered or unexported fields }
func (*ProductInfo) Descriptor
deprecated
func (*ProductInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProductInfo.ProtoReflect.Descriptor instead.
func (*ProductInfo) GetCreateTime ¶
func (x *ProductInfo) GetCreateTime() string
func (*ProductInfo) GetDescription ¶
func (x *ProductInfo) GetDescription() string
func (*ProductInfo) GetImage ¶
func (x *ProductInfo) GetImage() string
func (*ProductInfo) GetLeftNum ¶
func (x *ProductInfo) GetLeftNum() int32
func (*ProductInfo) GetName ¶
func (x *ProductInfo) GetName() string
func (*ProductInfo) GetPrice ¶
func (x *ProductInfo) GetPrice() float32
func (*ProductInfo) GetProductId ¶
func (x *ProductInfo) GetProductId() string
func (*ProductInfo) GetUnit ¶
func (x *ProductInfo) GetUnit() string
func (*ProductInfo) ProtoMessage ¶
func (*ProductInfo) ProtoMessage()
func (*ProductInfo) ProtoReflect ¶
func (x *ProductInfo) ProtoReflect() protoreflect.Message
func (*ProductInfo) Reset ¶
func (x *ProductInfo) Reset()
func (*ProductInfo) String ¶
func (x *ProductInfo) String() string