meetingProto

package
v0.0.0-...-2bc4f80 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_meeting_proto protoreflect.FileDescriptor
View Source
var MeetingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "meetingProto.MeetingService",
	HandlerType: (*MeetingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRoom",
			Handler:    _MeetingService_GetRoom_Handler,
		},
		{
			MethodName: "GetRoomList",
			Handler:    _MeetingService_GetRoomList_Handler,
		},
		{
			MethodName: "BookRoom",
			Handler:    _MeetingService_BookRoom_Handler,
		},
		{
			MethodName: "CancelBook",
			Handler:    _MeetingService_CancelBook_Handler,
		},
		{
			MethodName: "GetBookList",
			Handler:    _MeetingService_GetBookList_Handler,
		},
		{
			MethodName: "GetBook",
			Handler:    _MeetingService_GetBook_Handler,
		},
		{
			MethodName: "GetBookExcel",
			Handler:    _MeetingService_GetBookExcel_Handler,
		},
		{
			MethodName: "UpdateBook",
			Handler:    _MeetingService_UpdateBook_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "meeting.proto",
}

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

Functions

func RegisterMeetingServiceServer

func RegisterMeetingServiceServer(s grpc.ServiceRegistrar, srv MeetingServiceServer)

Types

type Book

type Book struct {
	Id       int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	RoomId   int64   `protobuf:"varint,2,opt,name=roomId,proto3" json:"roomId,omitempty"`
	Theme    string  `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"`
	Period   *Period `protobuf:"bytes,4,opt,name=period,proto3" json:"period,omitempty"`
	BookTime int64   `protobuf:"varint,5,opt,name=bookTime,proto3" json:"bookTime,omitempty"`
	// contains filtered or unexported fields
}

func (*Book) Descriptor deprecated

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetBookTime

func (x *Book) GetBookTime() int64

func (*Book) GetId

func (x *Book) GetId() int64

func (*Book) GetPeriod

func (x *Book) GetPeriod() *Period

func (*Book) GetRoomId

func (x *Book) GetRoomId() int64

func (*Book) GetTheme

func (x *Book) GetTheme() string

func (*Book) ProtoMessage

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) String

func (x *Book) String() string

type BookRoomRequest

type BookRoomRequest struct {
	UserId int64   `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	RoomId int64   `protobuf:"varint,2,opt,name=roomId,proto3" json:"roomId,omitempty"`
	Theme  string  `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"`
	Period *Period `protobuf:"bytes,4,opt,name=period,proto3" json:"period,omitempty"`
	// contains filtered or unexported fields
}

func (*BookRoomRequest) Descriptor deprecated

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

Deprecated: Use BookRoomRequest.ProtoReflect.Descriptor instead.

func (*BookRoomRequest) GetPeriod

func (x *BookRoomRequest) GetPeriod() *Period

func (*BookRoomRequest) GetRoomId

func (x *BookRoomRequest) GetRoomId() int64

func (*BookRoomRequest) GetTheme

func (x *BookRoomRequest) GetTheme() string

func (*BookRoomRequest) GetUserId

func (x *BookRoomRequest) GetUserId() int64

func (*BookRoomRequest) ProtoMessage

func (*BookRoomRequest) ProtoMessage()

func (*BookRoomRequest) ProtoReflect

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

func (*BookRoomRequest) Reset

func (x *BookRoomRequest) Reset()

func (*BookRoomRequest) String

func (x *BookRoomRequest) String() string

type CancelBookRequest

type CancelBookRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	BookId int64 `protobuf:"varint,2,opt,name=bookId,proto3" json:"bookId,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelBookRequest) Descriptor deprecated

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

Deprecated: Use CancelBookRequest.ProtoReflect.Descriptor instead.

func (*CancelBookRequest) GetBookId

func (x *CancelBookRequest) GetBookId() int64

func (*CancelBookRequest) GetUserId

func (x *CancelBookRequest) GetUserId() int64

func (*CancelBookRequest) ProtoMessage

func (*CancelBookRequest) ProtoMessage()

func (*CancelBookRequest) ProtoReflect

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

func (*CancelBookRequest) Reset

func (x *CancelBookRequest) Reset()

func (*CancelBookRequest) String

func (x *CancelBookRequest) String() string

type GetBookExcelRequest

type GetBookExcelRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookExcelRequest) Descriptor deprecated

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

Deprecated: Use GetBookExcelRequest.ProtoReflect.Descriptor instead.

func (*GetBookExcelRequest) GetUserId

func (x *GetBookExcelRequest) GetUserId() int64

func (*GetBookExcelRequest) ProtoMessage

func (*GetBookExcelRequest) ProtoMessage()

func (*GetBookExcelRequest) ProtoReflect

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

func (*GetBookExcelRequest) Reset

func (x *GetBookExcelRequest) Reset()

func (*GetBookExcelRequest) String

func (x *GetBookExcelRequest) String() string

type GetBookExcelResponse

type GetBookExcelResponse struct {
	Excel    []byte `protobuf:"bytes,1,opt,name=excel,proto3" json:"excel,omitempty"`
	FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
	Size     int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookExcelResponse) Descriptor deprecated

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

Deprecated: Use GetBookExcelResponse.ProtoReflect.Descriptor instead.

func (*GetBookExcelResponse) GetExcel

func (x *GetBookExcelResponse) GetExcel() []byte

func (*GetBookExcelResponse) GetFileName

func (x *GetBookExcelResponse) GetFileName() string

func (*GetBookExcelResponse) GetSize

func (x *GetBookExcelResponse) GetSize() int64

func (*GetBookExcelResponse) ProtoMessage

func (*GetBookExcelResponse) ProtoMessage()

func (*GetBookExcelResponse) ProtoReflect

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

func (*GetBookExcelResponse) Reset

func (x *GetBookExcelResponse) Reset()

func (*GetBookExcelResponse) String

func (x *GetBookExcelResponse) String() string

type GetBookListRequest

type GetBookListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	UserId   int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookListRequest) Descriptor deprecated

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

Deprecated: Use GetBookListRequest.ProtoReflect.Descriptor instead.

func (*GetBookListRequest) GetPage

func (x *GetBookListRequest) GetPage() int64

func (*GetBookListRequest) GetPageSize

func (x *GetBookListRequest) GetPageSize() int64

func (*GetBookListRequest) GetUserId

func (x *GetBookListRequest) GetUserId() int64

func (*GetBookListRequest) ProtoMessage

func (*GetBookListRequest) ProtoMessage()

func (*GetBookListRequest) ProtoReflect

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

func (*GetBookListRequest) Reset

func (x *GetBookListRequest) Reset()

func (*GetBookListRequest) String

func (x *GetBookListRequest) String() string

type GetBookListResponse

type GetBookListResponse struct {
	BookList   []*Book `protobuf:"bytes,1,rep,name=bookList,proto3" json:"bookList,omitempty"`
	Pages      int64   `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"`
	TotalCount int64   `protobuf:"varint,3,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookListResponse) Descriptor deprecated

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

Deprecated: Use GetBookListResponse.ProtoReflect.Descriptor instead.

func (*GetBookListResponse) GetBookList

func (x *GetBookListResponse) GetBookList() []*Book

func (*GetBookListResponse) GetPages

func (x *GetBookListResponse) GetPages() int64

func (*GetBookListResponse) GetTotalCount

func (x *GetBookListResponse) GetTotalCount() int64

func (*GetBookListResponse) ProtoMessage

func (*GetBookListResponse) ProtoMessage()

func (*GetBookListResponse) ProtoReflect

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

func (*GetBookListResponse) Reset

func (x *GetBookListResponse) Reset()

func (*GetBookListResponse) String

func (x *GetBookListResponse) String() string

type GetBookRequest

type GetBookRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	BookId int64 `protobuf:"varint,2,opt,name=bookId,proto3" json:"bookId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookRequest) Descriptor deprecated

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

Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.

func (*GetBookRequest) GetBookId

func (x *GetBookRequest) GetBookId() int64

func (*GetBookRequest) GetUserId

func (x *GetBookRequest) GetUserId() int64

func (*GetBookRequest) ProtoMessage

func (*GetBookRequest) ProtoMessage()

func (*GetBookRequest) ProtoReflect

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

func (*GetBookRequest) Reset

func (x *GetBookRequest) Reset()

func (*GetBookRequest) String

func (x *GetBookRequest) String() string

type GetBookResponse

type GetBookResponse struct {
	Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookResponse) Descriptor deprecated

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

Deprecated: Use GetBookResponse.ProtoReflect.Descriptor instead.

func (*GetBookResponse) GetBook

func (x *GetBookResponse) GetBook() *Book

func (*GetBookResponse) ProtoMessage

func (*GetBookResponse) ProtoMessage()

func (*GetBookResponse) ProtoReflect

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

func (*GetBookResponse) Reset

func (x *GetBookResponse) Reset()

func (*GetBookResponse) String

func (x *GetBookResponse) String() string

type GetRoomListRequest

type GetRoomListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Company  int64 `protobuf:"varint,3,opt,name=company,proto3" json:"company,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoomListRequest) Descriptor deprecated

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

Deprecated: Use GetRoomListRequest.ProtoReflect.Descriptor instead.

func (*GetRoomListRequest) GetCompany

func (x *GetRoomListRequest) GetCompany() int64

func (*GetRoomListRequest) GetPage

func (x *GetRoomListRequest) GetPage() int64

func (*GetRoomListRequest) GetPageSize

func (x *GetRoomListRequest) GetPageSize() int64

func (*GetRoomListRequest) ProtoMessage

func (*GetRoomListRequest) ProtoMessage()

func (*GetRoomListRequest) ProtoReflect

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

func (*GetRoomListRequest) Reset

func (x *GetRoomListRequest) Reset()

func (*GetRoomListRequest) String

func (x *GetRoomListRequest) String() string

type GetRoomListResponse

type GetRoomListResponse struct {
	RoomList   []*Room `protobuf:"bytes,1,rep,name=roomList,proto3" json:"roomList,omitempty"`
	Pages      int64   `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"`
	TotalCount int64   `protobuf:"varint,3,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoomListResponse) Descriptor deprecated

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

Deprecated: Use GetRoomListResponse.ProtoReflect.Descriptor instead.

func (*GetRoomListResponse) GetPages

func (x *GetRoomListResponse) GetPages() int64

func (*GetRoomListResponse) GetRoomList

func (x *GetRoomListResponse) GetRoomList() []*Room

func (*GetRoomListResponse) GetTotalCount

func (x *GetRoomListResponse) GetTotalCount() int64

func (*GetRoomListResponse) ProtoMessage

func (*GetRoomListResponse) ProtoMessage()

func (*GetRoomListResponse) ProtoReflect

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

func (*GetRoomListResponse) Reset

func (x *GetRoomListResponse) Reset()

func (*GetRoomListResponse) String

func (x *GetRoomListResponse) String() string

type GetRoomRequest

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

func (*GetRoomRequest) Descriptor deprecated

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

Deprecated: Use GetRoomRequest.ProtoReflect.Descriptor instead.

func (*GetRoomRequest) GetId

func (x *GetRoomRequest) GetId() int64

func (*GetRoomRequest) ProtoMessage

func (*GetRoomRequest) ProtoMessage()

func (*GetRoomRequest) ProtoReflect

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

func (*GetRoomRequest) Reset

func (x *GetRoomRequest) Reset()

func (*GetRoomRequest) String

func (x *GetRoomRequest) String() string

type GetRoomResponse

type GetRoomResponse struct {
	Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoomResponse) Descriptor deprecated

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

Deprecated: Use GetRoomResponse.ProtoReflect.Descriptor instead.

func (*GetRoomResponse) GetRoom

func (x *GetRoomResponse) GetRoom() *Room

func (*GetRoomResponse) ProtoMessage

func (*GetRoomResponse) ProtoMessage()

func (*GetRoomResponse) ProtoReflect

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

func (*GetRoomResponse) Reset

func (x *GetRoomResponse) Reset()

func (*GetRoomResponse) String

func (x *GetRoomResponse) String() string

type MeetingServiceClient

type MeetingServiceClient interface {
	GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*GetRoomResponse, error)
	GetRoomList(ctx context.Context, in *GetRoomListRequest, opts ...grpc.CallOption) (*GetRoomListResponse, error)
	BookRoom(ctx context.Context, in *BookRoomRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CancelBook(ctx context.Context, in *CancelBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetBookList(ctx context.Context, in *GetBookListRequest, opts ...grpc.CallOption) (*GetBookListResponse, error)
	GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*GetBookResponse, error)
	GetBookExcel(ctx context.Context, in *GetBookExcelRequest, opts ...grpc.CallOption) (*GetBookExcelResponse, error)
	UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MeetingServiceClient is the client API for MeetingService 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 MeetingServiceServer

MeetingServiceServer is the server API for MeetingService service. All implementations must embed UnimplementedMeetingServiceServer for forward compatibility

type Period

type Period struct {
	StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
	EndTime   int64 `protobuf:"varint,2,opt,name=endTime,proto3" json:"endTime,omitempty"`
	// contains filtered or unexported fields
}

func (*Period) Descriptor deprecated

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

Deprecated: Use Period.ProtoReflect.Descriptor instead.

func (*Period) GetEndTime

func (x *Period) GetEndTime() int64

func (*Period) GetStartTime

func (x *Period) GetStartTime() int64

func (*Period) ProtoMessage

func (*Period) ProtoMessage()

func (*Period) ProtoReflect

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

func (*Period) Reset

func (x *Period) Reset()

func (*Period) String

func (x *Period) String() string

type Room

type Room struct {
	Id         int64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Location   string    `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Capacity   int64     `protobuf:"varint,4,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Facility   string    `protobuf:"bytes,5,opt,name=facility,proto3" json:"facility,omitempty"`
	Photo      []string  `protobuf:"bytes,6,rep,name=photo,proto3" json:"photo,omitempty"`
	BookedTime []*Period `protobuf:"bytes,7,rep,name=bookedTime,proto3" json:"bookedTime,omitempty"`
	// contains filtered or unexported fields
}

func (*Room) Descriptor deprecated

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

Deprecated: Use Room.ProtoReflect.Descriptor instead.

func (*Room) GetBookedTime

func (x *Room) GetBookedTime() []*Period

func (*Room) GetCapacity

func (x *Room) GetCapacity() int64

func (*Room) GetFacility

func (x *Room) GetFacility() string

func (*Room) GetId

func (x *Room) GetId() int64

func (*Room) GetLocation

func (x *Room) GetLocation() string

func (*Room) GetName

func (x *Room) GetName() string

func (*Room) GetPhoto

func (x *Room) GetPhoto() []string

func (*Room) ProtoMessage

func (*Room) ProtoMessage()

func (*Room) ProtoReflect

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

func (*Room) Reset

func (x *Room) Reset()

func (*Room) String

func (x *Room) String() string

type UnimplementedMeetingServiceServer

type UnimplementedMeetingServiceServer struct {
}

UnimplementedMeetingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMeetingServiceServer) BookRoom

func (UnimplementedMeetingServiceServer) CancelBook

func (UnimplementedMeetingServiceServer) GetBook

func (UnimplementedMeetingServiceServer) GetBookExcel

func (UnimplementedMeetingServiceServer) GetBookList

func (UnimplementedMeetingServiceServer) GetRoom

func (UnimplementedMeetingServiceServer) GetRoomList

func (UnimplementedMeetingServiceServer) UpdateBook

type UnsafeMeetingServiceServer

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

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

type UpdateBookRequest

type UpdateBookRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Book   *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBookRequest) Descriptor deprecated

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

Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead.

func (*UpdateBookRequest) GetBook

func (x *UpdateBookRequest) GetBook() *Book

func (*UpdateBookRequest) GetUserId

func (x *UpdateBookRequest) GetUserId() int64

func (*UpdateBookRequest) ProtoMessage

func (*UpdateBookRequest) ProtoMessage()

func (*UpdateBookRequest) ProtoReflect

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

func (*UpdateBookRequest) Reset

func (x *UpdateBookRequest) Reset()

func (*UpdateBookRequest) String

func (x *UpdateBookRequest) String() string

Jump to

Keyboard shortcuts

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