22 lines
585 B
Go
22 lines
585 B
Go
package system
|
|
|
|
import (
|
|
"github.com/klauspost/compress/zip"
|
|
"mime/multipart"
|
|
)
|
|
|
|
type SFTPObj struct {
|
|
User string `form:"user" binding:"required"`
|
|
Password string `form:"password" binding:"required"`
|
|
Address string `form:"address" binding:"required"`
|
|
RemotePath string `form:"remotePath" binding:"required"`
|
|
File *multipart.FileHeader `form:"file" binding:"-"`
|
|
Files []*zip.File `form:"files" binding:"-"`
|
|
}
|
|
|
|
type ResFile struct {
|
|
Name string
|
|
Content []byte
|
|
MimeType string
|
|
}
|