feat: 统一备份数据发送ftp配置功能接口
This commit is contained in:
11
src/modules/network_data/model/backup.go
Normal file
11
src/modules/network_data/model/backup.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
// BackupDataFTP 备份数据FTP服务参数结构体
|
||||
type BackupDataFTP struct {
|
||||
Password string `json:"password"` // FTP密码
|
||||
Username string `json:"username" binding:"required"` // FTP用户名
|
||||
ToIp string `json:"toIp" binding:"required"` // FTP服务器IP
|
||||
ToPort int64 `json:"toPort" binding:"required"` // FTP服务器端口
|
||||
Dir string `json:"dir" binding:"required"` // FTP服务器目录
|
||||
Enable bool `json:"enable"` // 是否启用
|
||||
}
|
||||
Reference in New Issue
Block a user