2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: 初始化ssh模型

This commit is contained in:
耗子
2024-10-22 02:59:53 +08:00
parent 0786451c79
commit f2d2bad52f
3 changed files with 22 additions and 14 deletions

View File

@@ -1,6 +1,20 @@
package biz
import "github.com/TheTNB/panel/internal/http/request"
import (
"time"
"github.com/TheTNB/panel/internal/http/request"
"github.com/TheTNB/panel/pkg/ssh"
)
type SSH struct {
ID uint `gorm:"primaryKey" json:"id"`
Host string `json:"host"`
Port uint `json:"port"`
Config ssh.ClientConfig `json:"config"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type SSHRepo interface {
GetInfo() (map[string]any, error)