table_article.php 748 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. //header('Content-type: application/json; charset=utf8');
  3. require_once "../path.php";
  4. require_once "../sync/function.php";
  5. $input = (object) [
  6. "database" => _FILE_DB_USER_ARTICLE_,
  7. "table" => "article",
  8. "uuid" => "id",
  9. "modify_time" => "modify_time",
  10. "receive_time" => "receive_time",
  11. "insert" => [
  12. 'id',
  13. 'title',
  14. 'subtitle',
  15. 'summary',
  16. 'content',
  17. 'tag',
  18. 'owner',
  19. 'setting',
  20. 'status',
  21. 'create_time',
  22. 'modify_time',
  23. 'receive_time'
  24. ],
  25. "update" => [
  26. 'title',
  27. 'subtitle',
  28. 'summary',
  29. 'content',
  30. 'tag',
  31. 'owner',
  32. 'setting',
  33. 'status',
  34. 'modify_time',
  35. 'receive_time'
  36. ]
  37. ];
  38. $result = do_sync($input);
  39. echo json_encode($result, JSON_UNESCAPED_UNICODE);
  40. ?>