sync data record

This commit is contained in:
Zoey
2019-06-12 18:03:31 +06:30
parent ddc65d7b35
commit e1bb948a3d
11 changed files with 178 additions and 48 deletions

View File

@@ -0,0 +1,10 @@
class Api::SyncController < Api::ApiController
def sync_data
# Here comes to save the sync records.
Order.sync_order_records(params[:orders])
OrderItem.sync_order_item_records(params[:order_items])
return true
end
end