talkrpc

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 = talkrpc.BatchResp

type CountResp

type CountResp = talkrpc.CountResp

type EmptyReq

type EmptyReq = talkrpc.EmptyReq

type EmptyResp

type EmptyResp = talkrpc.EmptyResp

type FindLikeTalkResp

type FindLikeTalkResp = talkrpc.FindLikeTalkResp

type FindTalkListReq

type FindTalkListReq = talkrpc.FindTalkListReq

type FindTalkListResp

type FindTalkListResp = talkrpc.FindTalkListResp

type IdReq

type IdReq = talkrpc.IdReq

type IdsReq

type IdsReq = talkrpc.IdsReq

type TalkDetails

type TalkDetails = talkrpc.TalkDetails

type TalkNewReq

type TalkNewReq = talkrpc.TalkNewReq

type TalkRpc

type TalkRpc interface {
	// 创建说说
	AddTalk(ctx context.Context, in *TalkNewReq, opts ...grpc.CallOption) (*TalkDetails, error)
	// 更新说说
	UpdateTalk(ctx context.Context, in *TalkNewReq, opts ...grpc.CallOption) (*TalkDetails, error)
	// 删除说说
	DeleteTalk(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询说说
	GetTalk(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TalkDetails, error)
	// 查询说说列表
	FindTalkList(ctx context.Context, in *FindTalkListReq, opts ...grpc.CallOption) (*FindTalkListResp, error)
	// 点赞说说
	LikeTalk(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*EmptyResp, error)
	// 用户点赞的说说
	FindUserLikeTalk(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindLikeTalkResp, error)
}

func NewTalkRpc

func NewTalkRpc(cli zrpc.Client) TalkRpc

type UserIdReq

type UserIdReq = talkrpc.UserIdReq

Jump to

Keyboard shortcuts

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