v1

package
v0.0.0-...-066287a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionService_CreateCollection_FullMethodName          = "/gateway.v1.CollectionService/CreateCollection"
	CollectionService_RemoveCollection_FullMethodName          = "/gateway.v1.CollectionService/RemoveCollection"
	CollectionService_ListCollection_FullMethodName            = "/gateway.v1.CollectionService/ListCollection"
	CollectionService_UpdateCollection_FullMethodName          = "/gateway.v1.CollectionService/UpdateCollection"
	CollectionService_AddVideo2Collection_FullMethodName       = "/gateway.v1.CollectionService/AddVideo2Collection"
	CollectionService_RemoveVideoFromCollection_FullMethodName = "/gateway.v1.CollectionService/RemoveVideoFromCollection"
	CollectionService_ListVideo4Collection_FullMethodName      = "/gateway.v1.CollectionService/ListVideo4Collection"
)
View Source
const (
	CommentService_CreateComment_FullMethodName     = "/gateway.v1.CommentService/CreateComment"
	CommentService_RemoveComment_FullMethodName     = "/gateway.v1.CommentService/RemoveComment"
	CommentService_ListComment4Video_FullMethodName = "/gateway.v1.CommentService/ListComment4Video"
	CommentService_ListChildComment_FullMethodName  = "/gateway.v1.CommentService/ListChildComment"
)
View Source
const (
	FavoriteService_AddFavorite_FullMethodName       = "/gateway.v1.FavoriteService/AddFavorite"
	FavoriteService_RemoveFavorite_FullMethodName    = "/gateway.v1.FavoriteService/RemoveFavorite"
	FavoriteService_ListFavoriteVideo_FullMethodName = "/gateway.v1.FavoriteService/ListFavoriteVideo"
)
View Source
const (
	FileService_PreSignUploadingPublicFile_FullMethodName = "/gateway.v1.FileService/PreSignUploadingPublicFile"
	FileService_ReportPublicFileUploaded_FullMethodName   = "/gateway.v1.FileService/ReportPublicFileUploaded"
)
View Source
const (
	FollowService_AddFollow_FullMethodName     = "/gateway.v1.FollowService/AddFollow"
	FollowService_RemoveFollow_FullMethodName  = "/gateway.v1.FollowService/RemoveFollow"
	FollowService_ListFollowing_FullMethodName = "/gateway.v1.FollowService/ListFollowing"
)
View Source
const (
	UserService_GetVerificationCode_FullMethodName = "/gateway.v1.UserService/GetVerificationCode"
	UserService_Register_FullMethodName            = "/gateway.v1.UserService/Register"
	UserService_Login_FullMethodName               = "/gateway.v1.UserService/Login"
	UserService_GetUserInfo_FullMethodName         = "/gateway.v1.UserService/GetUserInfo"
	UserService_UpdateUserInfo_FullMethodName      = "/gateway.v1.UserService/UpdateUserInfo"
	UserService_BindUserVoucher_FullMethodName     = "/gateway.v1.UserService/BindUserVoucher"
	UserService_UnbindUserVoucher_FullMethodName   = "/gateway.v1.UserService/UnbindUserVoucher"
)
View Source
const (
	ShortVideoCoreVideoService_PreSign4UploadVideo_FullMethodName     = "/gateway.v1.ShortVideoCoreVideoService/PreSign4UploadVideo"
	ShortVideoCoreVideoService_PreSign4UploadCover_FullMethodName     = "/gateway.v1.ShortVideoCoreVideoService/PreSign4UploadCover"
	ShortVideoCoreVideoService_ReportFinishUpload_FullMethodName      = "/gateway.v1.ShortVideoCoreVideoService/ReportFinishUpload"
	ShortVideoCoreVideoService_ReportVideoFinishUpload_FullMethodName = "/gateway.v1.ShortVideoCoreVideoService/ReportVideoFinishUpload"
	ShortVideoCoreVideoService_FeedShortVideo_FullMethodName          = "/gateway.v1.ShortVideoCoreVideoService/FeedShortVideo"
	ShortVideoCoreVideoService_GetVideoById_FullMethodName            = "/gateway.v1.ShortVideoCoreVideoService/GetVideoById"
	ShortVideoCoreVideoService_ListPublishedVideo_FullMethodName      = "/gateway.v1.ShortVideoCoreVideoService/ListPublishedVideo"
)
View Source
const OperationCollectionServiceAddVideo2Collection = "/gateway.v1.CollectionService/AddVideo2Collection"
View Source
const OperationCollectionServiceCreateCollection = "/gateway.v1.CollectionService/CreateCollection"
View Source
const OperationCollectionServiceListCollection = "/gateway.v1.CollectionService/ListCollection"
View Source
const OperationCollectionServiceListVideo4Collection = "/gateway.v1.CollectionService/ListVideo4Collection"
View Source
const OperationCollectionServiceRemoveCollection = "/gateway.v1.CollectionService/RemoveCollection"
View Source
const OperationCollectionServiceRemoveVideoFromCollection = "/gateway.v1.CollectionService/RemoveVideoFromCollection"
View Source
const OperationCollectionServiceUpdateCollection = "/gateway.v1.CollectionService/UpdateCollection"
View Source
const OperationCommentServiceCreateComment = "/gateway.v1.CommentService/CreateComment"
View Source
const OperationCommentServiceListChildComment = "/gateway.v1.CommentService/ListChildComment"
View Source
const OperationCommentServiceListComment4Video = "/gateway.v1.CommentService/ListComment4Video"
View Source
const OperationCommentServiceRemoveComment = "/gateway.v1.CommentService/RemoveComment"
View Source
const OperationFavoriteServiceAddFavorite = "/gateway.v1.FavoriteService/AddFavorite"
View Source
const OperationFavoriteServiceListFavoriteVideo = "/gateway.v1.FavoriteService/ListFavoriteVideo"
View Source
const OperationFavoriteServiceRemoveFavorite = "/gateway.v1.FavoriteService/RemoveFavorite"
View Source
const OperationFileServicePreSignUploadingPublicFile = "/gateway.v1.FileService/PreSignUploadingPublicFile"
View Source
const OperationFileServiceReportPublicFileUploaded = "/gateway.v1.FileService/ReportPublicFileUploaded"
View Source
const OperationFollowServiceAddFollow = "/gateway.v1.FollowService/AddFollow"
View Source
const OperationFollowServiceListFollowing = "/gateway.v1.FollowService/ListFollowing"
View Source
const OperationFollowServiceRemoveFollow = "/gateway.v1.FollowService/RemoveFollow"
View Source
const OperationShortVideoCoreVideoServiceFeedShortVideo = "/gateway.v1.ShortVideoCoreVideoService/FeedShortVideo"
View Source
const OperationShortVideoCoreVideoServiceGetVideoById = "/gateway.v1.ShortVideoCoreVideoService/GetVideoById"
View Source
const OperationShortVideoCoreVideoServiceListPublishedVideo = "/gateway.v1.ShortVideoCoreVideoService/ListPublishedVideo"
View Source
const OperationShortVideoCoreVideoServicePreSign4UploadCover = "/gateway.v1.ShortVideoCoreVideoService/PreSign4UploadCover"
View Source
const OperationShortVideoCoreVideoServicePreSign4UploadVideo = "/gateway.v1.ShortVideoCoreVideoService/PreSign4UploadVideo"
View Source
const OperationShortVideoCoreVideoServiceReportFinishUpload = "/gateway.v1.ShortVideoCoreVideoService/ReportFinishUpload"
View Source
const OperationShortVideoCoreVideoServiceReportVideoFinishUpload = "/gateway.v1.ShortVideoCoreVideoService/ReportVideoFinishUpload"
View Source
const OperationUserServiceBindUserVoucher = "/gateway.v1.UserService/BindUserVoucher"
View Source
const OperationUserServiceGetUserInfo = "/gateway.v1.UserService/GetUserInfo"
View Source
const OperationUserServiceGetVerificationCode = "/gateway.v1.UserService/GetVerificationCode"
View Source
const OperationUserServiceLogin = "/gateway.v1.UserService/Login"
View Source
const OperationUserServiceRegister = "/gateway.v1.UserService/Register"
View Source
const OperationUserServiceUnbindUserVoucher = "/gateway.v1.UserService/UnbindUserVoucher"
View Source
const OperationUserServiceUpdateUserInfo = "/gateway.v1.UserService/UpdateUserInfo"

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 (
	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 (
	VoucherType_name = map[int32]string{
		0: "PHONE",
		1: "EMAIL",
	}
	VoucherType_value = map[string]int32{
		"PHONE": 0,
		"EMAIL": 1,
	}
)

Enum value maps for VoucherType.

View Source
var CollectionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.v1.CollectionService",
	HandlerType: (*CollectionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCollection",
			Handler:    _CollectionService_CreateCollection_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: "ListVideo4Collection",
			Handler:    _CollectionService_ListVideo4Collection_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/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: "gateway.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: "ListChildComment",
			Handler:    _CommentService_ListChildComment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/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: "gateway.v1.FavoriteService",
	HandlerType: (*FavoriteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddFavorite",
			Handler:    _FavoriteService_AddFavorite_Handler,
		},
		{
			MethodName: "RemoveFavorite",
			Handler:    _FavoriteService_RemoveFavorite_Handler,
		},
		{
			MethodName: "ListFavoriteVideo",
			Handler:    _FavoriteService_ListFavoriteVideo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/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 FileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.v1.FileService",
	HandlerType: (*FileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PreSignUploadingPublicFile",
			Handler:    _FileService_PreSignUploadingPublicFile_Handler,
		},
		{
			MethodName: "ReportPublicFileUploaded",
			Handler:    _FileService_ReportPublicFileUploaded_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/v1/file.proto",
}

FileService_ServiceDesc is the grpc.ServiceDesc for FileService 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_gateway_v1_collection_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_comment_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_common_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_favorite_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_file_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_follow_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_user_proto protoreflect.FileDescriptor
View Source
var File_gateway_v1_video_proto protoreflect.FileDescriptor
View Source
var FollowService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.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: "gateway/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 ShortVideoCoreVideoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.v1.ShortVideoCoreVideoService",
	HandlerType: (*ShortVideoCoreVideoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PreSign4UploadVideo",
			Handler:    _ShortVideoCoreVideoService_PreSign4UploadVideo_Handler,
		},
		{
			MethodName: "PreSign4UploadCover",
			Handler:    _ShortVideoCoreVideoService_PreSign4UploadCover_Handler,
		},
		{
			MethodName: "ReportFinishUpload",
			Handler:    _ShortVideoCoreVideoService_ReportFinishUpload_Handler,
		},
		{
			MethodName: "ReportVideoFinishUpload",
			Handler:    _ShortVideoCoreVideoService_ReportVideoFinishUpload_Handler,
		},
		{
			MethodName: "FeedShortVideo",
			Handler:    _ShortVideoCoreVideoService_FeedShortVideo_Handler,
		},
		{
			MethodName: "GetVideoById",
			Handler:    _ShortVideoCoreVideoService_GetVideoById_Handler,
		},
		{
			MethodName: "ListPublishedVideo",
			Handler:    _ShortVideoCoreVideoService_ListPublishedVideo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/v1/video.proto",
}

ShortVideoCoreVideoService_ServiceDesc is the grpc.ServiceDesc for ShortVideoCoreVideoService 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: "gateway.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVerificationCode",
			Handler:    _UserService_GetVerificationCode_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _UserService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _UserService_Login_Handler,
		},
		{
			MethodName: "GetUserInfo",
			Handler:    _UserService_GetUserInfo_Handler,
		},
		{
			MethodName: "UpdateUserInfo",
			Handler:    _UserService_UpdateUserInfo_Handler,
		},
		{
			MethodName: "BindUserVoucher",
			Handler:    _UserService_BindUserVoucher_Handler,
		},
		{
			MethodName: "UnbindUserVoucher",
			Handler:    _UserService_UnbindUserVoucher_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gateway/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)

Functions

func RegisterCollectionServiceHTTPServer

func RegisterCollectionServiceHTTPServer(s *http.Server, srv CollectionServiceHTTPServer)

func RegisterCollectionServiceServer

func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)

func RegisterCommentServiceHTTPServer

func RegisterCommentServiceHTTPServer(s *http.Server, srv CommentServiceHTTPServer)

func RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

func RegisterFavoriteServiceHTTPServer

func RegisterFavoriteServiceHTTPServer(s *http.Server, srv FavoriteServiceHTTPServer)

func RegisterFavoriteServiceServer

func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)

