ApiServer

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

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ApiServer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode int32 `` // 状态码,0-成功,其他值-失败
	/* 131-byte string literal not displayed */
	StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述--可选
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMsg

func (x *BaseResp) GetStatusMsg() 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) String

func (x *BaseResp) String() string

type Comment

type Comment struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id" query:"id"`                    // 视频评论id
	User       *User  `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" form:"user" query:"user"`             // 评论用户信息
	Content    string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" form:"content" query:"content"` // 评论内容
	CreateDate string ``                                                                                                   // 评论发布日期,格式 mm-dd
	/* 130-byte string literal not displayed */
	// 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() int64

func (*Comment) GetUser

func (x *Comment) GetUser() *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 DouyinCommentActionRequest

type DouyinCommentActionRequest struct {
	Token       string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty" query:"token"`                                        // 用户鉴权token
	VideoId     int64  `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty" query:"video_id" vd:"len($) > 0"` // 视频id
	ActionType  int32  `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty" query:"action_type"`     // 1-发布评论,2-删除评论
	CommentText string ``                                                                                                                     // 用户填写的评论内容,在action_type=1的时候使用
	/* 131-byte string literal not displayed */
	CommentId int64 `protobuf:"varint,5,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty" query:"comment_id" vd:"len($) > 0"` // 要删除的评论id,在action_type=2的时候使用
	// contains filtered or unexported fields
}

Comment--action

func (*DouyinCommentActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinCommentActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinCommentActionRequest) GetActionType

func (x *DouyinCommentActionRequest) GetActionType() int32

func (*DouyinCommentActionRequest) GetCommentId

func (x *DouyinCommentActionRequest) GetCommentId() int64

func (*DouyinCommentActionRequest) GetCommentText

func (x *DouyinCommentActionRequest) GetCommentText() string

func (*DouyinCommentActionRequest) GetToken

func (x *DouyinCommentActionRequest) GetToken() string

func (*DouyinCommentActionRequest) GetVideoId

func (x *DouyinCommentActionRequest) GetVideoId() int64

func (*DouyinCommentActionRequest) ProtoMessage

func (*DouyinCommentActionRequest) ProtoMessage()

func (*DouyinCommentActionRequest) ProtoReflect

func (*DouyinCommentActionRequest) Reset

func (x *DouyinCommentActionRequest) Reset()

func (*DouyinCommentActionRequest) String

func (x *DouyinCommentActionRequest) String() string

type DouyinCommentActionResponse

type DouyinCommentActionResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	Comment  *Comment  `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty" form:"comment" query:"comment"` // 评论成功返回评论内容,不需要重新拉取整个列表--可选
	// contains filtered or unexported fields
}

func (*DouyinCommentActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinCommentActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinCommentActionResponse) GetBaseResp

func (x *DouyinCommentActionResponse) GetBaseResp() *BaseResp

func (*DouyinCommentActionResponse) GetComment

func (x *DouyinCommentActionResponse) GetComment() *Comment

func (*DouyinCommentActionResponse) ProtoMessage

func (*DouyinCommentActionResponse) ProtoMessage()

func (*DouyinCommentActionResponse) ProtoReflect

func (*DouyinCommentActionResponse) Reset

func (x *DouyinCommentActionResponse) Reset()

func (*DouyinCommentActionResponse) String

func (x *DouyinCommentActionResponse) String() string

type DouyinCommentListRequest

type DouyinCommentListRequest struct {
	Token   string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty" query:"token"`                        // 用户鉴权token
	VideoId int64  `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty" query:"video_id"` // 视频id
	// contains filtered or unexported fields
}

Comment--list

func (*DouyinCommentListRequest) Descriptor deprecated

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

Deprecated: Use DouyinCommentListRequest.ProtoReflect.Descriptor instead.

func (*DouyinCommentListRequest) GetToken

func (x *DouyinCommentListRequest) GetToken() string

func (*DouyinCommentListRequest) GetVideoId

func (x *DouyinCommentListRequest) GetVideoId() int64

func (*DouyinCommentListRequest) ProtoMessage

func (*DouyinCommentListRequest) ProtoMessage()

func (*DouyinCommentListRequest) ProtoReflect

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

func (*DouyinCommentListRequest) Reset

func (x *DouyinCommentListRequest) Reset()

func (*DouyinCommentListRequest) String

func (x *DouyinCommentListRequest) String() string

type DouyinCommentListResponse

