Documentation ¶
Index ¶
- Variables
- type ArticleRequest
- func (*ArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleRequest) GetAbstract() string
- func (x *ArticleRequest) GetArticleType() ArticleType
- func (x *ArticleRequest) GetCategoryId() uint64
- func (x *ArticleRequest) GetContent() string
- func (x *ArticleRequest) GetId() uint64
- func (x *ArticleRequest) GetIsPublished() int32
- func (x *ArticleRequest) GetIsTop() int32
- func (x *ArticleRequest) GetTitle() string
- func (x *ArticleRequest) GetUserId() uint64
- func (*ArticleRequest) ProtoMessage()
- func (x *ArticleRequest) ProtoReflect() protoreflect.Message
- func (x *ArticleRequest) Reset()
- func (x *ArticleRequest) String() string
- type ArticleType
- func (ArticleType) Descriptor() protoreflect.EnumDescriptor
- func (x ArticleType) Enum() *ArticleType
- func (ArticleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ArticleType) Int32() int32
- func (x ArticleType) Number() protoreflect.EnumNumber
- func (x ArticleType) String() string
- func (ArticleType) Type() protoreflect.EnumType
- type CategoryReply
- func (*CategoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryReply) GetCreatedAt() string
- func (x *CategoryReply) GetId() uint64
- func (x *CategoryReply) GetIsDeleted() int32
- func (x *CategoryReply) GetTitle() string
- func (x *CategoryReply) GetUpdatedAt() string
- func (*CategoryReply) ProtoMessage()
- func (x *CategoryReply) ProtoReflect() protoreflect.Message
- func (x *CategoryReply) Reset()
- func (x *CategoryReply) String() string
- type CategoryRequest
- func (*CategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryRequest) GetId() uint64
- func (x *CategoryRequest) GetTitle() string
- func (x *CategoryRequest) GetUserId() uint64
- func (*CategoryRequest) ProtoMessage()
- func (x *CategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CategoryRequest) Reset()
- func (x *CategoryRequest) String() string
- type UserRequest
- func (*UserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRequest) GetAvatarUrl() string
- func (x *UserRequest) GetEmail() string
- func (x *UserRequest) GetNickName() string
- func (x *UserRequest) GetPassword() string
- func (x *UserRequest) GetPhone() string
- func (x *UserRequest) GetUid() string
- func (x *UserRequest) GetUserName() string
- func (*UserRequest) ProtoMessage()
- func (x *UserRequest) ProtoReflect() protoreflect.Message
- func (x *UserRequest) Reset()
- func (x *UserRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ArticleType_name = map[int32]string{ 0: "PLACEHOLDER_TYPE", 1: "ORIGINAl", 2: "REPRINT", 3: "TRANSLATE", } ArticleType_value = map[string]int32{ "PLACEHOLDER_TYPE": 0, "ORIGINAl": 1, "REPRINT": 2, "TRANSLATE": 3, } )
Enum value maps for ArticleType.
View Source
var File_proto_article_proto protoreflect.FileDescriptor
View Source
var File_proto_category_proto protoreflect.FileDescriptor
View Source
var File_proto_type_proto protoreflect.FileDescriptor
View Source
var File_proto_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ArticleRequest ¶
type ArticleRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Abstract string `protobuf:"bytes,3,opt,name=abstract,proto3" json:"abstract,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` UserId uint64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CategoryId uint64 `protobuf:"varint,6,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` IsTop int32 `protobuf:"varint,7,opt,name=is_top,json=isTop,proto3" json:"is_top,omitempty"` IsPublished int32 `protobuf:"varint,8,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"` ArticleType ArticleType `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ArticleRequest) Descriptor
deprecated
func (*ArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArticleRequest.ProtoReflect.Descriptor instead.
func (*ArticleRequest) GetAbstract ¶
func (x *ArticleRequest) GetAbstract() string
func (*ArticleRequest) GetArticleType ¶
func (x *ArticleRequest) GetArticleType() ArticleType
func (*ArticleRequest) GetCategoryId ¶
func (x *ArticleRequest) GetCategoryId() uint64
func (*ArticleRequest) GetContent ¶
func (x *ArticleRequest) GetContent() string
func (*ArticleRequest) GetId ¶
func (x *ArticleRequest) GetId() uint64
func (*ArticleRequest) GetIsPublished ¶
func (x *ArticleRequest) GetIsPublished() int32
func (*ArticleRequest) GetIsTop ¶
func (x *ArticleRequest) GetIsTop() int32
func (*ArticleRequest) GetTitle ¶
func (x *ArticleRequest) GetTitle() string
func (*ArticleRequest) GetUserId ¶
func (x *ArticleRequest) GetUserId() uint64
func (*ArticleRequest) ProtoMessage ¶
func (*ArticleRequest) ProtoMessage()
func (*ArticleRequest) ProtoReflect ¶
func (x *ArticleRequest) ProtoReflect() protoreflect.Message
func (*ArticleRequest) Reset ¶
func (x *ArticleRequest) Reset()
func (*ArticleRequest) String ¶
func (x *ArticleRequest) String() string
type ArticleType ¶
type ArticleType int32
const ( ArticleType_PLACEHOLDER_TYPE ArticleType = 0 ArticleType_ORIGINAl ArticleType = 1 // 原创 ArticleType_REPRINT ArticleType = 2 // 转载 ArticleType_TRANSLATE ArticleType = 3 // 翻译 )
func (ArticleType) Descriptor ¶
func (ArticleType) Descriptor() protoreflect.EnumDescriptor
func (ArticleType) Enum ¶
func (x ArticleType) Enum() *ArticleType
func (ArticleType) EnumDescriptor
deprecated
func (ArticleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ArticleType.Descriptor instead.
func (ArticleType) Int32 ¶
func (x ArticleType) Int32() int32
func (ArticleType) Number ¶
func (x ArticleType) Number() protoreflect.EnumNumber
func (ArticleType) String ¶
func (x ArticleType) String() string
func (ArticleType) Type ¶
func (ArticleType) Type() protoreflect.EnumType
type CategoryReply ¶
type CategoryReply struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // @gotags: json:"id" Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"` // @gotags: json:"title" IsDeleted int32 `protobuf:"varint,3,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted"` // @gotags: json:"is_deleted" UpdatedAt string `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // @gotags: json:"updated_at" CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at"` // @gotags: json:"created_at" // contains filtered or unexported fields }
go get github.com/favadi/protoc-go-inject-tag 删除omitempty
func (*CategoryReply) Descriptor
deprecated
func (*CategoryReply) Descriptor() ([]byte, []int)
Deprecated: Use CategoryReply.ProtoReflect.Descriptor instead.
func (*CategoryReply) GetCreatedAt ¶
func (x *CategoryReply) GetCreatedAt() string
func (*CategoryReply) GetId ¶
func (x *CategoryReply) GetId() uint64
func (*CategoryReply) GetIsDeleted ¶
func (x *CategoryReply) GetIsDeleted() int32
func (*CategoryReply) GetTitle ¶
func (x *CategoryReply) GetTitle() string
func (*CategoryReply) GetUpdatedAt ¶
func (x *CategoryReply) GetUpdatedAt() string
func (*CategoryReply) ProtoMessage ¶
func (*CategoryReply) ProtoMessage()
func (*CategoryReply) ProtoReflect ¶
func (x *CategoryReply) ProtoReflect() protoreflect.Message
func (*CategoryReply) Reset ¶
func (x *CategoryReply) Reset()
func (*CategoryReply) String ¶
func (x *CategoryReply) String() string
type CategoryRequest ¶
type CategoryRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*CategoryRequest) Descriptor
deprecated
func (*CategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CategoryRequest.ProtoReflect.Descriptor instead.
func (*CategoryRequest) GetId ¶
func (x *CategoryRequest) GetId() uint64
func (*CategoryRequest) GetTitle ¶
func (x *CategoryRequest) GetTitle() string
func (*CategoryRequest) GetUserId ¶
func (x *CategoryRequest) GetUserId() uint64
func (*CategoryRequest) ProtoMessage ¶
func (*CategoryRequest) ProtoMessage()
func (*CategoryRequest) ProtoReflect ¶
func (x *CategoryRequest) ProtoReflect() protoreflect.Message
func (*CategoryRequest) Reset ¶
func (x *CategoryRequest) Reset()
func (*CategoryRequest) String ¶
func (x *CategoryRequest) String() string
type UserRequest ¶
type UserRequest struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` NickName string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` AvatarUrl string `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // contains filtered or unexported fields }
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetAvatarUrl ¶
func (x *UserRequest) GetAvatarUrl() string
func (*UserRequest) GetEmail ¶
func (x *UserRequest) GetEmail() string
func (*UserRequest) GetNickName ¶
func (x *UserRequest) GetNickName() string
func (*UserRequest) GetPassword ¶
func (x *UserRequest) GetPassword() string
func (*UserRequest) GetPhone ¶
func (x *UserRequest) GetPhone() string
func (*UserRequest) GetUid ¶
func (x *UserRequest) GetUid() string
func (*UserRequest) GetUserName ¶
func (x *UserRequest) GetUserName() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
Click to show internal directories.
Click to hide internal directories.