2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 01:27:18 +08:00
Files
panel/internal/biz/database.go
2024-11-25 03:18:36 +08:00

20 lines
396 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"`
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
}