mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
33 lines
1.3 KiB
Go
33 lines
1.3 KiB
Go
package request
|
|
|
|
type CertUpload struct {
|
|
Cert string `form:"cert" json:"cert" validate:"required"`
|
|
Key string `form:"key" json:"key" validate:"required"`
|
|
}
|
|
|
|
type CertCreate struct {
|
|
Type string `form:"type" json:"type" validate:"required,oneof=P256 P384 2048 3072 4096"`
|
|
Domains []string `form:"domains" json:"domains" validate:"min=1,dive,required"`
|
|
AutoRenew bool `form:"auto_renew" json:"auto_renew"`
|
|
AccountID uint `form:"account_id" json:"account_id"`
|
|
DNSID uint `form:"dns_id" json:"dns_id"`
|
|
WebsiteID uint `form:"website_id" json:"website_id"`
|
|
}
|
|
|
|
type CertUpdate struct {
|
|
ID uint `form:"id" json:"id" validate:"required,exists=certs id"`
|
|
Type string `form:"type" json:"type" validate:"required,oneof=upload P256 P384 2048 3072 4096"`
|
|
Domains []string `form:"domains" json:"domains" validate:"min=1,dive,required"`
|
|
Cert string `form:"cert" json:"cert"`
|
|
Key string `form:"key" json:"key"`
|
|
AutoRenew bool `form:"auto_renew" json:"auto_renew"`
|
|
AccountID uint `form:"account_id" json:"account_id"`
|
|
DNSID uint `form:"dns_id" json:"dns_id"`
|
|
WebsiteID uint `form:"website_id" json:"website_id"`
|
|
}
|
|
|
|
type CertDeploy struct {
|
|
ID uint `form:"id" json:"id" validate:"required,exists=certs id"`
|
|
WebsiteID uint `form:"website_id" json:"website_id" validate:"required"`
|
|
}
|