-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add Db #56
base: master
Are you sure you want to change the base?
Add Db #56
Conversation
update repo
update repo
update repo
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.
bị lặp lại mywallet-version-1
, tuy nhiên a vẫn review code trong đó
private CustomerService customerService; | ||
|
||
|
||
@GetMapping(value = {"/", "Customer/list"}) |
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.
url sửa thành viết thường nhé: customer/list
những url bên dưới cũng sửa tương tự
|
||
|
||
/* | ||
tìm name |
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.
nếu muốn mô tả chi tiết function/method làm gì, cần đặt nó ở trước function/method
e đặt ở cuối file a k hiểu?
|
||
Customer getOne(Long id); | ||
|
||
void addCustomer(Customer contact); |
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.
nên trả về dữ liệu Customer
sau khi add nhé
} | ||
|
||
@Override | ||
public Customer updateCustomer(Customer customerOld, Customer customerNew){ |
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.
e tham khảo cách khác này nhé (cách cũ kia không sai, nhưng chả ai dùng):
- chỉ đẩy lên Customer (đã update dữ liệu)
- update trực tiếp Customer đó vào DB (vì id của customer không thay đổi)
No description provided.