func RegisterFileServiceHTTPServer

func RegisterFileServiceHTTPServer(s *http.Server, srv FileServiceHTTPServer)

func RegisterFileServiceServer

func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)

func RegisterFollowServiceHTTPServer

func RegisterFollowServiceHTTPServer(s *http.Server, srv FollowServiceHTTPServer)

func RegisterFollowServiceServer

func RegisterFollowServiceServer(s grpc.ServiceRegistrar, srv FollowServiceServer)

func RegisterShortVideoCoreVideoServiceHTTPServer

func RegisterShortVideoCoreVideoServiceHTTPServer(s *http.Server, srv ShortVideoCoreVideoServiceHTTPServer)

func RegisterShortVideoCoreVideoServiceServer

func RegisterShortVideoCoreVideoServiceServer(s grpc.ServiceRegistrar, srv ShortVideoCoreVideoServiceServer)

func RegisterUserServiceHTTPServer

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

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AddFavoriteRequest

type AddFavoriteRequest struct {
	Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=gateway.v1.FavoriteTarget" json:"target,omitempty"`
	Type   FavoriteType   `protobuf:"varint,2,opt,name=type,proto3,enum=gateway.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 {
	// contains filtered or unexported fields
}

func (*AddFavoriteResponse) Descriptor deprecated

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

Deprecated: Use AddFavoriteResponse.ProtoReflect.Descriptor instead.

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 {

	// @gotags: json:"userId,omitempty,string"
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	// contains filtered or unexported fields
}

func (*AddFollowRequest) Descriptor deprecated

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

Deprecated: Use AddFollowRequest.ProtoReflect.Descriptor instead.

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 {
	// contains filtered or unexported fields
}

func (*AddFollowResponse) Descriptor deprecated

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

Deprecated: Use AddFollowResponse.ProtoReflect.Descriptor instead.

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 {

	// @gotags: json:"collectionId,omitempty,string"
	CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // 收藏夹id,不传则添加到默认收藏夹
	// @gotags: json:"videoId,omitempty,string"
	VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	// 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 {
	// contains filtered or unexported fields
}

func (*AddVideo2CollectionResponse) Descriptor deprecated

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

Deprecated: Use AddVideo2CollectionResponse.ProtoReflect.Descriptor instead.

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 BindUserVoucherRequest

type BindUserVoucherRequest struct {
	VoucherType VoucherType `protobuf:"varint,1,opt,name=voucher_type,json=voucherType,proto3,enum=gateway.v1.VoucherType" json:"voucher_type,omitempty"`
	Voucher     string      `protobuf:"bytes,2,opt,name=voucher,proto3" json:"voucher,omitempty"`
	// contains filtered or unexported fields
}

func (*BindUserVoucherRequest) Descriptor deprecated

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

Deprecated: Use BindUserVoucherRequest.ProtoReflect.Descriptor instead.

func (*BindUserVoucherRequest) GetVoucher

func (x *BindUserVoucherRequest) GetVoucher() string

func (*BindUserVoucherRequest) GetVoucherType

func (x *BindUserVoucherRequest) GetVoucherType() VoucherType

func (*BindUserVoucherRequest) ProtoMessage

func (*BindUserVoucherRequest) ProtoMessage()

func (*BindUserVoucherRequest) ProtoReflect

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

func (*BindUserVoucherRequest) Reset

func (x *BindUserVoucherRequest) Reset()

func (*BindUserVoucherRequest) String

func (x *BindUserVoucherRequest) String() string

type BindUserVoucherResponse

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

func (*BindUserVoucherResponse) Descriptor deprecated

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

Deprecated: Use BindUserVoucherResponse.ProtoReflect.Descriptor instead.

func (*BindUserVoucherResponse) ProtoMessage

func (*BindUserVoucherResponse) ProtoMessage()

func (*BindUserVoucherResponse) ProtoReflect

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

func (*BindUserVoucherResponse) Reset

func (x *BindUserVoucherResponse) Reset()

func (*BindUserVoucherResponse) String

func (x *BindUserVoucherResponse) String() string

type Collection

type Collection struct {

	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 收藏夹id
	// @gotags: json:"userId,omitempty,string"
	UserId      int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	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

type CollectionServiceClient interface {
	// 创建收藏夹
	CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*CreateCollectionResponse, error)
	// 删除收藏夹
	RemoveCollection(ctx context.Context, in *RemoveCollectionRequest, opts ...grpc.CallOption) (*RemoveCollectionResponse, error)
	// 列出用户的收藏夹
	ListCollection(ctx context.Context, in *ListCollectionRequest, opts ...grpc.CallOption) (*ListCollectionResponse, error)
	// 更新收藏夹信息
	UpdateCollection(ctx context.Context, in *UpdateCollectionRequest, opts ...grpc.CallOption) (*UpdateCollectionResponse, error)
	// 将视频添加到收藏夹
	AddVideo2Collection(ctx context.Context, in *AddVideo2CollectionRequest, opts ...grpc.CallOption) (*AddVideo2CollectionResponse, error)
	// 从收藏夹中移除视频
	RemoveVideoFromCollection(ctx context.Context, in *RemoveVideoFromCollectionRequest, opts ...grpc.CallOption) (*RemoveVideoFromCollectionResponse, error)
	// 列出收藏夹中的视频
	ListVideo4Collection(ctx context.Context, in *ListVideo4CollectionRequest, opts ...grpc.CallOption) (*ListVideo4CollectionResponse, error)
}

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 CollectionServiceHTTPClient

type CollectionServiceHTTPClient interface {
	AddVideo2Collection(ctx context.Context, req *AddVideo2CollectionRequest, opts ...http.CallOption) (rsp *AddVideo2CollectionResponse, err error)
	CreateCollection(ctx context.Context, req *CreateCollectionRequest, opts ...http.CallOption) (rsp *CreateCollectionResponse, err error)
	ListCollection(ctx context.Context, req *ListCollectionRequest, opts ...http.CallOption) (rsp *ListCollectionResponse, err error)
	ListVideo4Collection(ctx context.Context, req *ListVideo4CollectionRequest, opts ...http.CallOption) (rsp *ListVideo4CollectionResponse, err error)
	RemoveCollection(ctx context.Context, req *RemoveCollectionRequest, opts ...http.CallOption) (rsp *RemoveCollectionResponse, err error)
	RemoveVideoFromCollection(ctx context.Context, req *RemoveVideoFromCollectionRequest, opts ...http.CallOption) (rsp *RemoveVideoFromCollectionResponse, err error)
	UpdateCollection(ctx context.Context, req *UpdateCollectionRequest, opts ...http.CallOption) (rsp *UpdateCollectionResponse, err error)
}

func NewCollectionServiceHTTPClient

func NewCollectionServiceHTTPClient(client *http.Client) CollectionServiceHTTPClient

type CollectionServiceHTTPClientImpl

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

func (*CollectionServiceHTTPClientImpl) AddVideo2Collection

func (*CollectionServiceHTTPClientImpl) CreateCollection

func (*CollectionServiceHTTPClientImpl) ListCollection

func (*CollectionServiceHTTPClientImpl) ListVideo4Collection

func (*CollectionServiceHTTPClientImpl) RemoveCollection

func (*CollectionServiceHTTPClientImpl) RemoveVideoFromCollection

func (*CollectionServiceHTTPClientImpl) UpdateCollection

type CollectionServiceHTTPServer

type CollectionServiceHTTPServer interface {
	// AddVideo2Collection 将视频添加到收藏夹
	AddVideo2Collection(context.Context, *AddVideo2CollectionRequest) (*AddVideo2CollectionResponse, error)
	// CreateCollection 创建收藏夹
	CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
	// ListCollection 列出用户的收藏夹
	ListCollection(context.Context, *ListCollectionRequest) (*ListCollectionResponse, error)
	// ListVideo4Collection 列出收藏夹中的视频
	ListVideo4Collection(context.Context, *ListVideo4CollectionRequest) (*ListVideo4CollectionResponse, error)
	// RemoveCollection 删除收藏夹
	RemoveCollection(context.Context, *RemoveCollectionRequest) (*RemoveCollectionResponse, error)
	// RemoveVideoFromCollection 从收藏夹中移除视频
	RemoveVideoFromCollection(context.Context, *RemoveVideoFromCollectionRequest) (*RemoveVideoFromCollectionResponse, error)
	// UpdateCollection 更新收藏夹信息
	UpdateCollection(context.Context, *UpdateCollectionRequest) (*UpdateCollectionResponse, error)
}

type CollectionServiceServer

type CollectionServiceServer interface {
	// 创建收藏夹
	CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
	// 删除收藏夹
	RemoveCollection(context.Context, *RemoveCollectionRequest) (*RemoveCollectionResponse, error)
	// 列出用户的收藏夹
	ListCollection(context.Context, *ListCollectionRequest) (*ListCollectionResponse, error)
	// 更新收藏夹信息
	UpdateCollection(context.Context, *UpdateCollectionRequest) (*UpdateCollectionResponse, error)
	// 将视频添加到收藏夹
	AddVideo2Collection(context.Context, *AddVideo2CollectionRequest) (*AddVideo2CollectionResponse, error)
	// 从收藏夹中移除视频
	RemoveVideoFromCollection(context.Context, *RemoveVideoFromCollectionRequest) (*RemoveVideoFromCollectionResponse, error)
	// 列出收藏夹中的视频
	ListVideo4Collection(context.Context, *ListVideo4CollectionRequest) (*ListVideo4CollectionResponse, error)
	// contains filtered or unexported methods
}

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

收藏夹服务

type CollectionVideo

type CollectionVideo struct {

	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 收藏夹id
	// @gotags: json:"videoId,omitempty,string"
	VideoId     int64  `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`   // 视频id
	CoverUrl    string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址
	Title       string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`                       // 视频标题
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`           // 视频描述
	VideoUrl    string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` // 视频地址
	// contains filtered or unexported fields
}

