Use Case | 3.1 Download File |
---|---|
Actor | User |
Overview | Business Use Case 에 포함 |
Type | Evident |
Cross Reference | H-3.2 Get File Info from DB |
Pre-Requisites | 특정 파일을 선택했다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (A): (S)에 read_file 를 emailid: string 파라미터와 요청한다. |
emailid
를 바탕으로 H-3.2 Get File Info from DB를 실행한다.Use Case | 3.2 Upload File |
---|---|
Actor | User |
Overview | Business Use Case 에 포함 |
Type | Evident |
Cross Reference | H-3.2 Get File Info from DB |
Pre-Requisites | 저장할 파일 정보가 전달됐다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (A): (S)에 create_file 를 userid: string, files: Multer.File[] 파라미터와 요청한다. |
userid, files
를 바탕으로 H-3.3 Store File to File System를 실행한다.Use Case | 3.3 Delete File |
---|---|
Actor | User |
Overview | Business Use Case 에 포함 |
Type | Evident |
Cross Reference | H-3.5 Remove File from File System |
Pre-Requisites | 특정 파일을 선택했다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (A): (S)에 delete_file 를 fileid: string, userid: string 파라미터와 요창한다. |
fileid, userid
를 바탕으로 H-3.5 Remove File from System를 실행한다.Use Case | H-3.1 Open Microservice Connection Path |
---|---|
Actor | System |
Overview | Business Use Case 에 포함 |
Type | Hidden |
Cross Reference | N/A |
Pre-Requisites | Microservice 연결에 필요한 정보가 정의됐다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (S): .env 로부터 Microservice Component의 연결 정보를 읽어온다. |
Use Case | H-3.2 Get File Info from DB |
---|---|
Actor | System |
Overview | Business Use Case 에 포함 |
Type | Hidden |
Cross Reference | H-6.1 Connect to Database, H-6.2 Connect to Redis |
Pre-Requisites | ㅇ |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (S): RedisManagerService 에서 getCache(key) 를 통해 해당하는 파일 정보를 찾는다. |
Use Case | H-3.3 Store File to File System |
---|---|
Actor | System |
Overview | Business Use Case 에 포함 |
Type | Hidden |
Cross Reference | H-3.5 File Info to DB |
Pre-Requisites | 저장 장소가 사전에 정의되어 있다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (S): 파일을 저장할 목적지 destination 과 파일 이름 fileName , 그리고 파일 확장자명 extName 을 요청받은 files로부터 구한다. |
newName
을 정한다.destination/newName.extName
에 쓴다.Use Case | H-3.4 Store File Info to DB |
---|---|
Actor | System |
Overview | Business Use Case 에 포함 |
Type | Hidden |
Cross Reference | H-6.1 Connect to Database |
Pre-Requisites | 저장에 성공한 파일 정보를 전달받음 |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (S): H-6.1 Connect to Database를 실행한다. |
userid
를 저장한다.Use Case | H-3.5 Remove File from System |
---|---|
Actor | System |
Overview | Business Use Case 에 포함 |
Type | Hidden |
Cross Reference | H-3.3 Get File Info from DB, H-3.7 Remove File Info from DB |
Pre-Requisites | 삭제할 파일 소유자와 삭제할 파일 정보를 전달받았다. |
System Actors | (U): User, (S): System (F): Front System (M): Microservice (A): API Gateway |
Typical Courses of Events | 1. (S): fileid, userid 를 바탕으로 H-3.3 Get File Info from DB를 실행한다. |
remove: true, removedAt: 현재시간
으로 설정한다. |
| Alternative Courses of Events | Line 1. DB에 해당 파일이 없다.