perf: 新增站点证书监控从DNS解析记录批量导入功能

本次提交新增了从DNS解析记录批量导入站点监控的完整功能:
1. 扩展Registrable类型新增icon字段支持
2. 新增DNS解析记录获取接口和基础实现
3. 为阿里云、腾讯云、Cloudflare等DNS提供商添加解析记录分页获取支持
4. 新增站点监控导入任务管理功能,支持保存、启动、删除导入任务
5. 新增中文/英文多语言支持
6. 优化暗黑模式表格样式
7. 修复ACME账户访问修复逻辑中项目ID可选的问题
8. 优化HiPM DNS提供商的域名获取逻辑
This commit is contained in:
xiaojunnuo
2026-06-10 23:32:39 +08:00
parent 8d9870e9c6
commit f9541fab70
21 changed files with 749 additions and 55 deletions
@@ -136,6 +136,55 @@ export class SiteInfoController extends CrudController<SiteInfoService> {
return this.ok();
}
@Post("/import/save", { description: Constants.per.authOnly, summary: "保存站点证书监控导入任务" })
async siteInfoImportSave(@Body(ALL) body: any) {
const { projectId, userId } = await this.getProjectUserIdWrite();
const { dnsProviderType, dnsProviderAccessId, key, groupId } = body;
const item = await this.service.saveSiteInfoImportTask({
userId: userId,
projectId: projectId,
dnsProviderType,
dnsProviderAccessId,
key,
groupId,
});
return this.ok(item);
}
@Post("/import/status", { description: Constants.per.authOnly, summary: "查询站点证书监控导入任务状态" })
async siteInfoImportStatus() {
const { projectId, userId } = await this.getProjectUserIdRead();
const task = await this.service.getSiteInfoImportTaskStatus({
userId: userId,
projectId: projectId,
});
return this.ok(task);
}
@Post("/import/delete", { description: Constants.per.authOnly, summary: "删除站点证书监控导入任务" })
async siteInfoImportDelete(@Body(ALL) body: any) {
const { projectId, userId } = await this.getProjectUserIdWrite();
const { key } = body;
await this.service.deleteSiteInfoImportTask({
userId: userId,
projectId: projectId,
key,
});
return this.ok();
}
@Post("/import/start", { description: Constants.per.authOnly, summary: "开始站点证书监控导入任务" })
async siteInfoImportStart(@Body(ALL) body: any) {
const { projectId, userId } = await this.getProjectUserIdWrite();
const { key } = body;
await this.service.startSiteInfoImportTask({
key,
userId: userId,
projectId: projectId,
});
return this.ok();
}
@Post("/ipCheckChange", { description: Constants.per.authOnly, summary: "修改IP检查设置" })
async ipCheckChange(@Body(ALL) bean: any) {
await this.checkOwner(this.service, bean.id, "read");