Documentation
¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterNostalgiaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNostalgiaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NostalgiaClient) error
- func RegisterNostalgiaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNostalgiaHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NostalgiaServer) error
- func RegisterNostalgiaServer(s grpc.ServiceRegistrar, srv NostalgiaServer)
- type Admin
- func (*Admin) Descriptor() ([]byte, []int)deprecated
- func (x *Admin) GetCreatedAt() *timestamppb.Timestamp
- func (x *Admin) GetHashedPassword() string
- func (x *Admin) GetId() int64
- func (x *Admin) GetIsActive() bool
- func (x *Admin) GetRoleId() int64
- func (x *Admin) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Admin) GetUsername() string
- func (*Admin) ProtoMessage()
- func (x *Admin) ProtoReflect() protoreflect.Message
- func (x *Admin) Reset()
- func (x *Admin) String() string
- type AdminInfoRequest
- type AdminInfoResponse
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetCategoryId() int64
- func (x *Article) GetCategoryName() string
- func (x *Article) GetCheckOutdated() bool
- func (x *Article) GetContent() string
- func (x *Article) GetCreatedAt() *timestamppb.Timestamp
- func (x *Article) GetDeletedAt() *timestamppb.Timestamp
- func (x *Article) GetId() string
- func (x *Article) GetIsPublish() bool
- func (x *Article) GetLastUpdated() *timestamppb.Timestamp
- func (x *Article) GetLikes() int32
- func (x *Article) GetOwner() string
- func (x *Article) GetReadTime() string
- func (x *Article) GetSlug() string
- func (x *Article) GetSummary() string
- func (x *Article) GetTitle() string
- func (x *Article) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Article) GetViews() int32
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetArticleCount() int64
- func (x *Category) GetCreatedAt() *timestamppb.Timestamp
- func (x *Category) GetId() int64
- func (x *Category) GetIsSystem() bool
- func (x *Category) GetName() string
- func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CreateAdminRequest
- func (*CreateAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdminRequest) GetIsActive() bool
- func (x *CreateAdminRequest) GetName() string
- func (x *CreateAdminRequest) GetPassword() string
- func (x *CreateAdminRequest) GetRoleId() int64
- func (*CreateAdminRequest) ProtoMessage()
- func (x *CreateAdminRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAdminRequest) Reset()
- func (x *CreateAdminRequest) String() string
- type CreateAdminResponse
- func (*CreateAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdminResponse) GetAdmin() *Admin
- func (*CreateAdminResponse) ProtoMessage()
- func (x *CreateAdminResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAdminResponse) Reset()
- func (x *CreateAdminResponse) String() string
- type CreateArticleRequest
- func (*CreateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleRequest) GetCategoryId() int64
- func (x *CreateArticleRequest) GetContent() string
- func (x *CreateArticleRequest) GetIsPublish() bool
- func (x *CreateArticleRequest) GetSummary() string
- func (x *CreateArticleRequest) GetTitle() string
- func (*CreateArticleRequest) ProtoMessage()
- func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateArticleRequest) Reset()
- func (x *CreateArticleRequest) String() string
- type CreateArticleResponse
- func (*CreateArticleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleResponse) GetArticle() *Article
- func (*CreateArticleResponse) ProtoMessage()
- func (x *CreateArticleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateArticleResponse) Reset()
- func (x *CreateArticleResponse) String() string
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetName() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- type CreateCategoryResponse
- func (*CreateCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryResponse) GetCategory() *Category
- func (*CreateCategoryResponse) ProtoMessage()
- func (x *CreateCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryResponse) Reset()
- func (x *CreateCategoryResponse) String() string
- type DeleteArticleRequest
- func (*DeleteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleRequest) GetId() string
- func (*DeleteArticleRequest) ProtoMessage()
- func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleRequest) Reset()
- func (x *DeleteArticleRequest) String() string
- type DeleteArticleResponse
- type DeleteCategoryRequest
- func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCategoryRequest) GetId() int64
- func (*DeleteCategoryRequest) ProtoMessage()
- func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCategoryRequest) Reset()
- func (x *DeleteCategoryRequest) String() string
- type DeleteCategoryResponse
- type GetArticleRequest
- func (*GetArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleRequest) GetId() string
- func (x *GetArticleRequest) GetNeedContent() bool
- func (*GetArticleRequest) ProtoMessage()
- func (x *GetArticleRequest) ProtoReflect() protoreflect.Message
- func (x *GetArticleRequest) Reset()
- func (x *GetArticleRequest) String() string
- type GetArticleResponse
- func (*GetArticleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleResponse) GetArticle() *Article
- func (*GetArticleResponse) ProtoMessage()
- func (x *GetArticleResponse) ProtoReflect() protoreflect.Message
- func (x *GetArticleResponse) Reset()
- func (x *GetArticleResponse) String() string
- type InitSysMenu
- func (*InitSysMenu) Descriptor() ([]byte, []int)deprecated
- func (x *InitSysMenu) GetChildren() []*InitSysMenu
- func (x *InitSysMenu) GetCreatedAt() *timestamppb.Timestamp
- func (x *InitSysMenu) GetIcon() string
- func (x *InitSysMenu) GetId() int64
- func (x *InitSysMenu) GetIsActive() bool
- func (x *InitSysMenu) GetName() string
- func (x *InitSysMenu) GetParentId() int64
- func (x *InitSysMenu) GetPath() string
- func (x *InitSysMenu) GetSort() int32
- func (x *InitSysMenu) GetType() int32
- func (x *InitSysMenu) GetUpdatedAt() *timestamppb.Timestamp
- func (*InitSysMenu) ProtoMessage()
- func (x *InitSysMenu) ProtoReflect() protoreflect.Message
- func (x *InitSysMenu) Reset()
- func (x *InitSysMenu) String() string
- type InitSysMenuRequest
- type InitSysMenuResponse
- func (*InitSysMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitSysMenuResponse) GetInitSysMenu() []*InitSysMenu
- func (*InitSysMenuResponse) ProtoMessage()
- func (x *InitSysMenuResponse) ProtoReflect() protoreflect.Message
- func (x *InitSysMenuResponse) Reset()
- func (x *InitSysMenuResponse) String() string
- type ListAllCategoriesRequest
- type ListAllCategoriesResponse
- func (*ListAllCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllCategoriesResponse) GetCategories() []*Category
- func (*ListAllCategoriesResponse) ProtoMessage()
- func (x *ListAllCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllCategoriesResponse) Reset()
- func (x *ListAllCategoriesResponse) String() string
- type ListArticlesRequest
- func (*ListArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticlesRequest) GetLimit() int32
- func (x *ListArticlesRequest) GetPage() int32
- func (*ListArticlesRequest) ProtoMessage()
- func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *ListArticlesRequest) Reset()
- func (x *ListArticlesRequest) String() string
- type ListArticlesResponse
- func (*ListArticlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticlesResponse) GetArticles() []*Article
- func (x *ListArticlesResponse) GetCount() int64
- func (*ListArticlesResponse) ProtoMessage()
- func (x *ListArticlesResponse) ProtoReflect() protoreflect.Message
- func (x *ListArticlesResponse) Reset()
- func (x *ListArticlesResponse) String() string
- type ListCategoriesRequest
- func (*ListCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesRequest) GetLimit() int32
- func (x *ListCategoriesRequest) GetPage() int32
- func (*ListCategoriesRequest) ProtoMessage()
- func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesRequest) Reset()
- func (x *ListCategoriesRequest) String() string
- type ListCategoriesResponse
- func (*ListCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesResponse) GetCategories() []*Category
- func (x *ListCategoriesResponse) GetCount() int64
- func (*ListCategoriesResponse) ProtoMessage()
- func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesResponse) Reset()
- func (x *ListCategoriesResponse) String() string
- type LoginAdminRequest
- func (*LoginAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginAdminRequest) GetPassword() string
- func (x *LoginAdminRequest) GetUsername() string
- func (*LoginAdminRequest) ProtoMessage()
- func (x *LoginAdminRequest) ProtoReflect() protoreflect.Message
- func (x *LoginAdminRequest) Reset()
- func (x *LoginAdminRequest) String() string
- type LoginAdminResponse
- func (*LoginAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginAdminResponse) GetAccessToken() string
- func (x *LoginAdminResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp
- func (x *LoginAdminResponse) GetAdmin() *Admin
- func (x *LoginAdminResponse) GetRefreshToken() string
- func (x *LoginAdminResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp
- func (*LoginAdminResponse) ProtoMessage()
- func (x *LoginAdminResponse) ProtoReflect() protoreflect.Message
- func (x *LoginAdminResponse) Reset()
- func (x *LoginAdminResponse) String() string
- type LogoutAdminRequest
- type LogoutAdminResponse
- func (*LogoutAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutAdminResponse) GetMessage() string
- func (*LogoutAdminResponse) ProtoMessage()
- func (x *LogoutAdminResponse) ProtoReflect() protoreflect.Message
- func (x *LogoutAdminResponse) Reset()
- func (x *LogoutAdminResponse) String() string
- type NostalgiaClient
- type NostalgiaServer
- type RenewAccessTokenRequest
- func (*RenewAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenewAccessTokenRequest) GetRefreshToken() string
- func (*RenewAccessTokenRequest) ProtoMessage()
- func (x *RenewAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RenewAccessTokenRequest) Reset()
- func (x *RenewAccessTokenRequest) String() string
- type RenewAccessTokenResponse
- func (*RenewAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RenewAccessTokenResponse) GetAccessToken() string
- func (x *RenewAccessTokenResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp
- func (*RenewAccessTokenResponse) ProtoMessage()
- func (x *RenewAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RenewAccessTokenResponse) Reset()
- func (x *RenewAccessTokenResponse) String() string
- type UnimplementedNostalgiaServer
- func (UnimplementedNostalgiaServer) AdminInfo(context.Context, *AdminInfoRequest) (*AdminInfoResponse, error)
- func (UnimplementedNostalgiaServer) CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error)
- func (UnimplementedNostalgiaServer) CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleResponse, error)
- func (UnimplementedNostalgiaServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
- func (UnimplementedNostalgiaServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleResponse, error)
- func (UnimplementedNostalgiaServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*DeleteCategoryResponse, error)
- func (UnimplementedNostalgiaServer) GetArticle(context.Context, *GetArticleRequest) (*GetArticleResponse, error)
- func (UnimplementedNostalgiaServer) InitSysMenu(context.Context, *InitSysMenuRequest) (*InitSysMenuResponse, error)
- func (UnimplementedNostalgiaServer) ListAllCategories(context.Context, *ListAllCategoriesRequest) (*ListAllCategoriesResponse, error)
- func (UnimplementedNostalgiaServer) ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
- func (UnimplementedNostalgiaServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
- func (UnimplementedNostalgiaServer) LoginAdmin(context.Context, *LoginAdminRequest) (*LoginAdminResponse, error)
- func (UnimplementedNostalgiaServer) LogoutAdmin(context.Context, *LogoutAdminRequest) (*LogoutAdminResponse, error)
- func (UnimplementedNostalgiaServer) RenewAccessToken(context.Context, *RenewAccessTokenRequest) (*RenewAccessTokenResponse, error)
- func (UnimplementedNostalgiaServer) UpdateAdmin(context.Context, *UpdateAdminRequest) (*UpdateAdminResponse, error)
- func (UnimplementedNostalgiaServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleResponse, error)
- func (UnimplementedNostalgiaServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
- func (UnimplementedNostalgiaServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
- type UnsafeNostalgiaServer
- type UpdateAdminRequest
- func (*UpdateAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdminRequest) GetId() int64
- func (x *UpdateAdminRequest) GetIsActive() bool
- func (x *UpdateAdminRequest) GetOldPassword() string
- func (x *UpdateAdminRequest) GetPassword() string
- func (x *UpdateAdminRequest) GetRoleId() int64
- func (x *UpdateAdminRequest) GetUsername() string
- func (*UpdateAdminRequest) ProtoMessage()
- func (x *UpdateAdminRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAdminRequest) Reset()
- func (x *UpdateAdminRequest) String() string
- type UpdateAdminResponse
- func (*UpdateAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdminResponse) GetAdmin() *Admin
- func (*UpdateAdminResponse) ProtoMessage()
- func (x *UpdateAdminResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateAdminResponse) Reset()
- func (x *UpdateAdminResponse) String() string
- type UpdateArticleRequest
- func (*UpdateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest) GetCategoryId() int64
- func (x *UpdateArticleRequest) GetCheckOutdated() bool
- func (x *UpdateArticleRequest) GetContent() string
- func (x *UpdateArticleRequest) GetCover() string
- func (x *UpdateArticleRequest) GetId() string
- func (x *UpdateArticleRequest) GetIsPublish() bool
- func (x *UpdateArticleRequest) GetSlug() string
- func (x *UpdateArticleRequest) GetSummary() string
- func (x *UpdateArticleRequest) GetTitle() string
- func (*UpdateArticleRequest) ProtoMessage()
- func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest) Reset()
- func (x *UpdateArticleRequest) String() string
- type UpdateArticleResponse
- func (*UpdateArticleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleResponse) GetArticle() *Article
- func (*UpdateArticleResponse) ProtoMessage()
- func (x *UpdateArticleResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleResponse) Reset()
- func (x *UpdateArticleResponse) String() string
- type UpdateCategoryRequest
- func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCategoryRequest) GetId() int64
- func (x *UpdateCategoryRequest) GetName() string
- func (*UpdateCategoryRequest) ProtoMessage()
- func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCategoryRequest) Reset()
- func (x *UpdateCategoryRequest) String() string
- type UpdateCategoryResponse
- func (*UpdateCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCategoryResponse) GetCategory() *Category
- func (*UpdateCategoryResponse) ProtoMessage()
- func (x *UpdateCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCategoryResponse) Reset()
- func (x *UpdateCategoryResponse) String() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetArticleId() string
- func (x *UploadFileRequest) GetContent() []byte
- func (x *UploadFileRequest) GetType() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileResponse
- func (*UploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileResponse) GetFilename() string
- func (x *UploadFileResponse) GetUrl() string
- func (*UploadFileResponse) ProtoMessage()
- func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileResponse) Reset()
- func (x *UploadFileResponse) String() string
Constants ¶
const ( Nostalgia_LoginAdmin_FullMethodName = "/pb.Nostalgia/LoginAdmin" Nostalgia_LogoutAdmin_FullMethodName = "/pb.Nostalgia/LogoutAdmin" Nostalgia_RenewAccessToken_FullMethodName = "/pb.Nostalgia/RenewAccessToken" Nostalgia_InitSysMenu_FullMethodName = "/pb.Nostalgia/InitSysMenu" Nostalgia_CreateAdmin_FullMethodName = "/pb.Nostalgia/CreateAdmin" Nostalgia_UpdateAdmin_FullMethodName = "/pb.Nostalgia/UpdateAdmin" Nostalgia_AdminInfo_FullMethodName = "/pb.Nostalgia/AdminInfo" Nostalgia_CreateArticle_FullMethodName = "/pb.Nostalgia/CreateArticle" Nostalgia_DeleteArticle_FullMethodName = "/pb.Nostalgia/DeleteArticle" Nostalgia_ListArticles_FullMethodName = "/pb.Nostalgia/ListArticles" Nostalgia_GetArticle_FullMethodName = "/pb.Nostalgia/GetArticle" Nostalgia_UpdateArticle_FullMethodName = "/pb.Nostalgia/UpdateArticle" Nostalgia_UploadFile_FullMethodName = "/pb.Nostalgia/UploadFile" Nostalgia_CreateCategory_FullMethodName = "/pb.Nostalgia/CreateCategory" Nostalgia_DeleteCategory_FullMethodName = "/pb.Nostalgia/DeleteCategory" Nostalgia_UpdateCategory_FullMethodName = "/pb.Nostalgia/UpdateCategory" Nostalgia_ListCategories_FullMethodName = "/pb.Nostalgia/ListCategories" Nostalgia_ListAllCategories_FullMethodName = "/pb.Nostalgia/ListAllCategories" )
Variables ¶
var File_admin_proto protoreflect.FileDescriptor
var File_article_proto protoreflect.FileDescriptor
var File_category_proto protoreflect.FileDescriptor
var File_rpc_admin_info_proto protoreflect.FileDescriptor
var File_rpc_create_admin_proto protoreflect.FileDescriptor
var File_rpc_create_article_proto protoreflect.FileDescriptor
var File_rpc_delete_article_proto protoreflect.FileDescriptor
var File_rpc_get_article_proto protoreflect.FileDescriptor
var File_rpc_list_articles_proto protoreflect.FileDescriptor
var File_rpc_login_admin_proto protoreflect.FileDescriptor
var File_rpc_logout_admin_proto protoreflect.FileDescriptor
var File_rpc_renew_access_token_proto protoreflect.FileDescriptor
var File_rpc_update_admin_proto protoreflect.FileDescriptor
var File_rpc_update_article_proto protoreflect.FileDescriptor
var File_rpc_upload_file_proto protoreflect.FileDescriptor
var File_service_nostalgia_proto protoreflect.FileDescriptor
var Nostalgia_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Nostalgia", HandlerType: (*NostalgiaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoginAdmin", Handler: _Nostalgia_LoginAdmin_Handler, }, { MethodName: "LogoutAdmin", Handler: _Nostalgia_LogoutAdmin_Handler, }, { MethodName: "RenewAccessToken", Handler: _Nostalgia_RenewAccessToken_Handler, }, { MethodName: "InitSysMenu", Handler: _Nostalgia_InitSysMenu_Handler, }, { MethodName: "CreateAdmin", Handler: _Nostalgia_CreateAdmin_Handler, }, { MethodName: "UpdateAdmin", Handler: _Nostalgia_UpdateAdmin_Handler, }, { MethodName: "AdminInfo", Handler: _Nostalgia_AdminInfo_Handler, }, { MethodName: "CreateArticle", Handler: _Nostalgia_CreateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _Nostalgia_DeleteArticle_Handler, }, { MethodName: "ListArticles", Handler: _Nostalgia_ListArticles_Handler, }, { MethodName: "GetArticle", Handler: _Nostalgia_GetArticle_Handler, }, { MethodName: "UpdateArticle", Handler: _Nostalgia_UpdateArticle_Handler, }, { MethodName: "UploadFile", Handler: _Nostalgia_UploadFile_Handler, }, { MethodName: "CreateCategory", Handler: _Nostalgia_CreateCategory_Handler, }, { MethodName: "DeleteCategory", Handler: _Nostalgia_DeleteCategory_Handler, }, { MethodName: "UpdateCategory", Handler: _Nostalgia_UpdateCategory_Handler, }, { MethodName: "ListCategories", Handler: _Nostalgia_ListCategories_Handler, }, { MethodName: "ListAllCategories", Handler: _Nostalgia_ListAllCategories_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_nostalgia.proto", }
Nostalgia_ServiceDesc is the grpc.ServiceDesc for Nostalgia service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNostalgiaHandler ¶
func RegisterNostalgiaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNostalgiaHandler registers the http handlers for service Nostalgia to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNostalgiaHandlerClient ¶
func RegisterNostalgiaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NostalgiaClient) error
RegisterNostalgiaHandlerClient registers the http handlers for service Nostalgia to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NostalgiaClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NostalgiaClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NostalgiaClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterNostalgiaHandlerFromEndpoint ¶
func RegisterNostalgiaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNostalgiaHandlerFromEndpoint is same as RegisterNostalgiaHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNostalgiaHandlerServer ¶
func RegisterNostalgiaHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NostalgiaServer) error
RegisterNostalgiaHandlerServer registers the http handlers for service Nostalgia to "mux". UnaryRPC :call NostalgiaServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNostalgiaHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterNostalgiaServer ¶
func RegisterNostalgiaServer(s grpc.ServiceRegistrar, srv NostalgiaServer)
Types ¶
type Admin ¶
type Admin struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
HashedPassword string `protobuf:"bytes,3,opt,name=hashed_password,json=hashedPassword,proto3" json:"hashed_password,omitempty"`
RoleId int64 `protobuf:"varint,4,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
func (*Admin) Descriptor
deprecated
func (*Admin) GetCreatedAt ¶
func (x *Admin) GetCreatedAt() *timestamppb.Timestamp
func (*Admin) GetHashedPassword ¶
func (*Admin) GetIsActive ¶
func (*Admin) GetUpdatedAt ¶
func (x *Admin) GetUpdatedAt() *timestamppb.Timestamp
func (*Admin) GetUsername ¶
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) ProtoReflect ¶
func (x *Admin) ProtoReflect() protoreflect.Message
type AdminInfoRequest ¶
type AdminInfoRequest struct {
// contains filtered or unexported fields
}
func (*AdminInfoRequest) Descriptor
deprecated
func (*AdminInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdminInfoRequest.ProtoReflect.Descriptor instead.
func (*AdminInfoRequest) ProtoMessage ¶
func (*AdminInfoRequest) ProtoMessage()
func (*AdminInfoRequest) ProtoReflect ¶
func (x *AdminInfoRequest) ProtoReflect() protoreflect.Message
func (*AdminInfoRequest) Reset ¶
func (x *AdminInfoRequest) Reset()
func (*AdminInfoRequest) String ¶
func (x *AdminInfoRequest) String() string
type AdminInfoResponse ¶
type AdminInfoResponse struct {
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
// contains filtered or unexported fields
}
func (*AdminInfoResponse) Descriptor
deprecated
func (*AdminInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use AdminInfoResponse.ProtoReflect.Descriptor instead.
func (*AdminInfoResponse) GetAdmin ¶
func (x *AdminInfoResponse) GetAdmin() *Admin
func (*AdminInfoResponse) ProtoMessage ¶
func (*AdminInfoResponse) ProtoMessage()
func (*AdminInfoResponse) ProtoReflect ¶
func (x *AdminInfoResponse) ProtoReflect() protoreflect.Message
func (*AdminInfoResponse) Reset ¶
func (x *AdminInfoResponse) Reset()
func (*AdminInfoResponse) String ¶
func (x *AdminInfoResponse) String() string
type Article ¶
type Article struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Summary *string `protobuf:"bytes,3,opt,name=summary,proto3,oneof" json:"summary,omitempty"`
Content *string `protobuf:"bytes,4,opt,name=content,proto3,oneof" json:"content,omitempty"`
IsPublish *bool `protobuf:"varint,5,opt,name=is_publish,json=isPublish,proto3,oneof" json:"is_publish,omitempty"`
Views *int32 `protobuf:"varint,6,opt,name=views,proto3,oneof" json:"views,omitempty"`
Likes *int32 `protobuf:"varint,7,opt,name=likes,proto3,oneof" json:"likes,omitempty"`
Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
CategoryId int64 `protobuf:"varint,9,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
CategoryName string `protobuf:"bytes,10,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
Slug string `protobuf:"bytes,14,opt,name=slug,proto3" json:"slug,omitempty"`
CheckOutdated *bool `protobuf:"varint,15,opt,name=check_outdated,json=checkOutdated,proto3,oneof" json:"check_outdated,omitempty"`
ReadTime string `protobuf:"bytes,16,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
LastUpdated *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
// contains filtered or unexported fields
}
func (*Article) Descriptor
deprecated
func (*Article) GetCategoryId ¶
func (*Article) GetCategoryName ¶
func (*Article) GetCheckOutdated ¶ added in v1.3.0
func (*Article) GetContent ¶
func (*Article) GetCreatedAt ¶
func (x *Article) GetCreatedAt() *timestamppb.Timestamp
func (*Article) GetDeletedAt ¶
func (x *Article) GetDeletedAt() *timestamppb.Timestamp
func (*Article) GetIsPublish ¶
func (*Article) GetLastUpdated ¶ added in v1.3.0
func (x *Article) GetLastUpdated() *timestamppb.Timestamp
func (*Article) GetReadTime ¶ added in v1.3.0
func (*Article) GetSummary ¶
func (*Article) GetUpdatedAt ¶
func (x *Article) GetUpdatedAt() *timestamppb.Timestamp
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type Category ¶
type Category struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ArticleCount *int64 `protobuf:"varint,3,opt,name=article_count,json=articleCount,proto3,oneof" json:"article_count,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
IsSystem bool `protobuf:"varint,6,opt,name=is_system,json=isSystem,proto3" json:"is_system,omitempty"`
// contains filtered or unexported fields
}
func (*Category) Descriptor
deprecated
func (*Category) GetArticleCount ¶
func (*Category) GetCreatedAt ¶
func (x *Category) GetCreatedAt() *timestamppb.Timestamp
func (*Category) GetIsSystem ¶
func (*Category) GetUpdatedAt ¶
func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CreateAdminRequest ¶
type CreateAdminRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
IsActive *bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
RoleId *int64 `protobuf:"varint,4,opt,name=role_id,json=roleId,proto3,oneof" json:"role_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAdminRequest) Descriptor
deprecated
func (*CreateAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdminRequest.ProtoReflect.Descriptor instead.
func (*CreateAdminRequest) GetIsActive ¶
func (x *CreateAdminRequest) GetIsActive() bool
func (*CreateAdminRequest) GetName ¶
func (x *CreateAdminRequest) GetName() string
func (*CreateAdminRequest) GetPassword ¶
func (x *CreateAdminRequest) GetPassword() string
func (*CreateAdminRequest) GetRoleId ¶
func (x *CreateAdminRequest) GetRoleId() int64
func (*CreateAdminRequest) ProtoMessage ¶
func (*CreateAdminRequest) ProtoMessage()
func (*CreateAdminRequest) ProtoReflect ¶
func (x *CreateAdminRequest) ProtoReflect() protoreflect.Message
func (*CreateAdminRequest) Reset ¶
func (x *CreateAdminRequest) Reset()
func (*CreateAdminRequest) String ¶
func (x *CreateAdminRequest) String() string
type CreateAdminResponse ¶
type CreateAdminResponse struct {
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAdminResponse) Descriptor
deprecated
func (*CreateAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdminResponse.ProtoReflect.Descriptor instead.
func (*CreateAdminResponse) GetAdmin ¶
func (x *CreateAdminResponse) GetAdmin() *Admin
func (*CreateAdminResponse) ProtoMessage ¶
func (*CreateAdminResponse) ProtoMessage()
func (*CreateAdminResponse) ProtoReflect ¶
func (x *CreateAdminResponse) ProtoReflect() protoreflect.Message
func (*CreateAdminResponse) Reset ¶
func (x *CreateAdminResponse) Reset()
func (*CreateAdminResponse) String ¶
func (x *CreateAdminResponse) String() string
type CreateArticleRequest ¶
type CreateArticleRequest struct {
Title *string `protobuf:"bytes,1,opt,name=title,proto3,oneof" json:"title,omitempty"`
Summary *string `protobuf:"bytes,2,opt,name=summary,proto3,oneof" json:"summary,omitempty"`
Content *string `protobuf:"bytes,3,opt,name=content,proto3,oneof" json:"content,omitempty"`
IsPublish *bool `protobuf:"varint,4,opt,name=is_publish,json=isPublish,proto3,oneof" json:"is_publish,omitempty"`
CategoryId *int64 `protobuf:"varint,5,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateArticleRequest) Descriptor
deprecated
func (*CreateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.
func (*CreateArticleRequest) GetCategoryId ¶
func (x *CreateArticleRequest) GetCategoryId() int64
func (*CreateArticleRequest) GetContent ¶
func (x *CreateArticleRequest) GetContent() string
func (*CreateArticleRequest) GetIsPublish ¶
func (x *CreateArticleRequest) GetIsPublish() bool
func (*CreateArticleRequest) GetSummary ¶
func (x *CreateArticleRequest) GetSummary() string
func (*CreateArticleRequest) GetTitle ¶
func (x *CreateArticleRequest) GetTitle() string
func (*CreateArticleRequest) ProtoMessage ¶
func (*CreateArticleRequest) ProtoMessage()
func (*CreateArticleRequest) ProtoReflect ¶
func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
func (*CreateArticleRequest) Reset ¶
func (x *CreateArticleRequest) Reset()
func (*CreateArticleRequest) String ¶
func (x *CreateArticleRequest) String() string
type CreateArticleResponse ¶
type CreateArticleResponse struct {
Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"`
// contains filtered or unexported fields
}
func (*CreateArticleResponse) Descriptor
deprecated
func (*CreateArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleResponse.ProtoReflect.Descriptor instead.
func (*CreateArticleResponse) GetArticle ¶
func (x *CreateArticleResponse) GetArticle() *Article
func (*CreateArticleResponse) ProtoMessage ¶
func (*CreateArticleResponse) ProtoMessage()
func (*CreateArticleResponse) ProtoReflect ¶
func (x *CreateArticleResponse) ProtoReflect() protoreflect.Message
func (*CreateArticleResponse) Reset ¶
func (x *CreateArticleResponse) Reset()
func (*CreateArticleResponse) String ¶
func (x *CreateArticleResponse) String() string
type CreateCategoryRequest ¶
type CreateCategoryRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetName ¶
func (x *CreateCategoryRequest) GetName() string
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) ProtoReflect ¶
func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateCategoryRequest) Reset ¶
func (x *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (x *CreateCategoryRequest) String() string
type CreateCategoryResponse ¶
type CreateCategoryResponse struct {
Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// contains filtered or unexported fields
}
func (*CreateCategoryResponse) Descriptor
deprecated
func (*CreateCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryResponse.ProtoReflect.Descriptor instead.
func (*CreateCategoryResponse) GetCategory ¶
func (x *CreateCategoryResponse) GetCategory() *Category
func (*CreateCategoryResponse) ProtoMessage ¶
func (*CreateCategoryResponse) ProtoMessage()
func (*CreateCategoryResponse) ProtoReflect ¶
func (x *CreateCategoryResponse) ProtoReflect() protoreflect.Message
func (*CreateCategoryResponse) Reset ¶
func (x *CreateCategoryResponse) Reset()
func (*CreateCategoryResponse) String ¶
func (x *CreateCategoryResponse) String() string
type DeleteArticleRequest ¶
type DeleteArticleRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteArticleRequest) Descriptor
deprecated
func (*DeleteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleRequest) GetId ¶
func (x *DeleteArticleRequest) GetId() string
func (*DeleteArticleRequest) ProtoMessage ¶
func (*DeleteArticleRequest) ProtoMessage()
func (*DeleteArticleRequest) ProtoReflect ¶
func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
func (*DeleteArticleRequest) Reset ¶
func (x *DeleteArticleRequest) Reset()
func (*DeleteArticleRequest) String ¶
func (x *DeleteArticleRequest) String() string
type DeleteArticleResponse ¶
type DeleteArticleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteArticleResponse) Descriptor
deprecated
func (*DeleteArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleResponse.ProtoReflect.Descriptor instead.
func (*DeleteArticleResponse) ProtoMessage ¶
func (*DeleteArticleResponse) ProtoMessage()
func (*DeleteArticleResponse) ProtoReflect ¶
func (x *DeleteArticleResponse) ProtoReflect() protoreflect.Message
func (*DeleteArticleResponse) Reset ¶
func (x *DeleteArticleResponse) Reset()
func (*DeleteArticleResponse) String ¶
func (x *DeleteArticleResponse) String() string
type DeleteCategoryRequest ¶
type DeleteCategoryRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteCategoryRequest) Descriptor
deprecated
func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteCategoryRequest) GetId ¶
func (x *DeleteCategoryRequest) GetId() int64
func (*DeleteCategoryRequest) ProtoMessage ¶
func (*DeleteCategoryRequest) ProtoMessage()
func (*DeleteCategoryRequest) ProtoReflect ¶
func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteCategoryRequest) Reset ¶
func (x *DeleteCategoryRequest) Reset()
func (*DeleteCategoryRequest) String ¶
func (x *DeleteCategoryRequest) String() string
type DeleteCategoryResponse ¶
type DeleteCategoryResponse struct {
// contains filtered or unexported fields
}
func (*DeleteCategoryResponse) Descriptor
deprecated
func (*DeleteCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryResponse.ProtoReflect.Descriptor instead.
func (*DeleteCategoryResponse) ProtoMessage ¶
func (*DeleteCategoryResponse) ProtoMessage()
func (*DeleteCategoryResponse) ProtoReflect ¶
func (x *DeleteCategoryResponse) ProtoReflect() protoreflect.Message
func (*DeleteCategoryResponse) Reset ¶
func (x *DeleteCategoryResponse) Reset()
func (*DeleteCategoryResponse) String ¶
func (x *DeleteCategoryResponse) String() string
type GetArticleRequest ¶
type GetArticleRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
NeedContent bool `protobuf:"varint,2,opt,name=need_content,json=needContent,proto3" json:"need_content,omitempty"`
// contains filtered or unexported fields
}
func (*GetArticleRequest) Descriptor
deprecated
func (*GetArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleRequest.ProtoReflect.Descriptor instead.
func (*GetArticleRequest) GetId ¶
func (x *GetArticleRequest) GetId() string
func (*GetArticleRequest) GetNeedContent ¶
func (x *GetArticleRequest) GetNeedContent() bool
func (*GetArticleRequest) ProtoMessage ¶
func (*GetArticleRequest) ProtoMessage()
func (*GetArticleRequest) ProtoReflect ¶
func (x *GetArticleRequest) ProtoReflect() protoreflect.Message
func (*GetArticleRequest) Reset ¶
func (x *GetArticleRequest) Reset()
func (*GetArticleRequest) String ¶
func (x *GetArticleRequest) String() string
type GetArticleResponse ¶
type GetArticleResponse struct {
Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"`
// contains filtered or unexported fields
}
func (*GetArticleResponse) Descriptor
deprecated
func (*GetArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleResponse.ProtoReflect.Descriptor instead.
func (*GetArticleResponse) GetArticle ¶
func (x *GetArticleResponse) GetArticle() *Article
func (*GetArticleResponse) ProtoMessage ¶
func (*GetArticleResponse) ProtoMessage()
func (*GetArticleResponse) ProtoReflect ¶
func (x *GetArticleResponse) ProtoReflect() protoreflect.Message
func (*GetArticleResponse) Reset ¶
func (x *GetArticleResponse) Reset()
func (*GetArticleResponse) String ¶
func (x *GetArticleResponse) String() string
type InitSysMenu ¶
type InitSysMenu struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Path *string `protobuf:"bytes,3,opt,name=path,proto3,oneof" json:"path,omitempty"`
Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
Type int32 `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"`
Sort int32 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
ParentId *int64 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Children []*InitSysMenu `protobuf:"bytes,11,rep,name=children,proto3" json:"children,omitempty"`
// contains filtered or unexported fields
}
func (*InitSysMenu) Descriptor
deprecated
func (*InitSysMenu) Descriptor() ([]byte, []int)
Deprecated: Use InitSysMenu.ProtoReflect.Descriptor instead.
func (*InitSysMenu) GetChildren ¶
func (x *InitSysMenu) GetChildren() []*InitSysMenu
func (*InitSysMenu) GetCreatedAt ¶
func (x *InitSysMenu) GetCreatedAt() *timestamppb.Timestamp
func (*InitSysMenu) GetIcon ¶
func (x *InitSysMenu) GetIcon() string
func (*InitSysMenu) GetId ¶
func (x *InitSysMenu) GetId() int64
func (*InitSysMenu) GetIsActive ¶
func (x *InitSysMenu) GetIsActive() bool
func (*InitSysMenu) GetName ¶
func (x *InitSysMenu) GetName() string
func (*InitSysMenu) GetParentId ¶
func (x *InitSysMenu) GetParentId() int64
func (*InitSysMenu) GetPath ¶
func (x *InitSysMenu) GetPath() string
func (*InitSysMenu) GetSort ¶
func (x *InitSysMenu) GetSort() int32
func (*InitSysMenu) GetType ¶
func (x *InitSysMenu) GetType() int32
func (*InitSysMenu) GetUpdatedAt ¶
func (x *InitSysMenu) GetUpdatedAt() *timestamppb.Timestamp
func (*InitSysMenu) ProtoMessage ¶
func (*InitSysMenu) ProtoMessage()
func (*InitSysMenu) ProtoReflect ¶
func (x *InitSysMenu) ProtoReflect() protoreflect.Message
func (*InitSysMenu) Reset ¶
func (x *InitSysMenu) Reset()
func (*InitSysMenu) String ¶
func (x *InitSysMenu) String() string
type InitSysMenuRequest ¶
type InitSysMenuRequest struct {
// contains filtered or unexported fields
}
func (*InitSysMenuRequest) Descriptor
deprecated
func (*InitSysMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitSysMenuRequest.ProtoReflect.Descriptor instead.
func (*InitSysMenuRequest) ProtoMessage ¶
func (*InitSysMenuRequest) ProtoMessage()
func (*InitSysMenuRequest) ProtoReflect ¶
func (x *InitSysMenuRequest) ProtoReflect() protoreflect.Message
func (*InitSysMenuRequest) Reset ¶
func (x *InitSysMenuRequest) Reset()
func (*InitSysMenuRequest) String ¶
func (x *InitSysMenuRequest) String() string
type InitSysMenuResponse ¶
type InitSysMenuResponse struct {
InitSysMenu []*InitSysMenu `protobuf:"bytes,1,rep,name=init_sys_menu,json=initSysMenu,proto3" json:"init_sys_menu,omitempty"`
// contains filtered or unexported fields
}
func (*InitSysMenuResponse) Descriptor
deprecated
func (*InitSysMenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitSysMenuResponse.ProtoReflect.Descriptor instead.
func (*InitSysMenuResponse) GetInitSysMenu ¶
func (x *InitSysMenuResponse) GetInitSysMenu() []*InitSysMenu
func (*InitSysMenuResponse) ProtoMessage ¶
func (*InitSysMenuResponse) ProtoMessage()
func (*InitSysMenuResponse) ProtoReflect ¶
func (x *InitSysMenuResponse) ProtoReflect() protoreflect.Message
func (*InitSysMenuResponse) Reset ¶
func (x *InitSysMenuResponse) Reset()
func (*InitSysMenuResponse) String ¶
func (x *InitSysMenuResponse) String() string
type ListAllCategoriesRequest ¶
type ListAllCategoriesRequest struct {
// contains filtered or unexported fields
}
func (*ListAllCategoriesRequest) Descriptor
deprecated
func (*ListAllCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllCategoriesRequest.ProtoReflect.Descriptor instead.
func (*ListAllCategoriesRequest) ProtoMessage ¶
func (*ListAllCategoriesRequest) ProtoMessage()
func (*ListAllCategoriesRequest) ProtoReflect ¶
func (x *ListAllCategoriesRequest) ProtoReflect() protoreflect.Message
func (*ListAllCategoriesRequest) Reset ¶
func (x *ListAllCategoriesRequest) Reset()
func (*ListAllCategoriesRequest) String ¶
func (x *ListAllCategoriesRequest) String() string
type ListAllCategoriesResponse ¶
type ListAllCategoriesResponse struct {
Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
// contains filtered or unexported fields
}
func (*ListAllCategoriesResponse) Descriptor
deprecated
func (*ListAllCategoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllCategoriesResponse.ProtoReflect.Descriptor instead.
func (*ListAllCategoriesResponse) GetCategories ¶
func (x *ListAllCategoriesResponse) GetCategories() []*Category
func (*ListAllCategoriesResponse) ProtoMessage ¶
func (*ListAllCategoriesResponse) ProtoMessage()
func (*ListAllCategoriesResponse) ProtoReflect ¶
func (x *ListAllCategoriesResponse) ProtoReflect() protoreflect.Message
func (*ListAllCategoriesResponse) Reset ¶
func (x *ListAllCategoriesResponse) Reset()
func (*ListAllCategoriesResponse) String ¶
func (x *ListAllCategoriesResponse) String() string
type ListArticlesRequest ¶
type ListArticlesRequest struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListArticlesRequest) Descriptor
deprecated
func (*ListArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListArticlesRequest.ProtoReflect.Descriptor instead.
func (*ListArticlesRequest) GetLimit ¶
func (x *ListArticlesRequest) GetLimit() int32
func (*ListArticlesRequest) GetPage ¶
func (x *ListArticlesRequest) GetPage() int32
func (*ListArticlesRequest) ProtoMessage ¶
func (*ListArticlesRequest) ProtoMessage()
func (*ListArticlesRequest) ProtoReflect ¶
func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
func (*ListArticlesRequest) Reset ¶
func (x *ListArticlesRequest) Reset()
func (*ListArticlesRequest) String ¶
func (x *ListArticlesRequest) String() string
type ListArticlesResponse ¶
type ListArticlesResponse struct {
Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
Count *int64 `protobuf:"varint,2,opt,name=count,proto3,oneof" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*ListArticlesResponse) Descriptor
deprecated
func (*ListArticlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListArticlesResponse.ProtoReflect.Descriptor instead.
func (*ListArticlesResponse) GetArticles ¶
func (x *ListArticlesResponse) GetArticles() []*Article
func (*ListArticlesResponse) GetCount ¶
func (x *ListArticlesResponse) GetCount() int64
func (*ListArticlesResponse) ProtoMessage ¶
func (*ListArticlesResponse) ProtoMessage()
func (*ListArticlesResponse) ProtoReflect ¶
func (x *ListArticlesResponse) ProtoReflect() protoreflect.Message
func (*ListArticlesResponse) Reset ¶
func (x *ListArticlesResponse) Reset()
func (*ListArticlesResponse) String ¶
func (x *ListArticlesResponse) String() string
type ListCategoriesRequest ¶
type ListCategoriesRequest struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListCategoriesRequest) Descriptor
deprecated
func (*ListCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.
func (*ListCategoriesRequest) GetLimit ¶
func (x *ListCategoriesRequest) GetLimit() int32
func (*ListCategoriesRequest) GetPage ¶
func (x *ListCategoriesRequest) GetPage() int32
func (*ListCategoriesRequest) ProtoMessage ¶
func (*ListCategoriesRequest) ProtoMessage()
func (*ListCategoriesRequest) ProtoReflect ¶
func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
func (*ListCategoriesRequest) Reset ¶
func (x *ListCategoriesRequest) Reset()
func (*ListCategoriesRequest) String ¶
func (x *ListCategoriesRequest) String() string
type ListCategoriesResponse ¶
type ListCategoriesResponse struct {
Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*ListCategoriesResponse) Descriptor
deprecated
func (*ListCategoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.
func (*ListCategoriesResponse) GetCategories ¶
func (x *ListCategoriesResponse) GetCategories() []*Category
func (*ListCategoriesResponse) GetCount ¶
func (x *ListCategoriesResponse) GetCount() int64
func (*ListCategoriesResponse) ProtoMessage ¶
func (*ListCategoriesResponse) ProtoMessage()
func (*ListCategoriesResponse) ProtoReflect ¶
func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
func (*ListCategoriesResponse) Reset ¶
func (x *ListCategoriesResponse) Reset()
func (*ListCategoriesResponse) String ¶
func (x *ListCategoriesResponse) String() string
type LoginAdminRequest ¶
type LoginAdminRequest struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*LoginAdminRequest) Descriptor
deprecated
func (*LoginAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginAdminRequest.ProtoReflect.Descriptor instead.
func (*LoginAdminRequest) GetPassword ¶
func (x *LoginAdminRequest) GetPassword() string
func (*LoginAdminRequest) GetUsername ¶
func (x *LoginAdminRequest) GetUsername() string
func (*LoginAdminRequest) ProtoMessage ¶
func (*LoginAdminRequest) ProtoMessage()
func (*LoginAdminRequest) ProtoReflect ¶
func (x *LoginAdminRequest) ProtoReflect() protoreflect.Message
func (*LoginAdminRequest) Reset ¶
func (x *LoginAdminRequest) Reset()
func (*LoginAdminRequest) String ¶
func (x *LoginAdminRequest) String() string
type LoginAdminResponse ¶
type LoginAdminResponse struct {
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
AccessTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=access_token_expires_at,json=accessTokenExpiresAt,proto3" json:"access_token_expires_at,omitempty"`
RefreshTokenExpiresAt *timestamppb.Timestamp `` /* 128-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*LoginAdminResponse) Descriptor
deprecated
func (*LoginAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginAdminResponse.ProtoReflect.Descriptor instead.
func (*LoginAdminResponse) GetAccessToken ¶
func (x *LoginAdminResponse) GetAccessToken() string
func (*LoginAdminResponse) GetAccessTokenExpiresAt ¶
func (x *LoginAdminResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp
func (*LoginAdminResponse) GetAdmin ¶
func (x *LoginAdminResponse) GetAdmin() *Admin
func (*LoginAdminResponse) GetRefreshToken ¶
func (x *LoginAdminResponse) GetRefreshToken() string
func (*LoginAdminResponse) GetRefreshTokenExpiresAt ¶
func (x *LoginAdminResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp
func (*LoginAdminResponse) ProtoMessage ¶
func (*LoginAdminResponse) ProtoMessage()
func (*LoginAdminResponse) ProtoReflect ¶
func (x *LoginAdminResponse) ProtoReflect() protoreflect.Message
func (*LoginAdminResponse) Reset ¶
func (x *LoginAdminResponse) Reset()
func (*LoginAdminResponse) String ¶
func (x *LoginAdminResponse) String() string
type LogoutAdminRequest ¶
type LogoutAdminRequest struct {
// contains filtered or unexported fields
}
func (*LogoutAdminRequest) Descriptor
deprecated
func (*LogoutAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutAdminRequest.ProtoReflect.Descriptor instead.
func (*LogoutAdminRequest) ProtoMessage ¶
func (*LogoutAdminRequest) ProtoMessage()
func (*LogoutAdminRequest) ProtoReflect ¶
func (x *LogoutAdminRequest) ProtoReflect() protoreflect.Message
func (*LogoutAdminRequest) Reset ¶
func (x *LogoutAdminRequest) Reset()
func (*LogoutAdminRequest) String ¶
func (x *LogoutAdminRequest) String() string
type LogoutAdminResponse ¶
type LogoutAdminResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*LogoutAdminResponse) Descriptor
deprecated
func (*LogoutAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogoutAdminResponse.ProtoReflect.Descriptor instead.
func (*LogoutAdminResponse) GetMessage ¶
func (x *LogoutAdminResponse) GetMessage() string
func (*LogoutAdminResponse) ProtoMessage ¶
func (*LogoutAdminResponse) ProtoMessage()
func (*LogoutAdminResponse) ProtoReflect ¶
func (x *LogoutAdminResponse) ProtoReflect() protoreflect.Message
func (*LogoutAdminResponse) Reset ¶
func (x *LogoutAdminResponse) Reset()
func (*LogoutAdminResponse) String ¶
func (x *LogoutAdminResponse) String() string
type NostalgiaClient ¶
type NostalgiaClient interface {
LoginAdmin(ctx context.Context, in *LoginAdminRequest, opts ...grpc.CallOption) (*LoginAdminResponse, error)
LogoutAdmin(ctx context.Context, in *LogoutAdminRequest, opts ...grpc.CallOption) (*LogoutAdminResponse, error)
RenewAccessToken(ctx context.Context, in *RenewAccessTokenRequest, opts ...grpc.CallOption) (*RenewAccessTokenResponse, error)
InitSysMenu(ctx context.Context, in *InitSysMenuRequest, opts ...grpc.CallOption) (*InitSysMenuResponse, error)
CreateAdmin(ctx context.Context, in *CreateAdminRequest, opts ...grpc.CallOption) (*CreateAdminResponse, error)
UpdateAdmin(ctx context.Context, in *UpdateAdminRequest, opts ...grpc.CallOption) (*UpdateAdminResponse, error)
AdminInfo(ctx context.Context, in *AdminInfoRequest, opts ...grpc.CallOption) (*AdminInfoResponse, error)
CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*CreateArticleResponse, error)
DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*DeleteArticleResponse, error)
ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...grpc.CallOption) (*ListArticlesResponse, error)
GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*GetArticleResponse, error)
UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*UpdateArticleResponse, error)
UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileResponse, error)
CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error)
DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*DeleteCategoryResponse, error)
UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*UpdateCategoryResponse, error)
ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
ListAllCategories(ctx context.Context, in *ListAllCategoriesRequest, opts ...grpc.CallOption) (*ListAllCategoriesResponse, error)
}
NostalgiaClient is the client API for Nostalgia service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNostalgiaClient ¶
func NewNostalgiaClient(cc grpc.ClientConnInterface) NostalgiaClient
type NostalgiaServer ¶
type NostalgiaServer interface {
LoginAdmin(context.Context, *LoginAdminRequest) (*LoginAdminResponse, error)
LogoutAdmin(context.Context, *LogoutAdminRequest) (*LogoutAdminResponse, error)
RenewAccessToken(context.Context, *RenewAccessTokenRequest) (*RenewAccessTokenResponse, error)
InitSysMenu(context.Context, *InitSysMenuRequest) (*InitSysMenuResponse, error)
CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error)
UpdateAdmin(context.Context, *UpdateAdminRequest) (*UpdateAdminResponse, error)
AdminInfo(context.Context, *AdminInfoRequest) (*AdminInfoResponse, error)
CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleResponse, error)
DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleResponse, error)
ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
GetArticle(context.Context, *GetArticleRequest) (*GetArticleResponse, error)
UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleResponse, error)
UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
DeleteCategory(context.Context, *DeleteCategoryRequest) (*DeleteCategoryResponse, error)
UpdateCategory(context.Context, *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
ListAllCategories(context.Context, *ListAllCategoriesRequest) (*ListAllCategoriesResponse, error)
// contains filtered or unexported methods
}
NostalgiaServer is the server API for Nostalgia service. All implementations must embed UnimplementedNostalgiaServer for forward compatibility.
type RenewAccessTokenRequest ¶
type RenewAccessTokenRequest struct {
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
// contains filtered or unexported fields
}
func (*RenewAccessTokenRequest) Descriptor
deprecated
func (*RenewAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenewAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*RenewAccessTokenRequest) GetRefreshToken ¶
func (x *RenewAccessTokenRequest) GetRefreshToken() string
func (*RenewAccessTokenRequest) ProtoMessage ¶
func (*RenewAccessTokenRequest) ProtoMessage()
func (*RenewAccessTokenRequest) ProtoReflect ¶
func (x *RenewAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*RenewAccessTokenRequest) Reset ¶
func (x *RenewAccessTokenRequest) Reset()
func (*RenewAccessTokenRequest) String ¶
func (x *RenewAccessTokenRequest) String() string
type RenewAccessTokenResponse ¶
type RenewAccessTokenResponse struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
AccessTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=access_token_expires_at,json=accessTokenExpiresAt,proto3" json:"access_token_expires_at,omitempty"`
// contains filtered or unexported fields
}
func (*RenewAccessTokenResponse) Descriptor
deprecated
func (*RenewAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenewAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*RenewAccessTokenResponse) GetAccessToken ¶
func (x *RenewAccessTokenResponse) GetAccessToken() string
func (*RenewAccessTokenResponse) GetAccessTokenExpiresAt ¶
func (x *RenewAccessTokenResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp
func (*RenewAccessTokenResponse) ProtoMessage ¶
func (*RenewAccessTokenResponse) ProtoMessage()
func (*RenewAccessTokenResponse) ProtoReflect ¶
func (x *RenewAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*RenewAccessTokenResponse) Reset ¶
func (x *RenewAccessTokenResponse) Reset()
func (*RenewAccessTokenResponse) String ¶
func (x *RenewAccessTokenResponse) String() string
type UnimplementedNostalgiaServer ¶
type UnimplementedNostalgiaServer struct{}
UnimplementedNostalgiaServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNostalgiaServer) AdminInfo ¶
func (UnimplementedNostalgiaServer) AdminInfo(context.Context, *AdminInfoRequest) (*AdminInfoResponse, error)
func (UnimplementedNostalgiaServer) CreateAdmin ¶
func (UnimplementedNostalgiaServer) CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error)
func (UnimplementedNostalgiaServer) CreateArticle ¶
func (UnimplementedNostalgiaServer) CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleResponse, error)
func (UnimplementedNostalgiaServer) CreateCategory ¶
func (UnimplementedNostalgiaServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
func (UnimplementedNostalgiaServer) DeleteArticle ¶
func (UnimplementedNostalgiaServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleResponse, error)
func (UnimplementedNostalgiaServer) DeleteCategory ¶
func (UnimplementedNostalgiaServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*DeleteCategoryResponse, error)
func (UnimplementedNostalgiaServer) GetArticle ¶
func (UnimplementedNostalgiaServer) GetArticle(context.Context, *GetArticleRequest) (*GetArticleResponse, error)
func (UnimplementedNostalgiaServer) InitSysMenu ¶
func (UnimplementedNostalgiaServer) InitSysMenu(context.Context, *InitSysMenuRequest) (*InitSysMenuResponse, error)
func (UnimplementedNostalgiaServer) ListAllCategories ¶
func (UnimplementedNostalgiaServer) ListAllCategories(context.Context, *ListAllCategoriesRequest) (*ListAllCategoriesResponse, error)
func (UnimplementedNostalgiaServer) ListArticles ¶
func (UnimplementedNostalgiaServer) ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
func (UnimplementedNostalgiaServer) ListCategories ¶
func (UnimplementedNostalgiaServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
func (UnimplementedNostalgiaServer) LoginAdmin ¶
func (UnimplementedNostalgiaServer) LoginAdmin(context.Context, *LoginAdminRequest) (*LoginAdminResponse, error)
func (UnimplementedNostalgiaServer) LogoutAdmin ¶
func (UnimplementedNostalgiaServer) LogoutAdmin(context.Context, *LogoutAdminRequest) (*LogoutAdminResponse, error)
func (UnimplementedNostalgiaServer) RenewAccessToken ¶
func (UnimplementedNostalgiaServer) RenewAccessToken(context.Context, *RenewAccessTokenRequest) (*RenewAccessTokenResponse, error)
func (UnimplementedNostalgiaServer) UpdateAdmin ¶
func (UnimplementedNostalgiaServer) UpdateAdmin(context.Context, *UpdateAdminRequest) (*UpdateAdminResponse, error)
func (UnimplementedNostalgiaServer) UpdateArticle ¶
func (UnimplementedNostalgiaServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleResponse, error)
func (UnimplementedNostalgiaServer) UpdateCategory ¶
func (UnimplementedNostalgiaServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
func (UnimplementedNostalgiaServer) UploadFile ¶
func (UnimplementedNostalgiaServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
type UnsafeNostalgiaServer ¶
type UnsafeNostalgiaServer interface {
// contains filtered or unexported methods
}
UnsafeNostalgiaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NostalgiaServer will result in compilation errors.
type UpdateAdminRequest ¶
type UpdateAdminRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"`
IsActive *bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
RoleId *int64 `protobuf:"varint,5,opt,name=role_id,json=roleId,proto3,oneof" json:"role_id,omitempty"`
OldPassword *string `protobuf:"bytes,6,opt,name=old_password,json=oldPassword,proto3,oneof" json:"old_password,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateAdminRequest) Descriptor
deprecated
func (*UpdateAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdminRequest.ProtoReflect.Descriptor instead.
func (*UpdateAdminRequest) GetId ¶
func (x *UpdateAdminRequest) GetId() int64
func (*UpdateAdminRequest) GetIsActive ¶
func (x *UpdateAdminRequest) GetIsActive() bool
func (*UpdateAdminRequest) GetOldPassword ¶
func (x *UpdateAdminRequest) GetOldPassword() string
func (*UpdateAdminRequest) GetPassword ¶
func (x *UpdateAdminRequest) GetPassword() string
func (*UpdateAdminRequest) GetRoleId ¶
func (x *UpdateAdminRequest) GetRoleId() int64
func (*UpdateAdminRequest) GetUsername ¶
func (x *UpdateAdminRequest) GetUsername() string
func (*UpdateAdminRequest) ProtoMessage ¶
func (*UpdateAdminRequest) ProtoMessage()
func (*UpdateAdminRequest) ProtoReflect ¶
func (x *UpdateAdminRequest) ProtoReflect() protoreflect.Message
func (*UpdateAdminRequest) Reset ¶
func (x *UpdateAdminRequest) Reset()
func (*UpdateAdminRequest) String ¶
func (x *UpdateAdminRequest) String() string
type UpdateAdminResponse ¶
type UpdateAdminResponse struct {
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateAdminResponse) Descriptor
deprecated
func (*UpdateAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdminResponse.ProtoReflect.Descriptor instead.
func (*UpdateAdminResponse) GetAdmin ¶
func (x *UpdateAdminResponse) GetAdmin() *Admin
func (*UpdateAdminResponse) ProtoMessage ¶
func (*UpdateAdminResponse) ProtoMessage()
func (*UpdateAdminResponse) ProtoReflect ¶
func (x *UpdateAdminResponse) ProtoReflect() protoreflect.Message
func (*UpdateAdminResponse) Reset ¶
func (x *UpdateAdminResponse) Reset()
func (*UpdateAdminResponse) String ¶
func (x *UpdateAdminResponse) String() string
type UpdateArticleRequest ¶
type UpdateArticleRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"`
Summary *string `protobuf:"bytes,3,opt,name=summary,proto3,oneof" json:"summary,omitempty"`
Content *string `protobuf:"bytes,4,opt,name=content,proto3,oneof" json:"content,omitempty"`
IsPublish *bool `protobuf:"varint,5,opt,name=is_publish,json=isPublish,proto3,oneof" json:"is_publish,omitempty"`
CategoryId *int64 `protobuf:"varint,6,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"`
Cover *string `protobuf:"bytes,7,opt,name=cover,proto3,oneof" json:"cover,omitempty"`
Slug *string `protobuf:"bytes,8,opt,name=slug,proto3,oneof" json:"slug,omitempty"`
CheckOutdated *bool `protobuf:"varint,9,opt,name=check_outdated,json=checkOutdated,proto3,oneof" json:"check_outdated,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateArticleRequest) Descriptor
deprecated
func (*UpdateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest) GetCategoryId ¶
func (x *UpdateArticleRequest) GetCategoryId() int64
func (*UpdateArticleRequest) GetCheckOutdated ¶ added in v1.3.0
func (x *UpdateArticleRequest) GetCheckOutdated() bool
func (*UpdateArticleRequest) GetContent ¶
func (x *UpdateArticleRequest) GetContent() string
func (*UpdateArticleRequest) GetCover ¶ added in v1.3.0
func (x *UpdateArticleRequest) GetCover() string
func (*UpdateArticleRequest) GetId ¶
func (x *UpdateArticleRequest) GetId() string
func (*UpdateArticleRequest) GetIsPublish ¶
func (x *UpdateArticleRequest) GetIsPublish() bool
func (*UpdateArticleRequest) GetSlug ¶ added in v1.3.0
func (x *UpdateArticleRequest) GetSlug() string
func (*UpdateArticleRequest) GetSummary ¶
func (x *UpdateArticleRequest) GetSummary() string
func (*UpdateArticleRequest) GetTitle ¶
func (x *UpdateArticleRequest) GetTitle() string
func (*UpdateArticleRequest) ProtoMessage ¶
func (*UpdateArticleRequest) ProtoMessage()
func (*UpdateArticleRequest) ProtoReflect ¶
func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
func (*UpdateArticleRequest) Reset ¶
func (x *UpdateArticleRequest) Reset()
func (*UpdateArticleRequest) String ¶
func (x *UpdateArticleRequest) String() string
type UpdateArticleResponse ¶
type UpdateArticleResponse struct {
Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateArticleResponse) Descriptor
deprecated
func (*UpdateArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleResponse.ProtoReflect.Descriptor instead.
func (*UpdateArticleResponse) GetArticle ¶
func (x *UpdateArticleResponse) GetArticle() *Article
func (*UpdateArticleResponse) ProtoMessage ¶
func (*UpdateArticleResponse) ProtoMessage()
func (*UpdateArticleResponse) ProtoReflect ¶
func (x *UpdateArticleResponse) ProtoReflect() protoreflect.Message
func (*UpdateArticleResponse) Reset ¶
func (x *UpdateArticleResponse) Reset()
func (*UpdateArticleResponse) String ¶
func (x *UpdateArticleResponse) String() string
type UpdateCategoryRequest ¶
type UpdateCategoryRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCategoryRequest) Descriptor
deprecated
func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateCategoryRequest) GetId ¶
func (x *UpdateCategoryRequest) GetId() int64
func (*UpdateCategoryRequest) GetName ¶
func (x *UpdateCategoryRequest) GetName() string
func (*UpdateCategoryRequest) ProtoMessage ¶
func (*UpdateCategoryRequest) ProtoMessage()
func (*UpdateCategoryRequest) ProtoReflect ¶
func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
func (*UpdateCategoryRequest) Reset ¶
func (x *UpdateCategoryRequest) Reset()
func (*UpdateCategoryRequest) String ¶
func (x *UpdateCategoryRequest) String() string
type UpdateCategoryResponse ¶
type UpdateCategoryResponse struct {
Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCategoryResponse) Descriptor
deprecated
func (*UpdateCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCategoryResponse.ProtoReflect.Descriptor instead.
func (*UpdateCategoryResponse) GetCategory ¶
func (x *UpdateCategoryResponse) GetCategory() *Category
func (*UpdateCategoryResponse) ProtoMessage ¶
func (*UpdateCategoryResponse) ProtoMessage()
func (*UpdateCategoryResponse) ProtoReflect ¶
func (x *UpdateCategoryResponse) ProtoReflect() protoreflect.Message
func (*UpdateCategoryResponse) Reset ¶
func (x *UpdateCategoryResponse) Reset()
func (*UpdateCategoryResponse) String ¶
func (x *UpdateCategoryResponse) String() string
type UploadFileRequest ¶
type UploadFileRequest struct {
ArticleId *string `protobuf:"bytes,1,opt,name=article_id,json=articleId,proto3,oneof" json:"article_id,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetArticleId ¶
func (x *UploadFileRequest) GetArticleId() string
func (*UploadFileRequest) GetContent ¶
func (x *UploadFileRequest) GetContent() []byte
func (*UploadFileRequest) GetType ¶ added in v1.3.0
func (x *UploadFileRequest) GetType() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileResponse ¶
type UploadFileResponse struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetFilename ¶
func (x *UploadFileResponse) GetFilename() string
func (*UploadFileResponse) GetUrl ¶
func (x *UploadFileResponse) GetUrl() string
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string
Source Files
¶
- admin.pb.go
- article.pb.go
- category.pb.go
- rpc_admin_info.pb.go
- rpc_create_admin.pb.go
- rpc_create_article.pb.go
- rpc_delete_article.pb.go
- rpc_get_article.pb.go
- rpc_init_sys_menu.pb.go
- rpc_list_articles.pb.go
- rpc_login_admin.pb.go
- rpc_logout_admin.pb.go
- rpc_renew_access_token.pb.go
- rpc_update_admin.pb.go
- rpc_update_article.pb.go
- rpc_upload_file.pb.go
- service_nostalgia.pb.go
- service_nostalgia.pb.gw.go
- service_nostalgia_grpc.pb.go
- sys_menu.pb.go