v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const OperationUserServiceCreateUser = "/shortVideoCoreService.api.v1.UserService/CreateUser"
View Source
const OperationUserServiceGetUserInfo = "/shortVideoCoreService.api.v1.UserService/GetUserInfo"
View Source
const OperationUserServiceUpdateUserInfo = "/shortVideoCoreService.api.v1.UserService/UpdateUserInfo"
View Source
const OperationVideoServiceFeedShortVideo = "/shortVideoCoreService.api.v1.VideoService/FeedShortVideo"
View Source
const OperationVideoServiceGetVideoById = "/shortVideoCoreService.api.v1.VideoService/GetVideoById"
View Source
const OperationVideoServiceListPublishedVideo = "/shortVideoCoreService.api.v1.VideoService/ListPublishedVideo"
View Source
const OperationVideoServicePublishVideo = "/shortVideoCoreService.api.v1.VideoService/PublishVideo"

Variables

View Source
var (
	SortOrder_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	SortOrder_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for SortOrder.

View Source
var (
	SearchOperator_name = map[int32]string{
		0:  "EQ",
		1:  "NE",
		2:  "GT",
		3:  "GE",
		4:  "LT",
		5:  "LE",
		6:  "LIKE",
		7:  "WILDCARD",
		8:  "IN",
		9:  "NOT_IN",
		10: "BETWEEN",
		11: "RE",
	}
	SearchOperator_value = map[string]int32{
		"EQ":       0,
		"NE":       1,
		"GT":       2,
		"GE":       3,
		"LT":       4,
		"LE":       5,
		"LIKE":     6,
		"WILDCARD": 7,
		"IN":       8,
		"NOT_IN":   9,
		"BETWEEN":  10,
		"RE":       11,
	}
)

Enum value maps for SearchOperator.

View Source
var (
	FavoriteTarget_name = map[int32]string{
		0: "VIDEO",
		1: "COMMENT",
	}
	FavoriteTarget_value = map[string]int32{
		"VIDEO":   0,
		"COMMENT": 1,
	}
)

Enum value maps for FavoriteTarget.

View Source
var (
	FavoriteType_name = map[int32]string{
		0: "FAVORITE",
		1: "UNLIKE",
	}
	FavoriteType_value = map[string]int32{
		"FAVORITE": 0,
		"UNLIKE":   1,
	}
)

Enum value maps for FavoriteType.

View Source
var (
	FavoriteAggregateType_name = map[int32]string{
		0: "BY_VIDEO",
		1: "BY_COMMENT",
		2: "BY_USER",
	}
	FavoriteAggregateType_value = map[string]int32{
		"BY_VIDEO":   0,
		"BY_COMMENT": 1,
		"BY_USER":    2,
	}
)

Enum value maps for FavoriteAggregateType.

View Source
var (
	FollowType_name = map[int32]string{
		0: "FOLLOWING",
		1: "FOLLOWER",
		2: "BOTH",
	}
	FollowType_value = map[string]int32{
		"FOLLOWING": 0,
		"FOLLOWER":  1,
		"BOTH":      2,
	}
)

Enum value maps for FollowType.

View Source
var (
	UpdateUserImageType_name = map[int32]string{
		0: "AVATAR",
		1: "BACKGROUND_IMAGE",
	}
	UpdateUserImageType_value = map[string]int32{
		"AVATAR":           0,
		"BACKGROUND_IMAGE": 1,
	}
)

Enum value maps for UpdateUserImageType.

View Source
var CollectionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.CollectionService",
	HandlerType: (*CollectionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCollection",
			Handler:    _CollectionService_CreateCollection_Handler,
		},
		{
			MethodName: "GetCollectionById",
			Handler:    _CollectionService_GetCollectionById_Handler,
		},
		{
			MethodName: "RemoveCollection",
			Handler:    _CollectionService_RemoveCollection_Handler,
		},
		{
			MethodName: "ListCollection",
			Handler:    _CollectionService_ListCollection_Handler,
		},
		{
			MethodName: "UpdateCollection",
			Handler:    _CollectionService_UpdateCollection_Handler,
		},
		{
			MethodName: "AddVideo2Collection",
			Handler:    _CollectionService_AddVideo2Collection_Handler,
		},
		{
			MethodName: "RemoveVideoFromCollection",
			Handler:    _CollectionService_RemoveVideoFromCollection_Handler,
		},
		{
			MethodName: "ListCollectionVideo",
			Handler:    _CollectionService_ListCollectionVideo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/collection.proto",
}

CollectionService_ServiceDesc is the grpc.ServiceDesc for CollectionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CommentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.CommentService",
	HandlerType: (*CommentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateComment",
			Handler:    _CommentService_CreateComment_Handler,
		},
		{
			MethodName: "RemoveComment",
			Handler:    _CommentService_RemoveComment_Handler,
		},
		{
			MethodName: "ListComment4Video",
			Handler:    _CommentService_ListComment4Video_Handler,
		},
		{
			MethodName: "GetCommentById",
			Handler:    _CommentService_GetCommentById_Handler,
		},
		{
			MethodName: "CountComment4Video",
			Handler:    _CommentService_CountComment4Video_Handler,
		},
		{
			MethodName: "CountComment4User",
			Handler:    _CommentService_CountComment4User_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/comment.proto",
}

CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var FavoriteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.FavoriteService",
	HandlerType: (*FavoriteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddFavorite",
			Handler:    _FavoriteService_AddFavorite_Handler,
		},
		{
			MethodName: "RemoveFavorite",
			Handler:    _FavoriteService_RemoveFavorite_Handler,
		},
		{
			MethodName: "ListFavorite",
			Handler:    _FavoriteService_ListFavorite_Handler,
		},
		{
			MethodName: "CountFavorite",
			Handler:    _FavoriteService_CountFavorite_Handler,
		},
		{
			MethodName: "IsFavorite",
			Handler:    _FavoriteService_IsFavorite_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/favorite.proto",
}

FavoriteService_ServiceDesc is the grpc.ServiceDesc for FavoriteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_v1_base_proto protoreflect.FileDescriptor
View Source
var File_v1_collection_proto protoreflect.FileDescriptor
View Source
var File_v1_comment_proto protoreflect.FileDescriptor
View Source
var File_v1_favorite_proto protoreflect.FileDescriptor
View Source
var File_v1_follow_proto protoreflect.FileDescriptor
View Source
var File_v1_user_proto protoreflect.FileDescriptor
View Source
var File_v1_video_proto protoreflect.FileDescriptor
View Source
var FollowService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.FollowService",
	HandlerType: (*FollowServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddFollow",
			Handler:    _FollowService_AddFollow_Handler,
		},
		{
			MethodName: "RemoveFollow",
			Handler:    _FollowService_RemoveFollow_Handler,
		},
		{
			MethodName: "ListFollowing",
			Handler:    _FollowService_ListFollowing_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/follow.proto",
}

FollowService_ServiceDesc is the grpc.ServiceDesc for FollowService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUserInfo",
			Handler:    _UserService_GetUserInfo_Handler,
		},
		{
			MethodName: "UpdateUserInfo",
			Handler:    _UserService_UpdateUserInfo_Handler,
		},
		{
			MethodName: "GetUserByIdList",
			Handler:    _UserService_GetUserByIdList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var VideoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shortVideoCoreService.api.v1.VideoService",
	HandlerType: (*VideoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FeedShortVideo",
			Handler:    _VideoService_FeedShortVideo_Handler,
		},
		{
			MethodName: "GetVideoById",
			Handler:    _VideoService_GetVideoById_Handler,
		},
		{
			MethodName: "PublishVideo",
			Handler:    _VideoService_PublishVideo_Handler,
		},
		{
			MethodName: "ListPublishedVideo",
			Handler:    _VideoService_ListPublishedVideo_Handler,
		},
		{
			MethodName: "GetVideoByIdList",
			Handler:    _VideoService_GetVideoByIdList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/video.proto",
}

VideoService_ServiceDesc is the grpc.ServiceDesc for VideoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCollectionServiceServer

func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)

func RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

func RegisterFavoriteServiceServer

func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)

func RegisterFollowServiceServer

func RegisterFollowServiceServer(s grpc.ServiceRegistrar, srv FollowServiceServer)

func RegisterUserServiceHTTPServer

func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

func RegisterVideoServiceHTTPServer

func RegisterVideoServiceHTTPServer(s *http.Server, srv VideoServiceHTTPServer)

func RegisterVideoServiceServer

func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)

Types

type AddFavoriteRequest

type AddFavoriteRequest struct {
	Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"`
	Type   FavoriteType   `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"`
	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFavoriteRequest) Descriptor deprecated

func (*AddFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFavoriteRequest.ProtoReflect.Descriptor instead.

func (*AddFavoriteRequest) GetId

func (x *AddFavoriteRequest) GetId() int64

func (*AddFavoriteRequest) GetTarget

func (x *AddFavoriteRequest) GetTarget() FavoriteTarget

func (*AddFavoriteRequest) GetType

func (x *AddFavoriteRequest) GetType() FavoriteType

func (*AddFavoriteRequest) ProtoMessage

func (*AddFavoriteRequest) ProtoMessage()

func (*AddFavoriteRequest) ProtoReflect

func (x *AddFavoriteRequest) ProtoReflect() protoreflect.Message

func (*AddFavoriteRequest) Reset

func (x *AddFavoriteRequest) Reset()

func (*AddFavoriteRequest) String

func (x *AddFavoriteRequest) String() string

type AddFavoriteResponse

type AddFavoriteResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFavoriteResponse) Descriptor deprecated

