video_rpc

package
v0.0.0-...-48d44df Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_video_rpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode    int32  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	ServiceTime   int64  `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) FastRead

func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*BaseResp) FastWrite

func (x *BaseResp) FastWrite(buf []byte) (offset int)

func (*BaseResp) GetServiceTime

func (x *BaseResp) GetServiceTime() int64

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

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

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) Size

func (x *BaseResp) Size() (n int)

func (*BaseResp) String

func (x *BaseResp) String() string

type CreateVideoReq

type CreateVideoReq struct {
	Title    string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	PlayUrl  string `protobuf:"bytes,2,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"`
	CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
	UserId   int64  `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVideoReq) Descriptor deprecated

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

Deprecated: Use CreateVideoReq.ProtoReflect.Descriptor instead.

func (*CreateVideoReq) FastRead

func (x *CreateVideoReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*CreateVideoReq) FastWrite

func (x *CreateVideoReq) FastWrite(buf []byte) (offset int)

func (*CreateVideoReq) GetCoverUrl

func (x *CreateVideoReq) GetCoverUrl() string

func (*CreateVideoReq) GetPlayUrl

func (x *CreateVideoReq) GetPlayUrl() string

func (*CreateVideoReq) GetTitle

func (x *CreateVideoReq) GetTitle() string

func (*CreateVideoReq) GetUserId

func (x *CreateVideoReq) GetUserId() int64

func (*CreateVideoReq) ProtoMessage

func (*CreateVideoReq) ProtoMessage()

func (*CreateVideoReq) ProtoReflect

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

func (*CreateVideoReq) Reset

func (x *CreateVideoReq) Reset()

func (*CreateVideoReq) Size

func (x *CreateVideoReq) Size() (n int)

func (*CreateVideoReq) String

func (x *CreateVideoReq) String() string

type CreateVideoResp

type CreateVideoResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVideoResp) Descriptor deprecated

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

Deprecated: Use CreateVideoResp.ProtoReflect.Descriptor instead.

func (*CreateVideoResp) FastRead

func (x *CreateVideoResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*CreateVideoResp) FastWrite

func (x *CreateVideoResp) FastWrite(buf []byte) (offset int)

func (*CreateVideoResp) GetBaseResp

func (x *CreateVideoResp) GetBaseResp() *BaseResp

func (*CreateVideoResp) ProtoMessage

func (*CreateVideoResp) ProtoMessage()

func (*CreateVideoResp) ProtoReflect

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

func (*CreateVideoResp) Reset

func (x *CreateVideoResp) Reset()

func (*CreateVideoResp) Size

func (x *CreateVideoResp) Size() (n int)

func (*CreateVideoResp) String

func (x *CreateVideoResp) String() string

type DecreaseCommentCountReq

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

func (*DecreaseCommentCountReq) Descriptor deprecated

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

Deprecated: Use DecreaseCommentCountReq.ProtoReflect.Descriptor instead.

func (*DecreaseCommentCountReq) FastRead

func (x *DecreaseCommentCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DecreaseCommentCountReq) FastWrite

func (x *DecreaseCommentCountReq) FastWrite(buf []byte) (offset int)

func (*DecreaseCommentCountReq) GetVideoID

func (x *DecreaseCommentCountReq) GetVideoID() int64

func (*DecreaseCommentCountReq) ProtoMessage

func (*DecreaseCommentCountReq) ProtoMessage()

func (*DecreaseCommentCountReq) ProtoReflect

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

func (*DecreaseCommentCountReq) Reset

func (x *DecreaseCommentCountReq) Reset()

func (*DecreaseCommentCountReq) Size

func (x *DecreaseCommentCountReq) Size() (n int)

func (*DecreaseCommentCountReq) String

func (x *DecreaseCommentCountReq) String() string

type DecreaseCommentCountResp

type DecreaseCommentCountResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*DecreaseCommentCountResp) Descriptor deprecated

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

