818 lines
29 KiB
Go
818 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_authority_node.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 创建认证节点
|
|
type CreateAuthorityNodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeRequest) Reset() {
|
|
*x = CreateAuthorityNodeRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAuthorityNodeRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateAuthorityNodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateAuthorityNodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateAuthorityNodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateAuthorityNodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodeId int64 `protobuf:"varint,1,opt,name=authorityNodeId,proto3" json:"authorityNodeId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeResponse) Reset() {
|
|
*x = CreateAuthorityNodeResponse{}
|
|
mi := &file_service_authority_node_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAuthorityNodeResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateAuthorityNodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateAuthorityNodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateAuthorityNodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateAuthorityNodeResponse) GetAuthorityNodeId() int64 {
|
|
if x != nil {
|
|
return x.AuthorityNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改认证节点
|
|
type UpdateAuthorityNodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodeId int64 `protobuf:"varint,1,opt,name=authorityNodeId,proto3" json:"authorityNodeId,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) Reset() {
|
|
*x = UpdateAuthorityNodeRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateAuthorityNodeRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateAuthorityNodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateAuthorityNodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) GetAuthorityNodeId() int64 {
|
|
if x != nil {
|
|
return x.AuthorityNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 删除认证节点
|
|
type DeleteAuthorityNodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodeId int64 `protobuf:"varint,1,opt,name=authorityNodeId,proto3" json:"authorityNodeId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteAuthorityNodeRequest) Reset() {
|
|
*x = DeleteAuthorityNodeRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteAuthorityNodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteAuthorityNodeRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteAuthorityNodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteAuthorityNodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteAuthorityNodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DeleteAuthorityNodeRequest) GetAuthorityNodeId() int64 {
|
|
if x != nil {
|
|
return x.AuthorityNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 列出所有可用认证节点
|
|
type FindAllEnabledAuthorityNodesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesRequest) Reset() {
|
|
*x = FindAllEnabledAuthorityNodesRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledAuthorityNodesRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledAuthorityNodesRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledAuthorityNodesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type FindAllEnabledAuthorityNodesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodes []*AuthorityNode `protobuf:"bytes,1,rep,name=authorityNodes,proto3" json:"authorityNodes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesResponse) Reset() {
|
|
*x = FindAllEnabledAuthorityNodesResponse{}
|
|
mi := &file_service_authority_node_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledAuthorityNodesResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledAuthorityNodesResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledAuthorityNodesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FindAllEnabledAuthorityNodesResponse) GetAuthorityNodes() []*AuthorityNode {
|
|
if x != nil {
|
|
return x.AuthorityNodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 计算认证节点数量
|
|
type CountAllEnabledAuthorityNodesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllEnabledAuthorityNodesRequest) Reset() {
|
|
*x = CountAllEnabledAuthorityNodesRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAllEnabledAuthorityNodesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAllEnabledAuthorityNodesRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAllEnabledAuthorityNodesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAllEnabledAuthorityNodesRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAllEnabledAuthorityNodesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
// 列出单页的认证节点
|
|
type ListEnabledAuthorityNodesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesRequest) Reset() {
|
|
*x = ListEnabledAuthorityNodesRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledAuthorityNodesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledAuthorityNodesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledAuthorityNodesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledAuthorityNodesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListEnabledAuthorityNodesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodes []*AuthorityNode `protobuf:"bytes,1,rep,name=authorityNodes,proto3" json:"authorityNodes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesResponse) Reset() {
|
|
*x = ListEnabledAuthorityNodesResponse{}
|
|
mi := &file_service_authority_node_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledAuthorityNodesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledAuthorityNodesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledAuthorityNodesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledAuthorityNodesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListEnabledAuthorityNodesResponse) GetAuthorityNodes() []*AuthorityNode {
|
|
if x != nil {
|
|
return x.AuthorityNodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 根据ID查找节点
|
|
type FindEnabledAuthorityNodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodeId int64 `protobuf:"varint,1,opt,name=authorityNodeId,proto3" json:"authorityNodeId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeRequest) Reset() {
|
|
*x = FindEnabledAuthorityNodeRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledAuthorityNodeRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledAuthorityNodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledAuthorityNodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledAuthorityNodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeRequest) GetAuthorityNodeId() int64 {
|
|
if x != nil {
|
|
return x.AuthorityNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledAuthorityNodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNode *AuthorityNode `protobuf:"bytes,1,opt,name=authorityNode,proto3" json:"authorityNode,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeResponse) Reset() {
|
|
*x = FindEnabledAuthorityNodeResponse{}
|
|
mi := &file_service_authority_node_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledAuthorityNodeResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledAuthorityNodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledAuthorityNodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledAuthorityNodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FindEnabledAuthorityNodeResponse) GetAuthorityNode() *AuthorityNode {
|
|
if x != nil {
|
|
return x.AuthorityNode
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取当前认证节点
|
|
type FindCurrentAuthorityNodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindCurrentAuthorityNodeRequest) Reset() {
|
|
*x = FindCurrentAuthorityNodeRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindCurrentAuthorityNodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindCurrentAuthorityNodeRequest) ProtoMessage() {}
|
|
|
|
func (x *FindCurrentAuthorityNodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindCurrentAuthorityNodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindCurrentAuthorityNodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
type FindCurrentAuthorityNodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNode *AuthorityNode `protobuf:"bytes,1,opt,name=authorityNode,proto3" json:"authorityNode,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindCurrentAuthorityNodeResponse) Reset() {
|
|
*x = FindCurrentAuthorityNodeResponse{}
|
|
mi := &file_service_authority_node_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindCurrentAuthorityNodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindCurrentAuthorityNodeResponse) ProtoMessage() {}
|
|
|
|
func (x *FindCurrentAuthorityNodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindCurrentAuthorityNodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindCurrentAuthorityNodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *FindCurrentAuthorityNodeResponse) GetAuthorityNode() *AuthorityNode {
|
|
if x != nil {
|
|
return x.AuthorityNode
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 更新认证状态
|
|
type UpdateAuthorityNodeStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthorityNodeId int64 `protobuf:"varint,1,opt,name=authorityNodeId,proto3" json:"authorityNodeId,omitempty"`
|
|
StatusJSON []byte `protobuf:"bytes,2,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeStatusRequest) Reset() {
|
|
*x = UpdateAuthorityNodeStatusRequest{}
|
|
mi := &file_service_authority_node_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateAuthorityNodeStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateAuthorityNodeStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_authority_node_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateAuthorityNodeStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateAuthorityNodeStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_authority_node_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeStatusRequest) GetAuthorityNodeId() int64 {
|
|
if x != nil {
|
|
return x.AuthorityNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateAuthorityNodeStatusRequest) GetStatusJSON() []byte {
|
|
if x != nil {
|
|
return x.StatusJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_authority_node_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_authority_node_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1cservice_authority_node.proto\x12\x02pb\x1a!models/model_authority_node.proto\x1a\x19models/rpc_messages.proto\"f\n" +
|
|
"\x1aCreateAuthorityNodeRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x12\n" +
|
|
"\x04isOn\x18\x03 \x01(\bR\x04isOn\"G\n" +
|
|
"\x1bCreateAuthorityNodeResponse\x12(\n" +
|
|
"\x0fauthorityNodeId\x18\x01 \x01(\x03R\x0fauthorityNodeId\"\x90\x01\n" +
|
|
"\x1aUpdateAuthorityNodeRequest\x12(\n" +
|
|
"\x0fauthorityNodeId\x18\x01 \x01(\x03R\x0fauthorityNodeId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x12\n" +
|
|
"\x04isOn\x18\x04 \x01(\bR\x04isOn\"F\n" +
|
|
"\x1aDeleteAuthorityNodeRequest\x12(\n" +
|
|
"\x0fauthorityNodeId\x18\x01 \x01(\x03R\x0fauthorityNodeId\"%\n" +
|
|
"#FindAllEnabledAuthorityNodesRequest\"a\n" +
|
|
"$FindAllEnabledAuthorityNodesResponse\x129\n" +
|
|
"\x0eauthorityNodes\x18\x01 \x03(\v2\x11.pb.AuthorityNodeR\x0eauthorityNodes\"&\n" +
|
|
"$CountAllEnabledAuthorityNodesRequest\"N\n" +
|
|
" ListEnabledAuthorityNodesRequest\x12\x16\n" +
|
|
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x03R\x04size\"^\n" +
|
|
"!ListEnabledAuthorityNodesResponse\x129\n" +
|
|
"\x0eauthorityNodes\x18\x01 \x03(\v2\x11.pb.AuthorityNodeR\x0eauthorityNodes\"K\n" +
|
|
"\x1fFindEnabledAuthorityNodeRequest\x12(\n" +
|
|
"\x0fauthorityNodeId\x18\x01 \x01(\x03R\x0fauthorityNodeId\"[\n" +
|
|
" FindEnabledAuthorityNodeResponse\x127\n" +
|
|
"\rauthorityNode\x18\x01 \x01(\v2\x11.pb.AuthorityNodeR\rauthorityNode\"!\n" +
|
|
"\x1fFindCurrentAuthorityNodeRequest\"[\n" +
|
|
" FindCurrentAuthorityNodeResponse\x127\n" +
|
|
"\rauthorityNode\x18\x01 \x01(\v2\x11.pb.AuthorityNodeR\rauthorityNode\"l\n" +
|
|
" UpdateAuthorityNodeStatusRequest\x12(\n" +
|
|
"\x0fauthorityNodeId\x18\x01 \x01(\x03R\x0fauthorityNodeId\x12\x1e\n" +
|
|
"\n" +
|
|
"statusJSON\x18\x02 \x01(\fR\n" +
|
|
"statusJSON2\xdb\x06\n" +
|
|
"\x14AuthorityNodeService\x12V\n" +
|
|
"\x13createAuthorityNode\x12\x1e.pb.CreateAuthorityNodeRequest\x1a\x1f.pb.CreateAuthorityNodeResponse\x12E\n" +
|
|
"\x13updateAuthorityNode\x12\x1e.pb.UpdateAuthorityNodeRequest\x1a\x0e.pb.RPCSuccess\x12E\n" +
|
|
"\x13deleteAuthorityNode\x12\x1e.pb.DeleteAuthorityNodeRequest\x1a\x0e.pb.RPCSuccess\x12q\n" +
|
|
"\x1cfindAllEnabledAuthorityNodes\x12'.pb.FindAllEnabledAuthorityNodesRequest\x1a(.pb.FindAllEnabledAuthorityNodesResponse\x12_\n" +
|
|
"\x1dcountAllEnabledAuthorityNodes\x12(.pb.CountAllEnabledAuthorityNodesRequest\x1a\x14.pb.RPCCountResponse\x12h\n" +
|
|
"\x19listEnabledAuthorityNodes\x12$.pb.ListEnabledAuthorityNodesRequest\x1a%.pb.ListEnabledAuthorityNodesResponse\x12e\n" +
|
|
"\x18findEnabledAuthorityNode\x12#.pb.FindEnabledAuthorityNodeRequest\x1a$.pb.FindEnabledAuthorityNodeResponse\x12e\n" +
|
|
"\x18findCurrentAuthorityNode\x12#.pb.FindCurrentAuthorityNodeRequest\x1a$.pb.FindCurrentAuthorityNodeResponse\x12Q\n" +
|
|
"\x19updateAuthorityNodeStatus\x12$.pb.UpdateAuthorityNodeStatusRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_authority_node_proto_rawDescOnce sync.Once
|
|
file_service_authority_node_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_authority_node_proto_rawDescGZIP() []byte {
|
|
file_service_authority_node_proto_rawDescOnce.Do(func() {
|
|
file_service_authority_node_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_authority_node_proto_rawDesc), len(file_service_authority_node_proto_rawDesc)))
|
|
})
|
|
return file_service_authority_node_proto_rawDescData
|
|
}
|
|
|
|
var file_service_authority_node_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_service_authority_node_proto_goTypes = []any{
|
|
(*CreateAuthorityNodeRequest)(nil), // 0: pb.CreateAuthorityNodeRequest
|
|
(*CreateAuthorityNodeResponse)(nil), // 1: pb.CreateAuthorityNodeResponse
|
|
(*UpdateAuthorityNodeRequest)(nil), // 2: pb.UpdateAuthorityNodeRequest
|
|
(*DeleteAuthorityNodeRequest)(nil), // 3: pb.DeleteAuthorityNodeRequest
|
|
(*FindAllEnabledAuthorityNodesRequest)(nil), // 4: pb.FindAllEnabledAuthorityNodesRequest
|
|
(*FindAllEnabledAuthorityNodesResponse)(nil), // 5: pb.FindAllEnabledAuthorityNodesResponse
|
|
(*CountAllEnabledAuthorityNodesRequest)(nil), // 6: pb.CountAllEnabledAuthorityNodesRequest
|
|
(*ListEnabledAuthorityNodesRequest)(nil), // 7: pb.ListEnabledAuthorityNodesRequest
|
|
(*ListEnabledAuthorityNodesResponse)(nil), // 8: pb.ListEnabledAuthorityNodesResponse
|
|
(*FindEnabledAuthorityNodeRequest)(nil), // 9: pb.FindEnabledAuthorityNodeRequest
|
|
(*FindEnabledAuthorityNodeResponse)(nil), // 10: pb.FindEnabledAuthorityNodeResponse
|
|
(*FindCurrentAuthorityNodeRequest)(nil), // 11: pb.FindCurrentAuthorityNodeRequest
|
|
(*FindCurrentAuthorityNodeResponse)(nil), // 12: pb.FindCurrentAuthorityNodeResponse
|
|
(*UpdateAuthorityNodeStatusRequest)(nil), // 13: pb.UpdateAuthorityNodeStatusRequest
|
|
(*AuthorityNode)(nil), // 14: pb.AuthorityNode
|
|
(*RPCSuccess)(nil), // 15: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 16: pb.RPCCountResponse
|
|
}
|
|
var file_service_authority_node_proto_depIdxs = []int32{
|
|
14, // 0: pb.FindAllEnabledAuthorityNodesResponse.authorityNodes:type_name -> pb.AuthorityNode
|
|
14, // 1: pb.ListEnabledAuthorityNodesResponse.authorityNodes:type_name -> pb.AuthorityNode
|
|
14, // 2: pb.FindEnabledAuthorityNodeResponse.authorityNode:type_name -> pb.AuthorityNode
|
|
14, // 3: pb.FindCurrentAuthorityNodeResponse.authorityNode:type_name -> pb.AuthorityNode
|
|
0, // 4: pb.AuthorityNodeService.createAuthorityNode:input_type -> pb.CreateAuthorityNodeRequest
|
|
2, // 5: pb.AuthorityNodeService.updateAuthorityNode:input_type -> pb.UpdateAuthorityNodeRequest
|
|
3, // 6: pb.AuthorityNodeService.deleteAuthorityNode:input_type -> pb.DeleteAuthorityNodeRequest
|
|
4, // 7: pb.AuthorityNodeService.findAllEnabledAuthorityNodes:input_type -> pb.FindAllEnabledAuthorityNodesRequest
|
|
6, // 8: pb.AuthorityNodeService.countAllEnabledAuthorityNodes:input_type -> pb.CountAllEnabledAuthorityNodesRequest
|
|
7, // 9: pb.AuthorityNodeService.listEnabledAuthorityNodes:input_type -> pb.ListEnabledAuthorityNodesRequest
|
|
9, // 10: pb.AuthorityNodeService.findEnabledAuthorityNode:input_type -> pb.FindEnabledAuthorityNodeRequest
|
|
11, // 11: pb.AuthorityNodeService.findCurrentAuthorityNode:input_type -> pb.FindCurrentAuthorityNodeRequest
|
|
13, // 12: pb.AuthorityNodeService.updateAuthorityNodeStatus:input_type -> pb.UpdateAuthorityNodeStatusRequest
|
|
1, // 13: pb.AuthorityNodeService.createAuthorityNode:output_type -> pb.CreateAuthorityNodeResponse
|
|
15, // 14: pb.AuthorityNodeService.updateAuthorityNode:output_type -> pb.RPCSuccess
|
|
15, // 15: pb.AuthorityNodeService.deleteAuthorityNode:output_type -> pb.RPCSuccess
|
|
5, // 16: pb.AuthorityNodeService.findAllEnabledAuthorityNodes:output_type -> pb.FindAllEnabledAuthorityNodesResponse
|
|
16, // 17: pb.AuthorityNodeService.countAllEnabledAuthorityNodes:output_type -> pb.RPCCountResponse
|
|
8, // 18: pb.AuthorityNodeService.listEnabledAuthorityNodes:output_type -> pb.ListEnabledAuthorityNodesResponse
|
|
10, // 19: pb.AuthorityNodeService.findEnabledAuthorityNode:output_type -> pb.FindEnabledAuthorityNodeResponse
|
|
12, // 20: pb.AuthorityNodeService.findCurrentAuthorityNode:output_type -> pb.FindCurrentAuthorityNodeResponse
|
|
15, // 21: pb.AuthorityNodeService.updateAuthorityNodeStatus:output_type -> pb.RPCSuccess
|
|
13, // [13:22] is the sub-list for method output_type
|
|
4, // [4:13] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_authority_node_proto_init() }
|
|
func file_service_authority_node_proto_init() {
|
|
if File_service_authority_node_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_authority_node_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_authority_node_proto_rawDesc), len(file_service_authority_node_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_authority_node_proto_goTypes,
|
|
DependencyIndexes: file_service_authority_node_proto_depIdxs,
|
|
MessageInfos: file_service_authority_node_proto_msgTypes,
|
|
}.Build()
|
|
File_service_authority_node_proto = out.File
|
|
file_service_authority_node_proto_goTypes = nil
|
|
file_service_authority_node_proto_depIdxs = nil
|
|
}
|