func (*CollectionVideo) Descriptor deprecated

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

Deprecated: Use CollectionVideo.ProtoReflect.Descriptor instead.

func (*CollectionVideo) GetCoverUrl

func (x *CollectionVideo) GetCoverUrl() string

func (*CollectionVideo) GetDescription

func (x *CollectionVideo) GetDescription() string

func (*CollectionVideo) GetId

func (x *CollectionVideo) GetId() int64

func (*CollectionVideo) GetTitle

func (x *CollectionVideo) GetTitle() string

func (*CollectionVideo) GetVideoId

func (x *CollectionVideo) GetVideoId() int64

func (*CollectionVideo) GetVideoUrl

func (x *CollectionVideo) GetVideoUrl() string

func (*CollectionVideo) ProtoMessage

func (*CollectionVideo) ProtoMessage()

func (*CollectionVideo) ProtoReflect

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

func (*CollectionVideo) Reset

func (x *CollectionVideo) Reset()

func (*CollectionVideo) String

func (x *CollectionVideo) String() string

type Comment

type Comment struct {

	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 评论id
	// @gotags: json:"videoId,omitempty,string"
	VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	// @gotags: json:"parentId,omitempty,string"
	ParentId   int64        `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`      // 父评论id
	User       *CommentUser `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`                               // 评论用户
	ReplyUser  *CommentUser `protobuf:"bytes,5,opt,name=reply_user,json=replyUser,proto3" json:"reply_user,omitempty"`    // 回复用户
	Content    string       `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`                         // 评论内容
	Date       string       `protobuf:"bytes,7,opt,name=date,proto3" json:"date,omitempty"`                               // 评论日期
	LikeCount  string       `protobuf:"bytes,8,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`    // 点赞数
	ReplyCount string       `protobuf:"bytes,9,opt,name=reply_count,json=replyCount,proto3" json:"reply_count,omitempty"` // 回复数
	Comments   []*Comment   `protobuf:"bytes,10,rep,name=comments,proto3" json:"comments,omitempty"`                      // 子评论
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetComments

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

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) GetReplyUser

func (x *Comment) GetReplyUser() *CommentUser

func (*Comment) GetUser

func (x *Comment) GetUser() *CommentUser

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)
	ListChildComment(ctx context.Context, in *ListChildCommentRequest, opts ...grpc.CallOption) (*ListChildCommentResponse, 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 CommentServiceHTTPClient

type CommentServiceHTTPClient interface {
	CreateComment(ctx context.Context, req *CreateCommentRequest, opts ...http.CallOption) (rsp *CreateCommentResponse, err error)
	ListChildComment(ctx context.Context, req *ListChildCommentRequest, opts ...http.CallOption) (rsp *ListChildCommentResponse, err error)
	ListComment4Video(ctx context.Context, req *ListComment4VideoRequest, opts ...http.CallOption) (rsp *ListComment4VideoResponse, err error)
	RemoveComment(ctx context.Context, req *RemoveCommentRequest, opts ...http.CallOption) (rsp *RemoveCommentResponse, err error)
}

func NewCommentServiceHTTPClient

func NewCommentServiceHTTPClient(client *http.Client) CommentServiceHTTPClient

type CommentServiceHTTPClientImpl

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

func (*CommentServiceHTTPClientImpl) CreateComment

func (*CommentServiceHTTPClientImpl) ListChildComment

func (*CommentServiceHTTPClientImpl) ListComment4Video

func (*CommentServiceHTTPClientImpl) RemoveComment

type CommentServiceHTTPServer

type CommentServiceHTTPServer interface {
	// CreateComment 创建评论
	CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error)
	ListChildComment(context.Context, *ListChildCommentRequest) (*ListChildCommentResponse, error)
	// ListComment4Video 列出视频的评论
	ListComment4Video(context.Context, *ListComment4VideoRequest) (*ListComment4VideoResponse, error)
	// RemoveComment 删除评论
	RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
}

type CommentServiceServer

type CommentServiceServer interface {
	// 创建评论
	CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error)
	// 删除评论
	RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
	// 列出视频的评论
	ListComment4Video(context.Context, *ListComment4VideoRequest) (*ListComment4VideoResponse, error)
	ListChildComment(context.Context, *ListChildCommentRequest) (*ListChildCommentResponse, error)
	// contains filtered or unexported methods
}

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

评论

type CommentUser

type CommentUser struct {

	// @gotags: json:"id,omitempty,string"
	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"`                               // 用户头像
	IsFollowing bool   `protobuf:"varint,4,opt,name=is_following,json=isFollowing,proto3" json:"is_following,omitempty"` // 是否关注
	// contains filtered or unexported fields
}

func (*CommentUser) Descriptor deprecated

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

Deprecated: Use CommentUser.ProtoReflect.Descriptor instead.

func (*CommentUser) GetAvatar

func (x *CommentUser) GetAvatar() string

func (*CommentUser) GetId

func (x *CommentUser) GetId() int64

func (*CommentUser) GetIsFollowing

func (x *CommentUser) GetIsFollowing() bool

func (*CommentUser) GetName

func (x *CommentUser) GetName() string

func (*CommentUser) ProtoMessage

func (*CommentUser) ProtoMessage()

func (*CommentUser) ProtoReflect

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

func (*CommentUser) Reset

func (x *CommentUser) Reset()

func (*CommentUser) String

func (x *CommentUser) 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"` // 收藏夹描述
	// 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) 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 {
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCollectionResponse) Descriptor deprecated

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

Deprecated: Use CreateCollectionResponse.ProtoReflect.Descriptor instead.

func (*CreateCollectionResponse) GetCollection