Deprecated: Use DecreaseCommentCountResp.ProtoReflect.Descriptor instead.

func (*DecreaseCommentCountResp) FastRead

func (x *DecreaseCommentCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DecreaseCommentCountResp) FastWrite

func (x *DecreaseCommentCountResp) FastWrite(buf []byte) (offset int)

func (*DecreaseCommentCountResp) GetBaseResp

func (x *DecreaseCommentCountResp) GetBaseResp() *BaseResp

func (*DecreaseCommentCountResp) ProtoMessage

func (*DecreaseCommentCountResp) ProtoMessage()

func (*DecreaseCommentCountResp) ProtoReflect

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

func (*DecreaseCommentCountResp) Reset

func (x *DecreaseCommentCountResp) Reset()

func (*DecreaseCommentCountResp) Size

func (x *DecreaseCommentCountResp) Size() (n int)

func (*DecreaseCommentCountResp) String

func (x *DecreaseCommentCountResp) String() string

type DecreaseFavoriteCountReq

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

func (*DecreaseFavoriteCountReq) Descriptor deprecated

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

Deprecated: Use DecreaseFavoriteCountReq.ProtoReflect.Descriptor instead.

func (*DecreaseFavoriteCountReq) FastRead

func (x *DecreaseFavoriteCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DecreaseFavoriteCountReq) FastWrite

func (x *DecreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)

func (*DecreaseFavoriteCountReq) GetVideoID

func (x *DecreaseFavoriteCountReq) GetVideoID() int64

func (*DecreaseFavoriteCountReq) ProtoMessage

func (*DecreaseFavoriteCountReq) ProtoMessage()

func (*DecreaseFavoriteCountReq) ProtoReflect

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

func (*DecreaseFavoriteCountReq) Reset

func (x *DecreaseFavoriteCountReq) Reset()

func (*DecreaseFavoriteCountReq) Size

func (x *DecreaseFavoriteCountReq) Size() (n int)

func (*DecreaseFavoriteCountReq) String

func (x *DecreaseFavoriteCountReq) String() string

type DecreaseFavoriteCountResp

type DecreaseFavoriteCountResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*DecreaseFavoriteCountResp) Descriptor deprecated

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

Deprecated: Use DecreaseFavoriteCountResp.ProtoReflect.Descriptor instead.

func (*DecreaseFavoriteCountResp) FastRead

func (x *DecreaseFavoriteCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DecreaseFavoriteCountResp) FastWrite

func (x *DecreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)

func (*DecreaseFavoriteCountResp) GetBaseResp

func (x *DecreaseFavoriteCountResp) GetBaseResp() *BaseResp

func (*DecreaseFavoriteCountResp) ProtoMessage

func (*DecreaseFavoriteCountResp) ProtoMessage()

func (*DecreaseFavoriteCountResp) ProtoReflect

func (*DecreaseFavoriteCountResp) Reset

func (x *DecreaseFavoriteCountResp) Reset()

func (*DecreaseFavoriteCountResp) Size

func (x *DecreaseFavoriteCountResp) Size() (n int)

func (*DecreaseFavoriteCountResp) String

func (x *DecreaseFavoriteCountResp) String() string

type GetAuthorReq

