Documentation
¶
Index ¶
- type AddVisitReq
- type AddVisitResp
- type BatchResp
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindFriendListReq
- type FindFriendListResp
- type FindPageListReq
- type FindPageListResp
- type FriendDetails
- type FriendNewReq
- type GetTouristInfoResp
- type IdReq
- type IdsReq
- type PageDetails
- type PageNewReq
- type UserDailyVisitRsp
- type UserIdReq
- type UserVisit
- type WebsiteRpc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddVisitReq ¶
type AddVisitReq = websiterpc.AddVisitReq
type AddVisitResp ¶
type AddVisitResp = websiterpc.AddVisitResp
type BatchResp ¶
type BatchResp = websiterpc.BatchResp
type CountResp ¶
type CountResp = websiterpc.CountResp
type EmptyReq ¶
type EmptyReq = websiterpc.EmptyReq
type EmptyResp ¶
type EmptyResp = websiterpc.EmptyResp
type FindFriendListReq ¶
type FindFriendListReq = websiterpc.FindFriendListReq
type FindFriendListResp ¶
type FindFriendListResp = websiterpc.FindFriendListResp
type FindPageListReq ¶
type FindPageListReq = websiterpc.FindPageListReq
type FindPageListResp ¶
type FindPageListResp = websiterpc.FindPageListResp
type FriendDetails ¶
type FriendDetails = websiterpc.FriendDetails
type FriendNewReq ¶
type FriendNewReq = websiterpc.FriendNewReq
type GetTouristInfoResp ¶
type GetTouristInfoResp = websiterpc.GetTouristInfoResp
type IdReq ¶
type IdReq = websiterpc.IdReq
type IdsReq ¶
type IdsReq = websiterpc.IdsReq
type PageDetails ¶
type PageDetails = websiterpc.PageDetails
type PageNewReq ¶
type PageNewReq = websiterpc.PageNewReq
type UserDailyVisitRsp ¶
type UserDailyVisitRsp = websiterpc.UserDailyVisitRsp
type UserIdReq ¶
type UserIdReq = websiterpc.UserIdReq
type UserVisit ¶
type UserVisit = websiterpc.UserVisit
type WebsiteRpc ¶
type WebsiteRpc 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)
}
func NewWebsiteRpc ¶
func NewWebsiteRpc(cli zrpc.Client) WebsiteRpc
Click to show internal directories.
Click to hide internal directories.