Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Image Server Flowchart 작성 #62

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

Docs: Image Server Flowchart 작성 #62

wants to merge 6 commits into from

Conversation

KIMSEI1124
Copy link
Member

📑 개요

✅ PR 체크리스트


  • 🔀 PR 제목의 형식을 잘 작성했나요?
  • 💯 테스트는 잘 통과했나요?
  • 🏗️ 빌드는 성공했나요?
  • 🧹 불필요한 코드는 제거했나요?
  • 💭 이슈는 등록했나요?
  • 🏷️ 라벨은 등록했나요?

🚀 상세 작업 내용


  • Image Remove Flowchart 작성
  • Image Upload Flowchart 작성

📁 ETC


@KIMSEI1124 KIMSEI1124 self-assigned this Jan 20, 2025
Copy link

📄 Jacoco Coverage Report

Overall Project 92.77% 🍏

There is no coverage information present for the Files changed

@KIMSEI1124
Copy link
Member Author

---
title: "Image Upload Request"
---
flowchart TD
    Request[POST /file/v1/images </br> 이미지 업로드 요청]
    Service[saveImage </br> 이미지 저장 처리]
    Validate[validateImageExtension </br> 파일 확장자 검증]
    ImageMagic[imageConvert </br> 이미지 압축 및 처리]
    Upload[fileUpload </br> 파일 업로드]
    Remove[removeImages </br> 로컬 파일 삭제]
    Success[201 </br> 업로드 성공]
    BadRequest[400 </br> 잘못된 요청]
    ServerError[500 </br> 서버 오류]
    
    Request --> Service
    
    subgraph ImageService
    Service --> Validate
    end
    Validate -- 확장자가 유효하지 않은 경우 --> BadRequest
    Validate -- 이미지 확장자를 avif로 변환 --> ImageMagic
    ImageMagic -- 파일 경로가 잘못된 경우 --> ServerError
    ImageMagic -- 유효하지 않은 명령어 --> ServerError
    ImageMagic -- 프로세스 오류 발생 --> ServerError
    
    subgraph ImageMagickConvert
    ImageMagic
    end
    
    ImageMagic --> Upload
    
    subgraph AwsS3StorageService
		Upload
		end
		
    Upload --> Remove
    
    subgraph ImageRemoveUtils
    Remove
    end
    
    Remove -- 로컬 파일 삭제 실패 --> ServerError
    Remove --> Success
Loading

Copy link

📄 Jacoco Coverage Report

Overall Project 92.77% 🍏

There is no coverage information present for the Files changed

1 similar comment
Copy link

📄 Jacoco Coverage Report

Overall Project 92.77% 🍏

There is no coverage information present for the Files changed

@KIMSEI1124 KIMSEI1124 changed the title Image Server Flowchart 작성 [Docs] Image Server Flowchart 작성 Feb 8, 2025
@KIMSEI1124 KIMSEI1124 changed the title [Docs] Image Server Flowchart 작성 Docs: Image Server Flowchart 작성 Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 👀 Need Review
Development

Successfully merging this pull request may close these issues.

1 participant