2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/internal/biz/database.go
2024-11-26 03:19:33 +08:00

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
}