v1

package
v0.0.0-...-7d1b39b Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublishService_GetPublishList_FullMethodName         = "/publish.service.v1.PublishService/GetPublishList"
	PublishService_PublishAction_FullMethodName          = "/publish.service.v1.PublishService/PublishAction"
	PublishService_FeedList_FullMethodName               = "/publish.service.v1.PublishService/FeedList"
	PublishService_GetVideoListByVideoIds_FullMethodName = "/publish.service.v1.PublishService/GetVideoListByVideoIds"
)
View Source
const OperationPublishServiceFeedList = "/publish.service.v1.PublishService/FeedList"
View Source
const OperationPublishServiceGetPublishList = "/publish.service.v1.PublishService/GetPublishList"
View Source
const OperationPublishServicePublishAction = "/publish.service.v1.PublishService/PublishAction"

Variables

View Source
var File_publish_service_v1_publish_proto protoreflect.FileDescriptor
View Source
var PublishService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "publish.service.v1.PublishService",
	HandlerType: (*PublishServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPublishList",
			Handler:    _PublishService_GetPublishList_Handler,
		},
		{
			MethodName: "PublishAction",
			Handler:    _PublishService_PublishAction_Handler,
		},
		{
			MethodName: "FeedList",
			Handler:    _PublishService_FeedList_Handler,
		},
		{
			MethodName: "GetVideoListByVideoIds",
			Handler:    _PublishService_GetVideoListByVideoIds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "publish/service/v1/publish.proto",
}

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

Functions

func RegisterPublishServiceHTTPServer

func RegisterPublishServiceHTTPServer(s *http.Server, srv PublishServiceHTTPServer)

func RegisterPublishServiceServer

func RegisterPublishServiceServer(s grpc.ServiceRegistrar, srv PublishServiceServer)

Types

type ListFeedReply

type ListFeedReply struct {

	// 状态码,0-成功,其他值-失败
	StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"`
	// 返回状态描述
	StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"`
	// 视频列表
	VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,proto3" json:"video_list,omitempty"`
	// 本次返回的视频中,发布最早的时间,作为下次请求时的latest_time
	NextTime int64 `protobuf:"varint,4,opt,name=next_time,proto3" json:"next_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFeedReply) Descriptor deprecated

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

Deprecated: Use ListFeedReply.ProtoReflect.Descriptor instead.

func (*ListFeedReply) GetNextTime

func (x *ListFeedReply) GetNextTime() int64

func (*ListFeedReply) GetStatusCode

func (x *ListFeedReply) GetStatusCode() int32

func (*ListFeedReply) GetStatusMsg

func (x *ListFeedReply) GetStatusMsg() string

func (*ListFeedReply) GetVideoList

func (x *ListFeedReply) GetVideoList() []*Video

func (*ListFeedReply) ProtoMessage

func (*ListFeedReply) ProtoMessage()

func (*ListFeedReply) ProtoReflect

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

func (*ListFeedReply) Reset

func (x *ListFeedReply) Reset()

func (*ListFeedReply) String

func (x *ListFeedReply) String() string

func (*ListFeedReply) Validate

func (m *ListFeedReply) Validate() error

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

func (*ListFeedReply) ValidateAll

func (m *ListFeedReply) ValidateAll() error

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

type ListFeedReplyMultiError

type ListFeedReplyMultiError []error

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

func (ListFeedReplyMultiError) AllErrors

func (m ListFeedReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListFeedReplyMultiError) Error

func (m ListFeedReplyMultiError) Error() string

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

type ListFeedReplyValidationError

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

ListFeedReplyValidationError is the validation error returned by ListFeedReply.Validate if the designated constraints aren't met.

func (ListFeedReplyValidationError) Cause

Cause function returns cause value.

func (ListFeedReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFeedReplyValidationError) ErrorName

func (e ListFeedReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListFeedReplyValidationError) Field

Field function returns field value.

func (ListFeedReplyValidationError) Key

Key function returns key value.

func (ListFeedReplyValidationError) Reason

Reason function returns reason value.

type ListFeedRequest

type ListFeedRequest struct {

	// 返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	LatestTime string `protobuf:"bytes,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"`
	// 用户鉴权token
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFeedRequest) Descriptor deprecated

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

Deprecated: Use ListFeedRequest.ProtoReflect.Descriptor instead.

func (*ListFeedRequest) GetLatestTime

func (x *ListFeedRequest) GetLatestTime() string

func (*ListFeedRequest) GetToken

func (x *ListFeedRequest) GetToken() string

func (*ListFeedRequest) ProtoMessage

func (*ListFeedRequest) ProtoMessage()

func (*ListFeedRequest) ProtoReflect

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

func (*ListFeedRequest) Reset

func (x *ListFeedRequest) Reset()

func (*ListFeedRequest) String

func (x *ListFeedRequest) String() string

func (*ListFeedRequest) Validate

func (m *ListFeedRequest) Validate() error

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

func (*ListFeedRequest) ValidateAll

func (m *ListFeedRequest) ValidateAll() error

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

type ListFeedRequestMultiError

type ListFeedRequestMultiError []error

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

func (ListFeedRequestMultiError) AllErrors

func (m ListFeedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListFeedRequestMultiError) Error

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

type ListFeedRequestValidationError

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

ListFeedRequestValidationError is the validation error returned by ListFeedRequest.Validate if the designated constraints aren't met.

func (ListFeedRequestValidationError) Cause

Cause function returns cause value.

func (ListFeedRequestValidationError) Error

Error satisfies the builtin error interface

func (ListFeedRequestValidationError) ErrorName

func (e ListFeedRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListFeedRequestValidationError) Field

Field function returns field value.

func (ListFeedRequestValidationError) Key

Key function returns key value.

func (ListFeedRequestValidationError) Reason

Reason function returns reason value.

type PublishActionReply

type PublishActionReply struct {

	// 状态码,0-成功,其他值-失败
	StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"`
	// 返回状态描述
	StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishActionReply) Descriptor deprecated

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

