dtvn-training / 2024-HN-DucNH-BikeShare

Bike share management project using Spring Boot and VueJS
0 stars 0 forks source link

Merge feature/7_search_and_pagination into main for completed searching functions #8

Open Dark-Explorer opened 2 days ago

Dark-Explorer commented 2 days ago

Problem: Implement searching with fields inputted by user and show results to UI Actions taken:

  1. Use @RequestParam for inserting values of fields to the API
  2. Handle the parameters to add these to query
  3. Test APIs through Postman
  4. Create Vue refs and handle related events to take parameters from UI
  5. Call APIs from UI
  6. Show corresponding results

Further examination: Partition table to reduce query cost

Dark-Explorer commented 1 day ago

Latest commit:

  1. Deleted all unnecessary comments
  2. Combined all parameters to DTO: Using POST with @RequestBody to submit all params (avoid too long request URL causing error)
  3. Break the Service classes into functions for better code arrangement
  4. Add frequently used constants to Constant.java
  5. Use MyBatis's SQLBuilder to build the query
  6. Update FE code to adapt with BE changes
Dark-Explorer commented 1 day ago

@dtvn-hung-vu em đã sửa xong các nội dung anh cho ý kiến rồi ạ