type GetAuthorReq struct {
	VideoID  int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"`
	MyUserID int64 `protobuf:"varint,2,opt,name=myUserID,proto3" json:"myUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthorReq) Descriptor deprecated

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

Deprecated: Use GetAuthorReq.ProtoReflect.Descriptor instead.

func (*GetAuthorReq) FastRead

func (x *GetAuthorReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetAuthorReq) FastWrite

func (x *GetAuthorReq) FastWrite(buf []byte) (offset int)

func (*GetAuthorReq) GetMyUserID

func (x *GetAuthorReq) GetMyUserID() int64

func (*GetAuthorReq) GetVideoID

func (x *GetAuthorReq) GetVideoID() int64

func (*GetAuthorReq) ProtoMessage

func (*GetAuthorReq) ProtoMessage()

func (*GetAuthorReq) ProtoReflect

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

func (*GetAuthorReq) Reset

func (x *GetAuthorReq) Reset()

func (*GetAuthorReq) Size

func (x *GetAuthorReq) Size() (n int)

func (*GetAuthorReq) String

func (x *GetAuthorReq) String() string

type GetAuthorResp

type GetAuthorResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	Author   *User     `protobuf:"bytes,2,opt,name=Author,proto3" json:"Author,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthorResp) Descriptor deprecated

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

Deprecated: Use GetAuthorResp.ProtoReflect.Descriptor instead.

func (*GetAuthorResp) FastRead

func (x *GetAuthorResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetAuthorResp) FastWrite

func (x *GetAuthorResp) FastWrite(buf []byte) (offset int)

func (*GetAuthorResp) GetAuthor

func (x *GetAuthorResp) GetAuthor() *User

func (*GetAuthorResp) GetBaseResp

func (x *GetAuthorResp) GetBaseResp() *BaseResp

func (*GetAuthorResp) ProtoMessage

func (*GetAuthorResp) ProtoMessage()

func (*GetAuthorResp) ProtoReflect

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

func (*GetAuthorResp) Reset

func (x *GetAuthorResp) Reset()

func (*GetAuthorResp) Size

func (x *GetAuthorResp) Size() (n int)

func (*GetAuthorResp) String

func (x *GetAuthorResp) String() string

type IncreaseCommentCountReq

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

func (*IncreaseCommentCountReq) Descriptor deprecated

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

Deprecated: Use IncreaseCommentCountReq.ProtoReflect.Descriptor instead.

func (*IncreaseCommentCountReq) FastRead

func (x *IncreaseCommentCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*IncreaseCommentCountReq) FastWrite

func (x *IncreaseCommentCountReq) FastWrite(buf []byte) (offset int)

func (*IncreaseCommentCountReq) GetVideoID

func (x *IncreaseCommentCountReq) GetVideoID() int64

func (*IncreaseCommentCountReq) ProtoMessage

func (*IncreaseCommentCountReq) ProtoMessage()

func (*IncreaseCommentCountReq) ProtoReflect

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

func (*IncreaseCommentCountReq) Reset

func (x *IncreaseCommentCountReq) Reset()

func (*IncreaseCommentCountReq) Size

func (x *IncreaseCommentCountReq) Size() (n int)

func (*IncreaseCommentCountReq) String

func (x *IncreaseCommentCountReq) String() string

type IncreaseCommentCountResp

type IncreaseCommentCountResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*IncreaseCommentCountResp) Descriptor deprecated

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

Deprecated: Use IncreaseCommentCountResp.ProtoReflect.Descriptor instead.

func (*IncreaseCommentCountResp) FastRead

func (x *IncreaseCommentCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*IncreaseCommentCountResp) FastWrite

func (x *IncreaseCommentCountResp) FastWrite(buf []byte) (offset int)

func (*IncreaseCommentCountResp) GetBaseResp

func (x *IncreaseCommentCountResp) GetBaseResp() *BaseResp

func (*IncreaseCommentCountResp) ProtoMessage

func (*IncreaseCommentCountResp) ProtoMessage()

func (*IncreaseCommentCountResp) ProtoReflect

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

func (*IncreaseCommentCountResp) Reset

func (x *IncreaseCommentCountResp) Reset()

func (*IncreaseCommentCountResp) Size

func (x *IncreaseCommentCountResp) Size() (n int)

func (*IncreaseCommentCountResp) String

func (x *IncreaseCommentCountResp) String() string

type IncreaseFavoriteCountReq

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

func (*IncreaseFavoriteCountReq) Descriptor deprecated

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

Deprecated: Use IncreaseFavoriteCountReq.ProtoReflect.Descriptor instead.

func (*IncreaseFavoriteCountReq) FastRead