func (*AddFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFavoriteResponse.ProtoReflect.Descriptor instead.

func (*AddFavoriteResponse) GetMeta

func (x *AddFavoriteResponse) GetMeta() *Metadata

func (*AddFavoriteResponse) ProtoMessage

func (*AddFavoriteResponse) ProtoMessage()

func (*AddFavoriteResponse) ProtoReflect

func (x *AddFavoriteResponse) ProtoReflect() protoreflect.Message

func (*AddFavoriteResponse) Reset

func (x *AddFavoriteResponse) Reset()

func (*AddFavoriteResponse) String

func (x *AddFavoriteResponse) String() string

type AddFollowRequest

type AddFollowRequest struct {
	UserId       int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFollowRequest) Descriptor deprecated

func (*AddFollowRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFollowRequest.ProtoReflect.Descriptor instead.

func (*AddFollowRequest) GetTargetUserId

func (x *AddFollowRequest) GetTargetUserId() int64

func (*AddFollowRequest) GetUserId

func (x *AddFollowRequest) GetUserId() int64

func (*AddFollowRequest) ProtoMessage

func (*AddFollowRequest) ProtoMessage()

func (*AddFollowRequest) ProtoReflect

func (x *AddFollowRequest) ProtoReflect() protoreflect.Message

func (*AddFollowRequest) Reset

func (x *AddFollowRequest) Reset()

func (*AddFollowRequest) String

func (x *AddFollowRequest) String() string

type AddFollowResponse

type AddFollowResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFollowResponse) Descriptor deprecated

func (*AddFollowResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFollowResponse.ProtoReflect.Descriptor instead.

func (*AddFollowResponse) GetMeta

func (x *AddFollowResponse) GetMeta() *Metadata

func (*AddFollowResponse) ProtoMessage

func (*AddFollowResponse) ProtoMessage()

func (*AddFollowResponse) ProtoReflect

func (x *AddFollowResponse) ProtoReflect() protoreflect.Message

func (*AddFollowResponse) Reset

func (x *AddFollowResponse) Reset()

func (*AddFollowResponse) String

func (x *AddFollowResponse) String() string

type AddVideo2CollectionRequest

type AddVideo2CollectionRequest struct {
	CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
	VideoId      int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddVideo2CollectionRequest) Descriptor deprecated

func (*AddVideo2CollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddVideo2CollectionRequest.ProtoReflect.Descriptor instead.

func (*AddVideo2CollectionRequest) GetCollectionId

func (x *AddVideo2CollectionRequest) GetCollectionId() int64

func (*AddVideo2CollectionRequest) GetVideoId

func (x *AddVideo2CollectionRequest) GetVideoId() int64

func (*AddVideo2CollectionRequest) ProtoMessage

func (*AddVideo2CollectionRequest) ProtoMessage()

func (*AddVideo2CollectionRequest) ProtoReflect

func (*AddVideo2CollectionRequest) Reset

func (x *AddVideo2CollectionRequest) Reset()

func (*AddVideo2CollectionRequest) String

func (x *AddVideo2CollectionRequest) String() string

type AddVideo2CollectionResponse

type AddVideo2CollectionResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*AddVideo2CollectionResponse) Descriptor deprecated

func (*AddVideo2CollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddVideo2CollectionResponse.ProtoReflect.Descriptor instead.

func (*AddVideo2CollectionResponse) GetMeta

func (x *AddVideo2CollectionResponse) GetMeta() *Metadata

func (*AddVideo2CollectionResponse) ProtoMessage

func (*AddVideo2CollectionResponse) ProtoMessage()

func (*AddVideo2CollectionResponse) ProtoReflect

func (*AddVideo2CollectionResponse) Reset

func (x *AddVideo2CollectionResponse) Reset()

func (*AddVideo2CollectionResponse) String

func (x *AddVideo2CollectionResponse) String() string

type Author

type Author struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                      // 作者唯一标识
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                   // 作者昵称
	Avatar      string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`                               // 作者头像地址
	IsFollowing int64  `protobuf:"varint,4,opt,name=is_following,json=isFollowing,proto3" json:"is_following,omitempty"` // 0-未关注,1-已关注
	// contains filtered or unexported fields
}

func (*Author) Descriptor deprecated

func (*Author) Descriptor() ([]byte, []int)

Deprecated: Use Author.ProtoReflect.Descriptor instead.

func (*Author) GetAvatar

func (x *Author) GetAvatar() string

func (*Author) GetId

func (x *Author) GetId() int64

func (*Author) GetIsFollowing

func (x *Author) GetIsFollowing() int64

func (*Author) GetName

func (x *Author) GetName() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) ProtoReflect

func (x *Author) ProtoReflect() protoreflect.Message

func (*Author) Reset

func (x *Author) Reset()

func (*Author) String

func (x *Author) String() string

type Collection

type Collection struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated

func (*Collection) Descriptor() ([]byte, []int)

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetDescription

func (x *Collection) GetDescription() string

func (*Collection) GetId

func (x *Collection) GetId() int64

func (*Collection) GetName

func (x *Collection) GetName() string

func (*Collection) GetUserId

func (x *Collection) GetUserId() int64

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect

func (x *Collection) ProtoReflect() protoreflect.Message

func (*Collection) Reset

func (x *Collection) Reset()

func (*Collection) String

func (x *Collection) String() string

type CollectionServiceClient

CollectionServiceClient is the client API for CollectionService 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.

type CollectionServiceServer

CollectionServiceServer is the server API for CollectionService service. All implementations must embed UnimplementedCollectionServiceServer for forward compatibility

type Comment

type Comment struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                        // 评论id
	VideoId     int64  `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`               // 视频id
	Content     string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`                               // 评论内容
	Date        string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`                                     // 评论日期
	LikeCount   string `protobuf:"bytes,5,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`          // 点赞数
	ReplyCount  string `protobuf:"bytes,6,opt,name=reply_count,json=replyCount,proto3" json:"reply_count,omitempty"`       // 回复数
	UserId      int64  `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // 用户id
	ParentId    int64  `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`            // 父评论id
	ReplyUserId int64  `protobuf:"varint,9,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 回复用户id
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

func (*Comment) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetDate

func (x *Comment) GetDate() string

func (*Comment) GetId

func (x *Comment) GetId() int64

func (*Comment) GetLikeCount

func (x *Comment) GetLikeCount() string

func (*Comment) GetParentId

func (x *Comment) GetParentId() int64

func (*Comment) GetReplyCount

func (x *Comment) GetReplyCount() string

func (*Comment) GetReplyUserId

func (x *Comment) GetReplyUserId() int64

func (*Comment) GetUserId

func (x *Comment) GetUserId() int64

func (*Comment) GetVideoId

func (x *Comment) GetVideoId() int64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type CommentServiceClient

type CommentServiceClient interface {
	CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentResponse, error)
	RemoveComment(ctx context.Context, in *RemoveCommentRequest, opts ...grpc.CallOption) (*RemoveCommentResponse, error)
	ListComment4Video(ctx context.Context, in *ListComment4VideoRequest, opts ...grpc.CallOption) (*ListComment4VideoResponse, error)
	GetCommentById(ctx context.Context, in *GetCommentByIdRequest, opts ...grpc.CallOption) (*GetCommentByIdResponse, error)
	CountComment4Video(ctx context.Context, in *CountComment4VideoRequest, opts ...grpc.CallOption) (*CountComment4VideoResponse, error)
	CountComment4User(ctx context.Context, in *CountComment4UserRequest, opts ...grpc.CallOption) (*CountComment4UserResponse, error)
}

CommentServiceClient is the client API for CommentService 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.

type CommentServiceServer

CommentServiceServer is the server API for CommentService service. All implementations must embed UnimplementedCommentServiceServer for forward compatibility

type CountComment4UserRequest

type CountComment4UserRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	// contains filtered or unexported fields
}

func (*CountComment4UserRequest) Descriptor deprecated

func (*CountComment4UserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountComment4UserRequest.ProtoReflect.Descriptor instead.

func (*CountComment4UserRequest) GetUserId

func (x *CountComment4UserRequest) GetUserId() int64

func (*CountComment4UserRequest) ProtoMessage

func (*CountComment4UserRequest) ProtoMessage()

func (*CountComment4UserRequest) ProtoReflect

func (x *CountComment4UserRequest) ProtoReflect() protoreflect.Message

func (*CountComment4UserRequest) Reset

func (x *CountComment4UserRequest) Reset()

func (*CountComment4UserRequest) String

func (x *CountComment4UserRequest) String() string

type CountComment4UserResponse

type CountComment4UserResponse struct {
	Meta  *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Count int64     `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountComment4UserResponse) Descriptor deprecated

func (*CountComment4UserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountComment4UserResponse.ProtoReflect.Descriptor instead.

func (*CountComment4UserResponse) GetCount

func (x *CountComment4UserResponse) GetCount() int64

func (*CountComment4UserResponse) GetMeta

func (x *CountComment4UserResponse) GetMeta() *Metadata

func (*CountComment4UserResponse) ProtoMessage

func (*CountComment4UserResponse) ProtoMessage()

func (*CountComment4UserResponse) ProtoReflect

func (*CountComment4UserResponse) Reset

func (x *CountComment4UserResponse) Reset()

func (*CountComment4UserResponse) String

func (x *CountComment4UserResponse) String() string

type CountComment4VideoRequest

type CountComment4VideoRequest struct {
	VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	// contains filtered or unexported fields
}

func (*CountComment4VideoRequest) Descriptor deprecated

func (*CountComment4VideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountComment4VideoRequest.ProtoReflect.Descriptor instead.

func (*CountComment4VideoRequest) GetVideoId

func (x *CountComment4VideoRequest) GetVideoId() int64

func (*CountComment4VideoRequest) ProtoMessage

func (*CountComment4VideoRequest) ProtoMessage()

func (*CountComment4VideoRequest) ProtoReflect

func (*CountComment4VideoRequest) Reset

func (x *CountComment4VideoRequest) Reset()

func (*CountComment4VideoRequest) String

func (x *CountComment4VideoRequest) String() string

type CountComment4VideoResponse

type CountComment4VideoResponse struct {
	Meta  *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Count int64     `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountComment4VideoResponse) Descriptor deprecated

func (*CountComment4VideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountComment4VideoResponse.ProtoReflect.Descriptor instead.

func (*CountComment4VideoResponse) GetCount

func (x *CountComment4VideoResponse) GetCount() int64

func (*CountComment4VideoResponse) GetMeta

func (x *CountComment4VideoResponse) GetMeta() *Metadata

func (*CountComment4VideoResponse) ProtoMessage

func (*CountComment4VideoResponse) ProtoMessage()

func (*CountComment4VideoResponse) ProtoReflect

func (*CountComment4VideoResponse) Reset

func (x *CountComment4VideoResponse) Reset()

func (*CountComment4VideoResponse) String

func (x *CountComment4VideoResponse) String() string

type CountFavoriteRequest

type CountFavoriteRequest struct {
	AggregateType FavoriteAggregateType `` /* 157-byte string literal not displayed */
	Id            int64                 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CountFavoriteRequest) Descriptor deprecated

func (*CountFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountFavoriteRequest.ProtoReflect.Descriptor instead.

func (*CountFavoriteRequest) GetAggregateType

func (x *CountFavoriteRequest) GetAggregateType() FavoriteAggregateType

func (*CountFavoriteRequest) GetId

func (x *CountFavoriteRequest) GetId() int64

func (*CountFavoriteRequest) ProtoMessage

func (*CountFavoriteRequest) ProtoMessage()

func (*CountFavoriteRequest) ProtoReflect

func (x *CountFavoriteRequest) ProtoReflect() protoreflect.Message

func (*CountFavoriteRequest) Reset

func (x *CountFavoriteRequest) Reset()

func (*CountFavoriteRequest) String

func (x *CountFavoriteRequest) String() string

type CountFavoriteResponse

type CountFavoriteResponse struct {
	Meta  *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Count int64     `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountFavoriteResponse) Descriptor deprecated

func (*CountFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountFavoriteResponse.ProtoReflect.Descriptor instead.

func (*CountFavoriteResponse) GetCount

func (x *CountFavoriteResponse) GetCount() int64

func (*CountFavoriteResponse) GetMeta

func (x *CountFavoriteResponse) GetMeta() *Metadata

func (*CountFavoriteResponse) ProtoMessage

func (*CountFavoriteResponse) ProtoMessage()

func (*CountFavoriteResponse) ProtoReflect

func (x *CountFavoriteResponse) ProtoReflect() protoreflect.Message

func (*CountFavoriteResponse) Reset

func (x *CountFavoriteResponse) Reset()

func (*CountFavoriteResponse) String

func (x *CountFavoriteResponse) String() string

type CreateCollectionRequest

type CreateCollectionRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	UserId      int64  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCollectionRequest) Descriptor deprecated

func (*CreateCollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.

func (*CreateCollectionRequest) GetDescription

func (x *CreateCollectionRequest) GetDescription() string

func (*CreateCollectionRequest) GetName

func (x *CreateCollectionRequest) GetName() string

func (*CreateCollectionRequest) GetUserId

func (x *CreateCollectionRequest) GetUserId() int64

func (*CreateCollectionRequest) ProtoMessage

func (*CreateCollectionRequest) ProtoMessage()

func (*CreateCollectionRequest) ProtoReflect

func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message

func (*CreateCollectionRequest) Reset

func (x *CreateCollectionRequest) Reset()

func (*CreateCollectionRequest) String

func (x *CreateCollectionRequest) String() string

type CreateCollectionResponse

type CreateCollectionResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCollectionResponse) Descriptor deprecated

func (*CreateCollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateCollectionResponse.ProtoReflect.Descriptor instead.

func (*CreateCollectionResponse) GetMeta

func (x *CreateCollectionResponse) GetMeta() *Metadata

func (*CreateCollectionResponse) ProtoMessage

func (*CreateCollectionResponse) ProtoMessage()

func (*CreateCollectionResponse) ProtoReflect

func (x *CreateCollectionResponse) ProtoReflect() protoreflect.Message

func (*CreateCollectionResponse) Reset

func (x *CreateCollectionResponse) Reset()

func (*CreateCollectionResponse) String

func (x *CreateCollectionResponse) String() string

type CreateCommentRequest

type CreateCommentRequest struct {
	VideoId int64  `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	UserId  int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`    // 用户id
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`                 // 评论内容
	// contains filtered or unexported fields
}

func (*CreateCommentRequest) Descriptor deprecated

func (*CreateCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.

func (*CreateCommentRequest) GetContent

func (x *CreateCommentRequest) GetContent() string

func (*CreateCommentRequest) GetUserId

func (x *CreateCommentRequest) GetUserId() int64

func (*CreateCommentRequest) GetVideoId

func (x *CreateCommentRequest) GetVideoId() int64

func (*CreateCommentRequest) ProtoMessage

func (*CreateCommentRequest) ProtoMessage()

func (*CreateCommentRequest) ProtoReflect

func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message

func (*CreateCommentRequest) Reset

func (x *CreateCommentRequest) Reset()

func (*CreateCommentRequest) String

func (x *CreateCommentRequest) String() string

type CreateCommentResponse

type CreateCommentResponse struct {
	Meta    *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Comment *Comment  `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCommentResponse) Descriptor deprecated

func (*CreateCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateCommentResponse.ProtoReflect.Descriptor instead.

func (*CreateCommentResponse) GetComment

func (x *CreateCommentResponse) GetComment() *Comment

func (*CreateCommentResponse) GetMeta

func (x *CreateCommentResponse) GetMeta() *Metadata

func (*CreateCommentResponse) ProtoMessage

func (*CreateCommentResponse) ProtoMessage()

func (*CreateCommentResponse) ProtoReflect

func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message

func (*CreateCommentResponse) Reset

func (x *CreateCommentResponse) Reset()

func (*CreateCommentResponse) String

func (x *CreateCommentResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Mobile    string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Email     string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	AccountId int64  `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetAccountId

func (x *CreateUserRequest) GetAccountId() int64

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetMobile

func (x *CreateUserRequest) GetMobile() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type CreateUserResponse

type CreateUserResponse struct {
	Meta   *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	UserId int64     `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

func (*CreateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetMeta

func (x *CreateUserResponse) GetMeta() *Metadata

func (*CreateUserResponse) GetUserId

func (x *CreateUserResponse) GetUserId() int64

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

func (x *CreateUserResponse) ProtoReflect() protoreflect.Message

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

func (*CreateUserResponse) Validate

func (m *CreateUserResponse) Validate() error

Validate checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserResponse) ValidateAll

func (m *CreateUserResponse) ValidateAll() error

ValidateAll checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserResponseMultiError, or nil if none found.

type CreateUserResponseMultiError

type CreateUserResponseMultiError []error

CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.

func (CreateUserResponseMultiError) AllErrors

func (m CreateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserResponseValidationError

type CreateUserResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.

func (CreateUserResponseValidationError) Cause

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

Reason function returns reason value.

type FavoriteAggregateType

type FavoriteAggregateType int32
const (
	FavoriteAggregateType_BY_VIDEO   FavoriteAggregateType = 0
	FavoriteAggregateType_BY_COMMENT FavoriteAggregateType = 1
	FavoriteAggregateType_BY_USER    FavoriteAggregateType = 2
)

func (FavoriteAggregateType) Descriptor

func (FavoriteAggregateType) Enum

func (FavoriteAggregateType) EnumDescriptor deprecated

func (FavoriteAggregateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FavoriteAggregateType.Descriptor instead.

func (FavoriteAggregateType) Number

func (FavoriteAggregateType) String

func (x FavoriteAggregateType) String() string

func (FavoriteAggregateType) Type

type FavoriteServiceClient

type FavoriteServiceClient interface {
	AddFavorite(ctx context.Context, in *AddFavoriteRequest, opts ...grpc.CallOption) (*AddFavoriteResponse, error)
	RemoveFavorite(ctx context.Context, in *RemoveFavoriteRequest, opts ...grpc.CallOption) (*RemoveFavoriteResponse, error)
	ListFavorite(ctx context.Context, in *ListFavoriteRequest, opts ...grpc.CallOption) (*ListFavoriteResponse, error)
	CountFavorite(ctx context.Context, in *CountFavoriteRequest, opts ...grpc.CallOption) (*CountFavoriteResponse, error)
	IsFavorite(ctx context.Context, in *IsFavoriteRequest, opts ...grpc.CallOption) (*IsFavoriteResponse, error)
}

FavoriteServiceClient is the client API for FavoriteService 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.

type FavoriteServiceServer

type FavoriteServiceServer interface {
	AddFavorite(context.Context, *AddFavoriteRequest) (*AddFavoriteResponse, error)
	RemoveFavorite(context.Context, *RemoveFavoriteRequest) (*RemoveFavoriteResponse, error)
	ListFavorite(context.Context, *ListFavoriteRequest) (*ListFavoriteResponse, error)
	CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error)
	IsFavorite(context.Context, *IsFavoriteRequest) (*IsFavoriteResponse, error)
	// contains filtered or unexported methods
}

FavoriteServiceServer is the server API for FavoriteService service. All implementations must embed UnimplementedFavoriteServiceServer for forward compatibility

type FavoriteTarget

type FavoriteTarget int32
const (
	FavoriteTarget_VIDEO   FavoriteTarget = 0
	FavoriteTarget_COMMENT FavoriteTarget = 1
)

func (FavoriteTarget) Descriptor

func (FavoriteTarget) Enum

func (x FavoriteTarget) Enum() *FavoriteTarget

func (FavoriteTarget) EnumDescriptor deprecated

func (FavoriteTarget) EnumDescriptor() ([]byte, []int)

Deprecated: Use FavoriteTarget.Descriptor instead.

func (FavoriteTarget) Number

func (FavoriteTarget) String

func (x FavoriteTarget) String() string

func (FavoriteTarget) Type

type FavoriteType

type FavoriteType int32
const (
	FavoriteType_FAVORITE FavoriteType = 0 // 点赞
	FavoriteType_UNLIKE   FavoriteType = 1 // 点踩
)

func (FavoriteType) Descriptor

func (FavoriteType) Enum

func (x FavoriteType) Enum() *FavoriteType

func (FavoriteType) EnumDescriptor deprecated

func (FavoriteType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FavoriteType.Descriptor instead.

func (FavoriteType) Number

func (FavoriteType) String

func (x FavoriteType) String() string

func (FavoriteType) Type

type FeedShortVideoRequest

type FeedShortVideoRequest struct {
	LatestTime int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	UserId     int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FeedNum    int64 `protobuf:"varint,3,opt,name=feed_num,json=feedNum,proto3" json:"feed_num,omitempty"` // 返回视频的数量
	// contains filtered or unexported fields
}

func (*FeedShortVideoRequest) Descriptor deprecated

func (*FeedShortVideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use FeedShortVideoRequest.ProtoReflect.Descriptor instead.

func (*FeedShortVideoRequest) GetFeedNum

func (x *FeedShortVideoRequest) GetFeedNum() int64

func (*FeedShortVideoRequest) GetLatestTime

func (x *FeedShortVideoRequest) GetLatestTime() int64

func (*FeedShortVideoRequest) GetUserId

func (x *FeedShortVideoRequest) GetUserId() int64

func (*FeedShortVideoRequest) ProtoMessage

func (*FeedShortVideoRequest) ProtoMessage()

func (*FeedShortVideoRequest) ProtoReflect

func (x *FeedShortVideoRequest) ProtoReflect() protoreflect.Message

func (*FeedShortVideoRequest) Reset

func (x *FeedShortVideoRequest) Reset()

func (*FeedShortVideoRequest) String

func (x *FeedShortVideoRequest) String() string

type FeedShortVideoResponse

type FeedShortVideoResponse struct {
	Meta   *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Videos []*Video  `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedShortVideoResponse) Descriptor deprecated

func (*FeedShortVideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use FeedShortVideoResponse.ProtoReflect.Descriptor instead.

func (*FeedShortVideoResponse) GetMeta

func (x *FeedShortVideoResponse) GetMeta() *Metadata

func (*FeedShortVideoResponse) GetVideos

func (x *FeedShortVideoResponse) GetVideos() []*Video

func (*FeedShortVideoResponse) ProtoMessage

func (*FeedShortVideoResponse) ProtoMessage()

func (*FeedShortVideoResponse) ProtoReflect

func (x *FeedShortVideoResponse) ProtoReflect() protoreflect.Message

func (*FeedShortVideoResponse) Reset

func (x *FeedShortVideoResponse) Reset()

func (*FeedShortVideoResponse) String

func (x *FeedShortVideoResponse) String() string

type FollowServiceClient

type FollowServiceClient interface {
	AddFollow(ctx context.Context, in *AddFollowRequest, opts ...grpc.CallOption) (*AddFollowResponse, error)
	RemoveFollow(ctx context.Context, in *RemoveFollowRequest, opts ...grpc.CallOption) (*RemoveFollowResponse, error)
	ListFollowing(ctx context.Context, in *ListFollowingRequest, opts ...grpc.CallOption) (*ListFollowingResponse, error)
}

FollowServiceClient is the client API for FollowService 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.

type FollowServiceServer

type FollowServiceServer interface {
	AddFollow(context.Context, *AddFollowRequest) (*AddFollowResponse, error)
	RemoveFollow(context.Context, *RemoveFollowRequest) (*RemoveFollowResponse, error)
	ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error)
	// contains filtered or unexported methods
}

FollowServiceServer is the server API for FollowService service. All implementations must embed UnimplementedFollowServiceServer for forward compatibility

type FollowType

type FollowType int32
const (
	FollowType_FOLLOWING FollowType = 0
	FollowType_FOLLOWER  FollowType = 1
	FollowType_BOTH      FollowType = 2
)

func (FollowType) Descriptor

func (FollowType) Descriptor() protoreflect.EnumDescriptor

func (FollowType) Enum

func (x FollowType) Enum() *FollowType

func (FollowType) EnumDescriptor deprecated

func (FollowType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FollowType.Descriptor instead.

func (FollowType) Number

func (x FollowType) Number() protoreflect.EnumNumber

func (FollowType) String

func (x FollowType) String() string

func (FollowType) Type

type GetCollectionByIdRequest

type GetCollectionByIdRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionByIdRequest) Descriptor deprecated

func (*GetCollectionByIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCollectionByIdRequest.ProtoReflect.Descriptor instead.

func (*GetCollectionByIdRequest) GetId

func (x *GetCollectionByIdRequest) GetId() int64

func (*GetCollectionByIdRequest) ProtoMessage

func (*GetCollectionByIdRequest) ProtoMessage()

func (*GetCollectionByIdRequest) ProtoReflect

func (x *GetCollectionByIdRequest) ProtoReflect() protoreflect.Message

func (*GetCollectionByIdRequest) Reset

func (x *GetCollectionByIdRequest) Reset()

func (*GetCollectionByIdRequest) String

func (x *GetCollectionByIdRequest) String() string

type GetCollectionByIdResponse

type GetCollectionByIdResponse struct {
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Meta       *Metadata   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionByIdResponse) Descriptor deprecated

func (*GetCollectionByIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCollectionByIdResponse.ProtoReflect.Descriptor instead.

func (*GetCollectionByIdResponse) GetCollection

func (x *GetCollectionByIdResponse) GetCollection() *Collection

func (*GetCollectionByIdResponse) GetMeta

func (x *GetCollectionByIdResponse) GetMeta() *Metadata

func (*GetCollectionByIdResponse) ProtoMessage

func (*GetCollectionByIdResponse) ProtoMessage()

func (*GetCollectionByIdResponse) ProtoReflect

func (*GetCollectionByIdResponse) Reset

func (x *GetCollectionByIdResponse) Reset()

func (*GetCollectionByIdResponse) String

func (x *GetCollectionByIdResponse) String() string

type GetCommentByIdRequest

type GetCommentByIdRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*GetCommentByIdRequest) Descriptor deprecated

func (*GetCommentByIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentByIdRequest.ProtoReflect.Descriptor instead.

func (*GetCommentByIdRequest) GetCommentId

func (x *GetCommentByIdRequest) GetCommentId() int64

func (*GetCommentByIdRequest) ProtoMessage

func (*GetCommentByIdRequest) ProtoMessage()

func (*GetCommentByIdRequest) ProtoReflect

func (x *GetCommentByIdRequest) ProtoReflect() protoreflect.Message

func (*GetCommentByIdRequest) Reset

func (x *GetCommentByIdRequest) Reset()

func (*GetCommentByIdRequest) String

func (x *GetCommentByIdRequest) String() string

type GetCommentByIdResponse

type GetCommentByIdResponse struct {
	Meta    *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Comment *Comment  `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentByIdResponse) Descriptor deprecated

func (*GetCommentByIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentByIdResponse.ProtoReflect.Descriptor instead.

func (*GetCommentByIdResponse) GetComment

func (x *GetCommentByIdResponse) GetComment() *Comment

func (*GetCommentByIdResponse) GetMeta

func (x *GetCommentByIdResponse) GetMeta() *Metadata

func (*GetCommentByIdResponse) ProtoMessage

func (*GetCommentByIdResponse) ProtoMessage()

func (*GetCommentByIdResponse) ProtoReflect

func (x *GetCommentByIdResponse) ProtoReflect() protoreflect.Message

func (*GetCommentByIdResponse) Reset

func (x *GetCommentByIdResponse) Reset()

func (*GetCommentByIdResponse) String

func (x *GetCommentByIdResponse) String() string

type GetUserByIdListRequest

type GetUserByIdListRequest struct {
	UserIdList []int64 `protobuf:"varint,1,rep,packed,name=user_id_list,json=userIdList,proto3" json:"user_id_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdListRequest) Descriptor deprecated

func (*GetUserByIdListRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserByIdListRequest.ProtoReflect.Descriptor instead.

func (*GetUserByIdListRequest) GetUserIdList

func (x *GetUserByIdListRequest) GetUserIdList() []int64

func (*GetUserByIdListRequest) ProtoMessage

func (*GetUserByIdListRequest) ProtoMessage()

func (*GetUserByIdListRequest) ProtoReflect

func (x *GetUserByIdListRequest) ProtoReflect() protoreflect.Message

func (*GetUserByIdListRequest) Reset

func (x *GetUserByIdListRequest) Reset()

func (*GetUserByIdListRequest) String

func (x *GetUserByIdListRequest) String() string

type GetUserByIdListResponse

type GetUserByIdListResponse struct {
	UserList []*User   `protobuf:"bytes,1,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"`
	Meta     *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdListResponse) Descriptor deprecated

func (*GetUserByIdListResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserByIdListResponse.ProtoReflect.Descriptor instead.

func (*GetUserByIdListResponse) GetMeta

func (x *GetUserByIdListResponse) GetMeta() *Metadata

func (*GetUserByIdListResponse) GetUserList

func (x *GetUserByIdListResponse) GetUserList() []*User

func (*GetUserByIdListResponse) ProtoMessage

func (*GetUserByIdListResponse) ProtoMessage()

func (*GetUserByIdListResponse) ProtoReflect

func (x *GetUserByIdListResponse) ProtoReflect() protoreflect.Message

func (*GetUserByIdListResponse) Reset

func (x *GetUserByIdListResponse) Reset()

func (*GetUserByIdListResponse) String

func (x *GetUserByIdListResponse) String() string

type GetUserInfoRequest

type GetUserInfoRequest struct {
	UserId    int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoRequest) Descriptor deprecated

func (*GetUserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

func (*GetUserInfoRequest) GetAccountId

func (x *GetUserInfoRequest) GetAccountId() int64

func (*GetUserInfoRequest) GetUserId

func (x *GetUserInfoRequest) GetUserId() int64

func (*GetUserInfoRequest) ProtoMessage

func (*GetUserInfoRequest) ProtoMessage()

func (*GetUserInfoRequest) ProtoReflect

func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message

func (*GetUserInfoRequest) Reset

func (x *GetUserInfoRequest) Reset()

func (*GetUserInfoRequest) String

func (x *GetUserInfoRequest) String() string

func (*GetUserInfoRequest) Validate

func (m *GetUserInfoRequest) Validate() error

Validate checks the field values on GetUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserInfoRequest) ValidateAll

func (m *GetUserInfoRequest) ValidateAll() error

ValidateAll checks the field values on GetUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserInfoRequestMultiError, or nil if none found.

type GetUserInfoRequestMultiError

type GetUserInfoRequestMultiError []error

GetUserInfoRequestMultiError is an error wrapping multiple validation errors returned by GetUserInfoRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserInfoRequestMultiError) AllErrors

func (m GetUserInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserInfoRequestValidationError

type GetUserInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserInfoRequestValidationError is the validation error returned by GetUserInfoRequest.Validate if the designated constraints aren't met.

func (GetUserInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetUserInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserInfoRequestValidationError) Field

Field function returns field value.

func (GetUserInfoRequestValidationError) Key

Key function returns key value.

func (GetUserInfoRequestValidationError) Reason

Reason function returns reason value.

type GetUserInfoResponse

type GetUserInfoResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	User *User     `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoResponse) Descriptor deprecated

func (*GetUserInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.

func (*GetUserInfoResponse) GetMeta

func (x *GetUserInfoResponse) GetMeta() *Metadata

func (*GetUserInfoResponse) GetUser

func (x *GetUserInfoResponse) GetUser() *User

func (*GetUserInfoResponse) ProtoMessage

func (*GetUserInfoResponse) ProtoMessage()

func (*GetUserInfoResponse) ProtoReflect

func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message

func (*GetUserInfoResponse) Reset

func (x *GetUserInfoResponse) Reset()

func (*GetUserInfoResponse) String

func (x *GetUserInfoResponse) String() string

func (*GetUserInfoResponse) Validate

func (m *GetUserInfoResponse) Validate() error

Validate checks the field values on GetUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserInfoResponse) ValidateAll

func (m *GetUserInfoResponse) ValidateAll() error

ValidateAll checks the field values on GetUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserInfoResponseMultiError, or nil if none found.

type GetUserInfoResponseMultiError

type GetUserInfoResponseMultiError []error

GetUserInfoResponseMultiError is an error wrapping multiple validation errors returned by GetUserInfoResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserInfoResponseMultiError) AllErrors

func (m GetUserInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserInfoResponseValidationError

type GetUserInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

GetUserInfoResponseValidationError is the validation error returned by GetUserInfoResponse.Validate if the designated constraints aren't met.

func (GetUserInfoResponseValidationError) Cause

Cause function returns cause value.

func (GetUserInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserInfoResponseValidationError) Field

Field function returns field value.

func (GetUserInfoResponseValidationError) Key

Key function returns key value.

func (GetUserInfoResponseValidationError) Reason

Reason function returns reason value.

type GetVideoByIdListRequest

type GetVideoByIdListRequest struct {
	VideoIdList []int64 `protobuf:"varint,1,rep,packed,name=video_id_list,json=videoIdList,proto3" json:"video_id_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVideoByIdListRequest) Descriptor deprecated

func (*GetVideoByIdListRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVideoByIdListRequest.ProtoReflect.Descriptor instead.

func (*GetVideoByIdListRequest) GetVideoIdList

func (x *GetVideoByIdListRequest) GetVideoIdList() []int64

func (*GetVideoByIdListRequest) ProtoMessage

func (*GetVideoByIdListRequest) ProtoMessage()

func (*GetVideoByIdListRequest) ProtoReflect

func (x *GetVideoByIdListRequest) ProtoReflect() protoreflect.Message

func (*GetVideoByIdListRequest) Reset

func (x *GetVideoByIdListRequest) Reset()

func (*GetVideoByIdListRequest) String

func (x *GetVideoByIdListRequest) String() string

type GetVideoByIdListResponse

type GetVideoByIdListResponse struct {
	Meta   *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Videos []*Video  `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVideoByIdListResponse) Descriptor deprecated

func (*GetVideoByIdListResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetVideoByIdListResponse.ProtoReflect.Descriptor instead.

func (*GetVideoByIdListResponse) GetMeta

func (x *GetVideoByIdListResponse) GetMeta() *Metadata

func (*GetVideoByIdListResponse) GetVideos

func (x *GetVideoByIdListResponse) GetVideos() []*Video

func (*GetVideoByIdListResponse) ProtoMessage

func (*GetVideoByIdListResponse) ProtoMessage()

func (*GetVideoByIdListResponse) ProtoReflect

func (x *GetVideoByIdListResponse) ProtoReflect() protoreflect.Message

func (*GetVideoByIdListResponse) Reset

func (x *GetVideoByIdListResponse) Reset()

func (*GetVideoByIdListResponse) String

func (x *GetVideoByIdListResponse) String() string

type GetVideoByIdRequest

type GetVideoByIdRequest struct {
	VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVideoByIdRequest) Descriptor deprecated

func (*GetVideoByIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVideoByIdRequest.ProtoReflect.Descriptor instead.

func (*GetVideoByIdRequest) GetVideoId

func (x *GetVideoByIdRequest) GetVideoId() int64

func (*GetVideoByIdRequest) ProtoMessage

func (*GetVideoByIdRequest) ProtoMessage()

func (*GetVideoByIdRequest) ProtoReflect

func (x *GetVideoByIdRequest) ProtoReflect() protoreflect.Message

func (*GetVideoByIdRequest) Reset

func (x *GetVideoByIdRequest) Reset()

func (*GetVideoByIdRequest) String

func (x *GetVideoByIdRequest) String() string

type GetVideoByIdResponse

type GetVideoByIdResponse struct {
	Meta  *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Video *Video    `protobuf:"bytes,2,opt,name=video,proto3" json:"video,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVideoByIdResponse) Descriptor deprecated

func (*GetVideoByIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetVideoByIdResponse.ProtoReflect.Descriptor instead.

func (*GetVideoByIdResponse) GetMeta

func (x *GetVideoByIdResponse) GetMeta() *Metadata

func (*GetVideoByIdResponse) GetVideo

func (x *GetVideoByIdResponse) GetVideo() *Video

func (*GetVideoByIdResponse) ProtoMessage

func (*GetVideoByIdResponse) ProtoMessage()

func (*GetVideoByIdResponse) ProtoReflect

func (x *GetVideoByIdResponse) ProtoReflect() protoreflect.Message

func (*GetVideoByIdResponse) Reset

func (x *GetVideoByIdResponse) Reset()

func (*GetVideoByIdResponse) String

func (x *GetVideoByIdResponse) String() string

type IsFavoriteRequest

type IsFavoriteRequest struct {
	Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"`
	Type   FavoriteType   `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"`
	BizId  int64          `protobuf:"varint,3,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
	UserId int64          `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IsFavoriteRequest) Descriptor deprecated

func (*IsFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsFavoriteRequest.ProtoReflect.Descriptor instead.

func (*IsFavoriteRequest) GetBizId

func (x *IsFavoriteRequest) GetBizId() int64

func (*IsFavoriteRequest) GetTarget

func (x *IsFavoriteRequest) GetTarget() FavoriteTarget

func (*IsFavoriteRequest) GetType

func (x *IsFavoriteRequest) GetType() FavoriteType

func (*IsFavoriteRequest) GetUserId

func (x *IsFavoriteRequest) GetUserId() int64

func (*IsFavoriteRequest) ProtoMessage

func (*IsFavoriteRequest) ProtoMessage()

func (*IsFavoriteRequest) ProtoReflect

func (x *IsFavoriteRequest) ProtoReflect() protoreflect.Message

func (*IsFavoriteRequest) Reset

func (x *IsFavoriteRequest) Reset()

func (*IsFavoriteRequest) String

func (x *IsFavoriteRequest) String() string

type IsFavoriteResponse

type IsFavoriteResponse struct {
	Meta       *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	IsFavorite bool      `protobuf:"varint,2,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"`
	// contains filtered or unexported fields
}

func (*IsFavoriteResponse) Descriptor deprecated

func (*IsFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use IsFavoriteResponse.ProtoReflect.Descriptor instead.

func (*IsFavoriteResponse) GetIsFavorite

func (x *IsFavoriteResponse) GetIsFavorite() bool

func (*IsFavoriteResponse) GetMeta

func (x *IsFavoriteResponse) GetMeta() *Metadata

func (*IsFavoriteResponse) ProtoMessage

func (*IsFavoriteResponse) ProtoMessage()

func (*IsFavoriteResponse) ProtoReflect

func (x *IsFavoriteResponse) ProtoReflect() protoreflect.Message

func (*IsFavoriteResponse) Reset

func (x *IsFavoriteResponse) Reset()

func (*IsFavoriteResponse) String

func (x *IsFavoriteResponse) String() string

type ListCollectionRequest

type ListCollectionRequest struct {
	UserId     int64              `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionRequest) Descriptor deprecated

func (*ListCollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectionRequest.ProtoReflect.Descriptor instead.

func (*ListCollectionRequest) GetPagination

func (x *ListCollectionRequest) GetPagination() *PaginationRequest

func (*ListCollectionRequest) GetUserId

func (x *ListCollectionRequest) GetUserId() int64

func (*ListCollectionRequest) ProtoMessage

func (*ListCollectionRequest) ProtoMessage()

func (*ListCollectionRequest) ProtoReflect

func (x *ListCollectionRequest) ProtoReflect() protoreflect.Message

func (*ListCollectionRequest) Reset

func (x *ListCollectionRequest) Reset()

func (*ListCollectionRequest) String

func (x *ListCollectionRequest) String() string

type ListCollectionResponse

type ListCollectionResponse struct {
	Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
	Meta        *Metadata     `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionResponse) Descriptor deprecated

func (*ListCollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectionResponse.ProtoReflect.Descriptor instead.

func (*ListCollectionResponse) GetCollections

func (x *ListCollectionResponse) GetCollections() []*Collection

func (*ListCollectionResponse) GetMeta

func (x *ListCollectionResponse) GetMeta() *Metadata

func (*ListCollectionResponse) ProtoMessage

func (*ListCollectionResponse) ProtoMessage()

func (*ListCollectionResponse) ProtoReflect

func (x *ListCollectionResponse) ProtoReflect() protoreflect.Message

func (*ListCollectionResponse) Reset

func (x *ListCollectionResponse) Reset()

func (*ListCollectionResponse) String

func (x *ListCollectionResponse) String() string

type ListCollectionVideoRequest

type ListCollectionVideoRequest struct {
	CollectionId int64              `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
	Pagination   *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionVideoRequest) Descriptor deprecated

func (*ListCollectionVideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectionVideoRequest.ProtoReflect.Descriptor instead.

func (*ListCollectionVideoRequest) GetCollectionId

func (x *ListCollectionVideoRequest) GetCollectionId() int64

func (*ListCollectionVideoRequest) GetPagination

func (x *ListCollectionVideoRequest) GetPagination() *PaginationRequest

func (*ListCollectionVideoRequest) ProtoMessage

func (*ListCollectionVideoRequest) ProtoMessage()

func (*ListCollectionVideoRequest) ProtoReflect

func (*ListCollectionVideoRequest) Reset

func (x *ListCollectionVideoRequest) Reset()

func (*ListCollectionVideoRequest) String

func (x *ListCollectionVideoRequest) String() string

type ListCollectionVideoResponse

type ListCollectionVideoResponse struct {
	VideoIdList []int64   `protobuf:"varint,1,rep,packed,name=video_id_list,json=videoIdList,proto3" json:"video_id_list,omitempty"`
	Meta        *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionVideoResponse) Descriptor deprecated

func (*ListCollectionVideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectionVideoResponse.ProtoReflect.Descriptor instead.

func (*ListCollectionVideoResponse) GetMeta

func (x *ListCollectionVideoResponse) GetMeta() *Metadata

func (*ListCollectionVideoResponse) GetVideoIdList

func (x *ListCollectionVideoResponse) GetVideoIdList() []int64

func (*ListCollectionVideoResponse) ProtoMessage

func (*ListCollectionVideoResponse) ProtoMessage()

func (*ListCollectionVideoResponse) ProtoReflect

func (*ListCollectionVideoResponse) Reset

func (x *ListCollectionVideoResponse) Reset()

func (*ListCollectionVideoResponse) String

func (x *ListCollectionVideoResponse) String() string

type ListComment4VideoRequest

type ListComment4VideoRequest struct {
	VideoId    int64              `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListComment4VideoRequest) Descriptor deprecated

func (*ListComment4VideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListComment4VideoRequest.ProtoReflect.Descriptor instead.

func (*ListComment4VideoRequest) GetPagination

func (x *ListComment4VideoRequest) GetPagination() *PaginationRequest

func (*ListComment4VideoRequest) GetVideoId

func (x *ListComment4VideoRequest) GetVideoId() int64

func (*ListComment4VideoRequest) ProtoMessage

func (*ListComment4VideoRequest) ProtoMessage()

func (*ListComment4VideoRequest) ProtoReflect

func (x *ListComment4VideoRequest) ProtoReflect() protoreflect.Message

func (*ListComment4VideoRequest) Reset

func (x *ListComment4VideoRequest) Reset()

func (*ListComment4VideoRequest) String

func (x *ListComment4VideoRequest) String() string

type ListComment4VideoResponse

type ListComment4VideoResponse struct {
	Meta       *Metadata           `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Comments   []*Comment          `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
	Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListComment4VideoResponse) Descriptor deprecated

func (*ListComment4VideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListComment4VideoResponse.ProtoReflect.Descriptor instead.

func (*ListComment4VideoResponse) GetComments

func (x *ListComment4VideoResponse) GetComments() []*Comment

func (*ListComment4VideoResponse) GetMeta

func (x *ListComment4VideoResponse) GetMeta() *Metadata

func (*ListComment4VideoResponse) GetPagination

func (x *ListComment4VideoResponse) GetPagination() *PaginationResponse

func (*ListComment4VideoResponse) ProtoMessage

func (*ListComment4VideoResponse) ProtoMessage()

func (*ListComment4VideoResponse) ProtoReflect

func (*ListComment4VideoResponse) Reset

func (x *ListComment4VideoResponse) Reset()

func (*ListComment4VideoResponse) String

func (x *ListComment4VideoResponse) String() string

type ListFavoriteRequest

type ListFavoriteRequest struct {
	AggregateType FavoriteAggregateType `` /* 157-byte string literal not displayed */
	Id            int64                 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Pagination    *PaginationRequest    `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFavoriteRequest) Descriptor deprecated

func (*ListFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFavoriteRequest.ProtoReflect.Descriptor instead.

func (*ListFavoriteRequest) GetAggregateType

func (x *ListFavoriteRequest) GetAggregateType() FavoriteAggregateType

func (*ListFavoriteRequest) GetId

func (x *ListFavoriteRequest) GetId() int64

func (*ListFavoriteRequest) GetPagination

func (x *ListFavoriteRequest) GetPagination() *PaginationRequest

func (*ListFavoriteRequest) ProtoMessage

func (*ListFavoriteRequest) ProtoMessage()

func (*ListFavoriteRequest) ProtoReflect

func (x *ListFavoriteRequest) ProtoReflect() protoreflect.Message

func (*ListFavoriteRequest) Reset

func (x *ListFavoriteRequest) Reset()

func (*ListFavoriteRequest) String

func (x *ListFavoriteRequest) String() string

type ListFavoriteResponse

type ListFavoriteResponse struct {
	Meta       *Metadata           `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	BizId      []int64             `protobuf:"varint,2,rep,packed,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
	Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFavoriteResponse) Descriptor deprecated

func (*ListFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListFavoriteResponse.ProtoReflect.Descriptor instead.

func (*ListFavoriteResponse) GetBizId

func (x *ListFavoriteResponse) GetBizId() []int64

func (*ListFavoriteResponse) GetMeta

func (x *ListFavoriteResponse) GetMeta() *Metadata

func (*ListFavoriteResponse) GetPagination

func (x *ListFavoriteResponse) GetPagination() *PaginationResponse

func (*ListFavoriteResponse) ProtoMessage

func (*ListFavoriteResponse) ProtoMessage()

func (*ListFavoriteResponse) ProtoReflect

func (x *ListFavoriteResponse) ProtoReflect() protoreflect.Message

func (*ListFavoriteResponse) Reset

func (x *ListFavoriteResponse) Reset()

func (*ListFavoriteResponse) String

func (x *ListFavoriteResponse) String() string

type ListFollowingRequest

type ListFollowingRequest struct {
	UserId     int64              `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FollowType FollowType         `` /* 137-byte string literal not displayed */
	Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFollowingRequest) Descriptor deprecated

func (*ListFollowingRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFollowingRequest.ProtoReflect.Descriptor instead.

func (*ListFollowingRequest) GetFollowType

func (x *ListFollowingRequest) GetFollowType() FollowType

func (*ListFollowingRequest) GetPagination

func (x *ListFollowingRequest) GetPagination() *PaginationRequest

func (*ListFollowingRequest) GetUserId

func (x *ListFollowingRequest) GetUserId() int64

func (*ListFollowingRequest) ProtoMessage

func (*ListFollowingRequest) ProtoMessage()

func (*ListFollowingRequest) ProtoReflect

func (x *ListFollowingRequest) ProtoReflect() protoreflect.Message

func (*ListFollowingRequest) Reset

func (x *ListFollowingRequest) Reset()

func (*ListFollowingRequest) String

func (x *ListFollowingRequest) String() string

type ListFollowingResponse

type ListFollowingResponse struct {
	Meta       *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	UserIdList []int64   `protobuf:"varint,2,rep,packed,name=user_id_list,json=userIdList,proto3" json:"user_id_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFollowingResponse) Descriptor deprecated

func (*ListFollowingResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListFollowingResponse.ProtoReflect.Descriptor instead.

func (*ListFollowingResponse) GetMeta

func (x *ListFollowingResponse) GetMeta() *Metadata

func (*ListFollowingResponse) GetUserIdList

func (x *ListFollowingResponse) GetUserIdList() []int64

func (*ListFollowingResponse) ProtoMessage

func (*ListFollowingResponse) ProtoMessage()

func (*ListFollowingResponse) ProtoReflect

func (x *ListFollowingResponse) ProtoReflect() protoreflect.Message

func (*ListFollowingResponse) Reset

func (x *ListFollowingResponse) Reset()

func (*ListFollowingResponse) String

func (x *ListFollowingResponse) String() string

type ListPublishedVideoRequest

type ListPublishedVideoRequest struct {
	UserId     int64              `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	LatestTime int64              `protobuf:"varint,2,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPublishedVideoRequest) Descriptor deprecated

func (*ListPublishedVideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPublishedVideoRequest.ProtoReflect.Descriptor instead.

func (*ListPublishedVideoRequest) GetLatestTime

func (x *ListPublishedVideoRequest) GetLatestTime() int64

func (*ListPublishedVideoRequest) GetPagination

func (x *ListPublishedVideoRequest) GetPagination() *PaginationRequest

func (*ListPublishedVideoRequest) GetUserId

func (x *ListPublishedVideoRequest) GetUserId() int64

func (*ListPublishedVideoRequest) ProtoMessage

func (*ListPublishedVideoRequest) ProtoMessage()

func (*ListPublishedVideoRequest) ProtoReflect

func (*ListPublishedVideoRequest) Reset

func (x *ListPublishedVideoRequest) Reset()

func (*ListPublishedVideoRequest) String

func (x *ListPublishedVideoRequest) String() string

type ListPublishedVideoResponse

type ListPublishedVideoResponse struct {
	Meta       *Metadata           `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Videos     []*Video            `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"`
	Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPublishedVideoResponse) Descriptor deprecated

func (*ListPublishedVideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPublishedVideoResponse.ProtoReflect.Descriptor instead.

func (*ListPublishedVideoResponse) GetMeta

func (x *ListPublishedVideoResponse) GetMeta() *Metadata

func (*ListPublishedVideoResponse) GetPagination

func (x *ListPublishedVideoResponse) GetPagination() *PaginationResponse

func (*ListPublishedVideoResponse) GetVideos

func (x *ListPublishedVideoResponse) GetVideos() []*Video

func (*ListPublishedVideoResponse) ProtoMessage

func (*ListPublishedVideoResponse) ProtoMessage()

func (*ListPublishedVideoResponse) ProtoReflect

func (*ListPublishedVideoResponse) Reset

func (x *ListPublishedVideoResponse) Reset()

func (*ListPublishedVideoResponse) String

func (x *ListPublishedVideoResponse) String() string

type Metadata

type Metadata struct {
	BizCode int32    `protobuf:"varint,1,opt,name=biz_code,json=bizCode,proto3" json:"biz_code,omitempty"`
	Message string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Domain  string   `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	Reason  []string `protobuf:"bytes,4,rep,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetBizCode

func (x *Metadata) GetBizCode() int32

func (*Metadata) GetDomain

func (x *Metadata) GetDomain() string

func (*Metadata) GetMessage

func (x *Metadata) GetMessage() string

func (*Metadata) GetReason

func (x *Metadata) GetReason() []string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) Validate

func (m *Metadata) Validate() error

Validate checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Metadata) ValidateAll

func (m *Metadata) ValidateAll() error

ValidateAll checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetadataMultiError, or nil if none found.

type MetadataMultiError

type MetadataMultiError []error

MetadataMultiError is an error wrapping multiple validation errors returned by Metadata.ValidateAll() if the designated constraints aren't met.

func (MetadataMultiError) AllErrors

func (m MetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MetadataMultiError) Error

func (m MetadataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MetadataValidationError

type MetadataValidationError struct {
	// contains filtered or unexported fields
}

MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.

func (MetadataValidationError) Cause

func (e MetadataValidationError) Cause() error

Cause function returns cause value.

func (MetadataValidationError) Error

func (e MetadataValidationError) Error() string

Error satisfies the builtin error interface

func (MetadataValidationError) ErrorName

func (e MetadataValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataValidationError) Field

func (e MetadataValidationError) Field() string

Field function returns field value.

func (MetadataValidationError) Key

func (e MetadataValidationError) Key() bool

Key function returns key value.

func (MetadataValidationError) Reason

func (e MetadataValidationError) Reason() string

Reason function returns reason value.

type PaginationRequest

type PaginationRequest struct {
	Page int32        `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码 [1, +∞)
	Size int32        `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 页面大小
	Sort []*SortField `protobuf:"bytes,3,rep,name=sort,proto3" json:"sort,omitempty"`  // 根据字段进行排序
	// contains filtered or unexported fields
}

func (*PaginationRequest) Descriptor deprecated

func (*PaginationRequest) Descriptor() ([]byte, []int)

Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.

func (*PaginationRequest) GetPage

func (x *PaginationRequest) GetPage() int32

func (*PaginationRequest) GetSize

func (x *PaginationRequest) GetSize() int32

func (*PaginationRequest) GetSort

func (x *PaginationRequest) GetSort() []*SortField

func (*PaginationRequest) ProtoMessage

func (*PaginationRequest) ProtoMessage()

func (*PaginationRequest) ProtoReflect

func (x *PaginationRequest) ProtoReflect() protoreflect.Message

func (*PaginationRequest) Reset

func (x *PaginationRequest) Reset()

func (*PaginationRequest) String

func (x *PaginationRequest) String() string

func (*PaginationRequest) Validate

func (m *PaginationRequest) Validate() error

Validate checks the field values on PaginationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PaginationRequest) ValidateAll

func (m *PaginationRequest) ValidateAll() error

ValidateAll checks the field values on PaginationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginationRequestMultiError, or nil if none found.

type PaginationRequestMultiError

type PaginationRequestMultiError []error

PaginationRequestMultiError is an error wrapping multiple validation errors returned by PaginationRequest.ValidateAll() if the designated constraints aren't met.

func (PaginationRequestMultiError) AllErrors

func (m PaginationRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaginationRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PaginationRequestValidationError

type PaginationRequestValidationError struct {
	// contains filtered or unexported fields
}

PaginationRequestValidationError is the validation error returned by PaginationRequest.Validate if the designated constraints aren't met.

func (PaginationRequestValidationError) Cause

Cause function returns cause value.

func (PaginationRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginationRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginationRequestValidationError) Field

Field function returns field value.

func (PaginationRequestValidationError) Key

Key function returns key value.

func (PaginationRequestValidationError) Reason

Reason function returns reason value.

type PaginationResponse

type PaginationResponse struct {
	Page  int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`   // 当前数据的所属页码
	Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总页数
	Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 总条目数
	// contains filtered or unexported fields
}

func (*PaginationResponse) Descriptor deprecated

func (*PaginationResponse) Descriptor() ([]byte, []int)

Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.

func (*PaginationResponse) GetCount

func (x *PaginationResponse) GetCount() int32

func (*PaginationResponse) GetPage

func (x *PaginationResponse) GetPage() int32

func (*PaginationResponse) GetTotal

func (x *PaginationResponse) GetTotal() int32

func (*PaginationResponse) ProtoMessage

func (*PaginationResponse) ProtoMessage()

func (*PaginationResponse) ProtoReflect

func (x *PaginationResponse) ProtoReflect() protoreflect.Message

func (*PaginationResponse) Reset

func (x *PaginationResponse) Reset()

func (*PaginationResponse) String

func (x *PaginationResponse) String() string

func (*PaginationResponse) Validate

func (m *PaginationResponse) Validate() error

Validate checks the field values on PaginationResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PaginationResponse) ValidateAll

func (m *PaginationResponse) ValidateAll() error

ValidateAll checks the field values on PaginationResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginationResponseMultiError, or nil if none found.

type PaginationResponseMultiError

type PaginationResponseMultiError []error

PaginationResponseMultiError is an error wrapping multiple validation errors returned by PaginationResponse.ValidateAll() if the designated constraints aren't met.

func (PaginationResponseMultiError) AllErrors

func (m PaginationResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaginationResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PaginationResponseValidationError

type PaginationResponseValidationError struct {
	// contains filtered or unexported fields
}

PaginationResponseValidationError is the validation error returned by PaginationResponse.Validate if the designated constraints aren't met.

func (PaginationResponseValidationError) Cause

Cause function returns cause value.

func (PaginationResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginationResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginationResponseValidationError) Field

Field function returns field value.

func (PaginationResponseValidationError) Key

Key function returns key value.

func (PaginationResponseValidationError) Reason

Reason function returns reason value.

type PublishVideoRequest

type PublishVideoRequest struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`                       // 视频标题
	CoverUrl    string `protobuf:"bytes,2,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址
	PlayUrl     string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"`    // 视频播放地址
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`           // 视频描述
	UserId      int64  `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`      // 视频作者id
	// contains filtered or unexported fields
}

func (*PublishVideoRequest) Descriptor deprecated

func (*PublishVideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishVideoRequest.ProtoReflect.Descriptor instead.

func (*PublishVideoRequest) GetCoverUrl

func (x *PublishVideoRequest) GetCoverUrl() string

func (*PublishVideoRequest) GetDescription

func (x *PublishVideoRequest) GetDescription() string

func (*PublishVideoRequest) GetPlayUrl

func (x *PublishVideoRequest) GetPlayUrl() string

func (*PublishVideoRequest) GetTitle

func (x *PublishVideoRequest) GetTitle() string

func (*PublishVideoRequest) GetUserId

func (x *PublishVideoRequest) GetUserId() int64

func (*PublishVideoRequest) ProtoMessage

func (*PublishVideoRequest) ProtoMessage()

func (*PublishVideoRequest) ProtoReflect

func (x *PublishVideoRequest) ProtoReflect() protoreflect.Message

func (*PublishVideoRequest) Reset

func (x *PublishVideoRequest) Reset()

func (*PublishVideoRequest) String

func (x *PublishVideoRequest) String() string

type PublishVideoResponse

type PublishVideoResponse struct {
	Meta    *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	VideoId int64     `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishVideoResponse) Descriptor deprecated

func (*PublishVideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use PublishVideoResponse.ProtoReflect.Descriptor instead.

func (*PublishVideoResponse) GetMeta

func (x *PublishVideoResponse) GetMeta() *Metadata

func (*PublishVideoResponse) GetVideoId

func (x *PublishVideoResponse) GetVideoId() int64

func (*PublishVideoResponse) ProtoMessage

func (*PublishVideoResponse) ProtoMessage()

func (*PublishVideoResponse) ProtoReflect

func (x *PublishVideoResponse) ProtoReflect() protoreflect.Message

func (*PublishVideoResponse) Reset

func (x *PublishVideoResponse) Reset()

func (*PublishVideoResponse) String

func (x *PublishVideoResponse) String() string

type RemoveCollectionRequest

type RemoveCollectionRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveCollectionRequest) Descriptor deprecated

func (*RemoveCollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveCollectionRequest.ProtoReflect.Descriptor instead.

func (*RemoveCollectionRequest) GetId

func (x *RemoveCollectionRequest) GetId() int64

func (*RemoveCollectionRequest) ProtoMessage

func (*RemoveCollectionRequest) ProtoMessage()

func (*RemoveCollectionRequest) ProtoReflect

func (x *RemoveCollectionRequest) ProtoReflect() protoreflect.Message

func (*RemoveCollectionRequest) Reset

func (x *RemoveCollectionRequest) Reset()

func (*RemoveCollectionRequest) String

func (x *RemoveCollectionRequest) String() string

type RemoveCollectionResponse

type RemoveCollectionResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveCollectionResponse) Descriptor deprecated

func (*RemoveCollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveCollectionResponse.ProtoReflect.Descriptor instead.

func (*RemoveCollectionResponse) GetMeta

func (x *RemoveCollectionResponse) GetMeta() *Metadata

func (*RemoveCollectionResponse) ProtoMessage

func (*RemoveCollectionResponse) ProtoMessage()

func (*RemoveCollectionResponse) ProtoReflect

func (x *RemoveCollectionResponse) ProtoReflect() protoreflect.Message

func (*RemoveCollectionResponse) Reset

func (x *RemoveCollectionResponse) Reset()

func (*RemoveCollectionResponse) String

func (x *RemoveCollectionResponse) String() string

type RemoveCommentRequest

type RemoveCommentRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	UserId    int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`          // 用户id
	// contains filtered or unexported fields
}

func (*RemoveCommentRequest) Descriptor deprecated

func (*RemoveCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveCommentRequest.ProtoReflect.Descriptor instead.

func (*RemoveCommentRequest) GetCommentId

func (x *RemoveCommentRequest) GetCommentId() int64

func (*RemoveCommentRequest) GetUserId

func (x *RemoveCommentRequest) GetUserId() int64

func (*RemoveCommentRequest) ProtoMessage

func (*RemoveCommentRequest) ProtoMessage()

func (*RemoveCommentRequest) ProtoReflect

func (x *RemoveCommentRequest) ProtoReflect() protoreflect.Message

func (*RemoveCommentRequest) Reset

func (x *RemoveCommentRequest) Reset()

func (*RemoveCommentRequest) String

func (x *RemoveCommentRequest) String() string

type RemoveCommentResponse

type RemoveCommentResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveCommentResponse) Descriptor deprecated

func (*RemoveCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveCommentResponse.ProtoReflect.Descriptor instead.

func (*RemoveCommentResponse) GetMeta

func (x *RemoveCommentResponse) GetMeta() *Metadata

func (*RemoveCommentResponse) ProtoMessage

func (*RemoveCommentResponse) ProtoMessage()

func (*RemoveCommentResponse) ProtoReflect

func (x *RemoveCommentResponse) ProtoReflect() protoreflect.Message

func (*RemoveCommentResponse) Reset

func (x *RemoveCommentResponse) Reset()

func (*RemoveCommentResponse) String

func (x *RemoveCommentResponse) String() string

type RemoveFavoriteRequest

type RemoveFavoriteRequest struct {
	Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"`
	Type   FavoriteType   `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"`
	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveFavoriteRequest) Descriptor deprecated

func (*RemoveFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFavoriteRequest.ProtoReflect.Descriptor instead.

func (*RemoveFavoriteRequest) GetId

func (x *RemoveFavoriteRequest) GetId() int64

func (*RemoveFavoriteRequest) GetTarget

func (x *RemoveFavoriteRequest) GetTarget() FavoriteTarget

func (*RemoveFavoriteRequest) GetType

func (x *RemoveFavoriteRequest) GetType() FavoriteType

func (*RemoveFavoriteRequest) ProtoMessage

func (*RemoveFavoriteRequest) ProtoMessage()

func (*RemoveFavoriteRequest) ProtoReflect

func (x *RemoveFavoriteRequest) ProtoReflect() protoreflect.Message

func (*RemoveFavoriteRequest) Reset

func (x *RemoveFavoriteRequest) Reset()

func (*RemoveFavoriteRequest) String

func (x *RemoveFavoriteRequest) String() string

type RemoveFavoriteResponse

type RemoveFavoriteResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveFavoriteResponse) Descriptor deprecated

func (*RemoveFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFavoriteResponse.ProtoReflect.Descriptor instead.

func (*RemoveFavoriteResponse) GetMeta

func (x *RemoveFavoriteResponse) GetMeta() *Metadata

func (*RemoveFavoriteResponse) ProtoMessage

func (*RemoveFavoriteResponse) ProtoMessage()

func (*RemoveFavoriteResponse) ProtoReflect

func (x *RemoveFavoriteResponse) ProtoReflect() protoreflect.Message

func (*RemoveFavoriteResponse) Reset

func (x *RemoveFavoriteResponse) Reset()

func (*RemoveFavoriteResponse) String

func (x *RemoveFavoriteResponse) String() string

type RemoveFollowRequest

type RemoveFollowRequest struct {
	UserId       int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveFollowRequest) Descriptor deprecated

func (*RemoveFollowRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFollowRequest.ProtoReflect.Descriptor instead.

func (*RemoveFollowRequest) GetTargetUserId

func (x *RemoveFollowRequest) GetTargetUserId() int64

func (*RemoveFollowRequest) GetUserId

func (x *RemoveFollowRequest) GetUserId() int64

func (*RemoveFollowRequest) ProtoMessage

func (*RemoveFollowRequest) ProtoMessage()

func (*RemoveFollowRequest) ProtoReflect

func (x *RemoveFollowRequest) ProtoReflect() protoreflect.Message

func (*RemoveFollowRequest) Reset

func (x *RemoveFollowRequest) Reset()

func (*RemoveFollowRequest) String

func (x *RemoveFollowRequest) String() string

type RemoveFollowResponse

type RemoveFollowResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveFollowResponse) Descriptor deprecated

func (*RemoveFollowResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFollowResponse.ProtoReflect.Descriptor instead.

func (*RemoveFollowResponse) GetMeta

func (x *RemoveFollowResponse) GetMeta() *Metadata

func (*RemoveFollowResponse) ProtoMessage

func (*RemoveFollowResponse) ProtoMessage()

func (*RemoveFollowResponse) ProtoReflect

func (x *RemoveFollowResponse) ProtoReflect() protoreflect.Message

func (*RemoveFollowResponse) Reset

func (x *RemoveFollowResponse) Reset()

func (*RemoveFollowResponse) String

func (x *RemoveFollowResponse) String() string

type RemoveVideoFromCollectionRequest

type RemoveVideoFromCollectionRequest struct {
	CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
	VideoId      int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveVideoFromCollectionRequest) Descriptor deprecated

func (*RemoveVideoFromCollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveVideoFromCollectionRequest.ProtoReflect.Descriptor instead.

func (*RemoveVideoFromCollectionRequest) GetCollectionId

func (x *RemoveVideoFromCollectionRequest) GetCollectionId() int64

func (*RemoveVideoFromCollectionRequest) GetVideoId

func (x *RemoveVideoFromCollectionRequest) GetVideoId() int64

func (*RemoveVideoFromCollectionRequest) ProtoMessage

func (*RemoveVideoFromCollectionRequest) ProtoMessage()

func (*RemoveVideoFromCollectionRequest) ProtoReflect

func (*RemoveVideoFromCollectionRequest) Reset

func (*RemoveVideoFromCollectionRequest) String

type RemoveVideoFromCollectionResponse

type RemoveVideoFromCollectionResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveVideoFromCollectionResponse) Descriptor deprecated

func (*RemoveVideoFromCollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveVideoFromCollectionResponse.ProtoReflect.Descriptor instead.

func (*RemoveVideoFromCollectionResponse) GetMeta

func (*RemoveVideoFromCollectionResponse) ProtoMessage

func (*RemoveVideoFromCollectionResponse) ProtoMessage()

func (*RemoveVideoFromCollectionResponse) ProtoReflect

func (*RemoveVideoFromCollectionResponse) Reset

func (*RemoveVideoFromCollectionResponse) String

type SearchField

type SearchField struct {
	Field     string         `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`                                                         // 用于搜索的字段名称
	Value     string         `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`                                                         // 搜索的值
	ValueList []string       `protobuf:"bytes,3,rep,name=value_list,json=valueList,proto3" json:"value_list,omitempty"`                                // 搜索的值列表
	Operator  SearchOperator `protobuf:"varint,4,opt,name=operator,proto3,enum=shortVideoCoreService.api.v1.SearchOperator" json:"operator,omitempty"` // 操作符
	// contains filtered or unexported fields
}

func (*SearchField) Descriptor deprecated

func (*SearchField) Descriptor() ([]byte, []int)

Deprecated: Use SearchField.ProtoReflect.Descriptor instead.

func (*SearchField) GetField

func (x *SearchField) GetField() string

func (*SearchField) GetOperator

func (x *SearchField) GetOperator() SearchOperator

func (*SearchField) GetValue

func (x *SearchField) GetValue() string

func (*SearchField) GetValueList

func (x *SearchField) GetValueList() []string

func (*SearchField) ProtoMessage

func (*SearchField) ProtoMessage()

func (*SearchField) ProtoReflect

func (x *SearchField) ProtoReflect() protoreflect.Message

func (*SearchField) Reset

func (x *SearchField) Reset()

func (*SearchField) String

func (x *SearchField) String() string

func (*SearchField) Validate

func (m *SearchField) Validate() error

Validate checks the field values on SearchField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchField) ValidateAll

func (m *SearchField) ValidateAll() error

ValidateAll checks the field values on SearchField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchFieldMultiError, or nil if none found.

type SearchFieldMultiError

type SearchFieldMultiError []error

SearchFieldMultiError is an error wrapping multiple validation errors returned by SearchField.ValidateAll() if the designated constraints aren't met.

func (SearchFieldMultiError) AllErrors

func (m SearchFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchFieldMultiError) Error

func (m SearchFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SearchFieldValidationError

type SearchFieldValidationError struct {
	// contains filtered or unexported fields
}

SearchFieldValidationError is the validation error returned by SearchField.Validate if the designated constraints aren't met.

func (SearchFieldValidationError) Cause

Cause function returns cause value.

func (SearchFieldValidationError) Error

Error satisfies the builtin error interface

func (SearchFieldValidationError) ErrorName

func (e SearchFieldValidationError) ErrorName() string

ErrorName returns error name.

func (SearchFieldValidationError) Field

Field function returns field value.

func (SearchFieldValidationError) Key

Key function returns key value.

func (SearchFieldValidationError) Reason

Reason function returns reason value.

type SearchOperator

type SearchOperator int32
const (
	SearchOperator_EQ       SearchOperator = 0  // 等于
	SearchOperator_NE       SearchOperator = 1  // 不等于
	SearchOperator_GT       SearchOperator = 2  // 大于
	SearchOperator_GE       SearchOperator = 3  // 大于等于
	SearchOperator_LT       SearchOperator = 4  // 小于
	SearchOperator_LE       SearchOperator = 5  // 小于等于
	SearchOperator_LIKE     SearchOperator = 6  // 使用like的模糊匹配
	SearchOperator_WILDCARD SearchOperator = 7  // 使用通配符的模糊匹配
	SearchOperator_IN       SearchOperator = 8  // 在指定的集合中
	SearchOperator_NOT_IN   SearchOperator = 9  // 不在指定的集合中
	SearchOperator_BETWEEN  SearchOperator = 10 // 在指定的范围内
	SearchOperator_RE       SearchOperator = 11 // 正则匹配
)

func (SearchOperator) Descriptor

func (SearchOperator) Enum

func (x SearchOperator) Enum() *SearchOperator

func (SearchOperator) EnumDescriptor deprecated

func (SearchOperator) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchOperator.Descriptor instead.

func (SearchOperator) Number

func (SearchOperator) String

func (x SearchOperator) String() string

func (SearchOperator) Type

type SearchRequest

type SearchRequest struct {
	Search []*SearchField `protobuf:"bytes,1,rep,name=search,proto3" json:"search,omitempty"` // 搜索条件
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetSearch

func (x *SearchRequest) GetSearch() []*SearchField

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

func (*SearchRequest) Validate

func (m *SearchRequest) Validate() error

Validate checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchRequest) ValidateAll

func (m *SearchRequest) ValidateAll() error

ValidateAll checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchRequestMultiError, or nil if none found.

type SearchRequestMultiError

type SearchRequestMultiError []error

SearchRequestMultiError is an error wrapping multiple validation errors returned by SearchRequest.ValidateAll() if the designated constraints aren't met.

func (SearchRequestMultiError) AllErrors

func (m SearchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchRequestMultiError) Error

func (m SearchRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SearchRequestValidationError

type SearchRequestValidationError struct {
	// contains filtered or unexported fields
}

SearchRequestValidationError is the validation error returned by SearchRequest.Validate if the designated constraints aren't met.

func (SearchRequestValidationError) Cause

Cause function returns cause value.

func (SearchRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchRequestValidationError) ErrorName

func (e SearchRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SearchRequestValidationError) Field

Field function returns field value.

func (SearchRequestValidationError) Key

Key function returns key value.

func (SearchRequestValidationError) Reason

Reason function returns reason value.

type SortField

type SortField struct {
	Field string    `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`                                              // 用于排序的字段名称
	Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=shortVideoCoreService.api.v1.SortOrder" json:"order,omitempty"` // 排序方式
	// contains filtered or unexported fields
}

func (*SortField) Descriptor deprecated

func (*SortField) Descriptor() ([]byte, []int)

Deprecated: Use SortField.ProtoReflect.Descriptor instead.

func (*SortField) GetField

func (x *SortField) GetField() string

func (*SortField) GetOrder

func (x *SortField) GetOrder() SortOrder

func (*SortField) ProtoMessage

func (*SortField) ProtoMessage()

func (*SortField) ProtoReflect

func (x *SortField) ProtoReflect() protoreflect.Message

func (*SortField) Reset

func (x *SortField) Reset()

func (*SortField) String

func (x *SortField) String() string

func (*SortField) Validate

func (m *SortField) Validate() error

Validate checks the field values on SortField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SortField) ValidateAll

func (m *SortField) ValidateAll() error

ValidateAll checks the field values on SortField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SortFieldMultiError, or nil if none found.

type SortFieldMultiError

type SortFieldMultiError []error

SortFieldMultiError is an error wrapping multiple validation errors returned by SortField.ValidateAll() if the designated constraints aren't met.

func (SortFieldMultiError) AllErrors

func (m SortFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SortFieldMultiError) Error

func (m SortFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SortFieldValidationError

type SortFieldValidationError struct {
	// contains filtered or unexported fields
}

SortFieldValidationError is the validation error returned by SortField.Validate if the designated constraints aren't met.

func (SortFieldValidationError) Cause

func (e SortFieldValidationError) Cause() error

Cause function returns cause value.

func (SortFieldValidationError) Error

func (e SortFieldValidationError) Error() string

Error satisfies the builtin error interface

func (SortFieldValidationError) ErrorName

func (e SortFieldValidationError) ErrorName() string

ErrorName returns error name.

func (SortFieldValidationError) Field

func (e SortFieldValidationError) Field() string

Field function returns field value.

func (SortFieldValidationError) Key

Key function returns key value.

func (SortFieldValidationError) Reason

func (e SortFieldValidationError) Reason() string

Reason function returns reason value.

type SortOrder

type SortOrder int32
const (
	SortOrder_ASC  SortOrder = 0
	SortOrder_DESC SortOrder = 1
)

func (SortOrder) Descriptor

func (SortOrder) Descriptor() protoreflect.EnumDescriptor

func (SortOrder) Enum

func (x SortOrder) Enum() *SortOrder

func (SortOrder) EnumDescriptor deprecated

func (SortOrder) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortOrder.Descriptor instead.

func (SortOrder) Number

func (x SortOrder) Number() protoreflect.EnumNumber

func (SortOrder) String

func (x SortOrder) String() string

func (SortOrder) Type

type UnimplementedCollectionServiceServer

type UnimplementedCollectionServiceServer struct {
}

UnimplementedCollectionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCollectionServiceServer) AddVideo2Collection

func (UnimplementedCollectionServiceServer) CreateCollection

func (UnimplementedCollectionServiceServer) GetCollectionById

func (UnimplementedCollectionServiceServer) ListCollection

func (UnimplementedCollectionServiceServer) ListCollectionVideo

func (UnimplementedCollectionServiceServer) RemoveCollection

func (UnimplementedCollectionServiceServer) UpdateCollection

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct {
}

UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCommentServiceServer) CountComment4User

func (UnimplementedCommentServiceServer) CountComment4Video

func (UnimplementedCommentServiceServer) CreateComment

func (UnimplementedCommentServiceServer) GetCommentById

func (UnimplementedCommentServiceServer) ListComment4Video

func (UnimplementedCommentServiceServer) RemoveComment

type UnimplementedFavoriteServiceServer

type UnimplementedFavoriteServiceServer struct {
}

UnimplementedFavoriteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFavoriteServiceServer) AddFavorite

func (UnimplementedFavoriteServiceServer) CountFavorite

func (UnimplementedFavoriteServiceServer) IsFavorite

func (UnimplementedFavoriteServiceServer) ListFavorite

func (UnimplementedFavoriteServiceServer) RemoveFavorite

type UnimplementedFollowServiceServer

type UnimplementedFollowServiceServer struct {
}

UnimplementedFollowServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFollowServiceServer) AddFollow

func (UnimplementedFollowServiceServer) ListFollowing

func (UnimplementedFollowServiceServer) RemoveFollow

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) GetUserByIdList

func (UnimplementedUserServiceServer) GetUserInfo

func (UnimplementedUserServiceServer) UpdateUserInfo

type UnimplementedVideoServiceServer

type UnimplementedVideoServiceServer struct {
}

UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVideoServiceServer) FeedShortVideo

func (UnimplementedVideoServiceServer) GetVideoById

func (UnimplementedVideoServiceServer) GetVideoByIdList

func (UnimplementedVideoServiceServer) ListPublishedVideo

func (UnimplementedVideoServiceServer) PublishVideo

type UnsafeCollectionServiceServer

type UnsafeCollectionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCollectionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectionServiceServer will result in compilation errors.

type UnsafeCommentServiceServer

type UnsafeCommentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentServiceServer will result in compilation errors.

type UnsafeFavoriteServiceServer

type UnsafeFavoriteServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFavoriteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FavoriteServiceServer will result in compilation errors.

type UnsafeFollowServiceServer

type UnsafeFollowServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFollowServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FollowServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UnsafeVideoServiceServer

type UnsafeVideoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVideoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VideoServiceServer will result in compilation errors.

type UpdateCollectionRequest

type UpdateCollectionRequest struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionRequest) Descriptor deprecated

func (*UpdateCollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCollectionRequest.ProtoReflect.Descriptor instead.

func (*UpdateCollectionRequest) GetDescription

func (x *UpdateCollectionRequest) GetDescription() string

func (*UpdateCollectionRequest) GetId

func (x *UpdateCollectionRequest) GetId() int64

func (*UpdateCollectionRequest) GetName

func (x *UpdateCollectionRequest) GetName() string

func (*UpdateCollectionRequest) ProtoMessage

func (*UpdateCollectionRequest) ProtoMessage()

func (*UpdateCollectionRequest) ProtoReflect

func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message

func (*UpdateCollectionRequest) Reset

func (x *UpdateCollectionRequest) Reset()

func (*UpdateCollectionRequest) String

func (x *UpdateCollectionRequest) String() string

type UpdateCollectionResponse

type UpdateCollectionResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionResponse) Descriptor deprecated

func (*UpdateCollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCollectionResponse.ProtoReflect.Descriptor instead.

func (*UpdateCollectionResponse) GetMeta

func (x *UpdateCollectionResponse) GetMeta() *Metadata

func (*UpdateCollectionResponse) ProtoMessage

func (*UpdateCollectionResponse) ProtoMessage()

func (*UpdateCollectionResponse) ProtoReflect

func (x *UpdateCollectionResponse) ProtoReflect() protoreflect.Message

func (*UpdateCollectionResponse) Reset

func (x *UpdateCollectionResponse) Reset()

func (*UpdateCollectionResponse) String

func (x *UpdateCollectionResponse) String() string

type UpdateUserImageType

type UpdateUserImageType int32
const (
	UpdateUserImageType_AVATAR           UpdateUserImageType = 0
	UpdateUserImageType_BACKGROUND_IMAGE UpdateUserImageType = 1
)

func (UpdateUserImageType) Descriptor

func (UpdateUserImageType) Enum

func (UpdateUserImageType) EnumDescriptor deprecated

func (UpdateUserImageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateUserImageType.Descriptor instead.

func (UpdateUserImageType) Number

func (UpdateUserImageType) String

func (x UpdateUserImageType) String() string

func (UpdateUserImageType) Type

type UpdateUserInfoRequest

type UpdateUserInfoRequest struct {
	UserId          int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Avatar          string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	BackgroundImage string `protobuf:"bytes,4,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"`
	Signature       string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserInfoRequest) Descriptor deprecated

func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserInfoRequest) GetAvatar

func (x *UpdateUserInfoRequest) GetAvatar() string

func (*UpdateUserInfoRequest) GetBackgroundImage

func (x *UpdateUserInfoRequest) GetBackgroundImage() string

func (*UpdateUserInfoRequest) GetName

func (x *UpdateUserInfoRequest) GetName() string

func (*UpdateUserInfoRequest) GetSignature

func (x *UpdateUserInfoRequest) GetSignature() string

func (*UpdateUserInfoRequest) GetUserId

func (x *UpdateUserInfoRequest) GetUserId() int64

func (*UpdateUserInfoRequest) ProtoMessage

func (*UpdateUserInfoRequest) ProtoMessage()

func (*UpdateUserInfoRequest) ProtoReflect

func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserInfoRequest) Reset

func (x *UpdateUserInfoRequest) Reset()

func (*UpdateUserInfoRequest) String

func (x *UpdateUserInfoRequest) String() string

func (*UpdateUserInfoRequest) Validate

func (m *UpdateUserInfoRequest) Validate() error

Validate checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserInfoRequest) ValidateAll

func (m *UpdateUserInfoRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoRequestMultiError, or nil if none found.

type UpdateUserInfoRequestMultiError

type UpdateUserInfoRequestMultiError []error

UpdateUserInfoRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserInfoRequestMultiError) AllErrors

func (m UpdateUserInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserInfoRequestValidationError

type UpdateUserInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserInfoRequestValidationError is the validation error returned by UpdateUserInfoRequest.Validate if the designated constraints aren't met.

func (UpdateUserInfoRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserInfoRequestValidationError) Field

Field function returns field value.

func (UpdateUserInfoRequestValidationError) Key

Key function returns key value.

func (UpdateUserInfoRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserInfoResponse

type UpdateUserInfoResponse struct {
	Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserInfoResponse) Descriptor deprecated

func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserInfoResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserInfoResponse) GetMeta

func (x *UpdateUserInfoResponse) GetMeta() *Metadata

func (*UpdateUserInfoResponse) ProtoMessage

func (*UpdateUserInfoResponse) ProtoMessage()

func (*UpdateUserInfoResponse) ProtoReflect

func (x *UpdateUserInfoResponse) ProtoReflect() protoreflect.Message

func (*UpdateUserInfoResponse) Reset

func (x *UpdateUserInfoResponse) Reset()

func (*UpdateUserInfoResponse) String

func (x *UpdateUserInfoResponse) String() string

func (*UpdateUserInfoResponse) Validate

func (m *UpdateUserInfoResponse) Validate() error

Validate checks the field values on UpdateUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserInfoResponse) ValidateAll

func (m *UpdateUserInfoResponse) ValidateAll() error

ValidateAll checks the field values on UpdateUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoResponseMultiError, or nil if none found.

type UpdateUserInfoResponseMultiError

type UpdateUserInfoResponseMultiError []error

UpdateUserInfoResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateUserInfoResponseMultiError) AllErrors

func (m UpdateUserInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserInfoResponseValidationError

type UpdateUserInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserInfoResponseValidationError is the validation error returned by UpdateUserInfoResponse.Validate if the designated constraints aren't met.

func (UpdateUserInfoResponseValidationError) Cause

Cause function returns cause value.

func (UpdateUserInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserInfoResponseValidationError) Field

Field function returns field value.

func (UpdateUserInfoResponseValidationError) Key

Key function returns key value.

func (UpdateUserInfoResponseValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id              int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                 // 用户id
	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                              // 用户名称
	Avatar          string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`                                          // 用户头像Url
	BackgroundImage string `protobuf:"bytes,4,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图
	Signature       string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`                                    // 个人简介
	Mobile          string `protobuf:"bytes,6,opt,name=mobile,proto3" json:"mobile,omitempty"`                                          // 手机号
	Email           string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`                                            // 邮箱
	FollowCount     int64  `protobuf:"varint,8,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"`            // 关注总数
	FollowerCount   int64  `protobuf:"varint,9,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"`      // 粉丝总数
	TotalFavorited  int64  `protobuf:"varint,10,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"`  // 获赞数量
	WorkCount       int64  `protobuf:"varint,11,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"`                 // 作品数量
	FavoriteCount   int64  `protobuf:"varint,12,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"`     // 点赞数量
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBackgroundImage

func (x *User) GetBackgroundImage() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFavoriteCount

func (x *User) GetFavoriteCount() int64

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetMobile

func (x *User) GetMobile() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSignature

func (x *User) GetSignature() string

func (*User) GetTotalFavorited

func (x *User) GetTotalFavorited() int64

func (*User) GetWorkCount

func (x *User) GetWorkCount() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserServiceClient

type UserServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
	UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoResponse, error)
	GetUserByIdList(ctx context.Context, in *GetUserByIdListRequest, opts ...grpc.CallOption) (*GetUserByIdListResponse, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceHTTPClient

type UserServiceHTTPClient interface {
	CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserResponse, err error)
	GetUserInfo(ctx context.Context, req *GetUserInfoRequest, opts ...http.CallOption) (rsp *GetUserInfoResponse, err error)
	UpdateUserInfo(ctx context.Context, req *UpdateUserInfoRequest, opts ...http.CallOption) (rsp *UpdateUserInfoResponse, err error)
}

func NewUserServiceHTTPClient

func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient

type UserServiceHTTPClientImpl

type UserServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*UserServiceHTTPClientImpl) CreateUser

func (*UserServiceHTTPClientImpl) GetUserInfo

func (*UserServiceHTTPClientImpl) UpdateUserInfo

type UserServiceServer

type UserServiceServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
	UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
	GetUserByIdList(context.Context, *GetUserByIdListRequest) (*GetUserByIdListResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type Video

type Video struct {
	Id            int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                            // 视频唯一标识
	Title         string  `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`                                       // 视频标题
	Author        *Author `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`                                     // 视频作者信息
	PlayUrl       string  `protobuf:"bytes,4,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"`                    // 视频播放地址
	CoverUrl      string  `protobuf:"bytes,5,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`                 // 视频封面地址
	FavoriteCount int64   `protobuf:"varint,6,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数
	CommentCount  int64   `protobuf:"varint,7,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"`    // 视频的评论总数
	IsFavorite    int64   `protobuf:"varint,8,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"`          // 0-未点赞,1-已点赞
	UploadTime    string  `protobuf:"bytes,9,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`           // 视频上传时间
	Description   string  `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`                          // 视频描述
	// contains filtered or unexported fields
}

func (*Video) Descriptor deprecated

func (*Video) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetAuthor

func (x *Video) GetAuthor() *Author

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() int64

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetDescription

func (x *Video) GetDescription() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() int64

func (*Video) GetId

func (x *Video) GetId() int64

func (*Video) GetIsFavorite

func (x *Video) GetIsFavorite() int64

func (*Video) GetPlayUrl

func (x *Video) GetPlayUrl() string

func (*Video) GetTitle

func (x *Video) GetTitle() string

func (*Video) GetUploadTime

func (x *Video) GetUploadTime() string

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

func (x *Video) ProtoReflect() protoreflect.Message

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

type VideoServiceClient

type VideoServiceClient interface {
	FeedShortVideo(ctx context.Context, in *FeedShortVideoRequest, opts ...grpc.CallOption) (*FeedShortVideoResponse, error)
	GetVideoById(ctx context.Context, in *GetVideoByIdRequest, opts ...grpc.CallOption) (*GetVideoByIdResponse, error)
	PublishVideo(ctx context.Context, in *PublishVideoRequest, opts ...grpc.CallOption) (*PublishVideoResponse, error)
	ListPublishedVideo(ctx context.Context, in *ListPublishedVideoRequest, opts ...grpc.CallOption) (*ListPublishedVideoResponse, error)
	GetVideoByIdList(ctx context.Context, in *GetVideoByIdListRequest, opts ...grpc.CallOption) (*GetVideoByIdListResponse, error)
}

VideoServiceClient is the client API for VideoService 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.

type VideoServiceHTTPClient

type VideoServiceHTTPClient interface {
	FeedShortVideo(ctx context.Context, req *FeedShortVideoRequest, opts ...http.CallOption) (rsp *FeedShortVideoResponse, err error)
	GetVideoById(ctx context.Context, req *GetVideoByIdRequest, opts ...http.CallOption) (rsp *GetVideoByIdResponse, err error)
	ListPublishedVideo(ctx context.Context, req *ListPublishedVideoRequest, opts ...http.CallOption) (rsp *ListPublishedVideoResponse, err error)
	PublishVideo(ctx context.Context, req *PublishVideoRequest, opts ...http.CallOption) (rsp *PublishVideoResponse, err error)
}

func NewVideoServiceHTTPClient

func NewVideoServiceHTTPClient(client *http.Client) VideoServiceHTTPClient

type VideoServiceHTTPClientImpl

type VideoServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*VideoServiceHTTPClientImpl) FeedShortVideo

func (*VideoServiceHTTPClientImpl) GetVideoById

func (*VideoServiceHTTPClientImpl) ListPublishedVideo

func (*VideoServiceHTTPClientImpl) PublishVideo

type VideoServiceServer

type VideoServiceServer interface {
	FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error)
	GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error)
	PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error)
	ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error)
	GetVideoByIdList(context.Context, *GetVideoByIdListRequest) (*GetVideoByIdListResponse, error)
	// contains filtered or unexported methods
}

VideoServiceServer is the server API for VideoService service. All implementations must embed UnimplementedVideoServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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