-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BG-132]: 워크스페이스 생성 API 기능 구현 (3h / 5h) #4
Conversation
TODO: 실제 유저의 인증 정보를 추후에 넣어줘야함
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했엉!ㅎㅎ
import org.springframework.web.bind.annotation.RequestBody | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@RestController("/api/v1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
내 기억에 RequestMapping
으로 들어갔던 것 같은뎅!
확인부탁행!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
enum class Role( | ||
var key: String, | ||
var value: String, | ||
) { | ||
MEMBER("ROLE_MEMBER", "Member"), | ||
LEADER("ROLE_LEADER", "Leader"), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나중에 유저쪽 Role
이랑 워크스페이스쪽 Role
이랑 같이 등장할 일이 있을텐데 enum 이름이 같으면 충돌이 생길 것 같은데
어때??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아주 좋아용~
enum class WorkspaceRole( | ||
var key: String, | ||
var value: String, | ||
) { | ||
MEMBER("ROLE_MEMBER", "Member"), | ||
LEADER("ROLE_LEADER", "Leader"), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Why
워크스페이스 생성 기능 구현
How
단순하게 현재는 생성만 구현하였음
그래서 예상보다 시간이 덜 걸렸다
Result
Prize
서비스 로직에서 단순히 객체를 생성해주고 있는데
이게 맞을지 생각해 봐야 될듯...
Link
BG-132