func (x *IncreaseFavoriteCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*IncreaseFavoriteCountReq) FastWrite

func (x *IncreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)

func (*IncreaseFavoriteCountReq) GetVideoID

func (x *IncreaseFavoriteCountReq) GetVideoID() int64

func (*IncreaseFavoriteCountReq) ProtoMessage

func (*IncreaseFavoriteCountReq) ProtoMessage()

func (*IncreaseFavoriteCountReq) ProtoReflect

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

func (*IncreaseFavoriteCountReq) Reset

func (x *IncreaseFavoriteCountReq) Reset()

func (*IncreaseFavoriteCountReq) Size

func (x *IncreaseFavoriteCountReq) Size() (n int)

func (*IncreaseFavoriteCountReq) String

func (x *IncreaseFavoriteCountReq) String() string

type IncreaseFavoriteCountResp

type IncreaseFavoriteCountResp struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*IncreaseFavoriteCountResp) Descriptor deprecated

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

Deprecated: Use IncreaseFavoriteCountResp.ProtoReflect.Descriptor instead.

func (*IncreaseFavoriteCountResp) FastRead

func (x *IncreaseFavoriteCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*IncreaseFavoriteCountResp) FastWrite

func (x *IncreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)

func (*IncreaseFavoriteCountResp) GetBaseResp

func (x *IncreaseFavoriteCountResp) GetBaseResp() *BaseResp

func (*IncreaseFavoriteCountResp) ProtoMessage

func (*IncreaseFavoriteCountResp) ProtoMessage()

func (*IncreaseFavoriteCountResp) ProtoReflect

func (*IncreaseFavoriteCountResp) Reset

func (x *IncreaseFavoriteCountResp) Reset()

func (*IncreaseFavoriteCountResp) Size

func (x *IncreaseFavoriteCountResp) Size() (n int)

func (*IncreaseFavoriteCountResp) String

func (x *IncreaseFavoriteCountResp) String() string

type QueryVideoByUserReq

type QueryVideoByUserReq struct {
	UserId   int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	MyUserId int64 `protobuf:"varint,2,opt,name=my_user_id,json=myUserId,proto3" json:"my_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryVideoByUserReq) Descriptor deprecated

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

Deprecated: Use QueryVideoByUserReq.ProtoReflect.Descriptor instead.

func (*QueryVideoByUserReq) FastRead

func (x *QueryVideoByUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoByUserReq) FastWrite

func (x *QueryVideoByUserReq) FastWrite(buf []byte) (offset int)

func (*QueryVideoByUserReq) GetMyUserId

func (x *QueryVideoByUserReq) GetMyUserId() int64

func (*QueryVideoByUserReq) GetUserId

func (x *QueryVideoByUserReq) GetUserId() int64

func (*QueryVideoByUserReq) ProtoMessage

func (*QueryVideoByUserReq) ProtoMessage()

func (*QueryVideoByUserReq) ProtoReflect

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

func (*QueryVideoByUserReq) Reset

func (x *QueryVideoByUserReq) Reset()

func (*QueryVideoByUserReq) Size

func (x *QueryVideoByUserReq) Size() (n int)

func (*QueryVideoByUserReq) String

func (x *QueryVideoByUserReq) String() string

type QueryVideoByUserResp

type QueryVideoByUserResp struct {
	BaseResp  *BaseResp `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 (*QueryVideoByUserResp) Descriptor deprecated

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

Deprecated: Use QueryVideoByUserResp.ProtoReflect.Descriptor instead.

func (*QueryVideoByUserResp) FastRead

func (x *QueryVideoByUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoByUserResp) FastWrite

func (x *QueryVideoByUserResp) FastWrite(buf []byte) (offset int)

func (*QueryVideoByUserResp) GetBaseResp

func (x *QueryVideoByUserResp) GetBaseResp() *BaseResp

func (*QueryVideoByUserResp) GetVideoList

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

func (*QueryVideoByUserResp) ProtoMessage

func (*QueryVideoByUserResp) ProtoMessage()

func (*QueryVideoByUserResp) ProtoReflect

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

func (*QueryVideoByUserResp) Reset

func (x *QueryVideoByUserResp) Reset()

func (*QueryVideoByUserResp) Size

func (x *QueryVideoByUserResp) Size() (n int)

func (*QueryVideoByUserResp) String

func (x *QueryVideoByUserResp) String() string

type QueryVideoByVideoIdBatchReq

type QueryVideoByVideoIdBatchReq struct {
	VideoID []int64 `protobuf:"varint,1,rep,packed,name=videoID,proto3" json:"videoID,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryVideoByVideoIdBatchReq) Descriptor deprecated

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

Deprecated: Use QueryVideoByVideoIdBatchReq.ProtoReflect.Descriptor instead.

func (*QueryVideoByVideoIdBatchReq) FastRead

func (x *QueryVideoByVideoIdBatchReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoByVideoIdBatchReq) FastWrite

func (x *QueryVideoByVideoIdBatchReq) FastWrite(buf []byte) (offset int)

func (*QueryVideoByVideoIdBatchReq) GetVideoID

func (x *QueryVideoByVideoIdBatchReq) GetVideoID() []int64

func (*QueryVideoByVideoIdBatchReq) ProtoMessage

func (*QueryVideoByVideoIdBatchReq) ProtoMessage()

func (*QueryVideoByVideoIdBatchReq) ProtoReflect

func (*QueryVideoByVideoIdBatchReq) Reset

func (x *QueryVideoByVideoIdBatchReq) Reset()

func (*QueryVideoByVideoIdBatchReq) Size

func (x *QueryVideoByVideoIdBatchReq) Size() (n int)

func (*QueryVideoByVideoIdBatchReq) String

func (x *QueryVideoByVideoIdBatchReq) String() string

type QueryVideoByVideoIdBatchResp

type QueryVideoByVideoIdBatchResp struct {
	BaseResp  *BaseResp `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 (*QueryVideoByVideoIdBatchResp) Descriptor deprecated

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

Deprecated: Use QueryVideoByVideoIdBatchResp.ProtoReflect.Descriptor instead.

func (*QueryVideoByVideoIdBatchResp) FastRead

func (x *QueryVideoByVideoIdBatchResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoByVideoIdBatchResp) FastWrite

func (x *QueryVideoByVideoIdBatchResp) FastWrite(buf []byte) (offset int)

func (*QueryVideoByVideoIdBatchResp) GetBaseResp

func (x *QueryVideoByVideoIdBatchResp) GetBaseResp() *BaseResp

func (*QueryVideoByVideoIdBatchResp) GetVideoList

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

func (*QueryVideoByVideoIdBatchResp) ProtoMessage

func (*QueryVideoByVideoIdBatchResp) ProtoMessage()

func (*QueryVideoByVideoIdBatchResp) ProtoReflect

func (*QueryVideoByVideoIdBatchResp) Reset

func (x *QueryVideoByVideoIdBatchResp) Reset()

func (*QueryVideoByVideoIdBatchResp) Size

func (x *QueryVideoByVideoIdBatchResp) Size() (n int)

func (*QueryVideoByVideoIdBatchResp) String

type QueryVideoReq

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

func (*QueryVideoReq) Descriptor deprecated

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

Deprecated: Use QueryVideoReq.ProtoReflect.Descriptor instead.

func (*QueryVideoReq) FastRead

func (x *QueryVideoReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoReq) FastWrite

func (x *QueryVideoReq) FastWrite(buf []byte) (offset int)

func (*QueryVideoReq) GetLatestTime

func (x *QueryVideoReq) GetLatestTime() int64

func (*QueryVideoReq) GetUserId

func (x *QueryVideoReq) GetUserId() int64

func (*QueryVideoReq) ProtoMessage

func (*QueryVideoReq) ProtoMessage()

func (*QueryVideoReq) ProtoReflect

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

func (*QueryVideoReq) Reset

func (x *QueryVideoReq) Reset()

func (*QueryVideoReq) Size

func (x *QueryVideoReq) Size() (n int)

func (*QueryVideoReq) String

func (x *QueryVideoReq) String() string

type QueryVideoResp

type QueryVideoResp struct {
	BaseResp  *BaseResp `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 (*QueryVideoResp) Descriptor deprecated

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

Deprecated: Use QueryVideoResp.ProtoReflect.Descriptor instead.

func (*QueryVideoResp) FastRead

func (x *QueryVideoResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*QueryVideoResp) FastWrite

func (x *QueryVideoResp) FastWrite(buf []byte) (offset int)

func (*QueryVideoResp) GetBaseResp

func (x *QueryVideoResp) GetBaseResp() *BaseResp

func (*QueryVideoResp) GetNextTime

func (x *QueryVideoResp) GetNextTime() int64

func (*QueryVideoResp) GetVideoList

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

func (*QueryVideoResp) ProtoMessage

func (*QueryVideoResp) ProtoMessage()

func (*QueryVideoResp) ProtoReflect

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

func (*QueryVideoResp) Reset

func (x *QueryVideoResp) Reset()

func (*QueryVideoResp) Size

func (x *QueryVideoResp) Size() (n int)

func (*QueryVideoResp) String

func (x *QueryVideoResp) String() string

type User

type User struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                            // 用户id
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                         // 用户名称
	FollowCount   int64  `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"`       // 关注总数
	FollowerCount int64  `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数
	IsFollow      bool   `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"`                // true-已关注,false-未关注
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) FastRead

func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*User) FastWrite

func (x *User) FastWrite(buf []byte) (offset int)

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

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) Size