Deprecated: Use PublishActionReply.ProtoReflect.Descriptor instead.

func (*PublishActionReply) GetStatusCode

func (x *PublishActionReply) GetStatusCode() int32

func (*PublishActionReply) GetStatusMsg

func (x *PublishActionReply) GetStatusMsg() string

func (*PublishActionReply) ProtoMessage

func (*PublishActionReply) ProtoMessage()

func (*PublishActionReply) ProtoReflect

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

func (*PublishActionReply) Reset

func (x *PublishActionReply) Reset()

func (*PublishActionReply) String

func (x *PublishActionReply) String() string

func (*PublishActionReply) Validate

func (m *PublishActionReply) Validate() error

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

func (*PublishActionReply) ValidateAll

func (m *PublishActionReply) ValidateAll() error

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

type PublishActionReplyMultiError

type PublishActionReplyMultiError []error

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

func (PublishActionReplyMultiError) AllErrors

func (m PublishActionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublishActionReplyMultiError) Error

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

type PublishActionReplyValidationError

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

PublishActionReplyValidationError is the validation error returned by PublishActionReply.Validate if the designated constraints aren't met.

func (PublishActionReplyValidationError) Cause

Cause function returns cause value.

func (PublishActionReplyValidationError) Error

Error satisfies the builtin error interface

func (PublishActionReplyValidationError) ErrorName

ErrorName returns error name.

func (PublishActionReplyValidationError) Field

Field function returns field value.

func (PublishActionReplyValidationError) Key

Key function returns key value.

func (PublishActionReplyValidationError) Reason

Reason function returns reason value.

type PublishActionRequest

type PublishActionRequest struct {

	// 用户鉴权token
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// 视频数据
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// 视频标题
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishActionRequest) Descriptor deprecated

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

Deprecated: Use PublishActionRequest.ProtoReflect.Descriptor instead.