type DouyinCommentListResponse struct {
	BaseResp    *BaseResp  `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	CommentList []*Comment `protobuf:"bytes,2,rep,name=comment_list,json=commentList,proto3" json:"comment_list" form:"comment_list" query:"comment_list"` // 评论列表
	// contains filtered or unexported fields
}

func (*DouyinCommentListResponse) Descriptor deprecated

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

Deprecated: Use DouyinCommentListResponse.ProtoReflect.Descriptor instead.

func (*DouyinCommentListResponse) GetBaseResp

func (x *DouyinCommentListResponse) GetBaseResp() *BaseResp

func (*DouyinCommentListResponse) GetCommentList

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

func (*DouyinCommentListResponse) ProtoMessage

func (*DouyinCommentListResponse) ProtoMessage()

func (*DouyinCommentListResponse) ProtoReflect

func (*DouyinCommentListResponse) Reset

func (x *DouyinCommentListResponse) Reset()

func (*DouyinCommentListResponse) String

func (x *DouyinCommentListResponse) String() string

type DouyinFavoriteActionRequest

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

Favorite-action

func (*DouyinFavoriteActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinFavoriteActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteActionRequest) GetActionType

func (x *DouyinFavoriteActionRequest) GetActionType() int32

func (*DouyinFavoriteActionRequest) GetToken

func (x *DouyinFavoriteActionRequest) GetToken() string

func (*DouyinFavoriteActionRequest) GetVideoId

func (x *DouyinFavoriteActionRequest) GetVideoId() int64

func (*DouyinFavoriteActionRequest) ProtoMessage

func (*DouyinFavoriteActionRequest) ProtoMessage()

func (*DouyinFavoriteActionRequest) ProtoReflect

func (*DouyinFavoriteActionRequest) Reset

func (x *DouyinFavoriteActionRequest) Reset()

func (*DouyinFavoriteActionRequest) String

func (x *DouyinFavoriteActionRequest) String() string

type DouyinFavoriteActionResponse

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

func (*DouyinFavoriteActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinFavoriteActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteActionResponse) GetBaseResp

func (x *DouyinFavoriteActionResponse) GetBaseResp() *BaseResp

func (*DouyinFavoriteActionResponse) ProtoMessage

func (*DouyinFavoriteActionResponse) ProtoMessage()

func (*DouyinFavoriteActionResponse) ProtoReflect

func (*DouyinFavoriteActionResponse) Reset

func (x *DouyinFavoriteActionResponse) Reset()

func (*DouyinFavoriteActionResponse) String

type DouyinFavoriteListRequest

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

Favorite-list

func (*DouyinFavoriteListRequest) Descriptor deprecated

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

Deprecated: Use DouyinFavoriteListRequest.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteListRequest) GetToken

func (x *DouyinFavoriteListRequest) GetToken() string

func (*DouyinFavoriteListRequest) GetUserId

func (x *DouyinFavoriteListRequest) GetUserId() int64

func (*DouyinFavoriteListRequest) ProtoMessage

func (*DouyinFavoriteListRequest) ProtoMessage()

func (*DouyinFavoriteListRequest) ProtoReflect

func (*DouyinFavoriteListRequest) Reset

func (x *DouyinFavoriteListRequest) Reset()

func (*DouyinFavoriteListRequest) String

func (x *DouyinFavoriteListRequest) String() string

type DouyinFavoriteListResponse

type DouyinFavoriteListResponse struct {
	BaseResp  *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	VideoList []*Video  `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list" form:"video_list" query:"video_list"` // 用户点赞视频列表
	// contains filtered or unexported fields
}

func (*DouyinFavoriteListResponse) Descriptor deprecated

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

Deprecated: Use DouyinFavoriteListResponse.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteListResponse) GetBaseResp

func (x *DouyinFavoriteListResponse) GetBaseResp() *BaseResp

func (*DouyinFavoriteListResponse) GetVideoList

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

func (*DouyinFavoriteListResponse) ProtoMessage

func (*DouyinFavoriteListResponse) ProtoMessage()

func (*DouyinFavoriteListResponse) ProtoReflect

func (*DouyinFavoriteListResponse) Reset

func (x *DouyinFavoriteListResponse) Reset()

func (*DouyinFavoriteListResponse) String

func (x *DouyinFavoriteListResponse) String() string

type DouyinFeedRequest

type DouyinFeedRequest struct {
	LatestTime int64 `` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	/* 128-byte string literal not displayed */
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" query:"token"` // 可选参数,登录用户设置
	// contains filtered or unexported fields
}

Feed

func (*DouyinFeedRequest) Descriptor deprecated

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

Deprecated: Use DouyinFeedRequest.ProtoReflect.Descriptor instead.

func (*DouyinFeedRequest) GetLatestTime

func (x *DouyinFeedRequest) GetLatestTime() int64

func (*DouyinFeedRequest) GetToken

func (x *DouyinFeedRequest) GetToken() string

func (*DouyinFeedRequest) ProtoMessage

func (*DouyinFeedRequest) ProtoMessage()

func (*DouyinFeedRequest) ProtoReflect

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

func (*DouyinFeedRequest) Reset

func (x *DouyinFeedRequest) Reset()

func (*DouyinFeedRequest) String

func (x *DouyinFeedRequest) String() string

type DouyinFeedResponse

type DouyinFeedResponse struct {
	BaseResp  *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	VideoList []*Video  `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list" form:"video_list" query:"video_list"`       // 视频列表--注意按照投稿时间戳逆序返回视频列表
	NextTime  int64     `protobuf:"varint,3,opt,name=next_time,json=nextTime,proto3" json:"next_time,omitempty" form:"next_time" query:"next_time"` // 本次返回的视频中,发布最早的时间,作为下次请求时的latest_time--可选
	// contains filtered or unexported fields
}

func (*DouyinFeedResponse) Descriptor deprecated

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

Deprecated: Use DouyinFeedResponse.ProtoReflect.Descriptor instead.

func (*DouyinFeedResponse) GetBaseResp

func (x *DouyinFeedResponse) GetBaseResp() *BaseResp

func (*DouyinFeedResponse) GetNextTime

func (x *DouyinFeedResponse) GetNextTime() int64

func (*DouyinFeedResponse) GetVideoList

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

func (*DouyinFeedResponse) ProtoMessage

func (*DouyinFeedResponse) ProtoMessage()

func (*DouyinFeedResponse) ProtoReflect

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

func (*DouyinFeedResponse) Reset

func (x *DouyinFeedResponse) Reset()

func (*DouyinFeedResponse) String

func (x *DouyinFeedResponse) String() string

type DouyinPublishActionRequest

type DouyinPublishActionRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty" form:"token"`                 // 用户鉴权token
	Data  []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" form:"data" vd:"len($) > 0"`    // 视频数据
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" form:"title" vd:"len($) > 0"` // 视频标题
	// contains filtered or unexported fields
}

Publish-action

func (*DouyinPublishActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinPublishActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinPublishActionRequest) GetData

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

func (*DouyinPublishActionRequest) GetTitle

func (x *DouyinPublishActionRequest) GetTitle() string

func (*DouyinPublishActionRequest) GetToken

func (x *DouyinPublishActionRequest) GetToken() string

func (*DouyinPublishActionRequest) ProtoMessage

func (*DouyinPublishActionRequest) ProtoMessage()

func (*DouyinPublishActionRequest) ProtoReflect

func (*DouyinPublishActionRequest) Reset

func (x *DouyinPublishActionRequest) Reset()

func (*DouyinPublishActionRequest) String

func (x *DouyinPublishActionRequest) String() string

type DouyinPublishActionResponse

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

func (*DouyinPublishActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinPublishActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinPublishActionResponse) GetBaseResp

func (x *DouyinPublishActionResponse) GetBaseResp() *BaseResp

func (*DouyinPublishActionResponse) ProtoMessage

func (*DouyinPublishActionResponse) ProtoMessage()

func (*DouyinPublishActionResponse) ProtoReflect

func (*DouyinPublishActionResponse) Reset

func (x *DouyinPublishActionResponse) Reset()

func (*DouyinPublishActionResponse) String

func (x *DouyinPublishActionResponse) String() string

type DouyinPublishListRequest

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

Publish-list

func (*DouyinPublishListRequest) Descriptor deprecated

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

Deprecated: Use DouyinPublishListRequest.ProtoReflect.Descriptor instead.

func (*DouyinPublishListRequest) GetToken

func (x *DouyinPublishListRequest) GetToken() string

func (*DouyinPublishListRequest) GetUserId

func (x *DouyinPublishListRequest) GetUserId() int64

func (*DouyinPublishListRequest) ProtoMessage

func (*DouyinPublishListRequest) ProtoMessage()

func (*DouyinPublishListRequest) ProtoReflect

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

func (*DouyinPublishListRequest) Reset

func (x *DouyinPublishListRequest) Reset()

