1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 00:25:17 +00:00

Ready to implement account export

This commit is contained in:
2020-03-25 18:20:43 +01:00
parent f27ffe5d43
commit cd0e76d017
3 changed files with 49 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import { UserHelper } from "./UserHelper";
import { time, mysql_date } from "../utils/DateUtils";
import { NewAccount } from "../entities/NewAccount";
import { GeneralSettings, UserPageStatus, LangSettings, SecuritySettings } from "../entities/User";
import { AccountExport } from "../entities/AccountExport";
/**
* Account helper
@ -374,4 +375,20 @@ export class AccountHelper {
}
});
}
/**
* Export all the data of an account
*
* @param userID Target user ID
*/
public static async Export(userID: number) : Promise<AccountExport> {
const data = new AccountExport({
userID: userID
})
// TODO : continue
return data;
}
}