func (*PublishActionRequest) GetData

func (x *PublishActionRequest) GetData() []byte

func (*PublishActionRequest) GetTitle

func (x *PublishActionRequest) GetTitle() string

func (*PublishActionRequest) GetToken

func (x *PublishActionRequest) GetToken() string

func (*PublishActionRequest) ProtoMessage

func (*PublishActionRequest) ProtoMessage()

func (*PublishActionRequest) ProtoReflect

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

func (*PublishActionRequest) Reset

func (x *PublishActionRequest) Reset()

func (*PublishActionRequest) String

func (x *PublishActionRequest) String() string

func (*PublishActionRequest) Validate

func (m *PublishActionRequest) Validate() error

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

func (*PublishActionRequest) ValidateAll

func (m *PublishActionRequest) ValidateAll() error

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

type PublishActionRequestMultiError

type PublishActionRequestMultiError []error

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

func (PublishActionRequestMultiError) AllErrors

func (m PublishActionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublishActionRequestMultiError) Error

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

type PublishActionRequestValidationError

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

PublishActionRequestValidationError is the validation error returned by PublishActionRequest.Validate if the designated constraints aren't met.

func (PublishActionRequestValidationError) Cause

Cause function returns cause value.

func (PublishActionRequestValidationError) Error

Error satisfies the builtin error interface

func (PublishActionRequestValidationError) ErrorName

ErrorName returns error name.

func (PublishActionRequestValidationError) Field

Field function returns field value.

func (PublishActionRequestValidationError) Key

Key function returns key value.

func (PublishActionRequestValidationError) Reason

Reason function returns reason value.

type PublishListReply

type PublishListReply struct {

	// 状态码,0-成功,其他值-失败
	StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"`
	// 返回状态描述
	StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"`
	// 用户发布视频列表
	VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,proto3" json:"video_list,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishListReply) Descriptor deprecated

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

Deprecated: Use PublishListReply.ProtoReflect.Descriptor instead.

func (*PublishListReply) GetStatusCode

func (x *PublishListReply) GetStatusCode() int32

func (*PublishListReply) GetStatusMsg

func (x *PublishListReply) GetStatusMsg() string

func (*PublishListReply) GetVideoList

func (x *PublishListReply) GetVideoList() []*Video

func (*PublishListReply) ProtoMessage

func (*PublishListReply) ProtoMessage()

func (*PublishListReply) ProtoReflect

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

func (*PublishListReply) Reset

func (x *PublishListReply) Reset()

func (*PublishListReply) String

func (x *PublishListReply) String() string

func (*PublishListReply) Validate

func (m *PublishListReply) Validate() error

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

func (*PublishListReply) ValidateAll

func (m *PublishListReply) ValidateAll() error

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

type PublishListReplyMultiError

type PublishListReplyMultiError []error

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

func (PublishListReplyMultiError) AllErrors

func (m PublishListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublishListReplyMultiError) Error

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

type PublishListReplyValidationError

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

PublishListReplyValidationError is the validation error returned by PublishListReply.Validate if the designated constraints aren't met.

func (PublishListReplyValidationError) Cause

Cause function returns cause value.

func (PublishListReplyValidationError) Error

Error satisfies the builtin error interface

func (PublishListReplyValidationError) ErrorName

ErrorName returns error name.

func (PublishListReplyValidationError) Field

Field function returns field value.

func (PublishListReplyValidationError) Key

Key function returns key value.

func (PublishListReplyValidationError) Reason

Reason function returns reason value.

type PublishListRequest

type PublishListRequest struct {

	// 用户id
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 用户鉴权token
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishListRequest) Descriptor deprecated

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

Deprecated: Use PublishListRequest.ProtoReflect.Descriptor instead.

func (*PublishListRequest) GetToken

func (x *PublishListRequest) GetToken() string

func (*PublishListRequest) GetUserId

func (x *PublishListRequest) GetUserId() uint32

