feat: implement avatar upload functionality with presigned URL support for user profiles and announcement attachments.

This commit is contained in:
JakkrapartXD 2026-01-28 11:49:11 +07:00
parent bacb8a3824
commit 53314dfd7e
5 changed files with 192 additions and 26 deletions

View file

@ -16,6 +16,7 @@ export interface AnnouncementAttachment {
announcement_id: number;
file_name: string;
file_path: string;
presigned_url?: string | null;
created_at: Date;
updated_at: Date;
}

View file

@ -68,4 +68,18 @@ export interface ChangePasswordRequest {
export interface ChangePasswordResponse {
code: number;
message: string;
};
export interface updateAvatarRequest {
token: string;
avatar_url: string;
};
export interface updateAvatarResponse {
code: number;
message: string;
data: {
id: number;
avatar_url: string;
};
};