mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Export the list of posts of the user
This commit is contained in:
@ -5,15 +5,18 @@
|
||||
*/
|
||||
|
||||
import { User } from "./User";
|
||||
import { Post } from "./Post";
|
||||
|
||||
export interface AccountExportBuilder {
|
||||
userID: number;
|
||||
userInfo: User;
|
||||
postsList: Post[];
|
||||
}
|
||||
|
||||
export class AccountExport implements AccountExportBuilder {
|
||||
userID: number;
|
||||
userInfo: User;
|
||||
postsList: Post[];
|
||||
|
||||
public constructor(info: AccountExportBuilder) {
|
||||
for (const key in info) {
|
||||
|
Reference in New Issue
Block a user