video

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_video_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Id         uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	User       *user.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Content    string     `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	CreateDate string     `protobuf:"bytes,4,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCreateDate

func (x *Comment) GetCreateDate() string

func (*Comment) GetId

func (x *Comment) GetId() uint64

func (*Comment) GetUser

func (x *Comment) GetUser() *user.User

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 CommentActionRequest

type CommentActionRequest struct {
	UserId      uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	VideoId     uint64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	CommentText string `protobuf:"bytes,3,opt,name=comment_text,json=commentText,proto3" json:"comment_text,omitempty"`
	CommentId   uint64 `protobuf:"varint,4,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentActionRequest) Descriptor deprecated

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

Deprecated: Use CommentActionRequest.ProtoReflect.Descriptor instead.

func (*CommentActionRequest) GetCommentId

func (x *CommentActionRequest) GetCommentId() uint64

func (*CommentActionRequest) GetCommentText

func (x *CommentActionRequest) GetCommentText() string

func (*CommentActionRequest) GetUserId

func (x *CommentActionRequest) GetUserId() uint64

func (*CommentActionRequest) GetVideoId

func (x *CommentActionRequest) GetVideoId() uint64

func (*CommentActionRequest) ProtoMessage

func (*CommentActionRequest) ProtoMessage()

func (*CommentActionRequest) ProtoReflect

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

func (*CommentActionRequest) Reset

func (x *CommentActionRequest) Reset()

func (*CommentActionRequest) String

func (x *CommentActionRequest) String() string

type CommentActionResponse

type CommentActionResponse struct {
	BaseResp *user.BaseResponse `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	Comment  *Comment           `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentActionResponse) Descriptor deprecated

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

Deprecated: Use CommentActionResponse.ProtoReflect.Descriptor instead.

func (*CommentActionResponse) GetBaseResp

func (x *CommentActionResponse) GetBaseResp() *user.BaseResponse

func (*CommentActionResponse) GetComment

func (x *CommentActionResponse) GetComment() *Comment

func (*CommentActionResponse) ProtoMessage

func (*CommentActionResponse) ProtoMessage()

func (*CommentActionResponse) ProtoReflect

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

func (*CommentActionResponse) Reset

func (x *CommentActionResponse) Reset()

func (*CommentActionResponse) String

func (x *CommentActionResponse) String() string

type CommentListRequest

type CommentListRequest struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	VideoId uint64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentListRequest) Descriptor deprecated

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

Deprecated: Use CommentListRequest.ProtoReflect.Descriptor instead.

func (*CommentListRequest) GetUserId

func (x *CommentListRequest) GetUserId() uint64

func (*CommentListRequest) GetVideoId

func (x *CommentListRequest) GetVideoId() uint64

func (*CommentListRequest) ProtoMessage

func (*CommentListRequest) ProtoMessage()

func (*CommentListRequest) ProtoReflect

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

func (*CommentListRequest) Reset

func (x *CommentListRequest) Reset()

func (*CommentListRequest) String

func (x *CommentListRequest) String() string

type CommentListResponse

type CommentListResponse struct {
	BaseResp    *user.BaseResponse `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	CommentList []*Comment         `protobuf:"bytes,2,rep,name=comment_list,json=commentList,proto3" json:"comment_list,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentListResponse) Descriptor deprecated

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

Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.

func (*CommentListResponse) GetBaseResp

func (x *CommentListResponse) GetBaseResp() *user.BaseResponse

func (*CommentListResponse) GetCommentList

func (x *CommentListResponse) GetCommentList() []*Comment

func (*CommentListResponse) ProtoMessage

func (*CommentListResponse) ProtoMessage()

func (*CommentListResponse) ProtoReflect

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

func (*CommentListResponse) Reset

func (x *CommentListResponse) Reset()

func (*CommentListResponse) String

func (x *CommentListResponse) String() string

type FavoriteActionRequest

type FavoriteActionRequest struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	VideoId uint64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FavoriteActionRequest) Descriptor deprecated

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

Deprecated: Use FavoriteActionRequest.ProtoReflect.Descriptor instead.

func (*FavoriteActionRequest) GetUserId

func (x *FavoriteActionRequest) GetUserId() uint64

func (*FavoriteActionRequest) GetVideoId

func (x *FavoriteActionRequest) GetVideoId() uint64

func (*FavoriteActionRequest) ProtoMessage

func (*FavoriteActionRequest) ProtoMessage()

func (*FavoriteActionRequest) ProtoReflect

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

func (*FavoriteActionRequest) Reset

func (x *FavoriteActionRequest) Reset()

func (*FavoriteActionRequest) String

func (x *FavoriteActionRequest) String() string

type FavoriteListRequest

type FavoriteListRequest struct {
	UserId   uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TargetId uint64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FavoriteListRequest) Descriptor deprecated

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

Deprecated: Use FavoriteListRequest.ProtoReflect.Descriptor instead.

func (*FavoriteListRequest) GetTargetId

func (x *FavoriteListRequest) GetTargetId() uint64

func (*FavoriteListRequest) GetUserId

func (x *FavoriteListRequest) GetUserId() uint64

func (*FavoriteListRequest) ProtoMessage

func (*FavoriteListRequest) ProtoMessage()

func (*FavoriteListRequest) ProtoReflect

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

func (*FavoriteListRequest) Reset

func (x *FavoriteListRequest) Reset()

func (*FavoriteListRequest) String

func (x *FavoriteListRequest) String() string

type FavoriteListResponse

type FavoriteListResponse struct {
	BaseResp  *user.BaseResponse `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	VideoList []*Video           `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"`
	// contains filtered or unexported fields
}

func (*FavoriteListResponse) Descriptor deprecated

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

Deprecated: Use FavoriteListResponse.ProtoReflect.Descriptor instead.

func (*FavoriteListResponse) GetBaseResp

func (x *FavoriteListResponse) GetBaseResp() *user.BaseResponse

func (*FavoriteListResponse) GetVideoList

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

func (*FavoriteListResponse) ProtoMessage

func (*FavoriteListResponse) ProtoMessage()

func (*FavoriteListResponse) ProtoReflect

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

func (*FavoriteListResponse) Reset

func (x *FavoriteListResponse) Reset()

func (*FavoriteListResponse) String

func (x *FavoriteListResponse) String() string

type FeedRequest

type FeedRequest struct {
	LatestTime int64  `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"`
	UserId     uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedRequest) Descriptor deprecated

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

Deprecated: Use FeedRequest.ProtoReflect.Descriptor instead.

func (*FeedRequest) GetLatestTime

func (x *FeedRequest) GetLatestTime() int64

func (*FeedRequest) GetUserId

func (x *FeedRequest) GetUserId() uint64

func (*FeedRequest) ProtoMessage

func (*FeedRequest) ProtoMessage()

func (*FeedRequest) ProtoReflect

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

func (*FeedRequest) Reset

func (x *FeedRequest) Reset()

func (*FeedRequest) String

func (x *FeedRequest) String() string

type FeedResponse

type FeedResponse struct {
	BaseResp  *user.BaseResponse `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	VideoList []*Video           `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"`
	NextTime  int64              `protobuf:"varint,3,opt,name=next_time,json=nextTime,proto3" json:"next_time,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedResponse) Descriptor deprecated

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

Deprecated: Use FeedResponse.ProtoReflect.Descriptor instead.

func (*FeedResponse) GetBaseResp

func (x *FeedResponse) GetBaseResp() *user.BaseResponse

func (*FeedResponse) GetNextTime

func (x *FeedResponse) GetNextTime() int64

func (*FeedResponse) GetVideoList

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

func (*FeedResponse) ProtoMessage

func (*FeedResponse) ProtoMessage()

func (*FeedResponse) ProtoReflect

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

func (*FeedResponse) Reset

func (x *FeedResponse) Reset()

func (*FeedResponse) String

func (x *FeedResponse) String() string

type PublishActionRequest

type PublishActionRequest struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,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"`
	FileExt string `protobuf:"bytes,4,opt,name=file_ext,json=fileExt,proto3" json:"file_ext,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) GetFileExt

func (x *PublishActionRequest) GetFileExt() string

func (*PublishActionRequest) GetTitle

func (x *PublishActionRequest) GetTitle() string

func (*PublishActionRequest) GetUserId

func (x *PublishActionRequest) GetUserId() uint64

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

type PublishListRequest

type PublishListRequest struct {
	UserId   uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TargetId uint64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishListRequest) Descriptor deprecated

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

Deprecated: Use PublishListRequest.ProtoReflect.Descriptor instead.

func (*PublishListRequest) GetTargetId

func (x *PublishListRequest) GetTargetId() uint64

func (*PublishListRequest) GetUserId

func (x *PublishListRequest) GetUserId() uint64

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

type PublishListResponse

type PublishListResponse struct {
	BaseResp  *user.BaseResponse `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	VideoList []*Video           `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishListResponse) Descriptor deprecated

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

Deprecated: Use PublishListResponse.ProtoReflect.Descriptor instead.

func (*PublishListResponse) GetBaseResp

func (x *PublishListResponse) GetBaseResp() *user.BaseResponse

func (*PublishListResponse) GetVideoList

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

func (*PublishListResponse) ProtoMessage

func (*PublishListResponse) ProtoMessage()

func (*PublishListResponse) ProtoReflect

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

func (*PublishListResponse) Reset

func (x *PublishListResponse) Reset()

func (*PublishListResponse) String

func (x *PublishListResponse) String() string

type Video

type Video struct {
	Id            uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title         string     `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author        *user.User `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	PlayUrl       string     `protobuf:"bytes,4,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"`
	CoverUrl      string     `protobuf:"bytes,5,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
	FavoriteCount uint64     `protobuf:"varint,6,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"`
	CommentCount  uint64     `protobuf:"varint,7,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"`
	IsFavorite    bool       `protobuf:"varint,8,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,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.User

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() uint64

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() uint64

func (*Video) GetId

func (x *Video) GetId() uint64

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 VideoService

type VideoService interface {
	Feed(ctx context.Context, req *FeedRequest) (res *FeedResponse, err error)
	Publish(ctx context.Context, req *PublishActionRequest) (res *user.BaseResponse, err error)
	MGetVideo(ctx context.Context, req *PublishListRequest) (res *PublishListResponse, err error)
	Favorite(ctx context.Context, req *FavoriteActionRequest) (res *user.BaseResponse, err error)
	CancelFavorite(ctx context.Context, req *FavoriteActionRequest) (res *user.BaseResponse, err error)
	MGetFavorite(ctx context.Context, req *FavoriteListRequest) (res *FavoriteListResponse, err error)
	Comment(ctx context.Context, req *CommentActionRequest) (res *CommentActionResponse, err error)
	DeleteComment(ctx context.Context, req *CommentActionRequest) (res *CommentActionResponse, err error)
	MGetComment(ctx context.Context, req *CommentListRequest) (res *CommentListResponse, err error)
}

Directories

Path Synopsis
Code generated by Kitex v0.3.1.
Code generated by Kitex v0.3.1.

Jump to

Keyboard shortcuts

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