| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?php
- /**
- * Created by PhpStorm.
- * User: leo
- * Date: 2018/3/6
- * Time: 上午11:12
- */
- return [
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/site',
- 'extraPatterns' => [
- 'GET base-info' => 'base-info',
- 'GET mobile-base-info' => 'mobile-base-info',
- 'GET days-diff' => 'days-diff',
- 'GET ad' => 'ad',
- 'GET doc' => 'doc',
- 'GET config' => 'config',
- 'GET page-data' => 'page-data',
- 'GET captcha' => 'captcha',
- 'GET ba-base-info' => 'ba-base-info',
- 'GET send-notice' => 'send-notice',
- 'GET send-notify' => 'send-notify',
- 'GET get-instance' => 'get-instance',
- 'GET languages' => 'languages',
- 'GET countries' => 'countries',
- 'GET banks' => 'banks',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/file',
- 'extraPatterns' => [
- 'GET token' => 'token',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/oauth',
- 'extraPatterns' => [
- 'GET menu' => 'menu',
- 'POST is-login-verify' => 'is-login-verify',
- 'POST login' => 'login',
- 'GET index' => 'index',
- 'GET info' => 'info',
- 'GET refresh-token' => 'refresh-token',
- 'GET refresh-access-token' => 'refresh-access-token',
- 'GET refresh-refresh-token' => 'refresh-refresh-token',
- 'POST login-by-backend' => 'login-by-backend',
- 'POST no-login-modify-password' => 'no-login-modify-password',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/dashboard',
- 'extraPatterns' => [
- 'GET index' => 'index',
- 'GET my-index' => 'my-index',
- 'GET period-bonus' => 'period-bonus',
- 'GET bonus-num' => 'bonus-num',
- 'GET ba-index' => 'ba-index',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/shop',
- 'extraPatterns' => [
- 'GET index' => 'index',
- 'GET reconsume' => 'reconsume',
- 'GET goods-detail/<id>' => 'goods-detail',
- 'GET show-cart' => 'show-cart',
- 'GET reconsume-cart' => 'reconsume-cart',
- 'POST sure-order' => 'sure-order',
- 'POST reconsume-sure-order' => 'reconsume-sure-order',
- 'GET pay-success' => 'pay-success',
- 'GET own-order' => 'own-order',
- 'GET member-order' => 'member-order',
- 'GET dec-order-list' => 'dec-order-list',
- 'GET goods-active' => 'goods-active',
- 'GET order-export/<orderSn>' => 'order-export',
- 'GET dec-order-export/<orderSn>' => 'dec-order-export',
- 'POST sure-approach-order' => 'sure-approach-order',
- 'POST delete-approach-order' => 'delete-approach-order',
- 'POST verify-approach-order' => 'verify-approach-order',
- 'GET order-backing-out' => 'order-backing-out',
- 'GET ba-order-list' => 'ba-order-list',
- 'GET ba-product-list' => 'ba-product-list',
- 'GET ba-shopping-cart' => 'ba-shopping-cart',
- 'POST ba-sure-approach-order' => 'ba-sure-approach-order',
- 'POST ba-delete-approach-order' => 'ba-delete-approach-order',
- 'GET ba-dec-order-list' => 'ba-dec-order-list',
- 'GET ba-dec-order-export/<orderSn>' => 'ba-dec-order-export',
- 'POST sure-approach-reconsume-order' => 'sure-approach-reconsume-order',
- 'GET auto-maintenance' => 'auto-maintenance',
- 'POST auto-maintenance-sure-order' => 'auto-maintenance-sure-order',
- 'POST auto-maintenance-approach-sure-order' => 'auto-maintenance-approach-sure-order',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/user',
- 'extraPatterns' => [
- 'GET index' => 'index',
- 'POST edit' => 'edit',
- 'POST password' => 'password',
- 'POST pay-password' => 'pay-password',
- 'GET,POST,PUT id-card' => 'id-card',
- 'GET rec-user' => 'rec-user',
- 'GET bind' => 'bind',
- 'GET,POST bind-edit/<id>' => 'bind-edit',
- 'GET,POST dec' => 'dec',
- 'GET,POST upgrade' => 'upgrade',
- 'POST upgrade-info' => 'upgrade-info',
- 'GET dec-package' => 'dec-package',
- 'GET full-info' => 'full-info',
- 'GET get-auto-place' => 'get-auto-place',
- 'GET user-base-info' => 'user-base-info',
- 'GET inspect-network' => 'inspect-network',
- 'GET ba-info' => 'ba-info',
- 'POST ba-edit' => 'ba-edit',
- 'POST ba-password' => 'ba-password',
- 'POST ba-pay-password' => 'ba-pay-password',
- 'GET,POST ba-dec' => 'ba-dec',
- 'GET ba-user-info' => 'ba-user-info',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/atlas',
- 'extraPatterns' => [
- 'GET main-user-info' => 'main-user-info',
- 'GET network' => 'network',
- 'GET network-list' => 'network-list',
- 'GET relation' => 'relation',
- 'GET relation-list' => 'relation-list',
- 'GET get-period' => 'get-period',
- 'GET brand-ambassador-list' => 'brand-ambassador-list',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/bonus',
- 'extraPatterns' => [
- 'GET index' => 'index',
- 'GET wallet-flow' => 'wallet-flow',
- 'GET new' => 'new',
- 'GET teams' => 'teams',
- 'GET other' => 'other',
- 'GET real-time-perf' => 'real-time-perf',
- 'GET flow-bt' => 'flow-bt',
- 'GET trace-fl' => 'trace-fl',
- 'GET dec-period' => 'dec-period',
- 'GET fc-point' => 'fc-point',
- 'GET historical-cumulative-bonus' => 'historical-cumulative-bonus',
- 'GET period' => 'period',
- 'POST sent-user-performance' => 'sent-user-performance',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/finance',
- 'extraPatterns' => [
- 'GET reconsume-pool-flow' => 'reconsume-pool-flow',
- 'GET withdraw' => 'withdraw',
- 'POST withdraw-add' => 'withdraw-add',
- 'POST withdraw-back' => 'withdraw-back',
- 'GET,POST,PUT invoice-add/<id>' => 'invoice-add',
- 'GET invoice-before-add' => 'invoice-before-add',
- 'GET invoice-after-add' => 'invoice-after-add',
- 'GET chk-withdraw-user' => 'chk-withdraw-user',
- 'GET invoice-show' => 'invoice-show',
- 'GET collect-bind' => 'collect-bind',
- 'GET available-balance' => 'available-balance',
- 'GET dec-list' => 'dec-list',
- 'GET transfer-list' => 'transfer-list',
- 'GET,POST transfer-add' => 'transfer-add',
- 'GET chk-transfer-user' => 'chk-transfer-user',
- 'GET recharge' => 'recharge',
- 'GET,POST recharge-add' => 'recharge-add',
- 'POST recharge-update' => 'recharge-update',
- 'GET,POST prove-add' => 'prove-add',
- 'GET mult-point' => 'mult-point',
- 'GET wd-mult-point' => 'wd-mult-point',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/config',
- 'extraPatterns' => [
- 'GET base' => 'base',
- 'POST auto-withdraw' => 'auto-withdraw',
- // 'POST allow-reconsume-sms' => 'allow-reconsume-sms',
- 'GET receive-address-list' => 'receive-address-list',
- 'GET receive-address-one/<id>' => 'receive-address-one',
- 'POST receive-address-add' => 'receive-address-add',
- 'POST receive-address-edit' => 'receive-address-edit',
- 'POST receive-address-default' => 'receive-address-default',
- 'POST receive-address-delete' => 'receive-address-delete',
- 'GET ba-receive-address-list' => 'ba-receive-address-list',
- 'GET ba-receive-address-one/<id>' => 'ba-receive-address-one',
- 'POST ba-receive-address-add' => 'ba-receive-address-add',
- 'POST ba-receive-address-edit' => 'ba-receive-address-edit',
- 'POST ba-receive-address-default' => 'ba-receive-address-default',
- 'POST ba-receive-address-delete' => 'ba-receive-address-delete',
- 'GET region-list' => 'region-list',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/article',
- 'extraPatterns' => [
- 'GET index' => 'index',
- 'GET category' => 'category',
- 'GET list/<cid>' => 'list',
- 'GET list' => 'list',
- 'GET detail/<id>' => 'detail',
- 'GET detail' => 'detail',
- 'GET get-new-article' => 'get-new-article',
- ],
- ],
- [
- 'class' => 'yii\rest\UrlRule',
- 'pluralize' => false,
- 'controller' => 'v1/message',
- 'extraPatterns' => [
- 'GET list' => 'list',
- 'GET detail/<id>' => 'detail',
- 'GET detail' => 'detail',
- 'GET pull' => 'pull',
- 'GET unread-num' => 'unread-num',
- 'GET unread-text' => 'unread-text',
- ],
- ],
- ];
|