()
| 33 | } |
| 34 | |
| 35 | func (f *FtpService) LoadBaseInfo() (dto.FtpBaseInfo, error) { |
| 36 | var baseInfo dto.FtpBaseInfo |
| 37 | client, err := toolbox.NewFtpClient() |
| 38 | if err != nil { |
| 39 | return baseInfo, err |
| 40 | } |
| 41 | baseInfo.IsActive, baseInfo.IsExist = client.Status() |
| 42 | return baseInfo, nil |
| 43 | } |
| 44 | |
| 45 | func (f *FtpService) LoadLog(req dto.FtpLogSearch) (int64, interface{}, error) { |
| 46 | client, err := toolbox.NewFtpClient() |