mirror of https://github.com/1Panel-dev/1Panel
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.
22 lines
667 B
22 lines
667 B
package request
|
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
|
|
type NginxConfigFileUpdate struct {
|
|
Content string `json:"content" validate:"required"`
|
|
FilePath string `json:"filePath" validate:"required"`
|
|
Backup bool `json:"backup" validate:"required"`
|
|
}
|
|
|
|
type NginxScopeReq struct {
|
|
Scope dto.NginxKey `json:"scope" validate:"required"`
|
|
WebsiteID uint `json:"websiteId"`
|
|
}
|
|
|
|
type NginxConfigUpdate struct {
|
|
Scope dto.NginxKey `json:"scope"`
|
|
Operate string `json:"operate" validate:"required;oneof=add update delete"`
|
|
WebsiteID uint `json:"websiteId" validate:"required"`
|
|
Params interface{} `json:"params"`
|
|
}
|