common

package
v0.0.0-...-3a3bdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Article

type Article struct {
	Id     int64        `protobuf:"varint,1,opt,name=id,proto3" form:"id" json:"id" query:"id"`                // video id
	Author *User        `protobuf:"bytes,2,opt,name=author,proto3" form:"author" json:"author" query:"author"` // author information
	Info   *ArticleInfo `protobuf:"bytes,3,opt,name=info,proto3" form:"info" json:"info" query:"info"`
	Base   *ArticleBase `protobuf:"bytes,4,opt,name=base,proto3" form:"base" json:"base" query:"base"`
	HashId string       `protobuf:"bytes,5,opt,name=hashId,proto3" form:"hashId" json:"hashId" query:"hashId"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAuthor

func (x *Article) GetAuthor() *User

func (*Article) GetBase

func (x *Article) GetBase() *ArticleBase

func (*Article) GetHashId

func (x *Article) GetHashId() string

func (*Article) GetId

func (x *Article) GetId() int64

func (*Article) GetInfo

func (x *Article) GetInfo() *ArticleInfo

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

type ArticleBase

type ArticleBase struct {
	Preload *ArticleBasePreload `protobuf:"bytes,1,opt,name=preload,proto3" form:"preload" json:"preload" query:"preload"`
	Content string              `protobuf:"bytes,3,opt,name=content,proto3" form:"content" json:"content" query:"content"`
	// contains filtered or unexported fields
}

func (*ArticleBase) Descriptor deprecated

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

Deprecated: Use ArticleBase.ProtoReflect.Descriptor instead.

func (*ArticleBase) GetContent

func (x *ArticleBase) GetContent() string

func (*ArticleBase) GetPreload

func (x *ArticleBase) GetPreload() *ArticleBasePreload

func (*ArticleBase) ProtoMessage

func (*ArticleBase) ProtoMessage()

func (*ArticleBase) ProtoReflect

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

func (*ArticleBase) Reset

func (x *ArticleBase) Reset()

func (*ArticleBase) String

func (x *ArticleBase) String() string

type ArticleBasePreload

type ArticleBasePreload struct {
	Note     string `protobuf:"bytes,1,opt,name=note,proto3" form:"note" json:"note" query:"note"`
	Title    string `protobuf:"bytes,2,opt,name=title,proto3" form:"title" json:"title" query:"title"`
	CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" form:"cover_url" json:"cover_url" query:"cover_url"`
	// contains filtered or unexported fields
}

func (*ArticleBasePreload) Descriptor deprecated

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

Deprecated: Use ArticleBasePreload.ProtoReflect.Descriptor instead.

func (*ArticleBasePreload) GetCoverUrl

func (x *ArticleBasePreload) GetCoverUrl() string

func (*ArticleBasePreload) GetNote

func (x *ArticleBasePreload) GetNote() string

func (*ArticleBasePreload) GetTitle

func (x *ArticleBasePreload) GetTitle() string

func (*ArticleBasePreload) ProtoMessage

func (*ArticleBasePreload) ProtoMessage()

func (*ArticleBasePreload) ProtoReflect

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

func (*ArticleBasePreload) Reset

func (x *ArticleBasePreload) Reset()

func (*ArticleBasePreload) String

func (x *ArticleBasePreload) String() string

type ArticleCard

type ArticleCard struct {
	Id     int64               `protobuf:"varint,1,opt,name=id,proto3" form:"id" json:"id" query:"id"`
	Info   *ArticleInfo        `protobuf:"bytes,2,opt,name=info,proto3" form:"info" json:"info" query:"info"`
	Pre    *ArticleBasePreload `protobuf:"bytes,3,opt,name=pre,proto3" form:"pre" json:"pre" query:"pre"`
	Author *UserBase           `protobuf:"bytes,4,opt,name=author,proto3" form:"author" json:"author" query:"author"` // author information
	HashId string              `protobuf:"bytes,5,opt,name=hashId,proto3" form:"hashId" json:"hashId" query:"hashId"`
	// contains filtered or unexported fields
}

func (*ArticleCard) Descriptor deprecated

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

Deprecated: Use ArticleCard.ProtoReflect.Descriptor instead.

