Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWebsiteRpcServer(s grpc.ServiceRegistrar, srv WebsiteRpcServer)
- type AddVisitReq
- type AddVisitResp
- type BatchResp
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindFriendListReq
- func (*FindFriendListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindFriendListReq) GetLinkName() string
- func (x *FindFriendListReq) GetPage() int64
- func (x *FindFriendListReq) GetPageSize() int64
- func (x *FindFriendListReq) GetSorts() []string
- func (*FindFriendListReq) ProtoMessage()
- func (x *FindFriendListReq) ProtoReflect() protoreflect.Message
- func (x *FindFriendListReq) Reset()
- func (x *FindFriendListReq) String() string
- type FindFriendListResp
- func (*FindFriendListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindFriendListResp) GetList() []*FriendDetails
- func (x *FindFriendListResp) GetTotal() int64
- func (*FindFriendListResp) ProtoMessage()
- func (x *FindFriendListResp) ProtoReflect() protoreflect.Message
- func (x *FindFriendListResp) Reset()
- func (x *FindFriendListResp) String() string
- type FindPageListReq
- func (*FindPageListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindPageListReq) GetPage() int64
- func (x *FindPageListReq) GetPageSize() int64
- func (x *FindPageListReq) GetSorts() []string
- func (*FindPageListReq) ProtoMessage()
- func (x *FindPageListReq) ProtoReflect() protoreflect.Message
- func (x *FindPageListReq) Reset()
- func (x *FindPageListReq) String() string
- type FindPageListResp
- func (*FindPageListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindPageListResp) GetList() []*PageDetails
- func (x *FindPageListResp) GetTotal() int64
- func (*FindPageListResp) ProtoMessage()
- func (x *FindPageListResp) ProtoReflect() protoreflect.Message
- func (x *FindPageListResp) Reset()
- func (x *FindPageListResp) String() string
- type FriendDetails
- func (*FriendDetails) Descriptor() ([]byte, []int)deprecated
- func (x *FriendDetails) GetCreatedAt() int64
- func (x *FriendDetails) GetId() int64
- func (x *FriendDetails) GetLinkAddress() string
- func (x *FriendDetails) GetLinkAvatar() string
- func (x *FriendDetails) GetLinkIntro() string
- func (x *FriendDetails) GetLinkName() string
- func (x *FriendDetails) GetUpdatedAt() int64
- func (*FriendDetails) ProtoMessage()
- func (x *FriendDetails) ProtoReflect() protoreflect.Message
- func (x *FriendDetails) Reset()
- func (x *FriendDetails) String() string
- type FriendNewReq
- func (*FriendNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *FriendNewReq) GetId() int64
- func (x *FriendNewReq) GetLinkAddress() string
- func (x *FriendNewReq) GetLinkAvatar() string
- func (x *FriendNewReq) GetLinkIntro() string
- func (x *FriendNewReq) GetLinkName() string
- func (*FriendNewReq) ProtoMessage()
- func (x *FriendNewReq) ProtoReflect() protoreflect.Message
- func (x *FriendNewReq) Reset()
- func (x *FriendNewReq) String() string
- type GetTouristInfoResp
- func (*GetTouristInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetTouristInfoResp) GetTouristId() string
- func (*GetTouristInfoResp) ProtoMessage()
- func (x *GetTouristInfoResp) ProtoReflect() protoreflect.Message
- func (x *GetTouristInfoResp) Reset()
- func (x *GetTouristInfoResp) String() string
- type IdReq
- type IdsReq
- type PageDetails
- func (*PageDetails) Descriptor() ([]byte, []int)deprecated
- func (x *PageDetails) GetCarouselCovers() []string
- func (x *PageDetails) GetCreatedAt() int64
- func (x *PageDetails) GetId() int64
- func (x *PageDetails) GetIsCarousel() int64
- func (x *PageDetails) GetPageCover() string
- func (x *PageDetails) GetPageLabel() string
- func (x *PageDetails) GetPageName() string
- func (x *PageDetails) GetUpdatedAt() int64
- func (*PageDetails) ProtoMessage()
- func (x *PageDetails) ProtoReflect() protoreflect.Message
- func (x *PageDetails) Reset()
- func (x *PageDetails) String() string
- type PageNewReq
- func (*PageNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *PageNewReq) GetCarouselCovers() []string
- func (x *PageNewReq) GetId() int64
- func (x *PageNewReq) GetIsCarousel() int64
- func (x *PageNewReq) GetPageCover() string
- func (x *PageNewReq) GetPageLabel() string
- func (x *PageNewReq) GetPageName() string
- func (*PageNewReq) ProtoMessage()
- func (x *PageNewReq) ProtoReflect() protoreflect.Message
- func (x *PageNewReq) Reset()
- func (x *PageNewReq) String() string
- type UnimplementedWebsiteRpcServer
- func (UnimplementedWebsiteRpcServer) AddFriend(context.Context, *FriendNewReq) (*FriendDetails, error)
- func (UnimplementedWebsiteRpcServer) AddPage(context.Context, *PageNewReq) (*PageDetails, error)
- func (UnimplementedWebsiteRpcServer) AddVisit(context.Context, *AddVisitReq) (*AddVisitResp, error)
- func (UnimplementedWebsiteRpcServer) DeleteFriend(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedWebsiteRpcServer) DeletePage(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedWebsiteRpcServer) FindFriendList(context.Context, *FindFriendListReq) (*FindFriendListResp, error)
- func (UnimplementedWebsiteRpcServer) FindPageList(context.Context, *FindPageListReq) (*FindPageListResp, error)
- func (UnimplementedWebsiteRpcServer) GetTouristInfo(context.Context, *EmptyReq) (*GetTouristInfoResp, error)
- func (UnimplementedWebsiteRpcServer) GetUserDailyVisit(context.Context, *EmptyReq) (*UserDailyVisitRsp, error)
- func (UnimplementedWebsiteRpcServer) GetUserTotalVisit(context.Context, *EmptyReq) (*CountResp, error)
- func (UnimplementedWebsiteRpcServer) UpdateFriend(context.Context, *FriendNewReq) (*FriendDetails, error)
- func (UnimplementedWebsiteRpcServer) UpdatePage(context.Context, *PageNewReq) (*PageDetails, error)
- type UnsafeWebsiteRpcServer
- type UserDailyVisitRsp
- func (*UserDailyVisitRsp) Descriptor() ([]byte, []int)deprecated
- func (x *UserDailyVisitRsp) GetList() []*UserVisit
- func (*UserDailyVisitRsp) ProtoMessage()
- func (x *UserDailyVisitRsp) ProtoReflect() protoreflect.Message
- func (x *UserDailyVisitRsp) Reset()
- func (x *UserDailyVisitRsp) String() string
- type UserIdReq
- type UserVisit
- type WebsiteRpcClient
- type WebsiteRpcServer
Constants ¶
const ( WebsiteRpc_GetTouristInfo_FullMethodName = "/websiterpc.WebsiteRpc/GetTouristInfo" WebsiteRpc_AddVisit_FullMethodName = "/websiterpc.WebsiteRpc/AddVisit" WebsiteRpc_GetUserTotalVisit_FullMethodName = "/websiterpc.WebsiteRpc/GetUserTotalVisit" WebsiteRpc_GetUserDailyVisit_FullMethodName = "/websiterpc.WebsiteRpc/GetUserDailyVisit" WebsiteRpc_AddPage_FullMethodName = "/websiterpc.WebsiteRpc/AddPage" WebsiteRpc_UpdatePage_FullMethodName = "/websiterpc.WebsiteRpc/UpdatePage" WebsiteRpc_DeletePage_FullMethodName = "/websiterpc.WebsiteRpc/DeletePage" WebsiteRpc_FindPageList_FullMethodName = "/websiterpc.WebsiteRpc/FindPageList" WebsiteRpc_AddFriend_FullMethodName = "/websiterpc.WebsiteRpc/AddFriend" WebsiteRpc_UpdateFriend_FullMethodName = "/websiterpc.WebsiteRpc/UpdateFriend" WebsiteRpc_DeleteFriend_FullMethodName = "/websiterpc.WebsiteRpc/DeleteFriend" WebsiteRpc_FindFriendList_FullMethodName = "/websiterpc.WebsiteRpc/FindFriendList" )
Variables ¶
var File_website_proto protoreflect.FileDescriptor
var WebsiteRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "websiterpc.WebsiteRpc", HandlerType: (*WebsiteRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTouristInfo", Handler: _WebsiteRpc_GetTouristInfo_Handler, }, { MethodName: "AddVisit", Handler: _WebsiteRpc_AddVisit_Handler, }, { MethodName: "GetUserTotalVisit", Handler: _WebsiteRpc_GetUserTotalVisit_Handler, }, { MethodName: "GetUserDailyVisit", Handler: _WebsiteRpc_GetUserDailyVisit_Handler, }, { MethodName: "AddPage", Handler: _WebsiteRpc_AddPage_Handler, }, { MethodName: "UpdatePage", Handler: _WebsiteRpc_UpdatePage_Handler, }, { MethodName: "DeletePage", Handler: _WebsiteRpc_DeletePage_Handler, }, { MethodName: "FindPageList", Handler: _WebsiteRpc_FindPageList_Handler, }, { MethodName: "AddFriend", Handler: _WebsiteRpc_AddFriend_Handler, }, { MethodName: "UpdateFriend", Handler: _WebsiteRpc_UpdateFriend_Handler, }, { MethodName: "DeleteFriend", Handler: _WebsiteRpc_DeleteFriend_Handler, }, { MethodName: "FindFriendList", Handler: _WebsiteRpc_FindFriendList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "website.proto", }
WebsiteRpc_ServiceDesc is the grpc.ServiceDesc for WebsiteRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebsiteRpcServer ¶
func RegisterWebsiteRpcServer(s grpc.ServiceRegistrar, srv WebsiteRpcServer)
Types ¶
type AddVisitReq ¶
type AddVisitReq struct { Visitor string `protobuf:"bytes,1,opt,name=visitor,proto3" json:"visitor,omitempty"` // contains filtered or unexported fields }
func (*AddVisitReq) Descriptor
deprecated
func (*AddVisitReq) Descriptor() ([]byte, []int)
Deprecated: Use AddVisitReq.ProtoReflect.Descriptor instead.
func (*AddVisitReq) GetVisitor ¶
func (x *AddVisitReq) GetVisitor() string
func (*AddVisitReq) ProtoMessage ¶
func (*AddVisitReq) ProtoMessage()
func (*AddVisitReq) ProtoReflect ¶
func (x *AddVisitReq) ProtoReflect() protoreflect.Message
func (*AddVisitReq) Reset ¶
func (x *AddVisitReq) Reset()
func (*AddVisitReq) String ¶
func (x *AddVisitReq) String() string
type AddVisitResp ¶
type AddVisitResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*AddVisitResp) Descriptor
deprecated
func (*AddVisitResp) Descriptor() ([]byte, []int)
Deprecated: Use AddVisitResp.ProtoReflect.Descriptor instead.
func (*AddVisitResp) GetCount ¶
func (x *AddVisitResp) GetCount() int64
func (*AddVisitResp) ProtoMessage ¶
func (*AddVisitResp) ProtoMessage()
func (*AddVisitResp) ProtoReflect ¶
func (x *AddVisitResp) ProtoReflect() protoreflect.Message
func (*AddVisitResp) Reset ¶
func (x *AddVisitResp) Reset()
func (*AddVisitResp) String ¶
func (x *AddVisitResp) String() string
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type CountResp ¶
type CountResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountResp) Descriptor
deprecated
func (*CountResp) ProtoMessage ¶
func (*CountResp) ProtoMessage()
func (*CountResp) ProtoReflect ¶
func (x *CountResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type FindFriendListReq ¶
type FindFriendListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 LinkName string `protobuf:"bytes,4,opt,name=link_name,json=linkName,proto3" json:"link_name,omitempty"` // 链接名 // contains filtered or unexported fields }
func (*FindFriendListReq) Descriptor
deprecated
func (*FindFriendListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindFriendListReq.ProtoReflect.Descriptor instead.
func (*FindFriendListReq) GetLinkName ¶
func (x *FindFriendListReq) GetLinkName() string
func (*FindFriendListReq) GetPage ¶
func (x *FindFriendListReq) GetPage() int64
func (*FindFriendListReq) GetPageSize ¶
func (x *FindFriendListReq) GetPageSize() int64
func (*FindFriendListReq) GetSorts ¶
func (x *FindFriendListReq) GetSorts() []string
func (*FindFriendListReq) ProtoMessage ¶
func (*FindFriendListReq) ProtoMessage()
func (*FindFriendListReq) ProtoReflect ¶
func (x *FindFriendListReq) ProtoReflect() protoreflect.Message
func (*FindFriendListReq) Reset ¶
func (x *FindFriendListReq) Reset()
func (*FindFriendListReq) String ¶
func (x *FindFriendListReq) String() string
type FindFriendListResp ¶
type FindFriendListResp struct { List []*FriendDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindFriendListResp) Descriptor
deprecated
func (*FindFriendListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindFriendListResp.ProtoReflect.Descriptor instead.
func (*FindFriendListResp) GetList ¶
func (x *FindFriendListResp) GetList() []*FriendDetails
func (*FindFriendListResp) GetTotal ¶
func (x *FindFriendListResp) GetTotal() int64
func (*FindFriendListResp) ProtoMessage ¶
func (*FindFriendListResp) ProtoMessage()
func (*FindFriendListResp) ProtoReflect ¶
func (x *FindFriendListResp) ProtoReflect() protoreflect.Message
func (*FindFriendListResp) Reset ¶
func (x *FindFriendListResp) Reset()
func (*FindFriendListResp) String ¶
func (x *FindFriendListResp) String() string
type FindPageListReq ¶
type FindPageListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 // contains filtered or unexported fields }
func (*FindPageListReq) Descriptor
deprecated
func (*FindPageListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindPageListReq.ProtoReflect.Descriptor instead.
func (*FindPageListReq) GetPage ¶
func (x *FindPageListReq) GetPage() int64
func (*FindPageListReq) GetPageSize ¶
func (x *FindPageListReq) GetPageSize() int64
func (*FindPageListReq) GetSorts ¶
func (x *FindPageListReq) GetSorts() []string
func (*FindPageListReq) ProtoMessage ¶
func (*FindPageListReq) ProtoMessage()
func (*FindPageListReq) ProtoReflect ¶
func (x *FindPageListReq) ProtoReflect() protoreflect.Message
func (*FindPageListReq) Reset ¶
func (x *FindPageListReq) Reset()
func (*FindPageListReq) String ¶
func (x *FindPageListReq) String() string
type FindPageListResp ¶
type FindPageListResp struct { List []*PageDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindPageListResp) Descriptor
deprecated
func (*FindPageListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindPageListResp.ProtoReflect.Descriptor instead.
func (*FindPageListResp) GetList ¶
func (x *FindPageListResp) GetList() []*PageDetails
func (*FindPageListResp) GetTotal ¶
func (x *FindPageListResp) GetTotal() int64
func (*FindPageListResp) ProtoMessage ¶
func (*FindPageListResp) ProtoMessage()
func (*FindPageListResp) ProtoReflect ¶
func (x *FindPageListResp) ProtoReflect() protoreflect.Message
func (*FindPageListResp) Reset ¶
func (x *FindPageListResp) Reset()
func (*FindPageListResp) String ¶
func (x *FindPageListResp) String() string
type FriendDetails ¶
type FriendDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id LinkName string `protobuf:"bytes,2,opt,name=link_name,json=linkName,proto3" json:"link_name,omitempty"` // 链接名 LinkAvatar string `protobuf:"bytes,3,opt,name=link_avatar,json=linkAvatar,proto3" json:"link_avatar,omitempty"` // 链接头像 LinkAddress string `protobuf:"bytes,4,opt,name=link_address,json=linkAddress,proto3" json:"link_address,omitempty"` // 链接地址 LinkIntro string `protobuf:"bytes,5,opt,name=link_intro,json=linkIntro,proto3" json:"link_intro,omitempty"` // 链接介绍 CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 // contains filtered or unexported fields }
func (*FriendDetails) Descriptor
deprecated
func (*FriendDetails) Descriptor() ([]byte, []int)
Deprecated: Use FriendDetails.ProtoReflect.Descriptor instead.
func (*FriendDetails) GetCreatedAt ¶
func (x *FriendDetails) GetCreatedAt() int64
func (*FriendDetails) GetId ¶
func (x *FriendDetails) GetId() int64
func (*FriendDetails) GetLinkAddress ¶
func (x *FriendDetails) GetLinkAddress() string
func (*FriendDetails) GetLinkAvatar ¶
func (x *FriendDetails) GetLinkAvatar() string
func (*FriendDetails) GetLinkIntro ¶
func (x *FriendDetails) GetLinkIntro() string
func (*FriendDetails) GetLinkName ¶
func (x *FriendDetails) GetLinkName() string
func (*FriendDetails) GetUpdatedAt ¶
func (x *FriendDetails) GetUpdatedAt() int64
func (*FriendDetails) ProtoMessage ¶
func (*FriendDetails) ProtoMessage()
func (*FriendDetails) ProtoReflect ¶
func (x *FriendDetails) ProtoReflect() protoreflect.Message
func (*FriendDetails) Reset ¶
func (x *FriendDetails) Reset()
func (*FriendDetails) String ¶
func (x *FriendDetails) String() string
type FriendNewReq ¶
type FriendNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id LinkName string `protobuf:"bytes,2,opt,name=link_name,json=linkName,proto3" json:"link_name,omitempty"` // 链接名 LinkAvatar string `protobuf:"bytes,3,opt,name=link_avatar,json=linkAvatar,proto3" json:"link_avatar,omitempty"` // 链接头像 LinkAddress string `protobuf:"bytes,4,opt,name=link_address,json=linkAddress,proto3" json:"link_address,omitempty"` // 链接地址 LinkIntro string `protobuf:"bytes,5,opt,name=link_intro,json=linkIntro,proto3" json:"link_intro,omitempty"` // 链接介绍 // contains filtered or unexported fields }
************* blog 友链管理 *************
func (*FriendNewReq) Descriptor
deprecated
func (*FriendNewReq) Descriptor() ([]byte, []int)
Deprecated: Use FriendNewReq.ProtoReflect.Descriptor instead.
func (*FriendNewReq) GetId ¶
func (x *FriendNewReq) GetId() int64
func (*FriendNewReq) GetLinkAddress ¶
func (x *FriendNewReq) GetLinkAddress() string
func (*FriendNewReq) GetLinkAvatar ¶
func (x *FriendNewReq) GetLinkAvatar() string
func (*FriendNewReq) GetLinkIntro ¶
func (x *FriendNewReq) GetLinkIntro() string
func (*FriendNewReq) GetLinkName ¶
func (x *FriendNewReq) GetLinkName() string
func (*FriendNewReq) ProtoMessage ¶
func (*FriendNewReq) ProtoMessage()
func (*FriendNewReq) ProtoReflect ¶
func (x *FriendNewReq) ProtoReflect() protoreflect.Message
func (*FriendNewReq) Reset ¶
func (x *FriendNewReq) Reset()
func (*FriendNewReq) String ¶
func (x *FriendNewReq) String() string
type GetTouristInfoResp ¶
type GetTouristInfoResp struct { TouristId string `protobuf:"bytes,1,opt,name=tourist_id,json=touristId,proto3" json:"tourist_id,omitempty"` // contains filtered or unexported fields }
func (*GetTouristInfoResp) Descriptor
deprecated
func (*GetTouristInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use GetTouristInfoResp.ProtoReflect.Descriptor instead.
func (*GetTouristInfoResp) GetTouristId ¶
func (x *GetTouristInfoResp) GetTouristId() string
func (*GetTouristInfoResp) ProtoMessage ¶
func (*GetTouristInfoResp) ProtoMessage()
func (*GetTouristInfoResp) ProtoReflect ¶
func (x *GetTouristInfoResp) ProtoReflect() protoreflect.Message
func (*GetTouristInfoResp) Reset ¶
func (x *GetTouristInfoResp) Reset()
func (*GetTouristInfoResp) String ¶
func (x *GetTouristInfoResp) String() string
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type PageDetails ¶
type PageDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 页面id PageName string `protobuf:"bytes,2,opt,name=page_name,json=pageName,proto3" json:"page_name,omitempty"` // 页面名 PageLabel string `protobuf:"bytes,3,opt,name=page_label,json=pageLabel,proto3" json:"page_label,omitempty"` // 页面标签 PageCover string `protobuf:"bytes,4,opt,name=page_cover,json=pageCover,proto3" json:"page_cover,omitempty"` // 页面封面 IsCarousel int64 `protobuf:"varint,5,opt,name=is_carousel,json=isCarousel,proto3" json:"is_carousel,omitempty"` // 是否轮播 CarouselCovers []string `protobuf:"bytes,6,rep,name=carousel_covers,json=carouselCovers,proto3" json:"carousel_covers,omitempty"` // 轮播列表 CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 // contains filtered or unexported fields }
func (*PageDetails) Descriptor
deprecated
func (*PageDetails) Descriptor() ([]byte, []int)
Deprecated: Use PageDetails.ProtoReflect.Descriptor instead.
func (*PageDetails) GetCarouselCovers ¶
func (x *PageDetails) GetCarouselCovers() []string
func (*PageDetails) GetCreatedAt ¶
func (x *PageDetails) GetCreatedAt() int64
func (*PageDetails) GetId ¶
func (x *PageDetails) GetId() int64
func (*PageDetails) GetIsCarousel ¶
func (x *PageDetails) GetIsCarousel() int64
func (*PageDetails) GetPageCover ¶
func (x *PageDetails) GetPageCover() string
func (*PageDetails) GetPageLabel ¶
func (x *PageDetails) GetPageLabel() string
func (*PageDetails) GetPageName ¶
func (x *PageDetails) GetPageName() string
func (*PageDetails) GetUpdatedAt ¶
func (x *PageDetails) GetUpdatedAt() int64
func (*PageDetails) ProtoMessage ¶
func (*PageDetails) ProtoMessage()
func (*PageDetails) ProtoReflect ¶
func (x *PageDetails) ProtoReflect() protoreflect.Message
func (*PageDetails) Reset ¶
func (x *PageDetails) Reset()
func (*PageDetails) String ¶
func (x *PageDetails) String() string
type PageNewReq ¶
type PageNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 页面id PageName string `protobuf:"bytes,2,opt,name=page_name,json=pageName,proto3" json:"page_name,omitempty"` // 页面名 PageLabel string `protobuf:"bytes,3,opt,name=page_label,json=pageLabel,proto3" json:"page_label,omitempty"` // 页面标签 PageCover string `protobuf:"bytes,4,opt,name=page_cover,json=pageCover,proto3" json:"page_cover,omitempty"` // 页面封面 IsCarousel int64 `protobuf:"varint,5,opt,name=is_carousel,json=isCarousel,proto3" json:"is_carousel,omitempty"` // 是否轮播 CarouselCovers []string `protobuf:"bytes,6,rep,name=carousel_covers,json=carouselCovers,proto3" json:"carousel_covers,omitempty"` // 轮播列表 // contains filtered or unexported fields }
************* blog 页面管理 *************
func (*PageNewReq) Descriptor
deprecated
func (*PageNewReq) Descriptor() ([]byte, []int)
Deprecated: Use PageNewReq.ProtoReflect.Descriptor instead.
func (*PageNewReq) GetCarouselCovers ¶
func (x *PageNewReq) GetCarouselCovers() []string
func (*PageNewReq) GetId ¶
func (x *PageNewReq) GetId() int64
func (*PageNewReq) GetIsCarousel ¶
func (x *PageNewReq) GetIsCarousel() int64
func (*PageNewReq) GetPageCover ¶
func (x *PageNewReq) GetPageCover() string
func (*PageNewReq) GetPageLabel ¶
func (x *PageNewReq) GetPageLabel() string
func (*PageNewReq) GetPageName ¶
func (x *PageNewReq) GetPageName() string
func (*PageNewReq) ProtoMessage ¶
func (*PageNewReq) ProtoMessage()
func (*PageNewReq) ProtoReflect ¶
func (x *PageNewReq) ProtoReflect() protoreflect.Message
func (*PageNewReq) Reset ¶
func (x *PageNewReq) Reset()
func (*PageNewReq) String ¶
func (x *PageNewReq) String() string
type UnimplementedWebsiteRpcServer ¶
type UnimplementedWebsiteRpcServer struct { }
UnimplementedWebsiteRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedWebsiteRpcServer) AddFriend ¶
func (UnimplementedWebsiteRpcServer) AddFriend(context.Context, *FriendNewReq) (*FriendDetails, error)
func (UnimplementedWebsiteRpcServer) AddPage ¶
func (UnimplementedWebsiteRpcServer) AddPage(context.Context, *PageNewReq) (*PageDetails, error)
func (UnimplementedWebsiteRpcServer) AddVisit ¶
func (UnimplementedWebsiteRpcServer) AddVisit(context.Context, *AddVisitReq) (*AddVisitResp, error)
func (UnimplementedWebsiteRpcServer) DeleteFriend ¶
func (UnimplementedWebsiteRpcServer) DeletePage ¶
func (UnimplementedWebsiteRpcServer) FindFriendList ¶
func (UnimplementedWebsiteRpcServer) FindFriendList(context.Context, *FindFriendListReq) (*FindFriendListResp, error)
func (UnimplementedWebsiteRpcServer) FindPageList ¶
func (UnimplementedWebsiteRpcServer) FindPageList(context.Context, *FindPageListReq) (*FindPageListResp, error)
func (UnimplementedWebsiteRpcServer) GetTouristInfo ¶
func (UnimplementedWebsiteRpcServer) GetTouristInfo(context.Context, *EmptyReq) (*GetTouristInfoResp, error)
func (UnimplementedWebsiteRpcServer) GetUserDailyVisit ¶
func (UnimplementedWebsiteRpcServer) GetUserDailyVisit(context.Context, *EmptyReq) (*UserDailyVisitRsp, error)
func (UnimplementedWebsiteRpcServer) GetUserTotalVisit ¶
func (UnimplementedWebsiteRpcServer) UpdateFriend ¶
func (UnimplementedWebsiteRpcServer) UpdateFriend(context.Context, *FriendNewReq) (*FriendDetails, error)
func (UnimplementedWebsiteRpcServer) UpdatePage ¶
func (UnimplementedWebsiteRpcServer) UpdatePage(context.Context, *PageNewReq) (*PageDetails, error)
type UnsafeWebsiteRpcServer ¶
type UnsafeWebsiteRpcServer interface {
// contains filtered or unexported methods
}
UnsafeWebsiteRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebsiteRpcServer will result in compilation errors.
type UserDailyVisitRsp ¶
type UserDailyVisitRsp struct { List []*UserVisit `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*UserDailyVisitRsp) Descriptor
deprecated
func (*UserDailyVisitRsp) Descriptor() ([]byte, []int)
Deprecated: Use UserDailyVisitRsp.ProtoReflect.Descriptor instead.
func (*UserDailyVisitRsp) GetList ¶
func (x *UserDailyVisitRsp) GetList() []*UserVisit
func (*UserDailyVisitRsp) ProtoMessage ¶
func (*UserDailyVisitRsp) ProtoMessage()
func (*UserDailyVisitRsp) ProtoReflect ¶
func (x *UserDailyVisitRsp) ProtoReflect() protoreflect.Message
func (*UserDailyVisitRsp) Reset ¶
func (x *UserDailyVisitRsp) Reset()
func (*UserDailyVisitRsp) String ¶
func (x *UserDailyVisitRsp) String() string
type UserIdReq ¶
type UserIdReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message
type UserVisit ¶
type UserVisit struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` ViewCount int64 `protobuf:"varint,2,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` // contains filtered or unexported fields }
func (*UserVisit) Descriptor
deprecated
func (*UserVisit) GetViewCount ¶
func (*UserVisit) ProtoMessage ¶
func (*UserVisit) ProtoMessage()
func (*UserVisit) ProtoReflect ¶
func (x *UserVisit) ProtoReflect() protoreflect.Message
type WebsiteRpcClient ¶
type WebsiteRpcClient interface { // 获取游客身份 GetTouristInfo(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*GetTouristInfoResp, error) // 添加用户访问记录 AddVisit(ctx context.Context, in *AddVisitReq, opts ...grpc.CallOption) (*AddVisitResp, error) // 用户总流量数 GetUserTotalVisit(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*CountResp, error) // 用户日浏览量分析 GetUserDailyVisit(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*UserDailyVisitRsp, error) // 创建页面 AddPage(ctx context.Context, in *PageNewReq, opts ...grpc.CallOption) (*PageDetails, error) // 更新页面 UpdatePage(ctx context.Context, in *PageNewReq, opts ...grpc.CallOption) (*PageDetails, error) // 删除页面 DeletePage(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询页面列表 FindPageList(ctx context.Context, in *FindPageListReq, opts ...grpc.CallOption) (*FindPageListResp, error) // 创建友链 AddFriend(ctx context.Context, in *FriendNewReq, opts ...grpc.CallOption) (*FriendDetails, error) // 更新友链 UpdateFriend(ctx context.Context, in *FriendNewReq, opts ...grpc.CallOption) (*FriendDetails, error) // 删除友链 DeleteFriend(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询友链列表 FindFriendList(ctx context.Context, in *FindFriendListReq, opts ...grpc.CallOption) (*FindFriendListResp, error) }
WebsiteRpcClient is the client API for WebsiteRpc 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 NewWebsiteRpcClient ¶
func NewWebsiteRpcClient(cc grpc.ClientConnInterface) WebsiteRpcClient
type WebsiteRpcServer ¶
type WebsiteRpcServer interface { // 获取游客身份 GetTouristInfo(context.Context, *EmptyReq) (*GetTouristInfoResp, error) // 添加用户访问记录 AddVisit(context.Context, *AddVisitReq) (*AddVisitResp, error) // 用户总流量数 GetUserTotalVisit(context.Context, *EmptyReq) (*CountResp, error) // 用户日浏览量分析 GetUserDailyVisit(context.Context, *EmptyReq) (*UserDailyVisitRsp, error) // 创建页面 AddPage(context.Context, *PageNewReq) (*PageDetails, error) // 更新页面 UpdatePage(context.Context, *PageNewReq) (*PageDetails, error) // 删除页面 DeletePage(context.Context, *IdsReq) (*BatchResp, error) // 查询页面列表 FindPageList(context.Context, *FindPageListReq) (*FindPageListResp, error) // 创建友链 AddFriend(context.Context, *FriendNewReq) (*FriendDetails, error) // 更新友链 UpdateFriend(context.Context, *FriendNewReq) (*FriendDetails, error) // 删除友链 DeleteFriend(context.Context, *IdsReq) (*BatchResp, error) // 查询友链列表 FindFriendList(context.Context, *FindFriendListReq) (*FindFriendListResp, error) // contains filtered or unexported methods }
WebsiteRpcServer is the server API for WebsiteRpc service. All implementations must embed UnimplementedWebsiteRpcServer for forward compatibility