log.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. /**
  3. * tester
  4. */
  5. return array
  6. (
  7. # 表名
  8. 'name' => 'log',
  9. # 显示给用户看的名称
  10. 'lang' => '请求日志',
  11. 'order' => 1,
  12. # 数据结构
  13. 'struct' => array
  14. (
  15. 'id' => array
  16. (
  17. 'type' => 'int-11',
  18. 'name' => 'ID',
  19. 'default' => '',
  20. 'desc' => '',
  21. 'match' => 'is_numeric',
  22. 'search' => 'order',
  23. 'list' => true,
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-100',
  28. 'name' => '请求名称',
  29. 'default' => '',
  30. 'desc' => '请求名称',
  31. 'match' => 'option',
  32. 'update' => 'textarea',
  33. 'list' => true,
  34. ),
  35. 'url' => array
  36. (
  37. 'type' => 'varchar-255',
  38. 'name' => '请求地址',
  39. 'default' => '',
  40. 'desc' => '请求地址',
  41. 'match' => 'option',
  42. 'update' => 'textarea',
  43. 'list' => true,
  44. 'modal' => '查看详情',
  45. ),
  46. 'param' => array
  47. (
  48. 'type' => 'text-255',
  49. 'name' => '请求信息',
  50. 'default' => '',
  51. 'desc' => '请求信息',
  52. 'match' => 'option',
  53. 'update' => 'textarea',
  54. 'list' => true,
  55. 'modal' => '查看详情',
  56. ),
  57. 'result' => array
  58. (
  59. 'type' => 'longtext',
  60. 'name' => '微信返回信息',
  61. 'default' => '',
  62. 'desc' => '微信返回信息',
  63. 'match' => 'option',
  64. 'update' => 'textarea',
  65. 'list' => true,
  66. 'modal' => '查看详情',
  67. ),
  68. 'state' => array
  69. (
  70. 'type' => 'tinyint-1',
  71. 'name' => '状态',
  72. 'default' => '1',
  73. 'desc' => '请选择状态',
  74. 'match' => 'is_numeric',
  75. ),
  76. 'cdate' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '录入时间',
  80. 'match' => array('is_numeric', time()),
  81. 'desc' => '',
  82. # 只有insert时才生效
  83. 'insert' => true,
  84. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  85. ),
  86. ),
  87. 'manage' => array
  88. (
  89. 'delete' => false,
  90. 'insert' => false,
  91. 'edit' => false,
  92. ),
  93. );