2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 20:47:18 +08:00

refactor: move types

This commit is contained in:
耗子
2024-05-30 01:58:17 +08:00
parent 873520e9f4
commit 73cc5a35ad
27 changed files with 496 additions and 478 deletions

View File

@@ -321,7 +321,7 @@ func (r *Postgresql16Controller) BackupList(ctx http.Context) http.Response {
if startIndex > len(backupList) {
return controllers.Success(ctx, http.Json{
"total": 0,
"items": []internal.BackupFile{},
"items": []types.BackupFile{},
})
}
if endIndex > len(backupList) {
@@ -329,7 +329,7 @@ func (r *Postgresql16Controller) BackupList(ctx http.Context) http.Response {
}
pagedBackupList := backupList[startIndex:endIndex]
if pagedBackupList == nil {
pagedBackupList = []internal.BackupFile{}
pagedBackupList = []types.BackupFile{}
}
return controllers.Success(ctx, http.Json{