signature.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | signature.php
  5. |--------------------------------------------------------------------------
  6. */
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'signature',
  11. # 显示给用户看的名称
  12. 'lang' => '生成的signature',
  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. 'signature' => array
  26. (
  27. 'type' => 'varchar-64',
  28. 'name' => 'signature',
  29. 'default' => '',
  30. 'desc' => 'signature',
  31. 'match' => 'is_string',
  32. 'list' => true,
  33. ),
  34. 'cdate' => array
  35. (
  36. 'type' => 'int-11',
  37. 'name' => '操作时间',
  38. 'match' => array('is_numeric', time()),
  39. 'desc' => '',
  40. # 只有insert时才生效
  41. 'insert' => true,
  42. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  43. ),
  44. ),
  45. 'manage' => array
  46. (
  47. 'delete' => false,
  48. 'edit' => false,
  49. 'insert' => false,
  50. ),
  51. # request 请求接口定义
  52. 'request' => array
  53. (
  54. 'deleteByDay' => array
  55. (
  56. 'where' => array
  57. (
  58. 'time' => array('yes-cdate', '<='),
  59. ),
  60. 'type' => 'delete',
  61. ),
  62. ),
  63. );