func (x *CreateCollectionResponse) GetCollection() *Collection

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 {

	// @gotags: json:"videoId,omitempty,string"
	VideoId int64  `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`                 // 评论内容
	// @gotags: json:"parentId,omitempty,string"
	ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// @gotags: json:"replyUserId,omitempty,string"
	ReplyUserId int64 `protobuf:"varint,4,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,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) GetParentId

func (x *CreateCommentRequest) GetParentId() int64

func (*CreateCommentRequest) GetReplyUserId

func (x *CreateCommentRequest) GetReplyUserId() 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 {
	Comment *Comment `protobuf:"bytes,1,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) 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 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)
	ListFavoriteVideo(ctx context.Context, in *ListFavoriteVideoRequest, opts ...grpc.CallOption) (*ListFavoriteVideoResponse, 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 FavoriteServiceHTTPClient

type FavoriteServiceHTTPClient interface {
	AddFavorite(ctx context.Context, req *AddFavoriteRequest, opts ...http.CallOption) (rsp *AddFavoriteResponse, err error)
	ListFavoriteVideo(ctx context.Context, req *ListFavoriteVideoRequest, opts ...http.CallOption) (rsp *ListFavoriteVideoResponse, err error)
	RemoveFavorite(ctx context.Context, req *RemoveFavoriteRequest, opts ...http.CallOption) (rsp *RemoveFavoriteResponse, err error)
}

func NewFavoriteServiceHTTPClient

func NewFavoriteServiceHTTPClient(client *http.Client) FavoriteServiceHTTPClient

type FavoriteServiceHTTPClientImpl

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

func (*FavoriteServiceHTTPClientImpl) AddFavorite

func (*FavoriteServiceHTTPClientImpl) ListFavoriteVideo

func (*FavoriteServiceHTTPClientImpl) RemoveFavorite

type FavoriteServiceServer

type FavoriteServiceServer interface {
	AddFavorite(context.Context, *AddFavoriteRequest) (*AddFavoriteResponse, error)
	RemoveFavorite(context.Context, *RemoveFavoriteRequest) (*RemoveFavoriteResponse, error)
	ListFavoriteVideo(context.Context, *ListFavoriteVideoRequest) (*ListFavoriteVideoResponse, 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 {

	// @gotags: json:"latest_time,omitempty,string"
	LatestTime int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	// @gotags: json:"user_id,omitempty,string"
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// @gotags: json:"feed_num,omitempty,string"
	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"`
	// @gotags: json:"next_time,omitempty,string"
	NextTime int64 `protobuf:"varint,3,opt,name=next_time,json=nextTime,proto3" json:"next_time,omitempty"` // 本次返回的视频中,发布最早的时间,作为下次请求时的latest_time
	// 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) GetNextTime

func (x *FeedShortVideoResponse) GetNextTime() int64

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 FileServiceClient

type FileServiceClient interface {
	PreSignUploadingPublicFile(ctx context.Context, in *PreSignUploadPublicFileRequest, opts ...grpc.CallOption) (*PreSignUploadPublicFileResponse, error)
	ReportPublicFileUploaded(ctx context.Context, in *ReportPublicFileUploadedRequest, opts ...grpc.CallOption) (*ReportPublicFileUploadedResponse, error)
}

FileServiceClient is the client API for FileService 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 FileServiceHTTPClient

type FileServiceHTTPClient interface {
	PreSignUploadingPublicFile(ctx context.Context, req *PreSignUploadPublicFileRequest, opts ...http.CallOption) (rsp *PreSignUploadPublicFileResponse, err error)
	ReportPublicFileUploaded(ctx context.Context, req *ReportPublicFileUploadedRequest, opts ...http.CallOption) (rsp *ReportPublicFileUploadedResponse, err error)
}

func NewFileServiceHTTPClient

func NewFileServiceHTTPClient(client *http.Client) FileServiceHTTPClient

type FileServiceHTTPClientImpl

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

func (*FileServiceHTTPClientImpl) PreSignUploadingPublicFile

func (*FileServiceHTTPClientImpl) ReportPublicFileUploaded

type FileServiceHTTPServer

type FileServiceHTTPServer interface {
	PreSignUploadingPublicFile(context.Context, *PreSignUploadPublicFileRequest) (*PreSignUploadPublicFileResponse, error)
	ReportPublicFileUploaded(context.Context, *ReportPublicFileUploadedRequest) (*ReportPublicFileUploadedResponse, error)
}

type FileServiceServer

type FileServiceServer interface {
	PreSignUploadingPublicFile(context.Context, *PreSignUploadPublicFileRequest) (*PreSignUploadPublicFileResponse, error)
	ReportPublicFileUploaded(context.Context, *ReportPublicFileUploadedRequest) (*ReportPublicFileUploadedResponse, error)
	// contains filtered or unexported methods
}

FileServiceServer is the server API for FileService service. All implementations must embed UnimplementedFileServiceServer for forward compatibility.

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 FollowServiceHTTPClient

type FollowServiceHTTPClient interface {
	AddFollow(ctx context.Context, req *AddFollowRequest, opts ...http.CallOption) (rsp *AddFollowResponse, err error)
	ListFollowing(ctx context.Context, req *ListFollowingRequest, opts ...http.CallOption) (rsp *ListFollowingResponse, err error)
	RemoveFollow(ctx context.Context, req *RemoveFollowRequest, opts ...http.CallOption) (rsp *RemoveFollowResponse, err error)
}

func NewFollowServiceHTTPClient

func NewFollowServiceHTTPClient(client *http.Client) FollowServiceHTTPClient

type FollowServiceHTTPClientImpl

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

func (*FollowServiceHTTPClientImpl) AddFollow

func (*FollowServiceHTTPClientImpl) ListFollowing

func (*FollowServiceHTTPClientImpl) RemoveFollow

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 FollowUser

type FollowUser struct {

	// @gotags: json:"id,omitempty,string"
	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"`                               // 用户头像
	IsFollowing bool   `protobuf:"varint,4,opt,name=is_following,json=isFollowing,proto3" json:"is_following,omitempty"` // 当前用户是否关注
	// contains filtered or unexported fields
}

func (*FollowUser) Descriptor deprecated

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

Deprecated: Use FollowUser.ProtoReflect.Descriptor instead.

func (*FollowUser) GetAvatar

func (x *FollowUser) GetAvatar() string

func (*FollowUser) GetId

func (x *FollowUser) GetId() int64

func (*FollowUser) GetIsFollowing

func (x *FollowUser) GetIsFollowing() bool

func (*FollowUser) GetName

func (x *FollowUser) GetName() string

func (*FollowUser) ProtoMessage

func (*FollowUser) ProtoMessage()

func (*FollowUser) ProtoReflect

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

func (*FollowUser) Reset

func (x *FollowUser) Reset()

func (*FollowUser) String

func (x *FollowUser) String() string

type GetUserInfoRequest

type GetUserInfoRequest struct {

	// @gotags: json:"user_id,omitempty,string"
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoRequest) Descriptor deprecated

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

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

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

type GetUserInfoResponse

type GetUserInfoResponse struct {
	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) 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

type GetVerificationCodeRequest

type GetVerificationCodeRequest 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"`
	// contains filtered or unexported fields
}

func (*GetVerificationCodeRequest) Descriptor deprecated

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

Deprecated: Use GetVerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*GetVerificationCodeRequest) GetEmail

func (x *GetVerificationCodeRequest) GetEmail() string

func (*GetVerificationCodeRequest) GetMobile

func (x *GetVerificationCodeRequest) GetMobile() string

func (*GetVerificationCodeRequest) ProtoMessage

func (*GetVerificationCodeRequest) ProtoMessage()

func (*GetVerificationCodeRequest) ProtoReflect

func (*GetVerificationCodeRequest) Reset

func (x *GetVerificationCodeRequest) Reset()

func (*GetVerificationCodeRequest) String

func (x *GetVerificationCodeRequest) String() string

type GetVerificationCodeResponse

type GetVerificationCodeResponse struct {

	// @gotags: json:"code_id,omitempty,string"
	CodeId int64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVerificationCodeResponse) Descriptor deprecated

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

Deprecated: Use GetVerificationCodeResponse.ProtoReflect.Descriptor instead.

func (*GetVerificationCodeResponse) GetCodeId

func (x *GetVerificationCodeResponse) GetCodeId() int64

func (*GetVerificationCodeResponse) ProtoMessage

func (*GetVerificationCodeResponse) ProtoMessage()

func (*GetVerificationCodeResponse) ProtoReflect

func (*GetVerificationCodeResponse) Reset

func (x *GetVerificationCodeResponse) Reset()

func (*GetVerificationCodeResponse) String

func (x *GetVerificationCodeResponse) String() string

type GetVideoByIdRequest

type GetVideoByIdRequest struct {

	// @gotags: json:"video_id,omitempty,string"
	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 {
	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) 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 ListChildCommentRequest

type ListChildCommentRequest struct {

	// @gotags: json:"commentId,omitempty,string"
	CommentId  int64              `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChildCommentRequest) Descriptor deprecated

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

Deprecated: Use ListChildCommentRequest.ProtoReflect.Descriptor instead.

func (*ListChildCommentRequest) GetCommentId

func (x *ListChildCommentRequest) GetCommentId() int64

func (*ListChildCommentRequest) GetPagination

func (x *ListChildCommentRequest) GetPagination() *PaginationRequest

func (*ListChildCommentRequest) ProtoMessage

func (*ListChildCommentRequest) ProtoMessage()

func (*ListChildCommentRequest) ProtoReflect

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

func (*ListChildCommentRequest) Reset

func (x *ListChildCommentRequest) Reset()

func (*ListChildCommentRequest) String

func (x *ListChildCommentRequest) String() string

type ListChildCommentResponse

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

func (*ListChildCommentResponse) Descriptor deprecated

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

Deprecated: Use ListChildCommentResponse.ProtoReflect.Descriptor instead.

func (*ListChildCommentResponse) GetComments

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

func (*ListChildCommentResponse) GetPagination

func (x *ListChildCommentResponse) GetPagination() *PaginationResponse

func (*ListChildCommentResponse) ProtoMessage

func (*ListChildCommentResponse) ProtoMessage()

func (*ListChildCommentResponse) ProtoReflect

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

func (*ListChildCommentResponse) Reset

func (x *ListChildCommentResponse) Reset()

func (*ListChildCommentResponse) String

func (x *ListChildCommentResponse) String() string

type ListCollectionRequest

type ListCollectionRequest struct {
	Pagination *PaginationRequest `protobuf:"bytes,1,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) 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"`
	Pagination  *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,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) GetPagination

func (x *ListCollectionResponse) GetPagination() *PaginationResponse

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 ListComment4VideoRequest

type ListComment4VideoRequest struct {

	// @gotags: json:"videoId,omitempty,string"
	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 {
	Comments   []*Comment          `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	Pagination *PaginationResponse `protobuf:"bytes,2,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) 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 ListFavoriteVideoRequest

type ListFavoriteVideoRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Page   int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Size   int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFavoriteVideoRequest) Descriptor deprecated

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

Deprecated: Use ListFavoriteVideoRequest.ProtoReflect.Descriptor instead.

func (*ListFavoriteVideoRequest) GetPage

func (x *ListFavoriteVideoRequest) GetPage() int32

func (*ListFavoriteVideoRequest) GetSize

func (x *ListFavoriteVideoRequest) GetSize() int32

func (*ListFavoriteVideoRequest) GetUserId

func (x *ListFavoriteVideoRequest) GetUserId() int64

func (*ListFavoriteVideoRequest) ProtoMessage

func (*ListFavoriteVideoRequest) ProtoMessage()

func (*ListFavoriteVideoRequest) ProtoReflect

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

func (*ListFavoriteVideoRequest) Reset

func (x *ListFavoriteVideoRequest) Reset()

func (*ListFavoriteVideoRequest) String

func (x *ListFavoriteVideoRequest) String() string

type ListFavoriteVideoResponse

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

func (*ListFavoriteVideoResponse) Descriptor deprecated

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

Deprecated: Use ListFavoriteVideoResponse.ProtoReflect.Descriptor instead.

func (*ListFavoriteVideoResponse) GetPagination

func (x *ListFavoriteVideoResponse) GetPagination() *PaginationResponse

func (*ListFavoriteVideoResponse) GetVideos

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

func (*ListFavoriteVideoResponse) ProtoMessage

func (*ListFavoriteVideoResponse) ProtoMessage()

func (*ListFavoriteVideoResponse) ProtoReflect

func (*ListFavoriteVideoResponse) Reset

func (x *ListFavoriteVideoResponse) Reset()

func (*ListFavoriteVideoResponse) String

func (x *ListFavoriteVideoResponse) String() string

type ListFollowingRequest

type ListFollowingRequest struct {

	// @gotags: json:"userId,omitempty,string"
	UserId     int64              `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	Type       FollowType         `protobuf:"varint,2,opt,name=type,proto3,enum=gateway.v1.FollowType" json:"type,omitempty"`
	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) GetPagination

func (x *ListFollowingRequest) GetPagination() *PaginationRequest

func (*ListFollowingRequest) GetType

func (x *ListFollowingRequest) GetType() FollowType

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 {
	Users      []*FollowUser       `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFollowingResponse) Descriptor deprecated

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

Deprecated: Use ListFollowingResponse.ProtoReflect.Descriptor instead.

func (*ListFollowingResponse) GetPagination

func (x *ListFollowingResponse) GetPagination() *PaginationResponse

func (*ListFollowingResponse) GetUsers

func (x *ListFollowingResponse) GetUsers() []*FollowUser

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 {

	// @gotags: json:"user_id,omitempty,string"
	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 (*ListPublishedVideoRequest) Descriptor deprecated

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

Deprecated: Use ListPublishedVideoRequest.ProtoReflect.Descriptor instead.

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 {
	VideoList  []*Video            `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,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) GetPagination

func (x *ListPublishedVideoResponse) GetPagination() *PaginationResponse

func (*ListPublishedVideoResponse) GetVideoList

func (x *ListPublishedVideoResponse) GetVideoList() []*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 ListVideo4CollectionRequest

type ListVideo4CollectionRequest struct {

	// @gotags: json:"collectionId,omitempty,string"
	CollectionId int64              `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // 收藏夹id
	Pagination   *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVideo4CollectionRequest) Descriptor deprecated

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

Deprecated: Use ListVideo4CollectionRequest.ProtoReflect.Descriptor instead.

func (*ListVideo4CollectionRequest) GetCollectionId

func (x *ListVideo4CollectionRequest) GetCollectionId() int64

func (*ListVideo4CollectionRequest) GetPagination

func (x *ListVideo4CollectionRequest) GetPagination() *PaginationRequest

func (*ListVideo4CollectionRequest) ProtoMessage

func (*ListVideo4CollectionRequest) ProtoMessage()

func (*ListVideo4CollectionRequest) ProtoReflect

func (*ListVideo4CollectionRequest) Reset

func (x *ListVideo4CollectionRequest) Reset()

func (*ListVideo4CollectionRequest) String

func (x *ListVideo4CollectionRequest) String() string

type ListVideo4CollectionResponse

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

func (*ListVideo4CollectionResponse) Descriptor deprecated

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

Deprecated: Use ListVideo4CollectionResponse.ProtoReflect.Descriptor instead.

func (*ListVideo4CollectionResponse) GetPagination

func (*ListVideo4CollectionResponse) GetVideos

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

func (*ListVideo4CollectionResponse) ProtoMessage

func (*ListVideo4CollectionResponse) ProtoMessage()

func (*ListVideo4CollectionResponse) ProtoReflect

func (*ListVideo4CollectionResponse) Reset

func (x *ListVideo4CollectionResponse) Reset()

func (*ListVideo4CollectionResponse) String

type LoginRequest

type LoginRequest 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"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetMobile

func (x *LoginRequest) GetMobile() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) 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

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

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

type PreSign4UploadRequest

type PreSign4UploadRequest struct {

	// md5 hash
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// 文件类型,默认mp4
	FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	// 文件大小,单位byte
	// @gotags: json:"size,omitempty,string"
	Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// 文件名
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

通用小文件单次上传请求消息类型

func (*PreSign4UploadRequest) Descriptor deprecated

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

Deprecated: Use PreSign4UploadRequest.ProtoReflect.Descriptor instead.

func (*PreSign4UploadRequest) GetFileType

func (x *PreSign4UploadRequest) GetFileType() string

func (*PreSign4UploadRequest) GetFilename

func (x *PreSign4UploadRequest) GetFilename() string

func (*PreSign4UploadRequest) GetHash

func (x *PreSign4UploadRequest) GetHash() string

func (*PreSign4UploadRequest) GetSize

func (x *PreSign4UploadRequest) GetSize() int64

func (*PreSign4UploadRequest) ProtoMessage

func (*PreSign4UploadRequest) ProtoMessage()

func (*PreSign4UploadRequest) ProtoReflect

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

func (*PreSign4UploadRequest) Reset

func (x *PreSign4UploadRequest) Reset()

func (*PreSign4UploadRequest) String

func (x *PreSign4UploadRequest) String() string

type PreSign4UploadResponse

type PreSign4UploadResponse struct {

	// minio上传地址
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// 文件id
	// @gotags: json:"file_id,omitempty,string"
	FileId int64 `protobuf:"varint,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

通用小文件单次上传响应消息类型

func (*PreSign4UploadResponse) Descriptor deprecated

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

Deprecated: Use PreSign4UploadResponse.ProtoReflect.Descriptor instead.

func (*PreSign4UploadResponse) GetFileId

func (x *PreSign4UploadResponse) GetFileId() int64

func (*PreSign4UploadResponse) GetUrl

func (x *PreSign4UploadResponse) GetUrl() string

func (*PreSign4UploadResponse) ProtoMessage

func (*PreSign4UploadResponse) ProtoMessage()

func (*PreSign4UploadResponse) ProtoReflect

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

func (*PreSign4UploadResponse) Reset

func (x *PreSign4UploadResponse) Reset()

func (*PreSign4UploadResponse) String

func (x *PreSign4UploadResponse) String() string

type PreSign4UploadVideoRequest

type PreSign4UploadVideoRequest struct {

	// md5 hash
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// 文件类型,默认mp4
	FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	// 文件大小,单位byte
	// @gotags: json:"size,omitempty,string"
	Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// 文件名
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

预注册上传视频请求消息类型

func (*PreSign4UploadVideoRequest) Descriptor deprecated

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

Deprecated: Use PreSign4UploadVideoRequest.ProtoReflect.Descriptor instead.

func (*PreSign4UploadVideoRequest) GetFileType

func (x *PreSign4UploadVideoRequest) GetFileType() string

func (*PreSign4UploadVideoRequest) GetFilename

func (x *PreSign4UploadVideoRequest) GetFilename() string

func (*PreSign4UploadVideoRequest) GetHash

func (x *PreSign4UploadVideoRequest) GetHash() string

func (*PreSign4UploadVideoRequest) GetSize

func (x *PreSign4UploadVideoRequest) GetSize() int64

func (*PreSign4UploadVideoRequest) ProtoMessage

func (*PreSign4UploadVideoRequest) ProtoMessage()

func (*PreSign4UploadVideoRequest) ProtoReflect

func (*PreSign4UploadVideoRequest) Reset

func (x *PreSign4UploadVideoRequest) Reset()

func (*PreSign4UploadVideoRequest) String

func (x *PreSign4UploadVideoRequest) String() string

type PreSign4UploadVideoResponse

type PreSign4UploadVideoResponse struct {

	// minio上传地址
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// 文件id
	// @gotags: json:"file_id,omitempty,string"
	FileId int64 `protobuf:"varint,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

预注册上传视频响应消息类型

func (*PreSign4UploadVideoResponse) Descriptor deprecated

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

Deprecated: Use PreSign4UploadVideoResponse.ProtoReflect.Descriptor instead.

func (*PreSign4UploadVideoResponse) GetFileId

func (x *PreSign4UploadVideoResponse) GetFileId() int64

func (*PreSign4UploadVideoResponse) GetUrl

func (x *PreSign4UploadVideoResponse) GetUrl() string

func (*PreSign4UploadVideoResponse) ProtoMessage

func (*PreSign4UploadVideoResponse) ProtoMessage()

func (*PreSign4UploadVideoResponse) ProtoReflect

func (*PreSign4UploadVideoResponse) Reset

func (x *PreSign4UploadVideoResponse) Reset()

func (*PreSign4UploadVideoResponse) String

func (x *PreSign4UploadVideoResponse) String() string

type PreSignUploadPublicFileRequest

type PreSignUploadPublicFileRequest struct {
	Hash     string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	// gotags: json`size,omitempty,string`
	Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*PreSignUploadPublicFileRequest) Descriptor deprecated

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

Deprecated: Use PreSignUploadPublicFileRequest.ProtoReflect.Descriptor instead.

func (*PreSignUploadPublicFileRequest) GetFileType

func (x *PreSignUploadPublicFileRequest) GetFileType() string

func (*PreSignUploadPublicFileRequest) GetHash

func (*PreSignUploadPublicFileRequest) GetSize

func (*PreSignUploadPublicFileRequest) ProtoMessage

func (*PreSignUploadPublicFileRequest) ProtoMessage()

func (*PreSignUploadPublicFileRequest) ProtoReflect

func (*PreSignUploadPublicFileRequest) Reset

func (x *PreSignUploadPublicFileRequest) Reset()

func (*PreSignUploadPublicFileRequest) String

type PreSignUploadPublicFileResponse

type PreSignUploadPublicFileResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// @gotags: json:"file_id,omitempty,string"
	FileId int64 `protobuf:"varint,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PreSignUploadPublicFileResponse) Descriptor deprecated

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

Deprecated: Use PreSignUploadPublicFileResponse.ProtoReflect.Descriptor instead.

func (*PreSignUploadPublicFileResponse) GetFileId

func (x *PreSignUploadPublicFileResponse) GetFileId() int64

func (*PreSignUploadPublicFileResponse) GetUrl

func (*PreSignUploadPublicFileResponse) ProtoMessage

func (*PreSignUploadPublicFileResponse) ProtoMessage()

func (*PreSignUploadPublicFileResponse) ProtoReflect

func (*PreSignUploadPublicFileResponse) Reset

func (*PreSignUploadPublicFileResponse) String

type RegisterRequest

type RegisterRequest 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"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// @gotags: json:"code_id,omitempty,string"
	CodeId int64  `protobuf:"varint,4,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	Code   string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetCode

func (x *RegisterRequest) GetCode() string

func (*RegisterRequest) GetCodeId

func (x *RegisterRequest) GetCodeId() int64

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetMobile

func (x *RegisterRequest) GetMobile() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {

	// @gotags: json:"user_id,omitempty,string"
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetUserId

func (x *RegisterResponse) GetUserId() int64

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type RemoveCollectionRequest

type RemoveCollectionRequest struct {

	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 收藏夹id
	// 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 {
	// contains filtered or unexported fields
}

func (*RemoveCollectionResponse) Descriptor deprecated

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

Deprecated: Use RemoveCollectionResponse.ProtoReflect.Descriptor instead.

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 {

	// @gotags: json:"id,omitempty,string"
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"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) GetId

func (x *RemoveCommentRequest) GetId() 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 {
	// contains filtered or unexported fields
}

func (*RemoveCommentResponse) Descriptor deprecated

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

Deprecated: Use RemoveCommentResponse.ProtoReflect.Descriptor instead.

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=gateway.v1.FavoriteTarget" json:"target,omitempty"`
	Type   FavoriteType   `protobuf:"varint,2,opt,name=type,proto3,enum=gateway.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 {
	// contains filtered or unexported fields
}

func (*RemoveFavoriteResponse) Descriptor deprecated

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

Deprecated: Use RemoveFavoriteResponse.ProtoReflect.Descriptor instead.

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 {

	// @gotags: json:"userId,omitempty,string"
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	// contains filtered or unexported fields
}

func (*RemoveFollowRequest) Descriptor deprecated

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

Deprecated: Use RemoveFollowRequest.ProtoReflect.Descriptor instead.

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 {
	// contains filtered or unexported fields
}

func (*RemoveFollowResponse) Descriptor deprecated

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

Deprecated: Use RemoveFollowResponse.ProtoReflect.Descriptor instead.

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 {

	// @gotags: json:"collectionId,omitempty,string"
	CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // 收藏夹id
	// @gotags: json:"videoId,omitempty,string"
	VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id
	// 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 {
	// contains filtered or unexported fields
}

func (*RemoveVideoFromCollectionResponse) Descriptor deprecated

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

Deprecated: Use RemoveVideoFromCollectionResponse.ProtoReflect.Descriptor instead.

func (*RemoveVideoFromCollectionResponse) ProtoMessage

func (*RemoveVideoFromCollectionResponse) ProtoMessage()

func (*RemoveVideoFromCollectionResponse) ProtoReflect

func (*RemoveVideoFromCollectionResponse) Reset

func (*RemoveVideoFromCollectionResponse) String

type ReportFinishUploadRequest

type ReportFinishUploadRequest struct {

	// 文件id
	// @gotags: json:"file_id,omitempty,string"
	FileId int64 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

通用确认上传完成请求消息类型

func (*ReportFinishUploadRequest) Descriptor deprecated

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

Deprecated: Use ReportFinishUploadRequest.ProtoReflect.Descriptor instead.

func (*ReportFinishUploadRequest) GetFileId

func (x *ReportFinishUploadRequest) GetFileId() int64

func (*ReportFinishUploadRequest) ProtoMessage

func (*ReportFinishUploadRequest) ProtoMessage()

func (*ReportFinishUploadRequest) ProtoReflect

func (*ReportFinishUploadRequest) Reset

func (x *ReportFinishUploadRequest) Reset()

func (*ReportFinishUploadRequest) String

func (x *ReportFinishUploadRequest) String() string

type ReportFinishUploadResponse

type ReportFinishUploadResponse struct {

	// url
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

通用确认上传完成响应消息类型

func (*ReportFinishUploadResponse) Descriptor deprecated

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

Deprecated: Use ReportFinishUploadResponse.ProtoReflect.Descriptor instead.

func (*ReportFinishUploadResponse) GetUrl

func (x *ReportFinishUploadResponse) GetUrl() string

func (*ReportFinishUploadResponse) ProtoMessage

func (*ReportFinishUploadResponse) ProtoMessage()

func (*ReportFinishUploadResponse) ProtoReflect

func (*ReportFinishUploadResponse) Reset

func (x *ReportFinishUploadResponse) Reset()

func (*ReportFinishUploadResponse) String

func (x *ReportFinishUploadResponse) String() string

type ReportPublicFileUploadedRequest

type ReportPublicFileUploadedRequest struct {
	FileId int64 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportPublicFileUploadedRequest) Descriptor deprecated

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

Deprecated: Use ReportPublicFileUploadedRequest.ProtoReflect.Descriptor instead.

func (*ReportPublicFileUploadedRequest) GetFileId

func (x *ReportPublicFileUploadedRequest) GetFileId() int64

func (*ReportPublicFileUploadedRequest) ProtoMessage

func (*ReportPublicFileUploadedRequest) ProtoMessage()

func (*ReportPublicFileUploadedRequest) ProtoReflect

func (*ReportPublicFileUploadedRequest) Reset

func (*ReportPublicFileUploadedRequest) String

type ReportPublicFileUploadedResponse

type ReportPublicFileUploadedResponse struct {
	ObjectName string `protobuf:"bytes,1,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportPublicFileUploadedResponse) Descriptor deprecated

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

Deprecated: Use ReportPublicFileUploadedResponse.ProtoReflect.Descriptor instead.

func (*ReportPublicFileUploadedResponse) GetObjectName

func (x *ReportPublicFileUploadedResponse) GetObjectName() string

func (*ReportPublicFileUploadedResponse) ProtoMessage

func (*ReportPublicFileUploadedResponse) ProtoMessage()

func (*ReportPublicFileUploadedResponse) ProtoReflect

func (*ReportPublicFileUploadedResponse) Reset

func (*ReportPublicFileUploadedResponse) String

type ReportVideoFinishUploadRequest

type ReportVideoFinishUploadRequest struct {

	// 文件id
	// @gotags: json:"file_id,omitempty,string"
	FileId int64 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// 视频标题
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// 视频封面地址
	CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
	// 视频描述
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// 视频地址
	VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"`
	// contains filtered or unexported fields
}

确认视频上传完成请求消息类型

func (*ReportVideoFinishUploadRequest) Descriptor deprecated

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

Deprecated: Use ReportVideoFinishUploadRequest.ProtoReflect.Descriptor instead.

func (*ReportVideoFinishUploadRequest) GetCoverUrl

func (x *ReportVideoFinishUploadRequest) GetCoverUrl() string

func (*ReportVideoFinishUploadRequest) GetDescription

func (x *ReportVideoFinishUploadRequest) GetDescription() string

func (*ReportVideoFinishUploadRequest) GetFileId

func (x *ReportVideoFinishUploadRequest) GetFileId() int64

func (*ReportVideoFinishUploadRequest) GetTitle

func (x *ReportVideoFinishUploadRequest) GetTitle() string

func (*ReportVideoFinishUploadRequest) GetVideoUrl

func (x *ReportVideoFinishUploadRequest) GetVideoUrl() string

func (*ReportVideoFinishUploadRequest) ProtoMessage

func (*ReportVideoFinishUploadRequest) ProtoMessage()

func (*ReportVideoFinishUploadRequest) ProtoReflect

func (*ReportVideoFinishUploadRequest) Reset

func (x *ReportVideoFinishUploadRequest) Reset()

func (*ReportVideoFinishUploadRequest) String

type ReportVideoFinishUploadResponse

type ReportVideoFinishUploadResponse struct {

	// 视频id
	// @gotags: json:"video_id,omitempty,string"
	VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

确认视频上传完成响应消息类型

func (*ReportVideoFinishUploadResponse) Descriptor deprecated

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

Deprecated: Use ReportVideoFinishUploadResponse.ProtoReflect.Descriptor instead.

func (*ReportVideoFinishUploadResponse) GetVideoId

func (x *ReportVideoFinishUploadResponse) GetVideoId() int64

func (*ReportVideoFinishUploadResponse) ProtoMessage

func (*ReportVideoFinishUploadResponse) ProtoMessage()

func (*ReportVideoFinishUploadResponse) ProtoReflect

func (*ReportVideoFinishUploadResponse) Reset

func (*ReportVideoFinishUploadResponse) 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=gateway.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

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

type ShortVideoCoreVideoServiceClient

type ShortVideoCoreVideoServiceClient interface {
	// 预注册上传视频
	PreSign4UploadVideo(ctx context.Context, in *PreSign4UploadVideoRequest, opts ...grpc.CallOption) (*PreSign4UploadVideoResponse, error)
	// 预注册上传封面
	PreSign4UploadCover(ctx context.Context, in *PreSign4UploadRequest, opts ...grpc.CallOption) (*PreSign4UploadResponse, error)
	// 通用确认上传完成
	ReportFinishUpload(ctx context.Context, in *ReportFinishUploadRequest, opts ...grpc.CallOption) (*ReportFinishUploadResponse, error)
	// 确认视频上传完成
	ReportVideoFinishUpload(ctx context.Context, in *ReportVideoFinishUploadRequest, opts ...grpc.CallOption) (*ReportVideoFinishUploadResponse, error)
	// 刷视频
	FeedShortVideo(ctx context.Context, in *FeedShortVideoRequest, opts ...grpc.CallOption) (*FeedShortVideoResponse, error)
	// 获取视频信息
	GetVideoById(ctx context.Context, in *GetVideoByIdRequest, opts ...grpc.CallOption) (*GetVideoByIdResponse, error)
	// 获取当前用户的发布视频列表
	ListPublishedVideo(ctx context.Context, in *ListPublishedVideoRequest, opts ...grpc.CallOption) (*ListPublishedVideoResponse, error)
}

ShortVideoCoreVideoServiceClient is the client API for ShortVideoCoreVideoService 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 ShortVideoCoreVideoServiceHTTPClient

type ShortVideoCoreVideoServiceHTTPClient 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)
	PreSign4UploadCover(ctx context.Context, req *PreSign4UploadRequest, opts ...http.CallOption) (rsp *PreSign4UploadResponse, err error)
	PreSign4UploadVideo(ctx context.Context, req *PreSign4UploadVideoRequest, opts ...http.CallOption) (rsp *PreSign4UploadVideoResponse, err error)
	ReportFinishUpload(ctx context.Context, req *ReportFinishUploadRequest, opts ...http.CallOption) (rsp *ReportFinishUploadResponse, err error)
	ReportVideoFinishUpload(ctx context.Context, req *ReportVideoFinishUploadRequest, opts ...http.CallOption) (rsp *ReportVideoFinishUploadResponse, err error)
}

func NewShortVideoCoreVideoServiceHTTPClient

func NewShortVideoCoreVideoServiceHTTPClient(client *http.Client) ShortVideoCoreVideoServiceHTTPClient

type ShortVideoCoreVideoServiceHTTPClientImpl

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

func (*ShortVideoCoreVideoServiceHTTPClientImpl) FeedShortVideo

func (*ShortVideoCoreVideoServiceHTTPClientImpl) GetVideoById

func (*ShortVideoCoreVideoServiceHTTPClientImpl) ListPublishedVideo

func (*ShortVideoCoreVideoServiceHTTPClientImpl) PreSign4UploadCover

func (*ShortVideoCoreVideoServiceHTTPClientImpl) PreSign4UploadVideo

func (*ShortVideoCoreVideoServiceHTTPClientImpl) ReportFinishUpload

func (*ShortVideoCoreVideoServiceHTTPClientImpl) ReportVideoFinishUpload

type ShortVideoCoreVideoServiceHTTPServer

type ShortVideoCoreVideoServiceHTTPServer interface {
	// FeedShortVideo 刷视频
	FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error)
	// GetVideoById 获取视频信息
	GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error)
	// ListPublishedVideo 获取当前用户的发布视频列表
	ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error)
	// PreSign4UploadCover 预注册上传封面
	PreSign4UploadCover(context.Context, *PreSign4UploadRequest) (*PreSign4UploadResponse, error)
	// PreSign4UploadVideo 预注册上传视频
	PreSign4UploadVideo(context.Context, *PreSign4UploadVideoRequest) (*PreSign4UploadVideoResponse, error)
	// ReportFinishUpload 通用确认上传完成
	ReportFinishUpload(context.Context, *ReportFinishUploadRequest) (*ReportFinishUploadResponse, error)
	// ReportVideoFinishUpload 确认视频上传完成
	ReportVideoFinishUpload(context.Context, *ReportVideoFinishUploadRequest) (*ReportVideoFinishUploadResponse, error)
}

type ShortVideoCoreVideoServiceServer

type ShortVideoCoreVideoServiceServer interface {
	// 预注册上传视频
	PreSign4UploadVideo(context.Context, *PreSign4UploadVideoRequest) (*PreSign4UploadVideoResponse, error)
	// 预注册上传封面
	PreSign4UploadCover(context.Context, *PreSign4UploadRequest) (*PreSign4UploadResponse, error)
	// 通用确认上传完成
	ReportFinishUpload(context.Context, *ReportFinishUploadRequest) (*ReportFinishUploadResponse, error)
	// 确认视频上传完成
	ReportVideoFinishUpload(context.Context, *ReportVideoFinishUploadRequest) (*ReportVideoFinishUploadResponse, error)
	// 刷视频
	FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error)
	// 获取视频信息
	GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error)
	// 获取当前用户的发布视频列表
	ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error)
	// contains filtered or unexported methods
}

