api.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. return array
  3. (
  4. 'name' => '接口配置',
  5. 'order' => 'sort asc',
  6. 'struct' => array
  7. (
  8. 'platform_id' => array
  9. (
  10. 'name' => '平台',
  11. 'type' => 'int(11)',
  12. 'value' => 'api/platform',
  13. ),
  14. 'name' => array
  15. (
  16. 'name' => '接口名称',
  17. 'type' => 'varchar(32)',
  18. ),
  19. 'uri' => array
  20. (
  21. 'name' => '接口地址',
  22. 'type' => 'varchar(100)',
  23. ),
  24. 'method' => array
  25. (
  26. 'name' => '请求方式',
  27. 'type' => 'tinyint(1)',
  28. 'default' => '-1',
  29. 'value' => array
  30. (
  31. -1 => '使用平台标准请求方式',
  32. 1 => 'get',
  33. 2 => 'post',
  34. ),
  35. ),
  36. 'post_method' => array
  37. (
  38. 'name' => '请求头设置',
  39. 'type' => 'tinyint(1)',
  40. 'default' => '1',
  41. 'value' => array
  42. (
  43. 1 => '普通表单:application/x-www-form-urlencoded',
  44. 2 => '文件表单:multipart/form-data',
  45. 3 => 'JSON:application/json',
  46. ),
  47. ),
  48. 'notify' => array
  49. (
  50. 'name' => '是否有回调',
  51. 'type' => 'tinyint(1)',
  52. 'default' => '2',
  53. 'value' => array
  54. (
  55. 1 => '有回调',
  56. 2 => '无回调',
  57. ),
  58. ),
  59. 'env' => array
  60. (
  61. 'name' => '运行环境',
  62. 'type' => 'tinyint(1)',
  63. 'default' => 1,
  64. 'value' => array
  65. (
  66. 1 => '通用',
  67. 2 => 'h5',
  68. 3 => 'jsapi',
  69. 4 => 'app',
  70. 5 => '小程序',
  71. 6 => 'pc',
  72. ),
  73. ),
  74. 'status' => array
  75. (
  76. 'name' => '状态',
  77. 'type' => 'tinyint(1)',
  78. 'default' => 1,
  79. 'value' => array
  80. (
  81. 1 => '展示',
  82. 2 => '不展示',
  83. ),
  84. ),
  85. 'sort' => array
  86. (
  87. 'name' => '排序',
  88. 'type' => 'int(11)',
  89. 'default' => '1',
  90. ),
  91. ),
  92. );