favorite

package
v0.0.0-...-e4e76df Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_favorite_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FavoriteActionRequest

type FavoriteActionRequest 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
	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) GetUserId

func (x *FavoriteActionRequest) GetUserId() int64

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 {
	StatusCode int32  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
	StatusMsg  string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,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) GetStatusCode

func (x *FavoriteActionResponse) GetStatusCode() int32

func (*FavoriteActionResponse) GetStatusMsg

func (x *FavoriteActionResponse) GetStatusMsg() string

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 {
	StatusCode int32         `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败
	StatusMsg  string        `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"`     // 返回状态描述
	VideoList  []*feed.Video `protobuf:"bytes,3,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) GetStatusCode

func (x *FavoriteListResponse) GetStatusCode() int32

func (*FavoriteListResponse) GetStatusMsg

func (x *FavoriteListResponse) GetStatusMsg() string

func (*FavoriteListResponse) GetVideoList

func (x *FavoriteListResponse) GetVideoList() []*feed.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)
}

Directories

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

Jump to

Keyboard shortcuts

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