21 lines
383 B
Go
21 lines
383 B
Go
package apps
|
|
|
|
import "github.com/TeaOSLab/EdgeUser/internal/web/actions/actionutils"
|
|
|
|
type DomainsDeleteAction struct {
|
|
actionutils.ParentAction
|
|
}
|
|
|
|
func (this *DomainsDeleteAction) RunPost(params struct {
|
|
DomainId int64
|
|
}) {
|
|
if params.DomainId > 0 {
|
|
err := deleteDomain(this.Parent(), params.DomainId)
|
|
if err != nil {
|
|
this.ErrorPage(err)
|
|
return
|
|
}
|
|
}
|
|
this.Success()
|
|
}
|