push.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. $type = array
  3. (
  4. 1 => '腾讯信鸽',
  5. );
  6. return array
  7. (
  8. # 表名
  9. 'name' => 'push',
  10. # 显示给用户看的名称
  11. 'lang' => '推送配置',
  12. 'order' => 19,
  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. 'search' => 'fulltext',
  25. 'order' => 'desc',
  26. 'list' => true,
  27. ),
  28. 'name' => array
  29. (
  30. 'type' => 'varchar-30',
  31. 'name' => '推送名称',
  32. 'default' => '',
  33. 'desc' => '请填写类型名称',
  34. 'match' => 'is_string',
  35. 'update' => 'text',
  36. 'list' => true,
  37. ),
  38. 'type' => array
  39. (
  40. 'type' => 'tinyint-1',
  41. 'name' => '推送类型',
  42. 'default' => '1',
  43. 'desc' => '推送类型',
  44. 'match' => 'is_numeric',
  45. 'option' => $type,
  46. 'update' => 'select',
  47. //'search' => 'select',
  48. 'list' => true,
  49. ),
  50. 'android_appid' => array
  51. (
  52. 'type' => 'varchar-100',
  53. 'name' => '安卓推送appid',
  54. 'default' => '',
  55. 'desc' => '安卓推送appid',
  56. 'match' => 'is_string',
  57. 'update' => 'textarea',
  58. ),
  59. 'android_appsecret' => array
  60. (
  61. 'type' => 'varchar-200',
  62. 'name' => '安卓推送appsecret',
  63. 'default' => '',
  64. 'desc' => '安卓推送appsecret',
  65. 'match' => 'is_string',
  66. 'update' => 'textarea',
  67. ),
  68. 'ios_appid' => array
  69. (
  70. 'type' => 'varchar-100',
  71. 'name' => '苹果推送appid',
  72. 'default' => '',
  73. 'desc' => '苹果推送appid',
  74. 'match' => 'is_string',
  75. 'update' => 'textarea',
  76. ),
  77. 'ios_appsecret' => array
  78. (
  79. 'type' => 'varchar-200',
  80. 'name' => '苹果推送appsecret',
  81. 'default' => '',
  82. 'desc' => '苹果推送appsecret',
  83. 'match' => 'is_string',
  84. 'update' => 'textarea',
  85. ),
  86. 'state' => array
  87. (
  88. 'type' => 'tinyint-1',
  89. 'name' => '状态',
  90. 'default' => '1',
  91. 'desc' => '请选择状态',
  92. 'match' => 'is_numeric',
  93. ),
  94. 'cdate' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '录入时间',
  98. 'match' => array('is_numeric', time()),
  99. 'desc' => '',
  100. # 只有insert时才生效
  101. 'insert' => true,
  102. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  103. ),
  104. ),
  105. 'manage' => array
  106. (
  107. ),
  108. # request 请求接口定义
  109. 'request' => array
  110. (
  111. ),
  112. );