feat: 数据库实现远程服务器获取功能 (#1775)

This commit is contained in:
ssongliu
2023-07-27 16:07:27 +08:00
committed by GitHub
parent e83e592e0a
commit 40aaa1ceb0
19 changed files with 440 additions and 77 deletions

View File

@@ -3,7 +3,7 @@ package model
type DatabaseMysql struct {
BaseModel
Name string `json:"name" gorm:"type:varchar(256);not null"`
From string `json:"type" gorm:"type:varchar(256);not null;default:'local'"`
From string `json:"from" gorm:"type:varchar(256);not null;default:local"`
MysqlName string `json:"mysqlName" gorm:"type:varchar(64);not null"`
Format string `json:"format" gorm:"type:varchar(64);not null"`
Username string `json:"username" gorm:"type:varchar(256);not null"`