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

Service 클래스의 반환 형식을 통일하기 위해 ServiceResult 클래스 추가 #64

Open
woody35545 opened this issue Sep 22, 2023 · 0 comments

Comments

@woody35545
Copy link
Member

woody35545 commented Sep 22, 2023

ServiceResult 클래스는 아래 3개의 필드로 구성 예정
code: 서비스 수행 결과 코드
message: 수행 결과에 대한 설명을 담을 필드
data: 서비스 결과로 반환할 데이터가 있을 경우 사용

아래와 같이 Service 클래스들의 각 method들이 ServiceResult를 반환하도록 통일 예정

--- 
title: ServiceResult 예시
---

classDiagram

class ServiceResult{
+ code : int
+ message : String
+ data : Object
+ isSuccessful() : Boolean
+ isFailed() : Boolean
}
MemberService ..> ServiceResult : Use
FeedService ..> ServiceResult : Use
TemplateService ..> ServiceResult : Use

Loading
--- 
title: Service의 각 Method가 ServiceResult 반환
---
flowchart LR
    Service -- Return: ServiceResult --> Controller
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant