friendopt

package
v0.0.0-...-5349944 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	API_DELETE_FRIEND                = "delete_friend"
	API_DELETE_UNIDIRECTIONAL_FRIEND = "delete_unidirectional_friend"
)

Variables

View Source
var File_api_friendopt_proto protoreflect.FileDescriptor

Functions

func RegisterOnebotApiFriendOptGRPCServiceServer

func RegisterOnebotApiFriendOptGRPCServiceServer(s *grpc.Server, srv OnebotApiFriendOptGRPCServiceServer)

Types

type ChannelApiFriendOptClient

type ChannelApiFriendOptClient struct {
	channel.ApiChannel
}

func (*ChannelApiFriendOptClient) DeleteFriend

func (cli *ChannelApiFriendOptClient) DeleteFriend(userId int64) error

delete_friend user_id: 对方 QQ 号

func (*ChannelApiFriendOptClient) DeleteUnidirectionalFriend

func (cli *ChannelApiFriendOptClient) DeleteUnidirectionalFriend(userId int64) error

删除单向好友 delete_unidirectional_friend user_id: 对方 QQ 号

type OnebotApiFriendOptClient

type OnebotApiFriendOptClient interface {
	// 删除好友
	// delete_friend
	// user_id: 对方 QQ 号
	DeleteFriend(userId int64) error
	// 删除单向好友
	// delete_unidirectional_friend
	// user_id: 对方 QQ 号
	DeleteUnidirectionalFriend(userId int64) error
}

func NewChannelApiFriendOptClient

func NewChannelApiFriendOptClient(channel channel.ApiChannel) (OnebotApiFriendOptClient, error)

type OnebotApiFriendOptGRPCServiceClient

type OnebotApiFriendOptGRPCServiceClient interface {
	// 删除好友
	// delete_friend
	// user_id: int64 对方 QQ 号
	DeleteFriend(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除单向好友
	// delete_unidirectional_friend
	// user_id: int64 对方 QQ 号
	DeleteUnidirectionalFriend(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OnebotApiFriendOptGRPCServiceClient is the client API for OnebotApiFriendOptGRPCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OnebotApiFriendOptGRPCServiceServer

type OnebotApiFriendOptGRPCServiceServer interface {
	// 删除好友
	// delete_friend
	// user_id: int64 对方 QQ 号
	DeleteFriend(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
	// 删除单向好友
	// delete_unidirectional_friend
	// user_id: int64 对方 QQ 号
	DeleteUnidirectionalFriend(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
}

OnebotApiFriendOptGRPCServiceServer is the server API for OnebotApiFriendOptGRPCService service.

type UnimplementedOnebotApiFriendOptGRPCServiceServer

type UnimplementedOnebotApiFriendOptGRPCServiceServer struct {
}

UnimplementedOnebotApiFriendOptGRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnebotApiFriendOptGRPCServiceServer) DeleteFriend

func (*UnimplementedOnebotApiFriendOptGRPCServiceServer) DeleteUnidirectionalFriend

Jump to

Keyboard shortcuts

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