func (*PublishListRequest) ProtoMessage

func (*PublishListRequest) ProtoMessage()

func (*PublishListRequest) ProtoReflect

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

func (*PublishListRequest) Reset

func (x *PublishListRequest) Reset()

func (*PublishListRequest) String

func (x *PublishListRequest) String() string

func (*PublishListRequest) Validate

func (m *PublishListRequest) Validate() error

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

func (*PublishListRequest) ValidateAll

func (m *PublishListRequest) ValidateAll() error

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

type PublishListRequestMultiError

type PublishListRequestMultiError []error

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

func (PublishListRequestMultiError) AllErrors

func (m PublishListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublishListRequestMultiError) Error

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

type PublishListRequestValidationError

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

PublishListRequestValidationError is the validation error returned by PublishListRequest.Validate if the designated constraints aren't met.

func (PublishListRequestValidationError) Cause

Cause function returns cause value.

func (PublishListRequestValidationError) Error

Error satisfies the builtin error interface

func (PublishListRequestValidationError) ErrorName

ErrorName returns error name.

func (PublishListRequestValidationError) Field

Field function returns field value.

func (PublishListRequestValidationError) Key

Key function returns key value.

func (PublishListRequestValidationError) Reason

Reason function returns reason value.

type PublishServiceClient

type PublishServiceClient interface {
	// 获取用户投稿视频列表
	GetPublishList(ctx context.Context, in *PublishListRequest, opts ...grpc.CallOption) (*PublishListReply, error)
	// 用户上传视频
	PublishAction(ctx context.Context, in *PublishActionRequest, opts ...grpc.CallOption) (*PublishActionReply, error)
	// 请求 Feed List
	FeedList(ctx context.Context, in *ListFeedRequest, opts ...grpc.CallOption) (*ListFeedReply, error)
	// favorite相关服务请求根据视频id列表获取视频列表
	GetVideoListByVideoIds(ctx context.Context, in *VideoListByVideoIdsRequest, opts ...grpc.CallOption) (*VideoListReply, error)
}

PublishServiceClient is the client API for PublishService 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 PublishServiceHTTPClient

type PublishServiceHTTPClient interface {
	FeedList(ctx context.Context, req *ListFeedRequest, opts ...http.CallOption) (rsp *ListFeedReply, err error)
	GetPublishList(ctx context.Context, req *PublishListRequest, opts ...http.CallOption) (rsp *PublishListReply, err error)
	PublishAction(ctx context.Context, req *PublishActionRequest, opts ...http.CallOption) (rsp *PublishActionReply, err error)
}

func NewPublishServiceHTTPClient

func NewPublishServiceHTTPClient(client *http.Client) PublishServiceHTTPClient

type PublishServiceHTTPClientImpl

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

func (*PublishServiceHTTPClientImpl) FeedList

func (*PublishServiceHTTPClientImpl) GetPublishList

func (*PublishServiceHTTPClientImpl) PublishAction

type PublishServiceHTTPServer

type PublishServiceHTTPServer interface {
	// FeedList 请求 Feed List
	FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error)
	// GetPublishList 获取用户投稿视频列表
	GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error)
	// PublishAction 用户上传视频
	PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error)
}

type PublishServiceServer

type PublishServiceServer interface {
	// 获取用户投稿视频列表
	GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error)
	// 用户上传视频
	PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error)
	// 请求 Feed List
	FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error)
	// favorite相关服务请求根据视频id列表获取视频列表
	GetVideoListByVideoIds(context.Context, *VideoListByVideoIdsRequest) (*VideoListReply, error)
	// contains filtered or unexported methods
}

PublishServiceServer is the server API for PublishService service. All implementations must embed UnimplementedPublishServiceServer for forward compatibility

type UnimplementedPublishServiceServer

type UnimplementedPublishServiceServer struct {
}

UnimplementedPublishServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPublishServiceServer) FeedList

func (UnimplementedPublishServiceServer) GetPublishList