ShortVideoCoreVideoServiceServer is the server API for ShortVideoCoreVideoService service. All implementations must embed UnimplementedShortVideoCoreVideoServiceServer for forward compatibility.

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=gateway.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

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 UnbindUserVoucherRequest

type UnbindUserVoucherRequest struct {
	VoucherType VoucherType `protobuf:"varint,1,opt,name=voucher_type,json=voucherType,proto3,enum=gateway.v1.VoucherType" json:"voucher_type,omitempty"`
	Voucher     string      `protobuf:"bytes,2,opt,name=voucher,proto3" json:"voucher,omitempty"`
	// contains filtered or unexported fields
}

func (*UnbindUserVoucherRequest) Descriptor deprecated

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

Deprecated: Use UnbindUserVoucherRequest.ProtoReflect.Descriptor instead.

func (*UnbindUserVoucherRequest) GetVoucher

func (x *UnbindUserVoucherRequest) GetVoucher() string

func (*UnbindUserVoucherRequest) GetVoucherType

func (x *UnbindUserVoucherRequest) GetVoucherType() VoucherType

func (*UnbindUserVoucherRequest) ProtoMessage

func (*UnbindUserVoucherRequest) ProtoMessage()

func (*UnbindUserVoucherRequest) ProtoReflect

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

