mirror of https://github.com/1Panel-dev/1Panel
fix: 补全备份列表返回信息 (#575)
parent
ab0f4380b2
commit
e746a959af
|
@ -53,6 +53,7 @@ func NewIBackupService() IBackupService {
|
||||||
func (u *BackupService) List() ([]dto.BackupInfo, error) {
|
func (u *BackupService) List() ([]dto.BackupInfo, error) {
|
||||||
ops, err := backupRepo.List(commonRepo.WithOrderBy("created_at desc"))
|
ops, err := backupRepo.List(commonRepo.WithOrderBy("created_at desc"))
|
||||||
var dtobas []dto.BackupInfo
|
var dtobas []dto.BackupInfo
|
||||||
|
dtobas = append(dtobas, u.loadByType("LOCAL", ops))
|
||||||
dtobas = append(dtobas, u.loadByType("OSS", ops))
|
dtobas = append(dtobas, u.loadByType("OSS", ops))
|
||||||
dtobas = append(dtobas, u.loadByType("S3", ops))
|
dtobas = append(dtobas, u.loadByType("S3", ops))
|
||||||
dtobas = append(dtobas, u.loadByType("SFTP", ops))
|
dtobas = append(dtobas, u.loadByType("SFTP", ops))
|
||||||
|
|
Loading…
Reference in New Issue