2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

refactor: 重构types包

This commit is contained in:
耗子
2024-06-23 01:32:45 +08:00
parent 89e133c626
commit 7ff084e5a8
47 changed files with 41 additions and 35 deletions

View File

@@ -2,7 +2,7 @@ package internal
import (
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type Backup interface {

View File

@@ -8,7 +8,7 @@ import (
"github.com/docker/docker/api/types/volume"
requests "github.com/TheTNB/panel/app/http/requests/container"
paneltypes "github.com/TheTNB/panel/types"
paneltypes "github.com/TheTNB/panel/pkg/types"
)
type Container interface {

View File

@@ -1,6 +1,8 @@
package internal
import "github.com/TheTNB/panel/types"
import (
"github.com/TheTNB/panel/pkg/types"
)
type PHP interface {
Status() (bool, error)

View File

@@ -2,7 +2,7 @@ package internal
import (
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type Plugin interface {

View File

@@ -14,7 +14,7 @@ import (
"github.com/TheTNB/panel/pkg/io"
"github.com/TheTNB/panel/pkg/shell"
"github.com/TheTNB/panel/pkg/str"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type BackupImpl struct {

View File

@@ -16,7 +16,7 @@ import (
"github.com/goravel/framework/support/json"
requests "github.com/TheTNB/panel/app/http/requests/container"
paneltypes "github.com/TheTNB/panel/types"
paneltypes "github.com/TheTNB/panel/pkg/types"
)
type Container struct {

View File

@@ -16,7 +16,7 @@ import (
"github.com/TheTNB/panel/pkg/io"
"github.com/TheTNB/panel/pkg/shell"
"github.com/TheTNB/panel/pkg/systemctl"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type PHPImpl struct {

View File

@@ -9,7 +9,7 @@ import (
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/pkg/io"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type PluginImpl struct {

View File

@@ -20,7 +20,7 @@ import (
"github.com/TheTNB/panel/pkg/shell"
"github.com/TheTNB/panel/pkg/str"
"github.com/TheTNB/panel/pkg/systemctl"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type WebsiteImpl struct {

View File

@@ -3,7 +3,7 @@ package internal
import (
requests "github.com/TheTNB/panel/app/http/requests/website"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/types"
"github.com/TheTNB/panel/pkg/types"
)
type Website interface {