func (UnimplementedPublishServiceServer) GetVideoListByVideoIds

func (UnimplementedPublishServiceServer) PublishAction

type UnsafePublishServiceServer

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

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

type User

type User struct {

	// 用户id
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 用户名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 关注总数
	FollowCount uint32 `protobuf:"varint,3,opt,name=follow_count,proto3" json:"follow_count,omitempty"`
	// 粉丝总数
	FollowerCount uint32 `protobuf:"varint,4,opt,name=follower_count,proto3" json:"follower_count,omitempty"`
	// 是否关注
	IsFollow bool `protobuf:"varint,5,opt,name=is_follow,proto3" json:"is_follow,omitempty"`
	// 用户头像
	Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// 用户页面背景图
	BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,proto3" json:"background_image,omitempty"`
	// 个人简介
	Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	// 获赞数量
	TotalFavorited uint32 `protobuf:"varint,9,opt,name=total_favorited,proto3" json:"total_favorited,omitempty"`
	// 作品数量
	WorkCount uint32 `protobuf:"varint,10,opt,name=work_count,proto3" json:"work_count,omitempty"`
	// 点赞数量
	FavoriteCount uint32 `protobuf:"varint,11,opt,name=favorite_count,proto3" json:"favorite_count,omitempty"`
	// contains filtered or unexported fields
}

用户信息

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBackgroundImage

func (x *User) GetBackgroundImage() string

func (*User) GetFavoriteCount

func (x *User) GetFavoriteCount() uint32

func (*User) GetFollowCount

func (x *User) GetFollowCount() uint32

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() uint32

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSignature

func (x *User) GetSignature() string

func (*User) GetTotalFavorited

func (x *User) GetTotalFavorited() uint32

func (*User) GetWorkCount

func (x *User) GetWorkCount() uint32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (*User) ValidateAll

func (m *User) ValidateAll() error

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

type UserMultiError

type UserMultiError []error

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

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

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

type UserValidationError

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

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

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type Video

