favorite

package
v0.0.0-...-dfc68d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_favorite_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 FavoriteActionRequest

type FavoriteActionRequest struct {
	Token      string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`                              //用户鉴权token
	VideoId    int64  `protobuf:"varint,3,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`          //视频id
	ActionType int32  `protobuf:"varint,4,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` //1-点赞,2-取消点赞
	// contains filtered or unexported fields
}

func (*FavoriteActionRequest) Descriptor deprecated

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

Deprecated: Use FavoriteActionRequest.ProtoReflect.Descriptor instead.

func (*FavoriteActionRequest) FastRead

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

func (*FavoriteActionRequest) FastWrite

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

func (*FavoriteActionRequest) GetActionType

func (x *FavoriteActionRequest) GetActionType() int32

func (*FavoriteActionRequest) GetToken

func (x *FavoriteActionRequest) GetToken() string

func (*FavoriteActionRequest) GetVideoId

func (x *FavoriteActionRequest) GetVideoId() int64

func (*FavoriteActionRequest) ProtoMessage

func (*FavoriteActionRequest) ProtoMessage()

func (*FavoriteActionRequest) ProtoReflect

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

func (*FavoriteActionRequest) Reset

func (x *FavoriteActionRequest) Reset()

func (*FavoriteActionRequest) Size

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

func (*FavoriteActionRequest) String

func (x *FavoriteActionRequest) String() string

type FavoriteActionResponse

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

func (*FavoriteActionResponse) Descriptor deprecated

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

Deprecated: Use FavoriteActionResponse.ProtoReflect.Descriptor instead.

func (*FavoriteActionResponse) FastRead

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

func (*FavoriteActionResponse) FastWrite

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

func (*FavoriteActionResponse) GetBaseResp

func (x *FavoriteActionResponse) GetBaseResp() *BaseResp

func (*FavoriteActionResponse) ProtoMessage

func (*FavoriteActionResponse) ProtoMessage()

func (*FavoriteActionResponse) ProtoReflect

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

func (*FavoriteActionResponse) Reset

func (x *FavoriteActionResponse) Reset()

func (*FavoriteActionResponse) Size

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

func (*FavoriteActionResponse) String

func (x *FavoriteActionResponse) String() string

type FavoriteListRequest

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

func (*FavoriteListRequest) Descriptor deprecated

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

Deprecated: Use FavoriteListRequest.ProtoReflect.Descriptor instead.

func (*FavoriteListRequest) FastRead

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

func (*FavoriteListRequest) FastWrite

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

func (*FavoriteListRequest) GetToken

func (x *FavoriteListRequest) GetToken() string

func (*FavoriteListRequest) GetUserId

func (x *FavoriteListRequest) GetUserId() int64

func (*FavoriteListRequest) ProtoMessage

func (*FavoriteListRequest) ProtoMessage()

func (*FavoriteListRequest) ProtoReflect

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

func (*FavoriteListRequest) Reset

func (x *FavoriteListRequest) Reset()

func (*FavoriteListRequest) Size

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

func (*FavoriteListRequest) String

func (x *FavoriteListRequest) String() string

type FavoriteListResponse

type FavoriteListResponse 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 (*FavoriteListResponse) Descriptor deprecated

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

Deprecated: Use FavoriteListResponse.ProtoReflect.Descriptor instead.

func (*FavoriteListResponse) FastRead

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

func (*FavoriteListResponse) FastWrite

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

func (*FavoriteListResponse) GetBaseResp

func (x *FavoriteListResponse) GetBaseResp() *BaseResp

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

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

func (*FavoriteListResponse) String

func (x *FavoriteListResponse) String() string

type FavoriteService

type FavoriteService interface {
	FavoriteAction(ctx context.Context, req *FavoriteActionRequest) (res *FavoriteActionResponse, err error)
	FavoriteList(ctx context.Context, req *FavoriteListRequest) (res *FavoriteListResponse, err error)
}

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-未关注
	Avatar          string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`                                          // 用户头像
	BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图
	Signature       string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`                                    // 个人简介
	TotalFavorited  int64  `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"`   // 获赞数量
	WorkCount       int64  `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"`                 // 作品数量
	FavoriteCount   int64  `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"`     // 点赞数量
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) 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) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBackgroundImage

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

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