perf: 多个dns 提供商支持导入域名

This commit is contained in:
xiaojunnuo
2026-01-23 16:56:01 +08:00
parent 7eb9694221
commit d3c0914ac1
12 changed files with 131 additions and 28 deletions
@@ -1,5 +1,5 @@
import { HttpRequestConfig } from '@certd/basic';
import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
import { IsAccess, AccessInput, BaseAccess, PageSearch, Pager } from '@certd/pipeline';
import qs from 'qs';
import iconv from 'iconv-lite';
/**
@@ -133,7 +133,7 @@ export class WestAccess extends BaseAccess {
return "ok";
}
await this.getDomainList();
await this.getDomainList({pageNo:1,pageSize:1});
return "ok";
}
@@ -166,14 +166,15 @@ export class WestAccess extends BaseAccess {
return res;
}
async getDomainList() {
async getDomainList(req: PageSearch) {
const pager = new Pager(req)
const res = await this.doRequest({
url: '/v2/domain',
method: 'GET',
data:{
act:'getdomains',
limit:1,
page:1
limit: pager.pageSize,
page: pager.pageNo,
}
});
return res;