diff --git a/internal/configloaders/admin_module.go b/internal/configloaders/admin_module.go index 8e7abb4c..a84216f9 100644 --- a/internal/configloaders/admin_module.go +++ b/internal/configloaders/admin_module.go @@ -158,7 +158,7 @@ func AllModuleMaps() []maps.Map { } if teaconst.IsPlus { m = append(m, maps.Map{ - "name": "域名服务器", + "name": "域名服务", "code": AdminModuleCodeNS, "url": "/ns", }) diff --git a/internal/rpc/rpc_client.go b/internal/rpc/rpc_client.go index 5907f77e..2b1e2b52 100644 --- a/internal/rpc/rpc_client.go +++ b/internal/rpc/rpc_client.go @@ -360,6 +360,14 @@ func (this *RPCClient) NSNodeRPC() pb.NSNodeServiceClient { return pb.NewNSNodeServiceClient(this.pickConn()) } +func (this *RPCClient) NSDomainRPC() pb.NSDomainServiceClient { + return pb.NewNSDomainServiceClient(this.pickConn()) +} + +func (this *RPCClient) NSRecordRPC() pb.NSRecordServiceClient { + return pb.NewNSRecordServiceClient(this.pickConn()) +} + // Context 构造Admin上下文 func (this *RPCClient) Context(adminId int64) context.Context { ctx := context.Background() diff --git a/internal/web/actions/actionutils/utils.go b/internal/web/actions/actionutils/utils.go index 9f3edc7e..dbcf169e 100644 --- a/internal/web/actions/actionutils/utils.go +++ b/internal/web/actions/actionutils/utils.go @@ -37,6 +37,8 @@ func FailPage(action actions.ActionWrapper, err error) {