318a3903dad666911c4dc478694de992b42b8f09.svn-base 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | api_log.php 日志表
  5. |--------------------------------------------------------------------------
  6. */
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'api_log',
  11. # 显示给用户看的名称
  12. 'lang' => '接口日志',
  13. 'menu' => false,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => 'ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. ),
  25. 'site' => array
  26. (
  27. 'type' => 'varchar-150',
  28. 'name' => '接口地址',
  29. 'default' => '',
  30. 'desc' => '请输入接口地址',
  31. 'match' => 'is_string',
  32. 'search' => 'fulltext',
  33. //'list' => true,
  34. ),
  35. 'request' => array
  36. (
  37. 'type' => 'text-255',
  38. 'name' => '请求参数',
  39. 'default' => '',
  40. 'desc' => '请输入请求参数',
  41. 'match' => 'is_string',
  42. //'update' => 'text',
  43. 'search' => 'fulltext',
  44. 'list' => true,
  45. ),
  46. 'response' => array
  47. (
  48. 'type' => 'text-255',
  49. 'name' => '返回参数',
  50. 'default' => '',
  51. 'desc' => '请输入返回参数',
  52. 'match' => 'is_string',
  53. //'update' => 'text',
  54. 'list' => 'table',
  55. 'modal' => '查看详情',
  56. ),
  57. 'cdate' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '操作时间',
  61. 'match' => array('is_numeric', time()),
  62. 'desc' => '',
  63. # 只有insert时才生效
  64. 'insert' => true,
  65. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  66. ),
  67. ),
  68. );