func (*ArticleCard) GetAuthor

func (x *ArticleCard) GetAuthor() *UserBase

func (*ArticleCard) GetHashId

func (x *ArticleCard) GetHashId() string

func (*ArticleCard) GetId

func (x *ArticleCard) GetId() int64

func (*ArticleCard) GetInfo

func (x *ArticleCard) GetInfo() *ArticleInfo

func (*ArticleCard) GetPre

func (x *ArticleCard) GetPre() *ArticleBasePreload

func (*ArticleCard) ProtoMessage

func (*ArticleCard) ProtoMessage()

func (*ArticleCard) ProtoReflect

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

func (*ArticleCard) Reset

func (x *ArticleCard) Reset()

func (*ArticleCard) String

func (x *ArticleCard) String() string

type ArticleInfo

type ArticleInfo struct {
	LikeCount    int64 `protobuf:"varint,1,opt,name=like_count,json=likeCount,proto3" form:"like_count" json:"like_count" query:"like_count"` // total number of likes for the video
	CommentCount int64 ``                                                                                                                     // total number of comments on the video
	/* 131-byte string literal not displayed */
	IsFavorite   bool  `protobuf:"varint,3,opt,name=is_favorite,json=isFavorite,proto3" form:"is_favorite" json:"is_favorite" query:"is_favorite"` // true-Liked,false-did not like
	CollectCount int64 ``                                                                                                                          /* 131-byte string literal not displayed */
	ViewedCount  int64 ``                                                                                                                          /* 126-byte string literal not displayed */
	IsCollect    bool  `protobuf:"varint,6,opt,name=is_collect,json=isCollect,proto3" form:"is_collect" json:"is_collect" query:"is_collect"`
	// contains filtered or unexported fields
}

func (*ArticleInfo) Descriptor deprecated

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

Deprecated: Use ArticleInfo.ProtoReflect.Descriptor instead.

func (*ArticleInfo) GetCollectCount

func (x *ArticleInfo) GetCollectCount() int64

func (*ArticleInfo) GetCommentCount

func (x *ArticleInfo) GetCommentCount() int64

func (*ArticleInfo) GetIsCollect

func (x *ArticleInfo) GetIsCollect() bool

func (*ArticleInfo) GetIsFavorite

func (x *ArticleInfo) GetIsFavorite() bool

func (*ArticleInfo) GetLikeCount

func (x *ArticleInfo) GetLikeCount() int64

func (*ArticleInfo) GetViewedCount

func (x *ArticleInfo) GetViewedCount() int64

func (*ArticleInfo) ProtoMessage

func (*ArticleInfo) ProtoMessage()

func (*ArticleInfo) ProtoReflect

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

func (*ArticleInfo) Reset

func (x *ArticleInfo) Reset()

func (*ArticleInfo) String

func (x *ArticleInfo) String() string

type BaseResponse

type BaseResponse struct {
	StatusCode int32  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" form:"status_code" json:"status_code" query:"status_code"` // status code, 0-success, other values-failure
	StatusMsg  string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" form:"status_msg" json:"status_msg" query:"status_msg"`       // status description
	// contains filtered or unexported fields
}

func (*BaseResponse) Descriptor deprecated

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

Deprecated: Use BaseResponse.ProtoReflect.Descriptor instead.

func (*BaseResponse) GetStatusCode

func (x *BaseResponse) GetStatusCode() int32

func (*BaseResponse) GetStatusMsg

func (x *BaseResponse) GetStatusMsg() string

func (*BaseResponse) ProtoMessage

func (*BaseResponse) ProtoMessage()

func (*BaseResponse) ProtoReflect

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

func (*BaseResponse) Reset

func (x *BaseResponse) Reset()

func (*BaseResponse) String

func (x *BaseResponse) String() string

type UploadResponse

type UploadResponse struct {
	StatusCode int32  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" form:"status_code" json:"status_code" query:"status_code"` // status code, 0-success, other values-failure
	StatusMsg  string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" form:"status_msg" json:"status_msg" query:"status_msg"`       // status description
	FileUrl    string `protobuf:"bytes,3,opt,name=fileUrl,proto3" form:"fileUrl" json:"fileUrl" query:"fileUrl"`                                  // 文件存储的URL
	// contains filtered or unexported fields
}

