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

Feature/update dining response #211

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Conversation

wateralsie
Copy link
Contributor

이슈

작업사항

서버에서 넘어오는 값에 따라 response 구조에 이미지 url, 품절여부, 식단 변경을 추가했습니다.

참고사항

4월 3일에 이루어진 캠퍼스팀 주간공유 에서 품절 안내를 Boolean으로 하는대신 품절 시각을 String으로 넘기기로 했습니다.
아직 백엔드에서 반영되지 않았기 때문에 일단 boolean으로 했고, 반영 완료되면 주석처리된걸로 변경해주면 될 것 같습니다.

@wateralsie wateralsie self-assigned this Apr 4, 2024
@wateralsie wateralsie requested a review from a team as a code owner April 4, 2024 03:52
Copy link
Collaborator

@Jokwanhee Jokwanhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

알겠습니다~ 👍👍

@wateralsie wateralsie linked an issue Apr 4, 2024 that may be closed by this pull request
Comment on lines 16 to +17
@SerializedName("updated_at") val updatedAt: String,
@SerializedName("sold_out") val isSoldOut: Boolean,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sold_out 부분만 SerializedName하고 변수명이 다른데 이유가 있는 건가요?

Copy link
Contributor Author

@wateralsie wateralsie Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변수명 앞에 is 를 붙이면 boolean인지 바로 알 수 있어서 개인적인 컨벤션으로 쓰게 되더라고요! 바로 아래쪽에 isChanged 도 있어서 일관성 맞춰주기 위해 쓴 것도 있습니다
@junghaesung79

Copy link
Contributor

@ThirFir ThirFir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@wateralsie wateralsie merged commit 939d89f into develop Apr 4, 2024
1 check passed
@wateralsie wateralsie deleted the feature/update-dining-response branch April 4, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[KOIN] 식단 API response 구조 수정
4 participants