-
Notifications
You must be signed in to change notification settings - Fork 2
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/#12 send letter #59
Conversation
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.
μ½μμ°½μ μ΄λ κ² μ°νκ³ μμ
NoSuchMethodError: '[]'μ λν΄ κ²μν΄λ΄€λλ μ λ¬λλ κ°μ nullκ°μ΄ μλ κ²½μ°λ κ΄λ ¨ ν¨μκ° μ μλμ΄ μμ§ μμ λ μκΈ°λ μ€λ₯λΌκ³ ν¨.
<μλ¬Έ1> receiverIdλ₯Ό '2'λ‘ μμλ‘ μ€μ νλλ° κ·Έκ²μΌλ‘ μΈν΄ μκΈ΄ μ€λ₯μΌκΉ? Receiver: nullμ΄ error λ©μΈμ§μΈ κ² κ°μλ° νΉμ μ΄κ² λ¬Έμ μ΄λ €λ
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.
μΌλ¨ μ΄κ²λ§ λ³΄κ³ λ μ΄λ€ μ½λλ‘μΈν΄μ λμ¨ κ²°κ΄κ°μΈμ§ μμκ°μμΌλκΉ μμΌλ‘λ μ½λ μ체μ μ½λ©νΈ λΆνν΄.....μ λ΄.. μ΄λ€κ±Έ printνμλ nullμΈμ§μ λ°λΌ ν΄κ²°λ°©λ²μ΄ μ²μ°¨λ§λ³μΌν λκΉ...!
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.
μ½μμ°½ κ²°κ³Όλ₯Ό 보면 μ¬κΈ°μλΆν° catchλ¬Έμ λΉ μ§κ³ μμ. μ¬κΈ°μλΆν° ν΄κ²°ν΄μΌν¨.
<μλ¬Έ2> sendLetter μμ Map λμ int receiverId, String content, String titleμ λ£μ΄μΌν κΉ?
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.
μλ¬Έ 2 μ²λΌ μλ¬Έμ μ μ°λ €λ©΄ κ·Έλ κ² μκ°νλ μ΄μ λ μ λ° ν¬ν¨ν΄μ μ¨μ€....
κ·Έλ¦¬κ³ μ΄λν μ΄λμ Mapμ λ§νλ건μ§, μ΄λ€ νμΌμ μλ sendLetterν¨μλ₯Όλ§νλ건μ§(repository, provider νμΌ λ±λ±μ λ€ μ ν¨μκ° μ μλΌμμμ) λ΄κ° μ§μ μ μΆλ₯Ό ν΄μΌνλλ°..... μ νν μ½λμ μ½λ©νΈ λ¬μμ€.
print('sendLetter result: $isSuccess'); | ||
return isSuccess; | ||
} catch (error) { | ||
print('sendLetter error: $error'); |
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.
μλ¬Έ 2 μ²λΌ μλ¬Έμ μ μ°λ €λ©΄ κ·Έλ κ² μκ°νλ μ΄μ λ μ λ° ν¬ν¨ν΄μ μ¨μ€....
κ·Έλ¦¬κ³ μ΄λν μ΄λμ Mapμ λ§νλ건μ§, μ΄λ€ νμΌμ μλ sendLetterν¨μλ₯Όλ§νλ건μ§(repository, provider νμΌ λ±λ±μ λ€ μ ν¨μκ° μ μλΌμμμ) λ΄κ° μ§μ μ μΆλ₯Ό ν΄μΌνλλ°..... μ νν μ½λμ μ½λ©νΈ λ¬μμ€.
const host = "http://3.35.110.214"; | ||
|
||
class LetterProvider extends GetConnect { | ||
Future<Response> sendLetter(Map data) => post( |
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.
κ·Έλ¦¬κ³ λ§μ½μ μ΄λΆλΆμ λ§νλκ±°λΌλ©΄
letterReqDto.toJson()μ 보λμμ..κ·Όλ° μ κ°μ μλ£νμ Map<String, dynamic> μ΄λ κ² μ ν΄λκ³ λ³΄λλλ° μ΄λΆλΆμ μ λ°κΏμΌ νλ€κ³ μκ°νκ±΄μ§ λͺ¨λ₯΄κ²μ΄.
μμΌλ‘λ κΌ. κ·Έ μκ°/μλ¬Έμ μ μ΄μ λ ν¬ν¨ν΄μ λ¨κ²¨μ€.
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.
μ΄ μ¬κΈ° λ°κΏμΌ νλμ§λ₯Ό λ¬Όμ΄λ³Έκ±° λ§λλ° λΉμ μλ¬λ¨λκ² μ λ¬λλ κ° μ€μ nullμ΄ μλ€κ³ ν΄μ Mapμ λ°μ΄ν°λ€μ΄ μ λ΄κ²¨μ κ·Έλ°κ° κ³ λ―Όνμμ΄.
π κ°μ
API μ°κ²° μλ
π Issue λ²νΈ
π οΈ μμ μ¬ν
μλ¬ ν΄κ²°ν΄μΌν¨.
πΈ μ€ν¬λ¦°μ·(μ ν)