mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 初始化ssh模型
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user