func (*UnbindUserVoucherRequest) Reset

func (x *UnbindUserVoucherRequest) Reset()

func (*UnbindUserVoucherRequest) String

func (x *UnbindUserVoucherRequest) String() string

type UnbindUserVoucherResponse

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

func (*UnbindUserVoucherResponse) Descriptor deprecated

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

Deprecated: Use UnbindUserVoucherResponse.ProtoReflect.Descriptor instead.

func (*UnbindUserVoucherResponse) ProtoMessage

func (*UnbindUserVoucherResponse) ProtoMessage()

func (*UnbindUserVoucherResponse) ProtoReflect

func (*UnbindUserVoucherResponse) Reset

func (x *UnbindUserVoucherResponse) Reset()

func (*UnbindUserVoucherResponse) String

func (x *UnbindUserVoucherResponse) String() string

type UnimplementedCollectionServiceServer

type UnimplementedCollectionServiceServer struct{}

UnimplementedCollectionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCollectionServiceServer) AddVideo2Collection

func (UnimplementedCollectionServiceServer) CreateCollection

func (UnimplementedCollectionServiceServer) ListCollection

func (UnimplementedCollectionServiceServer) ListVideo4Collection

func (UnimplementedCollectionServiceServer) RemoveCollection

func (UnimplementedCollectionServiceServer) UpdateCollection

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct{}

UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCommentServiceServer) CreateComment

func (UnimplementedCommentServiceServer) ListChildComment

func (UnimplementedCommentServiceServer) ListComment4Video

func (UnimplementedCommentServiceServer) RemoveComment

type UnimplementedFavoriteServiceServer

type UnimplementedFavoriteServiceServer struct{}

UnimplementedFavoriteServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedFavoriteServiceServer) AddFavorite

func (UnimplementedFavoriteServiceServer) ListFavoriteVideo

func (UnimplementedFavoriteServiceServer) RemoveFavorite

type UnimplementedFileServiceServer

type UnimplementedFileServiceServer struct{}

UnimplementedFileServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedFollowServiceServer

type UnimplementedFollowServiceServer struct{}

UnimplementedFollowServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedFollowServiceServer) AddFollow

func (UnimplementedFollowServiceServer) ListFollowing

func (UnimplementedFollowServiceServer) RemoveFollow

type UnimplementedShortVideoCoreVideoServiceServer

type UnimplementedShortVideoCoreVideoServiceServer struct{}

UnimplementedShortVideoCoreVideoServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedShortVideoCoreVideoServiceServer) FeedShortVideo

func (UnimplementedShortVideoCoreVideoServiceServer) GetVideoById

func (UnimplementedShortVideoCoreVideoServiceServer) ListPublishedVideo

func (UnimplementedShortVideoCoreVideoServiceServer) PreSign4UploadCover

func (UnimplementedShortVideoCoreVideoServiceServer) PreSign4UploadVideo

func (UnimplementedShortVideoCoreVideoServiceServer) ReportFinishUpload

func (UnimplementedShortVideoCoreVideoServiceServer) ReportVideoFinishUpload

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServiceServer) BindUserVoucher

func (UnimplementedUserServiceServer) GetUserInfo

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) Register

func (UnimplementedUserServiceServer) UnbindUserVoucher

func (UnimplementedUserServiceServer) UpdateUserInfo

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 UnsafeFileServiceServer

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

UnsafeFileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServiceServer 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 UnsafeShortVideoCoreVideoServiceServer

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

UnsafeShortVideoCoreVideoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShortVideoCoreVideoServiceServer 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 UpdateCollectionRequest

type UpdateCollectionRequest struct {

	// @gotags: json:"id,omitempty,string"
	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"`               // 收藏夹名称
	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 {
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionResponse) Descriptor deprecated

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

Deprecated: Use UpdateCollectionResponse.ProtoReflect.Descriptor instead.

func (*UpdateCollectionResponse) GetCollection

func (x *UpdateCollectionResponse) GetCollection() *Collection

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 UpdateUserInfoRequest

type UpdateUserInfoRequest struct {

	// @gotags: json:"user_id,omitempty,string"
	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

type UpdateUserInfoResponse

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

func (*UpdateUserInfoResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserInfoResponse.ProtoReflect.Descriptor instead.

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

type User

type User struct {

	// @gotags: json:"id,omitempty,string"
	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"`                                            // 邮箱
	// @gotags: json:"followCount,omitempty,string"
	FollowCount int64 `protobuf:"varint,8,opt,name=followCount,proto3" json:"followCount,omitempty"` // 关注总数
	// @gotags: json:"followerCount,omitempty,string"
	FollowerCount int64 `protobuf:"varint,9,opt,name=followerCount,proto3" json:"followerCount,omitempty"` // 粉丝总数
	// @gotags: json:"totalFavorited,omitempty,string"
	TotalFavorited int64 `protobuf:"varint,10,opt,name=totalFavorited,proto3" json:"totalFavorited,omitempty"` // 获赞数量
	// @gotags: json:"workCount,omitempty,string"
	WorkCount int64 `protobuf:"varint,11,opt,name=workCount,proto3" json:"workCount,omitempty"` // 作品数量
	// @gotags: json:"favoriteCount,omitempty,string"
	FavoriteCount int64 `protobuf:"varint,12,opt,name=favoriteCount,proto3" json:"favoriteCount,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

type UserServiceClient

type UserServiceClient interface {
	// 获取验证码
	GetVerificationCode(ctx context.Context, in *GetVerificationCodeRequest, opts ...grpc.CallOption) (*GetVerificationCodeResponse, error)
	// 注册
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// 登录
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// 获取用户信息
	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
	// 更新用户信息
	UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoResponse, error)
	BindUserVoucher(ctx context.Context, in *BindUserVoucherRequest, opts ...grpc.CallOption) (*BindUserVoucherResponse, error)
	UnbindUserVoucher(ctx context.Context, in *UnbindUserVoucherRequest, opts ...grpc.CallOption) (*UnbindUserVoucherResponse, 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 {
	BindUserVoucher(ctx context.Context, req *BindUserVoucherRequest, opts ...http.CallOption) (rsp *BindUserVoucherResponse, err error)
	GetUserInfo(ctx context.Context, req *GetUserInfoRequest, opts ...http.CallOption) (rsp *GetUserInfoResponse, err error)
	GetVerificationCode(ctx context.Context, req *GetVerificationCodeRequest, opts ...http.CallOption) (rsp *GetVerificationCodeResponse, err error)
	Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error)
	Register(ctx context.Context, req *RegisterRequest, opts ...http.CallOption) (rsp *RegisterResponse, err error)
	UnbindUserVoucher(ctx context.Context, req *UnbindUserVoucherRequest, opts ...http.CallOption) (rsp *UnbindUserVoucherResponse, 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) BindUserVoucher

func (*UserServiceHTTPClientImpl) GetUserInfo

func (*UserServiceHTTPClientImpl) GetVerificationCode

func (*UserServiceHTTPClientImpl) Login

func (*UserServiceHTTPClientImpl) Register

func (*UserServiceHTTPClientImpl) UnbindUserVoucher

func (*UserServiceHTTPClientImpl) UpdateUserInfo

type UserServiceHTTPServer

type UserServiceHTTPServer interface {
	BindUserVoucher(context.Context, *BindUserVoucherRequest) (*BindUserVoucherResponse, error)
	// GetUserInfo 获取用户信息
	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
	// GetVerificationCode 获取验证码
	GetVerificationCode(context.Context, *GetVerificationCodeRequest) (*GetVerificationCodeResponse, error)
	// Login 登录
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Register 注册
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	UnbindUserVoucher(context.Context, *UnbindUserVoucherRequest) (*UnbindUserVoucherResponse, error)
	// UpdateUserInfo 更新用户信息
	UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
}

type UserServiceServer

type UserServiceServer interface {
	// 获取验证码
	GetVerificationCode(context.Context, *GetVerificationCodeRequest) (*GetVerificationCodeResponse, error)
	// 注册
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// 登录
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// 获取用户信息
	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
	// 更新用户信息
	UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
	BindUserVoucher(context.Context, *BindUserVoucherRequest) (*BindUserVoucherResponse, error)
	UnbindUserVoucher(context.Context, *UnbindUserVoucherRequest) (*UnbindUserVoucherResponse, error)
	// contains filtered or unexported methods
}

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

type Video

type Video struct {

	// @gotags: json:"id,omitempty,string"
	Id       int64        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                            // 视频唯一标识
	Author   *VideoAuthor `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`                     // 视频作者信息
	PlayUrl  string       `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"`    // 视频播放地址
	CoverUrl string       `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址
	// @gotags: json:"favoriteCount,omitempty,string"
	FavoriteCount int64 `protobuf:"varint,5,opt,name=favoriteCount,proto3" json:"favoriteCount,omitempty"` // 视频的点赞总数
	// @gotags: json:"commentCount,omitempty,string"
	CommentCount int64  `protobuf:"varint,6,opt,name=commentCount,proto3" json:"commentCount,omitempty"` // 视频的评论总数
	IsFavorite   bool   `protobuf:"varint,7,opt,name=isFavorite,proto3" json:"isFavorite,omitempty"`     // true-已点赞,false-未点赞
	Title        string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`                // 视频标题
	IsCollected  bool   `protobuf:"varint,9,opt,name=isCollected,proto3" json:"isCollected,omitempty"`   // 是否已收藏
	// @gotags: json:"collectedCount,omitempty,string"
	CollectedCount int64 `protobuf:"varint,10,opt,name=collectedCount,proto3" json:"collectedCount,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() *VideoAuthor

func (*Video) GetCollectedCount

func (x *Video) GetCollectedCount() int64

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() int64

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() int64

func (*Video) GetId

func (x *Video) GetId() int64

func (*Video) GetIsCollected

func (x *Video) GetIsCollected() bool

func (*Video) GetIsFavorite

func (x *Video) GetIsFavorite() bool

func (*Video) GetPlayUrl

func (x *Video) GetPlayUrl() string

func (*Video) GetTitle

func (x *Video) GetTitle() 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 VideoAuthor

type VideoAuthor struct {

	// @gotags: json:"id,omitempty,string"
	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 bool   `protobuf:"varint,4,opt,name=isFollowing,proto3" json:"isFollowing,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoAuthor) Descriptor deprecated

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

Deprecated: Use VideoAuthor.ProtoReflect.Descriptor instead.

func (*VideoAuthor) GetAvatar

func (x *VideoAuthor) GetAvatar() string

func (*VideoAuthor) GetId

func (x *VideoAuthor) GetId() int64

func (*VideoAuthor) GetIsFollowing

func (x *VideoAuthor) GetIsFollowing() bool

func (*VideoAuthor) GetName

func (x *VideoAuthor) GetName() string

func (*VideoAuthor) ProtoMessage

func (*VideoAuthor) ProtoMessage()

func (*VideoAuthor) ProtoReflect

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

func (*VideoAuthor) Reset

func (x *VideoAuthor) Reset()

func (*VideoAuthor) String

func (x *VideoAuthor) String() string

type VoucherType

type VoucherType int32
const (
	VoucherType_PHONE VoucherType = 0
	VoucherType_EMAIL VoucherType = 1
)

func (VoucherType) Descriptor

func (VoucherType) Enum

func (x VoucherType) Enum() *VoucherType

func (VoucherType) EnumDescriptor deprecated

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

Deprecated: Use VoucherType.Descriptor instead.

func (VoucherType) Number

func (x VoucherType) Number() protoreflect.EnumNumber

func (VoucherType) String

func (x VoucherType) String() string

func (VoucherType) Type

Jump to

Keyboard shortcuts

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