func (*DouyinPublishListRequest) String

func (x *DouyinPublishListRequest) String() string

type DouyinPublishListResponse

type DouyinPublishListResponse struct {
	BaseResp  *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	VideoList []*Video  `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list" form:"video_list" query:"video_list"` // 用户发布的视频列表
	// contains filtered or unexported fields
}

func (*DouyinPublishListResponse) Descriptor deprecated

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

Deprecated: Use DouyinPublishListResponse.ProtoReflect.Descriptor instead.

func (*DouyinPublishListResponse) GetBaseResp

func (x *DouyinPublishListResponse) GetBaseResp() *BaseResp

func (*DouyinPublishListResponse) GetVideoList

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

func (*DouyinPublishListResponse) ProtoMessage

func (*DouyinPublishListResponse) ProtoMessage()

func (*DouyinPublishListResponse) ProtoReflect

func (*DouyinPublishListResponse) Reset

func (x *DouyinPublishListResponse) Reset()

func (*DouyinPublishListResponse) String

func (x *DouyinPublishListResponse) String() string

type DouyinRelationActionRequest

type DouyinRelationActionRequest struct {
	Token      string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty" query:"token"`                                               // 用户鉴权token
	ToUserId   int64  `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty" query:"to_user_id" vd:"len($) > 0"` // 对方用户id
	ActionType int32  ``                                                                                                                            // 1-关注,2-取消关注
	/* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

Relation--action

func (*DouyinRelationActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinRelationActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinRelationActionRequest) GetActionType

func (x *DouyinRelationActionRequest) GetActionType() int32

func (*DouyinRelationActionRequest) GetToUserId

func (x *DouyinRelationActionRequest) GetToUserId() int64

func (*DouyinRelationActionRequest) GetToken

func (x *DouyinRelationActionRequest) GetToken() string

func (*DouyinRelationActionRequest) ProtoMessage

func (*DouyinRelationActionRequest) ProtoMessage()

func (*DouyinRelationActionRequest) ProtoReflect

func (*DouyinRelationActionRequest) Reset

func (x *DouyinRelationActionRequest) Reset()

func (*DouyinRelationActionRequest) String

func (x *DouyinRelationActionRequest) String() string

type DouyinRelationActionResponse

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

func (*DouyinRelationActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinRelationActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinRelationActionResponse) GetBaseResp

func (x *DouyinRelationActionResponse) GetBaseResp() *BaseResp

func (*DouyinRelationActionResponse) ProtoMessage

func (*DouyinRelationActionResponse) ProtoMessage()

func (*DouyinRelationActionResponse) ProtoReflect

func (*DouyinRelationActionResponse) Reset

func (x *DouyinRelationActionResponse) Reset()

func (*DouyinRelationActionResponse) String

type DouyinRelationFollowListRequest

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

Relation--follow

func (*DouyinRelationFollowListRequest) Descriptor deprecated

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

Deprecated: Use DouyinRelationFollowListRequest.ProtoReflect.Descriptor instead.

func (*DouyinRelationFollowListRequest) GetToken

func (*DouyinRelationFollowListRequest) GetUserId

func (x *DouyinRelationFollowListRequest) GetUserId() int64

func (*DouyinRelationFollowListRequest) ProtoMessage

func (*DouyinRelationFollowListRequest) ProtoMessage()

func (*DouyinRelationFollowListRequest) ProtoReflect

func (*DouyinRelationFollowListRequest) Reset

func (*DouyinRelationFollowListRequest) String

type DouyinRelationFollowListResponse

type DouyinRelationFollowListResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	UserList []*User   `protobuf:"bytes,2,rep,name=user_list,json=userList,proto3" json:"user_list" form:"user_list" query:"user_list"` // 用户信息列表
	// contains filtered or unexported fields
}

func (*DouyinRelationFollowListResponse) Descriptor deprecated

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

Deprecated: Use DouyinRelationFollowListResponse.ProtoReflect.Descriptor instead.

func (*DouyinRelationFollowListResponse) GetBaseResp

func (x *DouyinRelationFollowListResponse) GetBaseResp() *BaseResp

func (*DouyinRelationFollowListResponse) GetUserList

func (x *DouyinRelationFollowListResponse) GetUserList() []*User

func (*DouyinRelationFollowListResponse) ProtoMessage

func (*DouyinRelationFollowListResponse) ProtoMessage()

func (*DouyinRelationFollowListResponse) ProtoReflect

func (*DouyinRelationFollowListResponse) Reset

func (*DouyinRelationFollowListResponse) String

type DouyinRelationFollowerListRequest

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

Relation--follower

func (*DouyinRelationFollowerListRequest) Descriptor deprecated

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

Deprecated: Use DouyinRelationFollowerListRequest.ProtoReflect.Descriptor instead.

func (*DouyinRelationFollowerListRequest) GetToken

func (*DouyinRelationFollowerListRequest) GetUserId

func (*DouyinRelationFollowerListRequest) ProtoMessage

func (*DouyinRelationFollowerListRequest) ProtoMessage()

func (*DouyinRelationFollowerListRequest) ProtoReflect

func (*DouyinRelationFollowerListRequest) Reset

func (*DouyinRelationFollowerListRequest) String

type DouyinRelationFollowerListResponse

type DouyinRelationFollowerListResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	UserList []*User   `protobuf:"bytes,2,rep,name=user_list,json=userList,proto3" json:"user_list" form:"user_list" query:"user_list"` // 用户列表
	// contains filtered or unexported fields
}

func (*DouyinRelationFollowerListResponse) Descriptor deprecated

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

Deprecated: Use DouyinRelationFollowerListResponse.ProtoReflect.Descriptor instead.

func (*DouyinRelationFollowerListResponse) GetBaseResp

func (x *DouyinRelationFollowerListResponse) GetBaseResp() *BaseResp

func (*DouyinRelationFollowerListResponse) GetUserList

func (x *DouyinRelationFollowerListResponse) GetUserList() []*User

func (*DouyinRelationFollowerListResponse) ProtoMessage

func (*DouyinRelationFollowerListResponse) ProtoMessage()

func (*DouyinRelationFollowerListResponse) ProtoReflect

func (*DouyinRelationFollowerListResponse) Reset

func (*DouyinRelationFollowerListResponse) String

type DouyinUserLoginRequest

type DouyinUserLoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" query:"username" vd:"len($) <= 32"` // 注册用户名,最长32个字符
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" query:"password" vd:"len($) <= 32"` // 密码,最长32个字符
	// contains filtered or unexported fields
}

User login

func (*DouyinUserLoginRequest) Descriptor deprecated

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

Deprecated: Use DouyinUserLoginRequest.ProtoReflect.Descriptor instead.

func (*DouyinUserLoginRequest) GetPassword

func (x *DouyinUserLoginRequest) GetPassword() string

func (*DouyinUserLoginRequest) GetUsername

func (x *DouyinUserLoginRequest) GetUsername() string

func (*DouyinUserLoginRequest) ProtoMessage

func (*DouyinUserLoginRequest) ProtoMessage()

func (*DouyinUserLoginRequest) ProtoReflect

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

func (*DouyinUserLoginRequest) Reset

func (x *DouyinUserLoginRequest) Reset()

func (*DouyinUserLoginRequest) String

func (x *DouyinUserLoginRequest) String() string

type DouyinUserLoginResponse

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

func (*DouyinUserLoginResponse) Descriptor deprecated

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

Deprecated: Use DouyinUserLoginResponse.ProtoReflect.Descriptor instead.

func (*DouyinUserLoginResponse) GetBaseResp

func (x *DouyinUserLoginResponse) GetBaseResp() *BaseResp

func (*DouyinUserLoginResponse) GetToken

func (x *DouyinUserLoginResponse) GetToken() string

func (*DouyinUserLoginResponse) GetUserId

func (x *DouyinUserLoginResponse) GetUserId() int64

func (*DouyinUserLoginResponse) ProtoMessage

func (*DouyinUserLoginResponse) ProtoMessage()

func (*DouyinUserLoginResponse) ProtoReflect

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

func (*DouyinUserLoginResponse) Reset

func (x *DouyinUserLoginResponse) Reset()

func (*DouyinUserLoginResponse) String

func (x *DouyinUserLoginResponse) String() string

type DouyinUserRegisterRequest

type DouyinUserRegisterRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" query:"username" vd:"len($) <= 32"` // 注册用户名,最长32个字符
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" query:"password" vd:"len($) <= 32"` // 密码,最长32个字符
	// contains filtered or unexported fields
}

User register

func (*DouyinUserRegisterRequest) Descriptor deprecated

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

Deprecated: Use DouyinUserRegisterRequest.ProtoReflect.Descriptor instead.

func (*DouyinUserRegisterRequest) GetPassword

func (x *DouyinUserRegisterRequest) GetPassword() string

func (*DouyinUserRegisterRequest) GetUsername

func (x *DouyinUserRegisterRequest) GetUsername() string

func (*DouyinUserRegisterRequest) ProtoMessage

func (*DouyinUserRegisterRequest) ProtoMessage()

func (*DouyinUserRegisterRequest) ProtoReflect

func (*DouyinUserRegisterRequest) Reset

func (x *DouyinUserRegisterRequest) Reset()

func (*DouyinUserRegisterRequest) String

func (x *DouyinUserRegisterRequest) String() string

type DouyinUserRegisterResponse

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

func (*DouyinUserRegisterResponse) Descriptor deprecated

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

Deprecated: Use DouyinUserRegisterResponse.ProtoReflect.Descriptor instead.

func (*DouyinUserRegisterResponse) GetBaseResp

func (x *DouyinUserRegisterResponse) GetBaseResp() *BaseResp

func (*DouyinUserRegisterResponse) GetToken

func (x *DouyinUserRegisterResponse) GetToken() string

func (*DouyinUserRegisterResponse) GetUserId

func (x *DouyinUserRegisterResponse) GetUserId() int64

func (*DouyinUserRegisterResponse) ProtoMessage

func (*DouyinUserRegisterResponse) ProtoMessage()

func (*DouyinUserRegisterResponse) ProtoReflect

func (*DouyinUserRegisterResponse) Reset

func (x *DouyinUserRegisterResponse) Reset()

func (*DouyinUserRegisterResponse) String

func (x *DouyinUserRegisterResponse) String() string

type DouyinUserRequest

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

User info

func (*DouyinUserRequest) Descriptor deprecated

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

Deprecated: Use DouyinUserRequest.ProtoReflect.Descriptor instead.

func (*DouyinUserRequest) GetToken

func (x *DouyinUserRequest) GetToken() string

func (*DouyinUserRequest) GetUserId

func (x *DouyinUserRequest) GetUserId() int64

func (*DouyinUserRequest) ProtoMessage

func (*DouyinUserRequest) ProtoMessage()

func (*DouyinUserRequest) ProtoReflect

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

func (*DouyinUserRequest) Reset

func (x *DouyinUserRequest) Reset()

func (*DouyinUserRequest) String

func (x *DouyinUserRequest) String() string

type DouyinUserResponse

type DouyinUserResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty" form:"base_resp" query:"base_resp"`
	User     *User     `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" form:"user" query:"user"` // 用户信息
	// contains filtered or unexported fields
}

func (*DouyinUserResponse) Descriptor deprecated

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

Deprecated: Use DouyinUserResponse.ProtoReflect.Descriptor instead.

func (*DouyinUserResponse) GetBaseResp

func (x *DouyinUserResponse) GetBaseResp() *BaseResp

func (*DouyinUserResponse) GetUser

func (x *DouyinUserResponse) GetUser() *User

func (*DouyinUserResponse) ProtoMessage

func (*DouyinUserResponse) ProtoMessage()

func (*DouyinUserResponse) ProtoReflect

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

func (*DouyinUserResponse) Reset

func (x *DouyinUserResponse) Reset()

func (*DouyinUserResponse) String

func (x *DouyinUserResponse) String() string

type User

type User struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id" query:"id"`        // 用户id
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" form:"name" query:"name"` // 用户名称
	FollowCount int64  ``                                                                                       // 关注总数--可选
	/* 136-byte string literal not displayed */
	FollowerCount int64 `` // 粉丝总数--可选
	/* 146-byte string literal not displayed */
	IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty" form:"is_follow" query:"is_follow"` // true-已关注,false-未关注
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

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

func (x *User) String() string

type Video

type Video struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id" query:"id"`                                          // 视频唯一标识
	Author        *User  `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty" form:"author" query:"author"`                           // 视频作者信息
	PlayUrl       string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty" form:"play_url" query:"play_url"`      // 视频播放地址
	CoverUrl      string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty" form:"cover_url" query:"cover_url"` // 视频封面地址
	FavoriteCount int64  ``                                                                                                                         // 视频的点赞总数
	/* 146-byte string literal not displayed */
	CommentCount int64 `` // 视频的评论总数
	/* 141-byte string literal not displayed */
	IsFavorite bool `` // true-已点赞,false-未点赞
	/* 131-byte string literal not displayed */
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty" form:"title" query:"title"` // 视频标题
	// 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() 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) String

func (x *Video) String() string

Jump to

Keyboard shortcuts

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