-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FES-67 change customer profile image (1st commit) (#10)
* FES-67 change customer profile image (1st commit) * adjust logic --------- Co-authored-by: NHT <[email protected]>
- Loading branch information
1 parent
afb3815
commit 9929df8
Showing
12 changed files
with
1,942 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# DATABASE | ||
DB_HOST= | ||
DB_PORT= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
DB_NAME= | ||
|
||
#AWS S3 | ||
AWS_S3_REGION= | ||
AWS_ACCESS_KEY= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_S3_BUCKET= | ||
CLOUDFRONT_DISTRIBUTION_DOMAIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# compiled output | ||
# compiled output and dependency | ||
/dist | ||
/node_modules | ||
/.yarn | ||
|
||
# Logs | ||
logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/feature/customer/dto/update-profile-image-request.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export class UpdateProfileImageRequest { | ||
requestData: RequestData; | ||
} | ||
|
||
interface RequestData { | ||
customer_id: number; | ||
// type: string; | ||
// name: string; | ||
// description: string; | ||
url: string; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/feature/customer/dto/update-profile-image-response.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
|
||
export class UpdateProfileImageResponse extends GeneralResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class UploadImageRequest { | ||
fileName: string; | ||
file: Buffer; | ||
fileType: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
|
||
export class UploadImageResponse extends GeneralResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ export interface GenericUser { | |
userName: string; | ||
permissions: string; | ||
} | ||
|
||
export type FileType = 'image' | 'video'; |
Oops, something went wrong.