Documentation ¶
Overview ¶
Package libraryv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterLibraryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLibraryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LibraryServiceClient) error
- func RegisterLibraryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLibraryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LibraryServiceServer) error
- func RegisterLibraryServiceServer(s grpc.ServiceRegistrar, srv LibraryServiceServer)
- type BookInfo
- func (*BookInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BookInfo) GetBarCode() string
- func (x *BookInfo) GetBookLendFlag() string
- func (x *BookInfo) GetBookStatCode() string
- func (x *BookInfo) GetCallNo() string
- func (x *BookInfo) GetFirstUseDate() int64
- func (x *BookInfo) GetInDate() string
- func (x *BookInfo) GetLastUseDate() int64
- func (x *BookInfo) GetLocation() string
- func (x *BookInfo) GetMarc() *BookMARC
- func (x *BookInfo) GetMarcRecNo() string
- func (x *BookInfo) GetPrice() float32
- func (x *BookInfo) GetPropNo() string
- func (x *BookInfo) GetRecFlagUptDate() int64
- func (x *BookInfo) GetRegDay() int64
- func (x *BookInfo) GetTotalCircTimes() int32
- func (x *BookInfo) GetYear() string
- func (x *BookInfo) GetYearCircTimes() int32
- func (*BookInfo) ProtoMessage()
- func (x *BookInfo) ProtoReflect() protoreflect.Message
- func (x *BookInfo) Reset()
- func (x *BookInfo) String() string
- type BookMARC
- func (*BookMARC) Descriptor() ([]byte, []int)deprecated
- func (x *BookMARC) GetAuthor() string
- func (x *BookMARC) GetCallNo() string
- func (x *BookMARC) GetCataDate() string
- func (x *BookMARC) GetCataOper() string
- func (x *BookMARC) GetCatalogLevel() string
- func (x *BookMARC) GetCountryCode() string
- func (x *BookMARC) GetCreateDate() string
- func (x *BookMARC) GetCreateOper() string
- func (x *BookMARC) GetDocTypeCode() string
- func (x *BookMARC) GetISBN() string
- func (x *BookMARC) GetLangCode() string
- func (x *BookMARC) GetMPubYear() string
- func (x *BookMARC) GetMarcRecNo() string
- func (x *BookMARC) GetMarcType() string
- func (x *BookMARC) GetMarcUseFlag() string
- func (x *BookMARC) GetOpacFlag() string
- func (x *BookMARC) GetPubYear() string
- func (x *BookMARC) GetPublisher() string
- func (x *BookMARC) GetTitle() string
- func (*BookMARC) ProtoMessage()
- func (x *BookMARC) ProtoReflect() protoreflect.Message
- func (x *BookMARC) Reset()
- func (x *BookMARC) String() string
- type GetBookInfoListRequest
- func (*GetBookInfoListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookInfoListRequest) GetMarcRecNo() string
- func (*GetBookInfoListRequest) ProtoMessage()
- func (x *GetBookInfoListRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookInfoListRequest) Reset()
- func (x *GetBookInfoListRequest) String() string
- type GetBookInfoListResponse
- func (*GetBookInfoListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookInfoListResponse) GetData() []*BookInfo
- func (x *GetBookInfoListResponse) GetError() int32
- func (x *GetBookInfoListResponse) GetMsg() string
- func (*GetBookInfoListResponse) ProtoMessage()
- func (x *GetBookInfoListResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookInfoListResponse) Reset()
- func (x *GetBookInfoListResponse) String() string
- type GetBookInfoRequest
- func (*GetBookInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookInfoRequest) GetPropNo() string
- func (*GetBookInfoRequest) ProtoMessage()
- func (x *GetBookInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookInfoRequest) Reset()
- func (x *GetBookInfoRequest) String() string
- type GetBookInfoResponse
- func (*GetBookInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookInfoResponse) GetData() *BookInfo
- func (x *GetBookInfoResponse) GetError() int32
- func (x *GetBookInfoResponse) GetMsg() string
- func (*GetBookInfoResponse) ProtoMessage()
- func (x *GetBookInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookInfoResponse) Reset()
- func (x *GetBookInfoResponse) String() string
- type GetBookLendHistoryRequest
- func (*GetBookLendHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendHistoryRequest) GetEndTime() int64
- func (x *GetBookLendHistoryRequest) GetStartTime() int64
- func (*GetBookLendHistoryRequest) ProtoMessage()
- func (x *GetBookLendHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookLendHistoryRequest) Reset()
- func (x *GetBookLendHistoryRequest) String() string
- type GetBookLendHistoryResponse
- func (*GetBookLendHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendHistoryResponse) GetData() []*GetBookLendHistoryResponse_Nested
- func (x *GetBookLendHistoryResponse) GetError() int32
- func (x *GetBookLendHistoryResponse) GetMsg() string
- func (*GetBookLendHistoryResponse) ProtoMessage()
- func (x *GetBookLendHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookLendHistoryResponse) Reset()
- func (x *GetBookLendHistoryResponse) String() string
- type GetBookLendHistoryResponse_Nested
- func (*GetBookLendHistoryResponse_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendHistoryResponse_Nested) GetBook() *BookInfo
- func (x *GetBookLendHistoryResponse_Nested) GetLendDate() int64
- func (x *GetBookLendHistoryResponse_Nested) GetLocation() string
- func (x *GetBookLendHistoryResponse_Nested) GetRenewDate() int64
- func (x *GetBookLendHistoryResponse_Nested) GetRenewTimes() int64
- func (x *GetBookLendHistoryResponse_Nested) GetReturnDate() int64
- func (x *GetBookLendHistoryResponse_Nested) GetStaffID() string
- func (x *GetBookLendHistoryResponse_Nested) GetStatus() LendStatus
- func (*GetBookLendHistoryResponse_Nested) ProtoMessage()
- func (x *GetBookLendHistoryResponse_Nested) ProtoReflect() protoreflect.Message
- func (x *GetBookLendHistoryResponse_Nested) Reset()
- func (x *GetBookLendHistoryResponse_Nested) String() string
- type GetBookLendLastRequest
- func (*GetBookLendLastRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendLastRequest) GetStartTime() int64
- func (*GetBookLendLastRequest) ProtoMessage()
- func (x *GetBookLendLastRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookLendLastRequest) Reset()
- func (x *GetBookLendLastRequest) String() string
- type GetBookLendLastResponse
- func (*GetBookLendLastResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendLastResponse) GetData() []*GetBookLendLastResponse_Nested
- func (x *GetBookLendLastResponse) GetError() int32
- func (x *GetBookLendLastResponse) GetMsg() string
- func (*GetBookLendLastResponse) ProtoMessage()
- func (x *GetBookLendLastResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookLendLastResponse) Reset()
- func (x *GetBookLendLastResponse) String() string
- type GetBookLendLastResponse_Nested
- func (*GetBookLendLastResponse_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookLendLastResponse_Nested) GetBook() *BookInfo
- func (x *GetBookLendLastResponse_Nested) GetLendDate() int64
- func (x *GetBookLendLastResponse_Nested) GetLocation() string
- func (x *GetBookLendLastResponse_Nested) GetNormalReturnDate() int64
- func (x *GetBookLendLastResponse_Nested) GetRenewDate() int64
- func (x *GetBookLendLastResponse_Nested) GetRenewTimes() int64
- func (x *GetBookLendLastResponse_Nested) GetStaffID() string
- func (x *GetBookLendLastResponse_Nested) GetStatus() LendStatus
- func (*GetBookLendLastResponse_Nested) ProtoMessage()
- func (x *GetBookLendLastResponse_Nested) ProtoReflect() protoreflect.Message
- func (x *GetBookLendLastResponse_Nested) Reset()
- func (x *GetBookLendLastResponse_Nested) String() string
- type GetBookMARCListRequest
- func (*GetBookMARCListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookMARCListRequest) GetLimit() int32
- func (x *GetBookMARCListRequest) GetMarc() *BookMARC
- func (x *GetBookMARCListRequest) GetOffset() int32
- func (x *GetBookMARCListRequest) GetSearchKeys() []string
- func (*GetBookMARCListRequest) ProtoMessage()
- func (x *GetBookMARCListRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookMARCListRequest) Reset()
- func (x *GetBookMARCListRequest) String() string
- type GetBookMARCListResponse
- func (*GetBookMARCListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookMARCListResponse) GetData() []*BookMARC
- func (x *GetBookMARCListResponse) GetError() int32
- func (x *GetBookMARCListResponse) GetMsg() string
- func (*GetBookMARCListResponse) ProtoMessage()
- func (x *GetBookMARCListResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookMARCListResponse) Reset()
- func (x *GetBookMARCListResponse) String() string
- type GetBookMARCRequest
- func (*GetBookMARCRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookMARCRequest) GetMarcRecNo() string
- func (x *GetBookMARCRequest) GetPropNo() string
- func (*GetBookMARCRequest) ProtoMessage()
- func (x *GetBookMARCRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookMARCRequest) Reset()
- func (x *GetBookMARCRequest) String() string
- type GetBookMARCResponse
- func (*GetBookMARCResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookMARCResponse) GetData() *BookMARC
- func (x *GetBookMARCResponse) GetError() int32
- func (x *GetBookMARCResponse) GetMsg() string
- func (*GetBookMARCResponse) ProtoMessage()
- func (x *GetBookMARCResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookMARCResponse) Reset()
- func (x *GetBookMARCResponse) String() string
- type LendStatus
- type LibraryServiceClient
- type LibraryServiceServer
- type UnimplementedLibraryServiceServer
- func (UnimplementedLibraryServiceServer) GetBookInfo(context.Context, *GetBookInfoRequest) (*GetBookInfoResponse, error)
- func (UnimplementedLibraryServiceServer) GetBookInfoList(context.Context, *GetBookInfoListRequest) (*GetBookInfoListResponse, error)
- func (UnimplementedLibraryServiceServer) GetBookLendHistory(context.Context, *GetBookLendHistoryRequest) (*GetBookLendHistoryResponse, error)
- func (UnimplementedLibraryServiceServer) GetBookLendLast(context.Context, *GetBookLendLastRequest) (*GetBookLendLastResponse, error)
- func (UnimplementedLibraryServiceServer) GetBookMARC(context.Context, *GetBookMARCRequest) (*GetBookMARCResponse, error)
- func (UnimplementedLibraryServiceServer) GetBookMARCList(context.Context, *GetBookMARCListRequest) (*GetBookMARCListResponse, error)
- type UnsafeLibraryServiceServer
Constants ¶
const ( LibraryService_GetBookInfo_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookInfo" LibraryService_GetBookInfoList_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookInfoList" LibraryService_GetBookMARC_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookMARC" LibraryService_GetBookMARCList_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookMARCList" LibraryService_GetBookLendLast_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookLendLast" LibraryService_GetBookLendHistory_FullMethodName = "/campusapis.library.v1.LibraryService/GetBookLendHistory" )
Variables ¶
var ( LendStatus_name = map[int32]string{ 0: "LEND_STATUS_UNSPECIFIED", 1: "LEND_STATUS_LENDING", 2: "LEND_STATUS_RETURNED", } LendStatus_value = map[string]int32{ "LEND_STATUS_UNSPECIFIED": 0, "LEND_STATUS_LENDING": 1, "LEND_STATUS_RETURNED": 2, } )
Enum value maps for LendStatus.
var File_campusapis_library_v1_library_proto protoreflect.FileDescriptor
var LibraryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "campusapis.library.v1.LibraryService", HandlerType: (*LibraryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBookInfo", Handler: _LibraryService_GetBookInfo_Handler, }, { MethodName: "GetBookInfoList", Handler: _LibraryService_GetBookInfoList_Handler, }, { MethodName: "GetBookMARC", Handler: _LibraryService_GetBookMARC_Handler, }, { MethodName: "GetBookMARCList", Handler: _LibraryService_GetBookMARCList_Handler, }, { MethodName: "GetBookLendLast", Handler: _LibraryService_GetBookLendLast_Handler, }, { MethodName: "GetBookLendHistory", Handler: _LibraryService_GetBookLendHistory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "campusapis/library/v1/library.proto", }
LibraryService_ServiceDesc is the grpc.ServiceDesc for LibraryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLibraryServiceHandler ¶
func RegisterLibraryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLibraryServiceHandler registers the http handlers for service LibraryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLibraryServiceHandlerClient ¶
func RegisterLibraryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LibraryServiceClient) error
RegisterLibraryServiceHandlerClient registers the http handlers for service LibraryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LibraryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LibraryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LibraryServiceClient" to call the correct interceptors.
func RegisterLibraryServiceHandlerFromEndpoint ¶
func RegisterLibraryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLibraryServiceHandlerFromEndpoint is same as RegisterLibraryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLibraryServiceHandlerServer ¶
func RegisterLibraryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LibraryServiceServer) error
RegisterLibraryServiceHandlerServer registers the http handlers for service LibraryService to "mux". UnaryRPC :call LibraryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLibraryServiceHandlerFromEndpoint instead.
func RegisterLibraryServiceServer ¶
func RegisterLibraryServiceServer(s grpc.ServiceRegistrar, srv LibraryServiceServer)
Types ¶
type BookInfo ¶
type BookInfo struct { // 书本编号 PropNo string `protobuf:"bytes,1,opt,name=propNo,proto3" json:"propNo,omitempty"` // 书籍编号 MarcRecNo string `protobuf:"bytes,2,opt,name=marcRecNo,proto3" json:"marcRecNo,omitempty"` // 书本条码 BarCode string `protobuf:"bytes,3,opt,name=barCode,proto3" json:"barCode,omitempty"` // 书籍状态 BookStatCode string `protobuf:"bytes,4,opt,name=bookStatCode,proto3" json:"bookStatCode,omitempty"` // 是否可借 BookLendFlag string `protobuf:"bytes,5,opt,name=bookLendFlag,proto3" json:"bookLendFlag,omitempty"` // 年份 Year string `protobuf:"bytes,6,opt,name=year,proto3" json:"year,omitempty"` // 价格 Price float32 `protobuf:"fixed32,7,opt,name=price,proto3" json:"price,omitempty"` // 收录时间 InDate string `protobuf:"bytes,8,opt,name=inDate,proto3" json:"inDate,omitempty"` // 年累计借阅次数 YearCircTimes int32 `protobuf:"varint,9,opt,name=yearCircTimes,proto3" json:"yearCircTimes,omitempty"` // 总累计借阅次数 TotalCircTimes int32 `protobuf:"varint,10,opt,name=totalCircTimes,proto3" json:"totalCircTimes,omitempty"` // 首次借阅时间 FirstUseDate int64 `protobuf:"varint,11,opt,name=firstUseDate,proto3" json:"firstUseDate,omitempty"` // 最后借阅时间 LastUseDate int64 `protobuf:"varint,12,opt,name=lastUseDate,proto3" json:"lastUseDate,omitempty"` // 记录标志更新时间 RecFlagUptDate int64 `protobuf:"varint,13,opt,name=recFlagUptDate,proto3" json:"recFlagUptDate,omitempty"` // 登记日期 RegDay int64 `protobuf:"varint,14,opt,name=regDay,proto3" json:"regDay,omitempty"` // 馆藏地 Location string `protobuf:"bytes,15,opt,name=location,proto3" json:"location,omitempty"` // 中图法分类号 CallNo string `protobuf:"bytes,16,opt,name=callNo,proto3" json:"callNo,omitempty"` // 书籍信息 Marc *BookMARC `protobuf:"bytes,17,opt,name=marc,proto3" json:"marc,omitempty"` // contains filtered or unexported fields }
书本信息
func (*BookInfo) Descriptor
deprecated
func (*BookInfo) GetBarCode ¶
func (*BookInfo) GetBookLendFlag ¶
func (*BookInfo) GetBookStatCode ¶
func (*BookInfo) GetFirstUseDate ¶
func (*BookInfo) GetLastUseDate ¶
func (*BookInfo) GetLocation ¶
func (*BookInfo) GetMarcRecNo ¶
func (*BookInfo) GetRecFlagUptDate ¶
func (*BookInfo) GetTotalCircTimes ¶
func (*BookInfo) GetYearCircTimes ¶
func (*BookInfo) ProtoMessage ¶
func (*BookInfo) ProtoMessage()
func (*BookInfo) ProtoReflect ¶
func (x *BookInfo) ProtoReflect() protoreflect.Message
type BookMARC ¶
type BookMARC struct { // 书籍编号 MarcRecNo string `protobuf:"bytes,1,opt,name=marcRecNo,proto3" json:"marcRecNo,omitempty"` // 书籍使用标志 MarcUseFlag string `protobuf:"bytes,2,opt,name=marcUseFlag,proto3" json:"marcUseFlag,omitempty"` // 书籍类型 MarcType string `protobuf:"bytes,3,opt,name=marcType,proto3" json:"marcType,omitempty"` // 目录操作 CataOper string `protobuf:"bytes,4,opt,name=cataOper,proto3" json:"cataOper,omitempty"` // 编目日期 CataDate string `protobuf:"bytes,5,opt,name=cataDate,proto3" json:"cataDate,omitempty"` // 语种 LangCode string `protobuf:"bytes,6,opt,name=langCode,proto3" json:"langCode,omitempty"` // 国家代码 CountryCode string `protobuf:"bytes,7,opt,name=countryCode,proto3" json:"countryCode,omitempty"` // 文献类型 DocTypeCode string `protobuf:"bytes,8,opt,name=docTypeCode,proto3" json:"docTypeCode,omitempty"` // 中图法分类号 CallNo string `protobuf:"bytes,9,opt,name=callNo,proto3" json:"callNo,omitempty"` // 书名 Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` // 作者 Author string `protobuf:"bytes,11,opt,name=author,proto3" json:"author,omitempty"` // 出版社 Publisher string `protobuf:"bytes,12,opt,name=publisher,proto3" json:"publisher,omitempty"` // 出版年月 MPubYear string `protobuf:"bytes,13,opt,name=mPubYear,proto3" json:"mPubYear,omitempty"` // ISBN编码 ISBN string `protobuf:"bytes,14,opt,name=ISBN,proto3" json:"ISBN,omitempty"` // 创建人 CreateOper string `protobuf:"bytes,15,opt,name=createOper,proto3" json:"createOper,omitempty"` // 创建日期 CreateDate string `protobuf:"bytes,16,opt,name=createDate,proto3" json:"createDate,omitempty"` // 出版年月 PubYear string `protobuf:"bytes,17,opt,name=pubYear,proto3" json:"pubYear,omitempty"` // 是否允许在图书馆显示 OpacFlag string `protobuf:"bytes,18,opt,name=opacFlag,proto3" json:"opacFlag,omitempty"` // 分类级别 CatalogLevel string `protobuf:"bytes,19,opt,name=catalogLevel,proto3" json:"catalogLevel,omitempty"` // contains filtered or unexported fields }
func (*BookMARC) Descriptor
deprecated
func (*BookMARC) GetCataDate ¶
func (*BookMARC) GetCataOper ¶
func (*BookMARC) GetCatalogLevel ¶
func (*BookMARC) GetCountryCode ¶
func (*BookMARC) GetCreateDate ¶
func (*BookMARC) GetCreateOper ¶
func (*BookMARC) GetDocTypeCode ¶
func (*BookMARC) GetLangCode ¶
func (*BookMARC) GetMPubYear ¶
func (*BookMARC) GetMarcRecNo ¶
func (*BookMARC) GetMarcType ¶
func (*BookMARC) GetMarcUseFlag ¶
func (*BookMARC) GetOpacFlag ¶
func (*BookMARC) GetPubYear ¶
func (*BookMARC) GetPublisher ¶
func (*BookMARC) ProtoMessage ¶
func (*BookMARC) ProtoMessage()
func (*BookMARC) ProtoReflect ¶
func (x *BookMARC) ProtoReflect() protoreflect.Message
type GetBookInfoListRequest ¶
type GetBookInfoListRequest struct { // 书籍编号 MarcRecNo string `protobuf:"bytes,1,opt,name=marcRecNo,proto3" json:"marcRecNo,omitempty"` // contains filtered or unexported fields }
func (*GetBookInfoListRequest) Descriptor
deprecated
func (*GetBookInfoListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoListRequest.ProtoReflect.Descriptor instead.
func (*GetBookInfoListRequest) GetMarcRecNo ¶
func (x *GetBookInfoListRequest) GetMarcRecNo() string
func (*GetBookInfoListRequest) ProtoMessage ¶
func (*GetBookInfoListRequest) ProtoMessage()
func (*GetBookInfoListRequest) ProtoReflect ¶
func (x *GetBookInfoListRequest) ProtoReflect() protoreflect.Message
func (*GetBookInfoListRequest) Reset ¶
func (x *GetBookInfoListRequest) Reset()
func (*GetBookInfoListRequest) String ¶
func (x *GetBookInfoListRequest) String() string
type GetBookInfoListResponse ¶
type GetBookInfoListResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*BookInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookInfoListResponse) Descriptor
deprecated
func (*GetBookInfoListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoListResponse.ProtoReflect.Descriptor instead.
func (*GetBookInfoListResponse) GetData ¶
func (x *GetBookInfoListResponse) GetData() []*BookInfo
func (*GetBookInfoListResponse) GetError ¶
func (x *GetBookInfoListResponse) GetError() int32
func (*GetBookInfoListResponse) GetMsg ¶
func (x *GetBookInfoListResponse) GetMsg() string
func (*GetBookInfoListResponse) ProtoMessage ¶
func (*GetBookInfoListResponse) ProtoMessage()
func (*GetBookInfoListResponse) ProtoReflect ¶
func (x *GetBookInfoListResponse) ProtoReflect() protoreflect.Message
func (*GetBookInfoListResponse) Reset ¶
func (x *GetBookInfoListResponse) Reset()
func (*GetBookInfoListResponse) String ¶
func (x *GetBookInfoListResponse) String() string
type GetBookInfoRequest ¶
type GetBookInfoRequest struct { // 书本编号 PropNo string `protobuf:"bytes,1,opt,name=propNo,proto3" json:"propNo,omitempty"` // contains filtered or unexported fields }
书本信息查询关键字
func (*GetBookInfoRequest) Descriptor
deprecated
func (*GetBookInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoRequest.ProtoReflect.Descriptor instead.
func (*GetBookInfoRequest) GetPropNo ¶
func (x *GetBookInfoRequest) GetPropNo() string
func (*GetBookInfoRequest) ProtoMessage ¶
func (*GetBookInfoRequest) ProtoMessage()
func (*GetBookInfoRequest) ProtoReflect ¶
func (x *GetBookInfoRequest) ProtoReflect() protoreflect.Message
func (*GetBookInfoRequest) Reset ¶
func (x *GetBookInfoRequest) Reset()
func (*GetBookInfoRequest) String ¶
func (x *GetBookInfoRequest) String() string
type GetBookInfoResponse ¶
type GetBookInfoResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *BookInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookInfoResponse) Descriptor
deprecated
func (*GetBookInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoResponse.ProtoReflect.Descriptor instead.
func (*GetBookInfoResponse) GetData ¶
func (x *GetBookInfoResponse) GetData() *BookInfo
func (*GetBookInfoResponse) GetError ¶
func (x *GetBookInfoResponse) GetError() int32
func (*GetBookInfoResponse) GetMsg ¶
func (x *GetBookInfoResponse) GetMsg() string
func (*GetBookInfoResponse) ProtoMessage ¶
func (*GetBookInfoResponse) ProtoMessage()
func (*GetBookInfoResponse) ProtoReflect ¶
func (x *GetBookInfoResponse) ProtoReflect() protoreflect.Message
func (*GetBookInfoResponse) Reset ¶
func (x *GetBookInfoResponse) Reset()
func (*GetBookInfoResponse) String ¶
func (x *GetBookInfoResponse) String() string
type GetBookLendHistoryRequest ¶
type GetBookLendHistoryRequest 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 (*GetBookLendHistoryRequest) Descriptor
deprecated
func (*GetBookLendHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetBookLendHistoryRequest) GetEndTime ¶
func (x *GetBookLendHistoryRequest) GetEndTime() int64
func (*GetBookLendHistoryRequest) GetStartTime ¶
func (x *GetBookLendHistoryRequest) GetStartTime() int64
func (*GetBookLendHistoryRequest) ProtoMessage ¶
func (*GetBookLendHistoryRequest) ProtoMessage()
func (*GetBookLendHistoryRequest) ProtoReflect ¶
func (x *GetBookLendHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetBookLendHistoryRequest) Reset ¶
func (x *GetBookLendHistoryRequest) Reset()
func (*GetBookLendHistoryRequest) String ¶
func (x *GetBookLendHistoryRequest) String() string
type GetBookLendHistoryResponse ¶
type GetBookLendHistoryResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*GetBookLendHistoryResponse_Nested `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookLendHistoryResponse) Descriptor
deprecated
func (*GetBookLendHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetBookLendHistoryResponse) GetData ¶
func (x *GetBookLendHistoryResponse) GetData() []*GetBookLendHistoryResponse_Nested
func (*GetBookLendHistoryResponse) GetError ¶
func (x *GetBookLendHistoryResponse) GetError() int32
func (*GetBookLendHistoryResponse) GetMsg ¶
func (x *GetBookLendHistoryResponse) GetMsg() string
func (*GetBookLendHistoryResponse) ProtoMessage ¶
func (*GetBookLendHistoryResponse) ProtoMessage()
func (*GetBookLendHistoryResponse) ProtoReflect ¶
func (x *GetBookLendHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetBookLendHistoryResponse) Reset ¶
func (x *GetBookLendHistoryResponse) Reset()
func (*GetBookLendHistoryResponse) String ¶
func (x *GetBookLendHistoryResponse) String() string
type GetBookLendHistoryResponse_Nested ¶
type GetBookLendHistoryResponse_Nested struct { Book *BookInfo `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` StaffID string `protobuf:"bytes,2,opt,name=staffID,proto3" json:"staffID,omitempty"` LendDate int64 `protobuf:"varint,3,opt,name=lendDate,proto3" json:"lendDate,omitempty"` ReturnDate int64 `protobuf:"varint,4,opt,name=returnDate,proto3" json:"returnDate,omitempty"` RenewDate int64 `protobuf:"varint,5,opt,name=renewDate,proto3" json:"renewDate,omitempty"` RenewTimes int64 `protobuf:"varint,6,opt,name=renewTimes,proto3" json:"renewTimes,omitempty"` Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` Status LendStatus `protobuf:"varint,8,opt,name=status,proto3,enum=campusapis.library.v1.LendStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetBookLendHistoryResponse_Nested) Descriptor
deprecated
func (*GetBookLendHistoryResponse_Nested) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendHistoryResponse_Nested.ProtoReflect.Descriptor instead.
func (*GetBookLendHistoryResponse_Nested) GetBook ¶
func (x *GetBookLendHistoryResponse_Nested) GetBook() *BookInfo
func (*GetBookLendHistoryResponse_Nested) GetLendDate ¶
func (x *GetBookLendHistoryResponse_Nested) GetLendDate() int64
func (*GetBookLendHistoryResponse_Nested) GetLocation ¶
func (x *GetBookLendHistoryResponse_Nested) GetLocation() string
func (*GetBookLendHistoryResponse_Nested) GetRenewDate ¶
func (x *GetBookLendHistoryResponse_Nested) GetRenewDate() int64
func (*GetBookLendHistoryResponse_Nested) GetRenewTimes ¶
func (x *GetBookLendHistoryResponse_Nested) GetRenewTimes() int64
func (*GetBookLendHistoryResponse_Nested) GetReturnDate ¶
func (x *GetBookLendHistoryResponse_Nested) GetReturnDate() int64
func (*GetBookLendHistoryResponse_Nested) GetStaffID ¶
func (x *GetBookLendHistoryResponse_Nested) GetStaffID() string
func (*GetBookLendHistoryResponse_Nested) GetStatus ¶
func (x *GetBookLendHistoryResponse_Nested) GetStatus() LendStatus
func (*GetBookLendHistoryResponse_Nested) ProtoMessage ¶
func (*GetBookLendHistoryResponse_Nested) ProtoMessage()
func (*GetBookLendHistoryResponse_Nested) ProtoReflect ¶
func (x *GetBookLendHistoryResponse_Nested) ProtoReflect() protoreflect.Message
func (*GetBookLendHistoryResponse_Nested) Reset ¶
func (x *GetBookLendHistoryResponse_Nested) Reset()
func (*GetBookLendHistoryResponse_Nested) String ¶
func (x *GetBookLendHistoryResponse_Nested) String() string
type GetBookLendLastRequest ¶
type GetBookLendLastRequest struct { StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"` // contains filtered or unexported fields }
func (*GetBookLendLastRequest) Descriptor
deprecated
func (*GetBookLendLastRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendLastRequest.ProtoReflect.Descriptor instead.
func (*GetBookLendLastRequest) GetStartTime ¶
func (x *GetBookLendLastRequest) GetStartTime() int64
func (*GetBookLendLastRequest) ProtoMessage ¶
func (*GetBookLendLastRequest) ProtoMessage()
func (*GetBookLendLastRequest) ProtoReflect ¶
func (x *GetBookLendLastRequest) ProtoReflect() protoreflect.Message
func (*GetBookLendLastRequest) Reset ¶
func (x *GetBookLendLastRequest) Reset()
func (*GetBookLendLastRequest) String ¶
func (x *GetBookLendLastRequest) String() string
type GetBookLendLastResponse ¶
type GetBookLendLastResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*GetBookLendLastResponse_Nested `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookLendLastResponse) Descriptor
deprecated
func (*GetBookLendLastResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendLastResponse.ProtoReflect.Descriptor instead.
func (*GetBookLendLastResponse) GetData ¶
func (x *GetBookLendLastResponse) GetData() []*GetBookLendLastResponse_Nested
func (*GetBookLendLastResponse) GetError ¶
func (x *GetBookLendLastResponse) GetError() int32
func (*GetBookLendLastResponse) GetMsg ¶
func (x *GetBookLendLastResponse) GetMsg() string
func (*GetBookLendLastResponse) ProtoMessage ¶
func (*GetBookLendLastResponse) ProtoMessage()
func (*GetBookLendLastResponse) ProtoReflect ¶
func (x *GetBookLendLastResponse) ProtoReflect() protoreflect.Message
func (*GetBookLendLastResponse) Reset ¶
func (x *GetBookLendLastResponse) Reset()
func (*GetBookLendLastResponse) String ¶
func (x *GetBookLendLastResponse) String() string
type GetBookLendLastResponse_Nested ¶
type GetBookLendLastResponse_Nested struct { Book *BookInfo `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` StaffID string `protobuf:"bytes,2,opt,name=staffID,proto3" json:"staffID,omitempty"` LendDate int64 `protobuf:"varint,3,opt,name=lendDate,proto3" json:"lendDate,omitempty"` NormalReturnDate int64 `protobuf:"varint,4,opt,name=normalReturnDate,proto3" json:"normalReturnDate,omitempty"` RenewDate int64 `protobuf:"varint,5,opt,name=renewDate,proto3" json:"renewDate,omitempty"` RenewTimes int64 `protobuf:"varint,6,opt,name=renewTimes,proto3" json:"renewTimes,omitempty"` Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` Status LendStatus `protobuf:"varint,8,opt,name=status,proto3,enum=campusapis.library.v1.LendStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetBookLendLastResponse_Nested) Descriptor
deprecated
func (*GetBookLendLastResponse_Nested) Descriptor() ([]byte, []int)
Deprecated: Use GetBookLendLastResponse_Nested.ProtoReflect.Descriptor instead.
func (*GetBookLendLastResponse_Nested) GetBook ¶
func (x *GetBookLendLastResponse_Nested) GetBook() *BookInfo
func (*GetBookLendLastResponse_Nested) GetLendDate ¶
func (x *GetBookLendLastResponse_Nested) GetLendDate() int64
func (*GetBookLendLastResponse_Nested) GetLocation ¶
func (x *GetBookLendLastResponse_Nested) GetLocation() string
func (*GetBookLendLastResponse_Nested) GetNormalReturnDate ¶
func (x *GetBookLendLastResponse_Nested) GetNormalReturnDate() int64
func (*GetBookLendLastResponse_Nested) GetRenewDate ¶
func (x *GetBookLendLastResponse_Nested) GetRenewDate() int64
func (*GetBookLendLastResponse_Nested) GetRenewTimes ¶
func (x *GetBookLendLastResponse_Nested) GetRenewTimes() int64
func (*GetBookLendLastResponse_Nested) GetStaffID ¶
func (x *GetBookLendLastResponse_Nested) GetStaffID() string
func (*GetBookLendLastResponse_Nested) GetStatus ¶
func (x *GetBookLendLastResponse_Nested) GetStatus() LendStatus
func (*GetBookLendLastResponse_Nested) ProtoMessage ¶
func (*GetBookLendLastResponse_Nested) ProtoMessage()
func (*GetBookLendLastResponse_Nested) ProtoReflect ¶
func (x *GetBookLendLastResponse_Nested) ProtoReflect() protoreflect.Message
func (*GetBookLendLastResponse_Nested) Reset ¶
func (x *GetBookLendLastResponse_Nested) Reset()
func (*GetBookLendLastResponse_Nested) String ¶
func (x *GetBookLendLastResponse_Nested) String() string
type GetBookMARCListRequest ¶
type GetBookMARCListRequest struct { Marc *BookMARC `protobuf:"bytes,1,opt,name=marc,proto3" json:"marc,omitempty"` // 模糊查询关键字,当前仅允许查询作者,书名,出版社 SearchKeys []string `protobuf:"bytes,2,rep,name=searchKeys,proto3" json:"searchKeys,omitempty"` // 限制条数,允许为0-100之间 Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // 偏移 Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*GetBookMARCListRequest) Descriptor
deprecated
func (*GetBookMARCListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookMARCListRequest.ProtoReflect.Descriptor instead.
func (*GetBookMARCListRequest) GetLimit ¶
func (x *GetBookMARCListRequest) GetLimit() int32
func (*GetBookMARCListRequest) GetMarc ¶
func (x *GetBookMARCListRequest) GetMarc() *BookMARC
func (*GetBookMARCListRequest) GetOffset ¶
func (x *GetBookMARCListRequest) GetOffset() int32
func (*GetBookMARCListRequest) GetSearchKeys ¶
func (x *GetBookMARCListRequest) GetSearchKeys() []string
func (*GetBookMARCListRequest) ProtoMessage ¶
func (*GetBookMARCListRequest) ProtoMessage()
func (*GetBookMARCListRequest) ProtoReflect ¶
func (x *GetBookMARCListRequest) ProtoReflect() protoreflect.Message
func (*GetBookMARCListRequest) Reset ¶
func (x *GetBookMARCListRequest) Reset()
func (*GetBookMARCListRequest) String ¶
func (x *GetBookMARCListRequest) String() string
type GetBookMARCListResponse ¶
type GetBookMARCListResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*BookMARC `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookMARCListResponse) Descriptor
deprecated
func (*GetBookMARCListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookMARCListResponse.ProtoReflect.Descriptor instead.
func (*GetBookMARCListResponse) GetData ¶
func (x *GetBookMARCListResponse) GetData() []*BookMARC
func (*GetBookMARCListResponse) GetError ¶
func (x *GetBookMARCListResponse) GetError() int32
func (*GetBookMARCListResponse) GetMsg ¶
func (x *GetBookMARCListResponse) GetMsg() string
func (*GetBookMARCListResponse) ProtoMessage ¶
func (*GetBookMARCListResponse) ProtoMessage()
func (*GetBookMARCListResponse) ProtoReflect ¶
func (x *GetBookMARCListResponse) ProtoReflect() protoreflect.Message
func (*GetBookMARCListResponse) Reset ¶
func (x *GetBookMARCListResponse) Reset()
func (*GetBookMARCListResponse) String ¶
func (x *GetBookMARCListResponse) String() string
type GetBookMARCRequest ¶
type GetBookMARCRequest struct { PropNo string `protobuf:"bytes,1,opt,name=propNo,proto3" json:"propNo,omitempty"` MarcRecNo string `protobuf:"bytes,2,opt,name=marcRecNo,proto3" json:"marcRecNo,omitempty"` // contains filtered or unexported fields }
书籍信息查询关键字
func (*GetBookMARCRequest) Descriptor
deprecated
func (*GetBookMARCRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookMARCRequest.ProtoReflect.Descriptor instead.
func (*GetBookMARCRequest) GetMarcRecNo ¶
func (x *GetBookMARCRequest) GetMarcRecNo() string
func (*GetBookMARCRequest) GetPropNo ¶
func (x *GetBookMARCRequest) GetPropNo() string
func (*GetBookMARCRequest) ProtoMessage ¶
func (*GetBookMARCRequest) ProtoMessage()
func (*GetBookMARCRequest) ProtoReflect ¶
func (x *GetBookMARCRequest) ProtoReflect() protoreflect.Message
func (*GetBookMARCRequest) Reset ¶
func (x *GetBookMARCRequest) Reset()
func (*GetBookMARCRequest) String ¶
func (x *GetBookMARCRequest) String() string
type GetBookMARCResponse ¶
type GetBookMARCResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *BookMARC `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetBookMARCResponse) Descriptor
deprecated
func (*GetBookMARCResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookMARCResponse.ProtoReflect.Descriptor instead.
func (*GetBookMARCResponse) GetData ¶
func (x *GetBookMARCResponse) GetData() *BookMARC
func (*GetBookMARCResponse) GetError ¶
func (x *GetBookMARCResponse) GetError() int32
func (*GetBookMARCResponse) GetMsg ¶
func (x *GetBookMARCResponse) GetMsg() string
func (*GetBookMARCResponse) ProtoMessage ¶
func (*GetBookMARCResponse) ProtoMessage()
func (*GetBookMARCResponse) ProtoReflect ¶
func (x *GetBookMARCResponse) ProtoReflect() protoreflect.Message
func (*GetBookMARCResponse) Reset ¶
func (x *GetBookMARCResponse) Reset()
func (*GetBookMARCResponse) String ¶
func (x *GetBookMARCResponse) String() string
type LendStatus ¶
type LendStatus int32
const ( // 未知 LendStatus_LEND_STATUS_UNSPECIFIED LendStatus = 0 // 借阅中 LendStatus_LEND_STATUS_LENDING LendStatus = 1 // 已归还 LendStatus_LEND_STATUS_RETURNED LendStatus = 2 )
func (LendStatus) Descriptor ¶
func (LendStatus) Descriptor() protoreflect.EnumDescriptor
func (LendStatus) Enum ¶
func (x LendStatus) Enum() *LendStatus
func (LendStatus) EnumDescriptor
deprecated
func (LendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use LendStatus.Descriptor instead.
func (LendStatus) Number ¶
func (x LendStatus) Number() protoreflect.EnumNumber
func (LendStatus) String ¶
func (x LendStatus) String() string
func (LendStatus) Type ¶
func (LendStatus) Type() protoreflect.EnumType
type LibraryServiceClient ¶
type LibraryServiceClient interface { // 查询书本信息 GetBookInfo(ctx context.Context, in *GetBookInfoRequest, opts ...grpc.CallOption) (*GetBookInfoResponse, error) // 查询书本信息列表,只能查询一个书籍的书本信息 GetBookInfoList(ctx context.Context, in *GetBookInfoListRequest, opts ...grpc.CallOption) (*GetBookInfoListResponse, error) // 查询书籍信息 GetBookMARC(ctx context.Context, in *GetBookMARCRequest, opts ...grpc.CallOption) (*GetBookMARCResponse, error) // 查询书籍信息列表 GetBookMARCList(ctx context.Context, in *GetBookMARCListRequest, opts ...grpc.CallOption) (*GetBookMARCListResponse, error) // 查询当前图书借阅记录 GetBookLendLast(ctx context.Context, in *GetBookLendLastRequest, opts ...grpc.CallOption) (*GetBookLendLastResponse, error) // 查询历史图书借阅记录 GetBookLendHistory(ctx context.Context, in *GetBookLendHistoryRequest, opts ...grpc.CallOption) (*GetBookLendHistoryResponse, error) }
LibraryServiceClient is the client API for LibraryService 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 NewLibraryServiceClient ¶
func NewLibraryServiceClient(cc grpc.ClientConnInterface) LibraryServiceClient
type LibraryServiceServer ¶
type LibraryServiceServer interface { // 查询书本信息 GetBookInfo(context.Context, *GetBookInfoRequest) (*GetBookInfoResponse, error) // 查询书本信息列表,只能查询一个书籍的书本信息 GetBookInfoList(context.Context, *GetBookInfoListRequest) (*GetBookInfoListResponse, error) // 查询书籍信息 GetBookMARC(context.Context, *GetBookMARCRequest) (*GetBookMARCResponse, error) // 查询书籍信息列表 GetBookMARCList(context.Context, *GetBookMARCListRequest) (*GetBookMARCListResponse, error) // 查询当前图书借阅记录 GetBookLendLast(context.Context, *GetBookLendLastRequest) (*GetBookLendLastResponse, error) // 查询历史图书借阅记录 GetBookLendHistory(context.Context, *GetBookLendHistoryRequest) (*GetBookLendHistoryResponse, error) // contains filtered or unexported methods }
LibraryServiceServer is the server API for LibraryService service. All implementations must embed UnimplementedLibraryServiceServer for forward compatibility
type UnimplementedLibraryServiceServer ¶
type UnimplementedLibraryServiceServer struct { }
UnimplementedLibraryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLibraryServiceServer) GetBookInfo ¶
func (UnimplementedLibraryServiceServer) GetBookInfo(context.Context, *GetBookInfoRequest) (*GetBookInfoResponse, error)
func (UnimplementedLibraryServiceServer) GetBookInfoList ¶
func (UnimplementedLibraryServiceServer) GetBookInfoList(context.Context, *GetBookInfoListRequest) (*GetBookInfoListResponse, error)
func (UnimplementedLibraryServiceServer) GetBookLendHistory ¶
func (UnimplementedLibraryServiceServer) GetBookLendHistory(context.Context, *GetBookLendHistoryRequest) (*GetBookLendHistoryResponse, error)
func (UnimplementedLibraryServiceServer) GetBookLendLast ¶
func (UnimplementedLibraryServiceServer) GetBookLendLast(context.Context, *GetBookLendLastRequest) (*GetBookLendLastResponse, error)
func (UnimplementedLibraryServiceServer) GetBookMARC ¶
func (UnimplementedLibraryServiceServer) GetBookMARC(context.Context, *GetBookMARCRequest) (*GetBookMARCResponse, error)
func (UnimplementedLibraryServiceServer) GetBookMARCList ¶
func (UnimplementedLibraryServiceServer) GetBookMARCList(context.Context, *GetBookMARCListRequest) (*GetBookMARCListResponse, error)
type UnsafeLibraryServiceServer ¶
type UnsafeLibraryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLibraryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LibraryServiceServer will result in compilation errors.