feat: 增加证书申请
This commit is contained in:

committed by
zhengkunwang223

parent
ac864ff4e7
commit
681a0c9106
@@ -15,7 +15,7 @@ export const UpdateWebsite = (req: WebSite.WebSiteUpdateReq) => {
|
||||
};
|
||||
|
||||
export const GetWebsite = (id: number) => {
|
||||
return http.get<WebSite.WebSite>(`/websites/${id}`);
|
||||
return http.get<WebSite.WebSiteDTO>(`/websites/${id}`);
|
||||
};
|
||||
|
||||
export const DeleteWebsite = (req: WebSite.WebSiteDel) => {
|
||||
@@ -59,11 +59,11 @@ export const UpdateNginxConfig = (req: WebSite.NginxConfigReq) => {
|
||||
};
|
||||
|
||||
export const SearchDnsAccount = (req: ReqPage) => {
|
||||
return http.post<ResPage<WebSite.DnsAccount>>(`/websites/dns`, req);
|
||||
return http.post<ResPage<WebSite.DnsAccount>>(`/websites/dns/search`, req);
|
||||
};
|
||||
|
||||
export const CreateDnsAccount = (req: WebSite.DnsAccountCreate) => {
|
||||
return http.post<any>(`/websites/dns/create`, req);
|
||||
return http.post<any>(`/websites/dns`, req);
|
||||
};
|
||||
|
||||
export const UpdateDnsAccount = (req: WebSite.DnsAccountUpdate) => {
|
||||
@@ -74,10 +74,6 @@ export const DeleteDnsAccount = (id: number) => {
|
||||
return http.delete<any>(`/websites/dns/${id}`);
|
||||
};
|
||||
|
||||
export const SearchSSL = (req: ReqPage) => {
|
||||
return http.post<ResPage<WebSite.SSL>>(`/websites/ssl`, req);
|
||||
};
|
||||
|
||||
export const SearchAcmeAccount = (req: ReqPage) => {
|
||||
return http.post<ResPage<WebSite.AcmeAccount>>(`/websites/acme/search`, req);
|
||||
};
|
||||
@@ -89,3 +85,23 @@ export const CreateAcmeAccount = (req: WebSite.AcmeAccountCreate) => {
|
||||
export const DeleteAcmeAccount = (id: number) => {
|
||||
return http.delete<any>(`/websites/acme/${id}`);
|
||||
};
|
||||
|
||||
export const SearchSSL = (req: ReqPage) => {
|
||||
return http.post<ResPage<WebSite.SSL>>(`/websites/ssl/search`, req);
|
||||
};
|
||||
|
||||
export const CreateSSL = (req: WebSite.SSLCreate) => {
|
||||
return http.post<WebSite.SSLCreate>(`/websites/ssl`, req);
|
||||
};
|
||||
|
||||
export const DeleteSSL = (id: number) => {
|
||||
return http.delete<any>(`/websites/ssl/${id}`);
|
||||
};
|
||||
|
||||
export const ApplySSL = (req: WebSite.SSLApply) => {
|
||||
return http.post<WebSite.SSLApply>(`/websites/ssl/apply`, req);
|
||||
};
|
||||
|
||||
export const GetDnsResolve = (req: WebSite.DNSResolveReq) => {
|
||||
return http.post<WebSite.DNSResolve>(`/websites/ssl/resolve`, req);
|
||||
};
|
||||
|
Reference in New Issue
Block a user