文件上传响应消息

func (*UploadResponse) Descriptor deprecated

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

Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.

func (*UploadResponse) GetFileUrl

func (x *UploadResponse) GetFileUrl() string

func (*UploadResponse) GetStatusCode

func (x *UploadResponse) GetStatusCode() int32

func (*UploadResponse) GetStatusMsg

func (x *UploadResponse) GetStatusMsg() string

func (*UploadResponse) ProtoMessage

func (*UploadResponse) ProtoMessage()

func (*UploadResponse) ProtoReflect

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

func (*UploadResponse) Reset

func (x *UploadResponse) Reset()

func (*UploadResponse) String

func (x *UploadResponse) String() string

type User

type User struct {
	FollowCount int64 `` // total number of people the user follows
	/* 126-byte string literal not displayed */
	FollowerCount int64 `` // total number of fans
	/* 136-byte string literal not displayed */
	IsFollow       bool  `protobuf:"varint,3,opt,name=is_follow,json=isFollow,proto3" form:"is_follow" json:"is_follow" query:"is_follow"` // whether the currently logged-in user follows this user
	TotalFavorited int64 ``                                                                                                                // number of articles for articles published by user
	/* 141-byte string literal not displayed */
	WorkCount int64     `protobuf:"varint,5,opt,name=work_count,json=workCount,proto3" form:"work_count" json:"work_count" query:"work_count"` // number of articles published by user
	Base      *UserBase `protobuf:"bytes,6,opt,name=base,proto3" form:"base" json:"base" query:"base"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetBase

func (x *User) GetBase() *UserBase

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

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

func (x *User) String() string

type UserBase

type UserBase struct {
	Id      int64        `protobuf:"varint,1,opt,name=id,proto3" form:"id" json:"id" query:"id"`        // user id
	Name    string       `protobuf:"bytes,2,opt,name=name,proto3" form:"name" json:"name" query:"name"` // user name
	HashId  string       `protobuf:"bytes,3,opt,name=hashId,proto3" form:"hashId" json:"hashId" query:"hashId"`
	Profile *UserProfile `protobuf:"bytes,4,opt,name=profile,proto3" form:"profile" json:"profile" query:"profile"`
	// contains filtered or unexported fields
}

func (*UserBase) Descriptor deprecated

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

Deprecated: Use UserBase.ProtoReflect.Descriptor instead.

func (*UserBase) GetHashId

func (x *UserBase) GetHashId() string

func (*UserBase) GetId

func (x *UserBase) GetId() int64

func (*UserBase) GetName

func (x *UserBase) GetName() string

func (*UserBase) GetProfile

func (x *UserBase) GetProfile() *UserProfile

func (*UserBase) ProtoMessage

func (*UserBase) ProtoMessage()

func (*UserBase) ProtoReflect

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

func (*UserBase) Reset

func (x *UserBase) Reset()

func (*UserBase) String

func (x *UserBase) String() string

type UserProfile

type UserProfile struct {
	Avatar          string `protobuf:"bytes,1,opt,name=avatar,proto3" form:"avatar" json:"avatar" query:"avatar"` // user avatar URL
	BackgroundImage string ``                                                                                     // image at the top of the user's personal page
	/* 145-byte string literal not displayed */
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" form:"signature" json:"signature" query:"signature"` // user profile
	// contains filtered or unexported fields
}

func (*UserProfile) Descriptor deprecated

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

Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.

func (*UserProfile) GetAvatar

func (x *UserProfile) GetAvatar() string

func (*UserProfile) GetBackgroundImage

func (x *UserProfile) GetBackgroundImage() string

func (*UserProfile) GetSignature

func (x *UserProfile) GetSignature() string

func (*UserProfile) ProtoMessage

func (*UserProfile) ProtoMessage()

func (*UserProfile) ProtoReflect

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

func (*UserProfile) Reset

func (x *UserProfile) Reset()

func (*UserProfile) String

func (x *UserProfile) String() string

Jump to

Keyboard shortcuts

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