api_response.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | api_log.php 日志表
  5. |--------------------------------------------------------------------------
  6. */
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'api_response',
  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. 'api_id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => '接口ID',
  29. 'default' => '',
  30. 'desc' => '接口ID',
  31. 'match' => 'is_string',
  32. 'search' => 'fulltext',
  33. //'list' => true,
  34. ),
  35. 'parent_id' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => '上级ID',
  39. 'default' => '-1',
  40. 'desc' => '上级ID',
  41. 'match' => 'is_string',
  42. 'search' => 'fulltext',
  43. //'list' => true,
  44. ),
  45. 'name' => array
  46. (
  47. 'type' => 'varchar-50',
  48. 'name' => '字段',
  49. 'default' => '',
  50. 'desc' => '请输入字段',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'search' => 'fulltext',
  54. 'list' => true,
  55. ),
  56. 'type' => array
  57. (
  58. 'type' => 'varchar-50',
  59. 'name' => '类型',
  60. 'default' => '',
  61. 'desc' => '请输入类型',
  62. 'match' => 'is_string',
  63. 'update' => 'text',
  64. 'search' => 'fulltext',
  65. 'list' => true,
  66. ),
  67. 'desc' => array
  68. (
  69. 'type' => 'text-255',
  70. 'name' => '描述',
  71. 'default' => '',
  72. 'desc' => '请输入描述',
  73. 'match' => 'is_string',
  74. 'update' => 'text',
  75. 'search' => 'fulltext',
  76. 'list' => true,
  77. ),
  78. 'state' => array
  79. (
  80. 'type' => 'tinyint-1',
  81. 'name' => '数据状态',
  82. 'default' => '1',
  83. 'desc' => '请选择状态',
  84. 'match' => 'is_numeric',
  85. ),
  86. 'cdate' => array
  87. (
  88. 'type' => 'int-11',
  89. 'name' => '操作时间',
  90. 'match' => array('is_numeric', DEVER_TIME),
  91. 'desc' => '',
  92. # 只有insert时才生效
  93. 'insert' => true,
  94. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  95. ),
  96. ),
  97. );