urlManagerRules.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: leo
  5. * Date: 2018/3/6
  6. * Time: 上午11:12
  7. */
  8. return [
  9. [
  10. 'class' => 'yii\rest\UrlRule',
  11. 'pluralize' => false,
  12. 'controller' => 'v1/site',
  13. 'extraPatterns' => [
  14. 'GET base-info' => 'base-info',
  15. 'GET mobile-base-info' => 'mobile-base-info',
  16. 'GET days-diff' => 'days-diff',
  17. 'GET ad' => 'ad',
  18. 'GET doc' => 'doc',
  19. 'GET config' => 'config',
  20. 'GET page-data' => 'page-data',
  21. 'GET captcha' => 'captcha',
  22. 'GET ba-base-info' => 'ba-base-info',
  23. 'GET send-notice' => 'send-notice',
  24. 'GET send-notify' => 'send-notify',
  25. 'GET get-instance' => 'get-instance',
  26. 'GET languages' => 'languages',
  27. 'GET countries' => 'countries',
  28. 'GET banks' => 'banks',
  29. ],
  30. ],
  31. [
  32. 'class' => 'yii\rest\UrlRule',
  33. 'pluralize' => false,
  34. 'controller' => 'v1/file',
  35. 'extraPatterns' => [
  36. 'GET token' => 'token',
  37. ],
  38. ],
  39. [
  40. 'class' => 'yii\rest\UrlRule',
  41. 'pluralize' => false,
  42. 'controller' => 'v1/oauth',
  43. 'extraPatterns' => [
  44. 'GET menu' => 'menu',
  45. 'POST is-login-verify' => 'is-login-verify',
  46. 'POST login' => 'login',
  47. 'GET index' => 'index',
  48. 'GET info' => 'info',
  49. 'GET refresh-token' => 'refresh-token',
  50. 'GET refresh-access-token' => 'refresh-access-token',
  51. 'GET refresh-refresh-token' => 'refresh-refresh-token',
  52. 'POST login-by-backend' => 'login-by-backend',
  53. 'POST no-login-modify-password' => 'no-login-modify-password',
  54. ],
  55. ],
  56. [
  57. 'class' => 'yii\rest\UrlRule',
  58. 'pluralize' => false,
  59. 'controller' => 'v1/dashboard',
  60. 'extraPatterns' => [
  61. 'GET index' => 'index',
  62. 'GET my-index' => 'my-index',
  63. 'GET period-bonus' => 'period-bonus',
  64. 'GET bonus-num' => 'bonus-num',
  65. 'GET ba-index' => 'ba-index',
  66. ],
  67. ],
  68. [
  69. 'class' => 'yii\rest\UrlRule',
  70. 'pluralize' => false,
  71. 'controller' => 'v1/shop',
  72. 'extraPatterns' => [
  73. 'GET index' => 'index',
  74. 'GET reconsume' => 'reconsume',
  75. 'GET goods-detail/<id>' => 'goods-detail',
  76. 'GET show-cart' => 'show-cart',
  77. 'GET reconsume-cart' => 'reconsume-cart',
  78. 'POST sure-order' => 'sure-order',
  79. 'POST reconsume-sure-order' => 'reconsume-sure-order',
  80. 'GET pay-success' => 'pay-success',
  81. 'GET own-order' => 'own-order',
  82. 'GET member-order' => 'member-order',
  83. 'GET dec-order-list' => 'dec-order-list',
  84. 'GET goods-active' => 'goods-active',
  85. 'GET order-export/<orderSn>' => 'order-export',
  86. 'GET dec-order-export/<orderSn>' => 'dec-order-export',
  87. 'POST sure-approach-order' => 'sure-approach-order',
  88. 'POST delete-approach-order' => 'delete-approach-order',
  89. 'POST verify-approach-order' => 'verify-approach-order',
  90. 'GET order-backing-out' => 'order-backing-out',
  91. 'GET ba-order-list' => 'ba-order-list',
  92. 'GET ba-product-list' => 'ba-product-list',
  93. 'GET ba-shopping-cart' => 'ba-shopping-cart',
  94. 'POST ba-sure-approach-order' => 'ba-sure-approach-order',
  95. 'POST ba-delete-approach-order' => 'ba-delete-approach-order',
  96. 'GET ba-dec-order-list' => 'ba-dec-order-list',
  97. 'GET ba-dec-order-export/<orderSn>' => 'ba-dec-order-export',
  98. 'POST sure-approach-reconsume-order' => 'sure-approach-reconsume-order',
  99. 'GET auto-maintenance' => 'auto-maintenance',
  100. 'POST auto-maintenance-sure-order' => 'auto-maintenance-sure-order',
  101. 'POST auto-maintenance-approach-sure-order' => 'auto-maintenance-approach-sure-order',
  102. ],
  103. ],
  104. [
  105. 'class' => 'yii\rest\UrlRule',
  106. 'pluralize' => false,
  107. 'controller' => 'v1/user',
  108. 'extraPatterns' => [
  109. 'GET index' => 'index',
  110. 'POST edit' => 'edit',
  111. 'POST password' => 'password',
  112. 'POST pay-password' => 'pay-password',
  113. 'GET,POST,PUT id-card' => 'id-card',
  114. 'GET rec-user' => 'rec-user',
  115. 'GET bind' => 'bind',
  116. 'GET,POST bind-edit/<id>' => 'bind-edit',
  117. 'GET,POST dec' => 'dec',
  118. 'GET,POST upgrade' => 'upgrade',
  119. 'POST upgrade-info' => 'upgrade-info',
  120. 'GET dec-package' => 'dec-package',
  121. 'GET full-info' => 'full-info',
  122. 'GET get-auto-place' => 'get-auto-place',
  123. 'GET user-base-info' => 'user-base-info',
  124. 'GET inspect-network' => 'inspect-network',
  125. 'GET ba-info' => 'ba-info',
  126. 'POST ba-edit' => 'ba-edit',
  127. 'POST ba-password' => 'ba-password',
  128. 'POST ba-pay-password' => 'ba-pay-password',
  129. 'GET,POST ba-dec' => 'ba-dec',
  130. 'GET ba-user-info' => 'ba-user-info',
  131. ],
  132. ],
  133. [
  134. 'class' => 'yii\rest\UrlRule',
  135. 'pluralize' => false,
  136. 'controller' => 'v1/atlas',
  137. 'extraPatterns' => [
  138. 'GET main-user-info' => 'main-user-info',
  139. 'GET network' => 'network',
  140. 'GET network-list' => 'network-list',
  141. 'GET relation' => 'relation',
  142. 'GET relation-list' => 'relation-list',
  143. 'GET get-period' => 'get-period',
  144. 'GET brand-ambassador-list' => 'brand-ambassador-list',
  145. ],
  146. ],
  147. [
  148. 'class' => 'yii\rest\UrlRule',
  149. 'pluralize' => false,
  150. 'controller' => 'v1/bonus',
  151. 'extraPatterns' => [
  152. 'GET index' => 'index',
  153. 'GET wallet-flow' => 'wallet-flow',
  154. 'GET new' => 'new',
  155. 'GET teams' => 'teams',
  156. 'GET other' => 'other',
  157. 'GET real-time-perf' => 'real-time-perf',
  158. 'GET flow-bt' => 'flow-bt',
  159. 'GET trace-fl' => 'trace-fl',
  160. 'GET dec-period' => 'dec-period',
  161. 'GET fc-point' => 'fc-point',
  162. 'GET historical-cumulative-bonus' => 'historical-cumulative-bonus',
  163. 'GET period' => 'period',
  164. ],
  165. ],
  166. [
  167. 'class' => 'yii\rest\UrlRule',
  168. 'pluralize' => false,
  169. 'controller' => 'v1/finance',
  170. 'extraPatterns' => [
  171. 'GET reconsume-pool-flow' => 'reconsume-pool-flow',
  172. 'GET withdraw' => 'withdraw',
  173. 'POST withdraw-add' => 'withdraw-add',
  174. 'POST withdraw-back' => 'withdraw-back',
  175. 'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
  176. 'GET invoice-before-add' => 'invoice-before-add',
  177. 'GET invoice-after-add' => 'invoice-after-add',
  178. 'GET chk-withdraw-user' => 'chk-withdraw-user',
  179. 'GET invoice-show' => 'invoice-show',
  180. 'GET collect-bind' => 'collect-bind',
  181. 'GET available-balance' => 'available-balance',
  182. 'GET dec-list' => 'dec-list',
  183. 'GET transfer-list' => 'transfer-list',
  184. 'GET,POST transfer-add' => 'transfer-add',
  185. 'GET chk-transfer-user' => 'chk-transfer-user',
  186. 'GET recharge' => 'recharge',
  187. 'GET,POST recharge-add' => 'recharge-add',
  188. 'POST recharge-update' => 'recharge-update',
  189. 'GET,POST prove-add' => 'prove-add',
  190. 'GET mult-point' => 'mult-point',
  191. 'GET wd-mult-point' => 'wd-mult-point',
  192. ],
  193. ],
  194. [
  195. 'class' => 'yii\rest\UrlRule',
  196. 'pluralize' => false,
  197. 'controller' => 'v1/config',
  198. 'extraPatterns' => [
  199. 'GET base' => 'base',
  200. 'POST auto-withdraw' => 'auto-withdraw',
  201. // 'POST allow-reconsume-sms' => 'allow-reconsume-sms',
  202. 'GET receive-address-list' => 'receive-address-list',
  203. 'GET receive-address-one/<id>' => 'receive-address-one',
  204. 'POST receive-address-add' => 'receive-address-add',
  205. 'POST receive-address-edit' => 'receive-address-edit',
  206. 'POST receive-address-default' => 'receive-address-default',
  207. 'POST receive-address-delete' => 'receive-address-delete',
  208. 'GET ba-receive-address-list' => 'ba-receive-address-list',
  209. 'GET ba-receive-address-one/<id>' => 'ba-receive-address-one',
  210. 'POST ba-receive-address-add' => 'ba-receive-address-add',
  211. 'POST ba-receive-address-edit' => 'ba-receive-address-edit',
  212. 'POST ba-receive-address-default' => 'ba-receive-address-default',
  213. 'POST ba-receive-address-delete' => 'ba-receive-address-delete',
  214. 'GET region-list' => 'region-list',
  215. ],
  216. ],
  217. [
  218. 'class' => 'yii\rest\UrlRule',
  219. 'pluralize' => false,
  220. 'controller' => 'v1/article',
  221. 'extraPatterns' => [
  222. 'GET index' => 'index',
  223. 'GET category' => 'category',
  224. 'GET list/<cid>' => 'list',
  225. 'GET list' => 'list',
  226. 'GET detail/<id>' => 'detail',
  227. 'GET detail' => 'detail',
  228. 'GET get-new-article' => 'get-new-article',
  229. ],
  230. ],
  231. [
  232. 'class' => 'yii\rest\UrlRule',
  233. 'pluralize' => false,
  234. 'controller' => 'v1/message',
  235. 'extraPatterns' => [
  236. 'GET list' => 'list',
  237. 'GET detail/<id>' => 'detail',
  238. 'GET detail' => 'detail',
  239. 'GET pull' => 'pull',
  240. 'GET unread-num' => 'unread-num',
  241. 'GET unread-text' => 'unread-text',
  242. ],
  243. ],
  244. ];