实现对ACME用户的增删改

This commit is contained in:
刘祥超
2020-11-24 17:36:47 +08:00
parent a7bdbf411e
commit 6e6083d6af
27 changed files with 202 additions and 87 deletions

View File

@@ -9,6 +9,7 @@ import (
)
type APINodeService struct {
BaseService
}
// 创建API节点
@@ -38,7 +39,7 @@ func (this *APINodeService) UpdateAPINode(ctx context.Context, req *pb.UpdateAPI
return nil, err
}
return &pb.RPCSuccess{}, nil
return this.Success()
}
// 删除API节点
@@ -53,7 +54,7 @@ func (this *APINodeService) DeleteAPINode(ctx context.Context, req *pb.DeleteAPI
return nil, err
}
return &pb.RPCSuccess{}, nil
return this.Success()
}
// 列出所有可用API节点
@@ -105,7 +106,7 @@ func (this *APINodeService) CountAllEnabledAPINodes(ctx context.Context, req *pb
return nil, err
}
return &pb.RPCCountResponse{Count: count}, nil
return this.SuccessCount(count)
}
// 列出单页的API节点