-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat : create Question Mock Api #17
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
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.
Questionμ imageId λ₯Ό λ€κ³ μκ³ , μ½κΈ°λͺ¨λΈ λ³λλ‘ λ§λ€μ΄μ imageUrl 맀νν΄μ€ μ μκ² ν΄μΌνλ μΆκΈ°λ νλ€μ
// todo : add auth param | ||
@Operation(summary = "create Question API", description = "μ§λ¬Έμ§ μμ±") |
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.
μ§λ¬Έμ§ μμ±μ μ΄λλ―Ό μ± κΈ°λ₯μ΄λΌ, authκ° λ³λλ‘ λ€μ΄κ°μΌκ² λ€μ.
κ·Έλ¬λ©΄ νΌλΈλ¦ API / μΈν°λ API prefixκ° κ°κ° λ€λ₯Έκ² μ’μΌλ €λμ? (λΌλ μκ°μ΄ κ°μκΈ° λ€μ)
fun createQuestion( | ||
@Valid @RequestBody request: QuestionCreateRequest, | ||
): DojoApiResponse<Unit> { |
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.
μ€ validλΌλ μ΄λ Έν μ΄μ 첨λ΄
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.
validation μ²λ¦¬λ ν΄λΉ μ΄λ Έν μ΄μ λ§κ³ μ΄λ€ μμΌλ‘ μ§ννμλμ!??
@Service | ||
@Transactional(readOnly = true) | ||
class QuestionService { | ||
@Transactional | ||
fun createQuestion( |
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.
μ€ μ΄λ κ² μ 체μ μΌλ‘ readOnlyκ±Έμ΄λκ³ νμν κ²½μ°μλ§ readOnlyλΉΌλκ² λ νΈνμ 건κ°μ?
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.
μ¬μ€ μ건 μ·¨ν₯ μ°¨μ΄λΌμ, 컨벀μ λ§ μ νλ©΄ λ κ² κ°μμ!
service/src/main/kotlin/com/mashup/dojo/service/QuestionService.kt
Outdated
Show resolved
Hide resolved
λ Όμ μ : imageId λ‘ λλ©μΈ λ³ κ°μ§κ³ μκΈ°λ‘ |
af7d68c
to
49d1a46
Compare
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.
κ΅Ώκ΅Ώ κ³ μνμ ¨μ΅λλ€~~
μΆκ°μ μΈ λ³κ²½ λ° λ Όμ μ¬νμ νμ PR μμ μ²λ¦¬νλλ‘ νκ² μ΅λλ€. |
[add] pr template
μμ λ΄μ©
λΉκ³ (첨λΆμλ£)