urlManagerRules.php 9.4 KB

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