mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
21 lines
432 B
Go
21 lines
432 B
Go
package biz
|
|
|
|
import (
|
|
"github.com/TheTNB/panel/internal/http/request"
|
|
)
|
|
|
|
type DatabaseStatus string
|
|
|
|
type Database struct {
|
|
Name string `json:"name"`
|
|
Server string `json:"server"`
|
|
ServerID uint `json:"server_id"`
|
|
Encoding string `json:"encoding"`
|
|
}
|
|
|
|
type DatabaseRepo interface {
|
|
List(page, limit uint) ([]*Database, int64, error)
|
|
Create(req *request.DatabaseCreate) error
|
|
Delete(serverID uint, name string) error
|
|
}
|