func (x *User) Size() (n int)

func (*User) String

func (x *User) String() string

type Video

type Video struct {
	Id            int64  `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,json=playUrl,proto3" json:"play_url,omitempty"`                    // 视频播放地址
	CoverUrl      string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`                 // 视频封面地址
	FavoriteCount int64  `protobuf:"varint,5,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数
	CommentCount  int64  `protobuf:"varint,6,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"`    // 视频的评论总数
	IsFavorite    bool   `protobuf:"varint,7,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"`          // true-已点赞,false-未点赞
	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) FastRead

func (x *Video) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Video) FastWrite

func (x *Video) FastWrite(buf []byte) (offset int)

func (*Video) GetAuthor

func (x *Video) GetAuthor() *User

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

func (x *Video) Size() (n int)

func (*Video) String

func (x *Video) String() string

type VideoService

type VideoService interface {
	QueryVideo(ctx context.Context, req *QueryVideoReq) (res *QueryVideoResp, err error)
	CreateVideo(ctx context.Context, req *CreateVideoReq) (res *CreateVideoResp, err error)
	QueryVideoByUser(ctx context.Context, req *QueryVideoByUserReq) (res *QueryVideoByUserResp, err error)
	QueryVideoByIdBatch(ctx context.Context, req *QueryVideoByVideoIdBatchReq) (res *QueryVideoByVideoIdBatchResp, err error)
	IncreaseFavoriteCount(ctx context.Context, req *IncreaseFavoriteCountReq) (res *IncreaseFavoriteCountResp, err error)
	DecreaseFavoriteCount(ctx context.Context, req *DecreaseFavoriteCountReq) (res *DecreaseFavoriteCountResp, err error)
	IncreaseCommentCount(ctx context.Context, req *IncreaseCommentCountReq) (res *IncreaseCommentCountResp, err error)
	DecreaseCommentCount(ctx context.Context, req *DecreaseCommentCountReq) (res *DecreaseCommentCountResp, err error)
	GetAuthor(ctx context.Context, req *GetAuthorReq) (res *GetAuthorResp, err error)
}

Directories

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

Jump to

Keyboard shortcuts

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