event_proto

package
v0.0.0-...-14907fc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use EventInfo.ProtoReflect.Descriptor instead.

func (*EventInfo) GetDescription

func (x *EventInfo) GetDescription() string

func (*EventInfo) GetEndTime

func (x *EventInfo) GetEndTime() string

func (*EventInfo) GetEventNum

func (x *EventInfo) GetEventNum() int32

func (*EventInfo) GetEventPrice

func (x *EventInfo) GetEventPrice() float32

func (*EventInfo) GetId

func (x *EventInfo) GetId() string

func (*EventInfo) GetName

func (x *EventInfo) GetName() string

func (*EventInfo) GetProductId

func (x *EventInfo) GetProductId() string

func (*EventInfo) GetStartTime

func (x *EventInfo) GetStartTime() string

func (*EventInfo) ProtoMessage

func (*EventInfo) ProtoMessage()

func (*EventInfo) ProtoReflect

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

func (*EventInfo) Reset

func (x *EventInfo) Reset()

func (*EventInfo) String

func (x *EventInfo) String() string

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 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 (*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

Jump to

Keyboard shortcuts

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