feat: 增加acme util,增加DNS账号管理

This commit is contained in:
zhengkunwang223
2022-11-10 17:44:38 +08:00
committed by zhengkunwang223
parent 38a439e0d6
commit 6d2e372a07
31 changed files with 1066 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
import http from '@/api';
import { ResPage } from '../interface';
import { ReqPage, ResPage } from '../interface';
import { WebSite } from '../interface/website';
export const SearchWebSites = (req: WebSite.WebSiteSearch) => {
@@ -57,3 +57,19 @@ export const GetNginxConfig = (req: WebSite.NginxConfigReq) => {
export const UpdateNginxConfig = (req: WebSite.NginxConfigReq) => {
return http.post<any>(`/websites/config/update`, req);
};
export const SearchDnsAccount = (req: ReqPage) => {
return http.post<ResPage<WebSite.DnsAccount>>(`/websites/dns`, req);
};
export const CreateDnsAccount = (req: WebSite.DnsAccountCreate) => {
return http.post<any>(`/websites/dns/create`, req);
};
export const UpdateDnsAccount = (req: WebSite.DnsAccountUpdate) => {
return http.post<any>(`/websites/dns/update`, req);
};
export const DeleteDnsAccount = (id: number) => {
return http.delete<any>(`/websites/dns/${id}`);
};