type Video struct {

	// 视频唯一标识
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 视频作者信息
	Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// 视频播放地址
	PlayUrl string `protobuf:"bytes,3,opt,name=play_url,proto3" json:"play_url,omitempty"`
	// 视频封面地址
	CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,proto3" json:"cover_url,omitempty"`
	// 视频的点赞总数
	FavoriteCount uint32 `protobuf:"varint,5,opt,name=favorite_count,proto3" json:"favorite_count,omitempty"`
	// 视频的评论总数
	CommentCount uint32 `protobuf:"varint,6,opt,name=comment_count,proto3" json:"comment_count,omitempty"`
	// true-已点赞,false-未点赞
	IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,proto3" json:"is_favorite,omitempty"`
	// 视频标题
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,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() *User

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() uint32

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() uint32

func (*Video) GetId

func (x *Video) GetId() uint32

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

func (*Video) Validate

func (m *Video) Validate() error

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

func (*Video) ValidateAll

func (m *Video) ValidateAll() error

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

type VideoListByVideoIdsRequest

type VideoListByVideoIdsRequest struct {

	// 登陆用户id
	UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 视频id列表
	VideoIds []uint32 `protobuf:"varint,1,rep,packed,name=video_ids,json=videoIds,proto3" json:"video_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoListByVideoIdsRequest) Descriptor deprecated

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

Deprecated: Use VideoListByVideoIdsRequest.ProtoReflect.Descriptor instead.

func (*VideoListByVideoIdsRequest) GetUserId

func (x *VideoListByVideoIdsRequest) GetUserId() uint32

func (*VideoListByVideoIdsRequest) GetVideoIds

func (x *VideoListByVideoIdsRequest) GetVideoIds() []uint32

func (*VideoListByVideoIdsRequest) ProtoMessage

func (*VideoListByVideoIdsRequest) ProtoMessage()

func (*VideoListByVideoIdsRequest) ProtoReflect

func (*VideoListByVideoIdsRequest) Reset

func (x *VideoListByVideoIdsRequest) Reset()

func (*VideoListByVideoIdsRequest) String

func (x *VideoListByVideoIdsRequest) String() string

func (*VideoListByVideoIdsRequest) Validate

func (m *VideoListByVideoIdsRequest) Validate() error

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

func (*VideoListByVideoIdsRequest) ValidateAll

func (m *VideoListByVideoIdsRequest) ValidateAll() error

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

type VideoListByVideoIdsRequestMultiError

type VideoListByVideoIdsRequestMultiError []error

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

func (VideoListByVideoIdsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VideoListByVideoIdsRequestMultiError) Error

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

type VideoListByVideoIdsRequestValidationError

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

VideoListByVideoIdsRequestValidationError is the validation error returned by VideoListByVideoIdsRequest.Validate if the designated constraints aren't met.

func (VideoListByVideoIdsRequestValidationError) Cause

Cause function returns cause value.

func (VideoListByVideoIdsRequestValidationError) Error

Error satisfies the builtin error interface

func (VideoListByVideoIdsRequestValidationError) ErrorName

ErrorName returns error name.

func (VideoListByVideoIdsRequestValidationError) Field

Field function returns field value.

func (VideoListByVideoIdsRequestValidationError) Key

Key function returns key value.

func (VideoListByVideoIdsRequestValidationError) Reason

Reason function returns reason value.

type VideoListReply

type VideoListReply struct {

	// 视频列表
	VideoList []*Video `protobuf:"bytes,1,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoListReply) Descriptor deprecated

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

Deprecated: Use VideoListReply.ProtoReflect.Descriptor instead.

func (*VideoListReply) GetVideoList

func (x *VideoListReply) GetVideoList() []*Video

func (*VideoListReply) ProtoMessage

func (*VideoListReply) ProtoMessage()

func (*VideoListReply) ProtoReflect

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

func (*VideoListReply) Reset

func (x *VideoListReply) Reset()

func (*VideoListReply) String

func (x *VideoListReply) String() string

func (*VideoListReply) Validate

func (m *VideoListReply) Validate() error

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

func (*VideoListReply) ValidateAll

func (m *VideoListReply) ValidateAll() error

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

type VideoListReplyMultiError

type VideoListReplyMultiError []error

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

func (VideoListReplyMultiError) AllErrors

func (m VideoListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VideoListReplyMultiError) Error

func (m VideoListReplyMultiError) Error() string

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

type VideoListReplyValidationError

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

VideoListReplyValidationError is the validation error returned by VideoListReply.Validate if the designated constraints aren't met.

func (VideoListReplyValidationError) Cause

Cause function returns cause value.

func (VideoListReplyValidationError) Error

Error satisfies the builtin error interface

func (VideoListReplyValidationError) ErrorName

func (e VideoListReplyValidationError) ErrorName() string

ErrorName returns error name.

func (VideoListReplyValidationError) Field

Field function returns field value.

func (VideoListReplyValidationError) Key

Key function returns key value.

func (VideoListReplyValidationError) Reason

Reason function returns reason value.

type VideoMultiError

type VideoMultiError []error

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

func (VideoMultiError) AllErrors

func (m VideoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VideoMultiError) Error

func (m VideoMultiError) Error() string

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

type VideoValidationError

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

VideoValidationError is the validation error returned by Video.Validate if the designated constraints aren't met.

func (VideoValidationError) Cause

func (e VideoValidationError) Cause() error

Cause function returns cause value.

func (VideoValidationError) Error

func (e VideoValidationError) Error() string

Error satisfies the builtin error interface

func (VideoValidationError) ErrorName

func (e VideoValidationError) ErrorName() string

ErrorName returns error name.

func (VideoValidationError) Field

func (e VideoValidationError) Field() string

Field function returns field value.

func (VideoValidationError) Key

func (e VideoValidationError) Key() bool

Key function returns key value.

func (VideoValidationError) Reason

func (e VideoValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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