feat: implement avatar upload functionality with presigned URL support for user profiles and announcement attachments.
This commit is contained in:
parent
bacb8a3824
commit
53314dfd7e
5 changed files with 192 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue