2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 02:07:18 +08:00

feat(证书管理): 支持自动续签

This commit is contained in:
耗子
2023-11-02 02:53:03 +08:00
parent c46656ed2d
commit 1fa96e828e
9 changed files with 119 additions and 129 deletions

View File

@@ -831,6 +831,10 @@ const docTemplate = `{
"models.Cert": {
"type": "object",
"properties": {
"auto_renew": {
"description": "自动续签",
"type": "boolean"
},
"cert": {
"description": "证书内容",
"type": "string"
@@ -842,13 +846,6 @@ const docTemplate = `{
"created_at": {
"type": "string"
},
"cron": {
"$ref": "#/definitions/models.Cron"
},
"cron_id": {
"description": "关联的计划任务 ID",
"type": "integer"
},
"dns": {
"$ref": "#/definitions/models.CertDNS"
},
@@ -958,38 +955,6 @@ const docTemplate = `{
}
}
},
"models.Cron": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"log": {
"type": "string"
},
"name": {
"type": "string"
},
"shell": {
"type": "string"
},
"status": {
"type": "boolean"
},
"time": {
"type": "string"
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"models.Website": {
"type": "object",
"properties": {
@@ -1025,6 +990,9 @@ const docTemplate = `{
"requests.CertAdd": {
"type": "object",
"properties": {
"auto_renew": {
"type": "boolean"
},
"dns_id": {
"type": "integer"
},

View File

@@ -824,6 +824,10 @@
"models.Cert": {
"type": "object",
"properties": {
"auto_renew": {
"description": "自动续签",
"type": "boolean"
},
"cert": {
"description": "证书内容",
"type": "string"
@@ -835,13 +839,6 @@
"created_at": {
"type": "string"
},
"cron": {
"$ref": "#/definitions/models.Cron"
},
"cron_id": {
"description": "关联的计划任务 ID",
"type": "integer"
},
"dns": {
"$ref": "#/definitions/models.CertDNS"
},
@@ -951,38 +948,6 @@
}
}
},
"models.Cron": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"log": {
"type": "string"
},
"name": {
"type": "string"
},
"shell": {
"type": "string"
},
"status": {
"type": "boolean"
},
"time": {
"type": "string"
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"models.Website": {
"type": "object",
"properties": {
@@ -1018,6 +983,9 @@
"requests.CertAdd": {
"type": "object",
"properties": {
"auto_renew": {
"type": "boolean"
},
"dns_id": {
"type": "integer"
},

View File

@@ -41,6 +41,9 @@ definitions:
type: object
models.Cert:
properties:
auto_renew:
description: 自动续签
type: boolean
cert:
description: 证书内容
type: string
@@ -49,11 +52,6 @@ definitions:
type: string
created_at:
type: string
cron:
$ref: '#/definitions/models.Cron'
cron_id:
description: 关联的计划任务 ID
type: integer
dns:
$ref: '#/definitions/models.CertDNS'
dns_id:
@@ -128,27 +126,6 @@ definitions:
updated_at:
type: string
type: object
models.Cron:
properties:
created_at:
type: string
id:
type: integer
log:
type: string
name:
type: string
shell:
type: string
status:
type: boolean
time:
type: string
type:
type: string
updated_at:
type: string
type: object
models.Website:
properties:
created_at:
@@ -172,6 +149,8 @@ definitions:
type: object
requests.CertAdd:
properties:
auto_renew:
type: boolean
dns_id:
type: integer
domains: