friendrpc

package
v0.0.0-...-6d7266f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchResp

type BatchResp = friendrpc.BatchResp

type EmptyReq

type EmptyReq = friendrpc.EmptyReq

type EmptyResp

type EmptyResp = friendrpc.EmptyResp

type FindFriendListReq

type FindFriendListReq = friendrpc.FindFriendListReq

type FindFriendListResp

type FindFriendListResp = friendrpc.FindFriendListResp

type FriendDetails

type FriendDetails = friendrpc.FriendDetails

type FriendNewReq

type FriendNewReq = friendrpc.FriendNewReq

type FriendRpc

type FriendRpc interface {
	// 创建友链
	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 NewFriendRpc

func NewFriendRpc(cli zrpc.Client) FriendRpc

type IdReq

type IdReq = friendrpc.IdReq

type IdsReq

type IdsReq = friendrpc.IdsReq

type UserIdReq

type UserIdReq = friendrpc.UserIdReq

Jump to

Keyboard shortcuts

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