You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
939 B
30 lines
939 B
import { createCURD } from '@/service/base.ts'
|
|
import { WebSite } from '@/types'
|
|
import request from '@/request.ts'
|
|
|
|
const websitesServ = {
|
|
ssl: {
|
|
...createCURD<any, WebSite.ISSL>('/website/ssl'),
|
|
upload: async(params: WebSite.SSLUploadDto)=>{
|
|
return request.post<any, WebSite.SSLUploadDto>('/website/ssl/upload', params)
|
|
},
|
|
download: async(params: any)=>{
|
|
return request.download('/website/ssl/download', params)
|
|
},
|
|
},
|
|
acme: {
|
|
...createCURD<any, WebSite.IAcmeAccount>('/website/acme')
|
|
},
|
|
dns: {
|
|
...createCURD<any, WebSite.IDnsAccount>('/website/dns_account')
|
|
},
|
|
ca: {
|
|
...createCURD<any, WebSite.ICA>('/website/ca'),
|
|
obtainSsl: async (params: WebSite.ISSLObtainByCA) => {
|
|
return request.post<any, WebSite.ISSLObtainByCA>('/website/ca/obtain_ssl', params)
|
|
},
|
|
}
|
|
|
|
}
|
|
|
|
export default websitesServ
|