auth.php 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeshop100%开源免费商用商城系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | 商业版本务必购买商业授权,以免引起法律纠纷
  8. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  9. // | gitee下载:https://gitee.com/likeshop_gitee
  10. // | github下载:https://github.com/likeshop-github
  11. // | 访问官网:https://www.likeshop.cn
  12. // | 访问社区:https://home.likeshop.cn
  13. // | 访问手册:http://doc.likeshop.cn
  14. // | 微信公众号:likeshop技术社区
  15. // | likeshop团队 版权所有 拥有最终解释权
  16. // +----------------------------------------------------------------------
  17. // | author: likeshopTeam
  18. // +----------------------------------------------------------------------
  19. /**
  20. * @todo 权限控制
  21. */
  22. return [
  23. //首页
  24. 'index' => [
  25. //控制台
  26. 'index' => [
  27. 'page_path' => '/index',
  28. 'view' => [
  29. 'button_auth' => ['view'],
  30. 'action_auth' => ['workbench/index'],
  31. ],
  32. ]
  33. ],
  34. //店铺
  35. 'theme' => [
  36. //首页
  37. 'shopindex' => [
  38. 'page_path' => ['/shop/index','/decorate/index'],
  39. 'view' => [
  40. 'button_auth' => ['view'],
  41. 'action_auth' => ['theme.decoratethemepage/index'],
  42. ],
  43. 'edit' => [
  44. 'button_auth' => ['edit'],
  45. 'action_auth' => ['theme.decoratethemepage/getpage'],
  46. ],
  47. ],
  48. //商品分类
  49. 'decoratepages' => [
  50. 'page_path' => ['/decorate/category','/decorate/goods_detail','/decorate/cart','/decorate/user'],
  51. 'view' => [
  52. 'button_auth' => ['view'],
  53. 'action_auth' => ['theme.decoratethemepage/getpage'],
  54. ],
  55. 'manage' => [
  56. 'button_auth' => ['auth_all'],
  57. 'action_auth' => ['theme.decoratethemepage/edit'],
  58. ],
  59. ],
  60. //页面管理
  61. 'pages' => [
  62. 'page_path' => '/shop/pages/lists',
  63. 'view' => [
  64. 'button_auth' => ['view'],
  65. 'action_auth' => ['theme.decoratethemepage/lists'],
  66. ],
  67. 'manage' => [
  68. 'button_auth' => ['auth_all'],
  69. 'action_auth' => [
  70. 'theme.decoratethemepage/add',
  71. 'theme.decoratethemepage/getpage',
  72. ],
  73. ],
  74. ],
  75. //页面模板
  76. 'template' => [
  77. 'page_path' => '/shop/pages/template',
  78. 'view' => [
  79. 'button_auth' => ['view'],
  80. 'action_auth' => ['theme.systemthemepage/lists'],
  81. ],
  82. 'open' => [
  83. 'button_auth' => ['auth_all'],
  84. 'action_auth' => [
  85. 'theme.decoratethemepage/add',
  86. ],
  87. ],
  88. ],
  89. //商城风格、底部导航
  90. 'content' => [
  91. 'page_path' => ['/shop/theme','/shop/tabbar',],
  92. 'view' =>[
  93. 'button_auth' => ['view'],
  94. 'action_auth' => ['theme.decoratethemeconfig/getcontent'],
  95. ],
  96. 'save' => [
  97. 'button_auth' => ['save'],
  98. 'action_auth' => ['theme.decoratethemeconfig/setcontent'],
  99. ],
  100. ],
  101. //素材
  102. 'material' => [
  103. 'page_path' => '/shop/material',
  104. 'view' =>[
  105. 'button_auth' => ['view'],
  106. 'action_auth' => [
  107. 'file/lists',
  108. 'file/listcate',
  109. ],
  110. ],
  111. 'manage' => [
  112. 'button_auth' => ['auth_all'],
  113. 'action_auth' => [
  114. 'file/addCate',
  115. 'file/delete',
  116. 'file/move',
  117. 'file/rename',
  118. 'file/rename',
  119. ]
  120. ],
  121. ],
  122. //pc端装修
  123. 'pcdecorate' => [
  124. 'page_path' => [
  125. '/shop/pc/index',
  126. '/decorate/pc_index',
  127. '/shop/pc/adv'
  128. ],
  129. 'view' =>[
  130. 'button_auth' => ['view'],
  131. 'action_auth' => [
  132. 'theme.pcdecoratethemepage/index',
  133. 'theme.pcdecoratethemepage/getpage',
  134. ],
  135. ],
  136. 'manage' => [
  137. 'button_auth' => ['auth_all'],
  138. 'action_auth' => [
  139. 'theme.pcdecoratethemepage/setpage',
  140. 'theme.pcdecoratethemepage/getpcpage',
  141. ]
  142. ],
  143. ],
  144. ],
  145. //商品
  146. 'goods' => [
  147. //商品管理
  148. 'goods' => [
  149. 'page_path' => '/goods/lists',
  150. 'view' => [//查看
  151. 'button_auth' => ['view'],
  152. 'action_auth' => ['goods.goods/lists','goods.goods/otherlist'],
  153. ],
  154. 'manage' => [
  155. 'button_auth' => ['auth_all'],
  156. 'action_auth' => [
  157. 'goods.goods/add',
  158. 'goods.goods/edit',
  159. 'goods.goods/del',
  160. 'goods.goods/status',
  161. 'goods.goods/sort',
  162. 'goods.goods/export',
  163. ]
  164. ],
  165. ],
  166. //分类管理
  167. 'category' => [
  168. 'page_path' => '/goods/category',
  169. 'view' => [
  170. 'button_auth' => ['view'],
  171. 'action_auth' => ['goods.goodscategory/lists'],
  172. ],
  173. 'manage' => [
  174. 'button_auth' => ['auth_all'],
  175. 'action_auth' => [
  176. 'goods.category/add',
  177. 'goods.category/edit',
  178. 'goods.category/status',
  179. 'goods.category/del',
  180. ]
  181. ],
  182. ],
  183. //品牌管理
  184. 'brand' => [
  185. 'page_path' => '/goods/brand',
  186. 'view' => [
  187. 'button_auth' => ['view'],
  188. 'action_auth' => ['goods.goodsbrand/lists'],
  189. ],
  190. 'manage' => [
  191. 'button_auth' => ['auth_all'],
  192. 'action_auth' => [
  193. 'goods.goodsbrand/add',
  194. 'goods.goodsbrand/edit',
  195. 'goods.goodsbrand/status',
  196. 'goods.goodsbrand/del',
  197. ]
  198. ],
  199. ],
  200. //商品单位
  201. 'unit' => [
  202. 'page_path' => '/goods/unit',
  203. 'view' => [
  204. 'button_auth' => ['view'],
  205. 'action_auth' => ['goods.goodsunit/lists'],
  206. ],
  207. 'manage' => [
  208. 'button_auth' => ['auth_all'],
  209. 'action_auth' => [
  210. 'goods.goodsunit/add',
  211. 'goods.goodsunit/edit',
  212. 'goods.goodsunit/status',
  213. 'goods.goodsunit/del',
  214. ]
  215. ],
  216. ],
  217. //供应商管理
  218. 'supplier' => [//商品供应商
  219. 'page_path' => '/goods/supplier/lists',
  220. 'view' => [
  221. 'button_auth' => ['view'],
  222. 'action_auth' => ['goods.goodssupplier/lists'],
  223. ],
  224. 'manage' => [
  225. 'button_auth' => ['auth_all'],
  226. 'action_auth' => [
  227. 'goods.goodssupplier/add',
  228. 'goods.goodssupplier/edit',
  229. 'goods.goodssupplier/del',
  230. ]
  231. ],
  232. ],
  233. //供应商分类
  234. 'suppliercategory' => [
  235. 'page_path' => '/goods/supplier/category',
  236. 'view' => [
  237. 'button_auth' => ['view'],
  238. 'action_auth' => ['goods.goodssuppliercategory/lists'],
  239. ],
  240. 'manage' => [
  241. 'button_auth' => ['auth_all'],
  242. 'action_auth' => [
  243. 'goods.goodssuppliercategory/add',
  244. 'goods.goodssuppliercategory/edit',
  245. 'goods.goodssuppliercategory/del',
  246. ]
  247. ],
  248. ],
  249. //评价管理
  250. 'comment' => [
  251. 'page_path' => '/goods/evaluation',
  252. 'view' => [
  253. 'button_auth' => ['view'],
  254. 'action_auth' => ['goods.goodscomment/lists'],
  255. ],
  256. 'manage' => [
  257. 'button_auth' => ['auth_all'],
  258. 'action_auth' => [
  259. 'goods.goodscomment/reply',
  260. 'goods.goodscomment/status',
  261. 'goods.goodscomment/del',
  262. ]
  263. ],
  264. ],
  265. ],
  266. //订单
  267. 'order' => [
  268. //订单管理
  269. 'order' => [
  270. 'page_path' => '/order/order',
  271. 'view' => [
  272. 'button_auth' => ['view'],
  273. 'action_auth' => ['order.order/otherlists','order.order/lists'],
  274. ],
  275. //取消订单
  276. 'cancel' => [
  277. 'button_auth' => ['cancel'],
  278. 'action_auth' => ['order.order/cancel']
  279. ],
  280. //修改价格
  281. 'changeprice' => [
  282. 'button_auth' => ['changeprice'],
  283. 'action_auth' => ['order.order/changeprice']
  284. ],
  285. //修改运费
  286. 'changeexpressprice' => [
  287. 'button_auth' => ['changeprice'],
  288. 'action_auth' => ['order.order/changeexpressprice']
  289. ],
  290. //修改地址、发货
  291. 'addressdelivery' => [
  292. 'button_auth' => ['addressedit','delivery'],
  293. 'action_auth' => ['order.order/addressedit','order.order/delivery']
  294. ],
  295. //确认收货
  296. 'confirm' => [
  297. 'button_auth' => ['confirm'],
  298. 'action_auth' => ['order.order/confirm']
  299. ],
  300. 'manage' => [
  301. 'button_auth' => [
  302. 'auth_all'
  303. ],
  304. 'action_auth' => [
  305. 'order.order/detail', //订单详情
  306. 'order.order/orderremarks', //商家备注
  307. 'order.order/deliveryinfo', //发货订单
  308. ]
  309. ],
  310. ],
  311. 'aftersales'=> [
  312. 'page_path' => '/order/after_sales',
  313. 'view' => [
  314. 'button_auth' => ['view'],
  315. 'action_auth' => ['after_sale.aftersale/lists'],
  316. ],
  317. 'manage' => [
  318. 'button_auth' => ['auth_all'],
  319. 'action_auth' => [
  320. 'order.aftersales/agree', //同意售后
  321. 'order.aftersales/refuse', //拒绝售后
  322. 'order.aftersales/refusegoods', //拒绝收货
  323. 'order.aftersales/confirmgoods', //确认收货
  324. 'order.aftersales/agreerefund', //卖家同意退款
  325. 'order.aftersales/refuserefund', //卖家拒绝退款
  326. 'order.aftersales/confirmrefund', //卖家确认退款
  327. 'order.aftersales/detail', //查看售后详情
  328. ]
  329. ],
  330. ],
  331. ],
  332. //用户
  333. 'user' => [
  334. //用户概述
  335. 'profile' => [
  336. 'page_path' => '/user/profile',
  337. 'view' => [
  338. 'button_auth' => ['view'],
  339. 'action_auth' => ['user.user/index'],
  340. ],
  341. ],
  342. //用户管理
  343. 'list' => [
  344. 'page_path' => '/user/lists',
  345. 'view' => [
  346. 'button_auth' => ['view'],
  347. 'action_auth' => ['user.user/lists','user.user/otherlist'],
  348. ],
  349. 'manage' => [
  350. 'button_auth' => ['auth_all'],
  351. 'action_auth' => [
  352. 'user.user/detail', //用户详情
  353. 'user.user/info', //用户信息
  354. 'user.user/setinfo', //设置用户信息
  355. 'user.user/setlabel', //设置批量标签
  356. 'user.user/userinviterlists', //我邀请的人
  357. 'user.user/setuserlabel', //设置用户标签
  358. ]
  359. ],
  360. 'adjustaccount' => [
  361. 'button_auth' => [
  362. 'adjustuserwallet'
  363. ],
  364. 'action_auth' => [
  365. 'user.user/adjustuserwallet'
  366. ],
  367. ],
  368. ],
  369. //用户等级
  370. 'userlevel' => [
  371. 'page_path' => '/user/grade',
  372. 'view' => [
  373. 'button_auth' => ['view'],
  374. 'action_auth' => ['user.userlevel/lists'],
  375. ],
  376. 'manage' => [
  377. 'button_auth' => ['auth_all'],
  378. 'action_auth' => [
  379. 'user.userlevel/add',
  380. 'user.userlevel/edit',
  381. 'user.userlevel/detail',
  382. 'user.userlevel/del',
  383. ]
  384. ],
  385. ],
  386. //用户等级
  387. 'userlabel' => [
  388. 'page_path' => '/user/tag',
  389. 'view' => [
  390. 'button_auth' => ['view'],
  391. 'action_auth' => ['user.userlabel/lists'],
  392. ],
  393. 'manage' => [
  394. 'button_auth' => ['auth_all'],
  395. 'action_auth' => [
  396. 'user.userlabel/add',
  397. 'user.userlabel/edit',
  398. 'user.userlabel/detail',
  399. 'user.userlabel/del',
  400. ]
  401. ],
  402. ],
  403. ],
  404. //营销
  405. 'marketing' => [
  406. //应用中心
  407. 'marketing' => [
  408. 'page_path' => '/marketing/index',
  409. 'view' => [
  410. 'button_auth' => ['view'],
  411. 'action_auth' => ['config/getmarketingmodule'],
  412. ],
  413. ],
  414. //营销中心
  415. 'marketingapp' => [
  416. 'page_path' => '/application/app',
  417. 'view' => [
  418. 'button_auth' => ['view'],
  419. 'action_auth' => ['config/getappmodule'],
  420. ],
  421. ],
  422. //优惠券概览
  423. 'couponsurvey' => [
  424. 'page_path' => ['/coupon/survey'],
  425. 'view' => [
  426. 'button_auth' => ['view'],
  427. 'action_auth' => ['marketing.coupon/survey'],
  428. ],
  429. ],
  430. //优惠券
  431. 'couponlists' => [
  432. 'page_path' => '/coupon/lists',
  433. 'view' => [
  434. 'button_auth' => ['view'],
  435. 'action_auth' => ['marketing.coupon/lists'],
  436. ],
  437. 'manage' => [
  438. 'button_auth' => ['auth_all'],
  439. 'action_auth' => [
  440. 'marketing.coupon/add', //新增优惠券
  441. 'marketing.coupon/edit', //编辑优惠券
  442. 'marketing.coupon/delete', //删除优惠券
  443. 'marketing.coupon/info', //优惠券详情
  444. 'marketing.coupon/open', //开启发放优惠券
  445. 'marketing.coupon/stop', //结束发放优惠券
  446. 'marketing.coupon/send', //卖家发放优惠券
  447. 'marketing.coupon/detail', //获取优惠券详细
  448. ]
  449. ],
  450. ],
  451. //优惠券记录
  452. 'couponrecord' => [
  453. 'page_path' => '/coupon/receive_record',
  454. 'view' => [
  455. 'button_auth' => ['view'],
  456. 'action_auth' => ['marketing.coupon/record'],
  457. ],
  458. 'manage' => [
  459. 'button_auth' => ['auth_all'],
  460. 'action_auth' => [
  461. 'marketing.coupon/void', //作废优惠券
  462. 'order.order/detail', //查看订单
  463. ]
  464. ],
  465. ],
  466. //秒杀
  467. 'seckilllists' => [
  468. 'page_path' => '/seckill/lists',
  469. 'view' => [
  470. 'button_auth' => ['view'],
  471. 'action_auth' => ['marketing.seckill/lists'],
  472. ],
  473. 'manage' => [
  474. 'button_auth' => ['auth_all'],
  475. 'action_auth' => [
  476. 'marketing.seckill/add', //新增秒杀
  477. 'marketing.seckill/edit', //编辑秒杀
  478. 'marketing.seckill/info', //秒杀信息
  479. 'marketing.seckill/delete', //删除秒杀
  480. 'marketing.seckill/open', //确认开启活动
  481. 'marketing.seckill/stop', //停止关闭活动
  482. ]
  483. ],
  484. ],
  485. //拼团活动
  486. 'combinationsurvey' => [
  487. 'page_path' => '/combination/survey',
  488. 'view' => [
  489. 'button_auth' => ['view'],
  490. 'action_auth' => ['marketing.team/survey'],
  491. ],
  492. ],
  493. //拼团活动
  494. 'combinationlists' => [
  495. 'page_path' => '/combination/lists',
  496. 'view' => [
  497. 'button_auth' => ['view'],
  498. 'action_auth' => ['marketing.team/lists'],
  499. ],
  500. 'manage' => [
  501. 'button_auth' => ['auth_all'],
  502. 'action_auth' => [
  503. 'marketing.team/add', //新增拼团
  504. 'marketing.team/edit', //编辑拼团
  505. 'marketing.team/info', //拼团信息
  506. 'marketing.team/delete', //删除拼团
  507. 'marketing.team/open', //确认开启活动
  508. 'marketing.team/stop', //停止关闭活动
  509. ]
  510. ],
  511. ],
  512. //砍价活动
  513. 'bargainlists' => [
  514. 'page_path' => '/bargain/lists',
  515. 'view' => [
  516. 'button_auth' => ['view'],
  517. 'action_auth' => ['bargain.bargainactivity/lists'],
  518. ],
  519. 'manage' => [
  520. 'button_auth' => ['auth_all'],
  521. 'action_auth' => [
  522. 'bargain.bargainactivity/add', //添加砍价
  523. 'bargain.bargainactivity/edit', //编辑砍价
  524. 'bargain.bargainactivity/detail', //砍价详情
  525. 'bargain.bargainactivity/confirm', //确认砍价
  526. 'bargain.bargainactivity/stop', //停止砍价
  527. 'bargain.bargainactivity/delete', //删除砍价
  528. ],
  529. ],
  530. ],
  531. 'bargainrecord' => [
  532. 'page_path' => '/bargain/bargain_record',
  533. 'view' => [
  534. 'button_auth' => ['view'],
  535. 'action_auth' => ['bargain.bargainactivity/activityrecord'],
  536. ],
  537. 'stop' => [
  538. 'button_auth' => ['auth_all'],
  539. 'action_auth' => [
  540. 'bargain.bargainactivity/stop', //停止砍价
  541. ],
  542. ],
  543. ],
  544. //会员折扣
  545. 'discountlevel' => [
  546. 'page_path' => '/member_price/index',
  547. 'view' => [
  548. 'button_auth' => ['view'],
  549. 'action_auth' => ['marketing.discount/lists','marketing.discount/otherLists'],
  550. ],
  551. 'manage' => [
  552. 'button_auth' => ['auth_all'],
  553. 'action_auth' => [
  554. 'marketing.discount/join', //参与折扣
  555. 'marketing.bargainactivity/quit', //不参与折扣
  556. 'marketing.bargainactivity/detail', //折扣详情
  557. 'marketing.bargainactivity/setDiscount', //设置折扣
  558. ],
  559. ],
  560. ],
  561. //分销概览
  562. 'distributionsurvey' => [
  563. 'page_path' => '/distribution/survey',
  564. 'view' => [
  565. 'button_auth' => ['view'],
  566. 'action_auth' => ['distribution.distributiondata/datacenter'],
  567. ],
  568. ],
  569. //分销商
  570. 'distributionstore' => [
  571. 'page_path' => '/distribution/store',
  572. 'view' => [
  573. 'button_auth' => ['view'],
  574. 'action_auth' => [
  575. 'distribution.distributionmember/lists',
  576. 'distribution.distributionlevel/lists'
  577. ],
  578. ],
  579. 'manage' => [
  580. 'button_auth' => ['auth_all'],
  581. 'action_auth' => [
  582. 'distribution.distributionmember/detail', //查看分销商详情
  583. 'distribution.distributionmember/adjustLevelinfo', //调整分销等级界面信息
  584. 'distribution.distributionmember/getfans', //查看下级
  585. 'distribution.distributionmember/getfanslists', //下级列表
  586. 'distribution.distributionmember/freeze', //冻结/解冻资格
  587. 'distribution.distributionmember/open', //开通分销
  588. ],
  589. ],
  590. ],
  591. //分销申请
  592. 'distributionapplystore' => [
  593. 'page_path' => '/distribution/distribution_apply',
  594. 'view' => [
  595. 'button_auth' => ['view'],
  596. 'action_auth' => ['distribution.distributionapply/lists'],
  597. ],
  598. 'manage' => [
  599. 'button_auth' => ['auth_all'],
  600. 'action_auth' => [
  601. 'distribution.distributionapply/detail', //详情
  602. 'distribution.distributionapply/pass', //审核通过
  603. 'distribution.distributionapply/refuse', //审核拒绝
  604. ],
  605. ],
  606. ],
  607. //分销商商品
  608. 'distributiongoods' => [
  609. 'page_path' => '/distribution/distribution_goods',
  610. 'view' => [
  611. 'button_auth' => ['view'],
  612. 'action_auth' => ['distribution.distributiongoods/lists'],
  613. ],
  614. 'manage' => [
  615. 'button_auth' => ['auth_all'],
  616. 'action_auth' => [
  617. 'distribution.distributiongoods/set', //设置佣金
  618. 'distribution.distributionapply/join', //参与/不参与分销
  619. 'distribution.distributionapply/detail', //查看分销商品详情
  620. ],
  621. ],
  622. ],
  623. //分销商订单
  624. 'distributionorder' => [
  625. 'page_path' => '/distribution/distribution_orders',
  626. 'view' => [
  627. 'button_auth' => ['view'],
  628. 'action_auth' => ['distribution.distributionordergoods/lists'],
  629. ],
  630. ],
  631. //分销等级
  632. 'distributiongrade' => [
  633. 'page_path' => '/distribution/distribution_grade',
  634. 'view' => [
  635. 'button_auth' => ['view'],
  636. 'action_auth' => ['distribution.distributionlevel/lists'],
  637. ],
  638. 'manage' => [
  639. 'button_auth' => ['auth_all'],
  640. 'action_auth' => [
  641. 'distribution.distributionlevel/add', //添加等级
  642. 'distribution.distributionlevel/edit', //编辑等级
  643. 'distribution.distributionlevel/detail', //等级详情
  644. 'distribution.distributionlevel/delete', //删除等级
  645. ],
  646. ],
  647. ],
  648. //分销设置-基础设置
  649. 'distributionconfig' => [
  650. 'page_path' => ['/distribution/base_setting','/distribution/result_setting'],
  651. 'view' => [
  652. 'button_auth' => ['view'],
  653. 'action_auth' => ['distribution.distributionconfig/getconfig'],
  654. ],
  655. 'save' => [
  656. 'button_auth' => ['save'],
  657. 'action_auth' => ['distribution.distributionconfig/setconfig'],
  658. ],
  659. ],
  660. //充值概览
  661. 'rechargesurvey' => [
  662. 'page_path' => '/recharge/survey',
  663. 'view' => [
  664. 'button_auth' => ['view'],
  665. 'action_auth' => ['recharge.recharge/datacenter'],
  666. ]
  667. ],
  668. //充值规则
  669. 'rechargerule' => [
  670. 'page_path' => '/recharge/rule',
  671. 'view' => [
  672. 'button_auth' => ['view'],
  673. 'action_auth' => ['recharge.recharge/getconfig'],
  674. ],
  675. 'save' => [
  676. 'button_auth' => ['auth_all'],
  677. 'action_auth' => ['recharge.recharge/setconfig'],
  678. ],
  679. ],
  680. //充值记录
  681. 'rechargerecord' => [
  682. 'page_path' => '/recharge/record',
  683. 'view' => [
  684. 'button_auth' => ['view'],
  685. 'action_auth' => ['recharge.recharge/lists'],
  686. ],
  687. ],
  688. //商城公告
  689. 'shopnotice' => [
  690. 'page_path' => '/notice/lists',
  691. 'view' => [
  692. 'button_auth' => ['view'],
  693. 'action_auth' => ['shopnotice.shopnotice/lists'],
  694. ],
  695. 'manage' => [
  696. 'button_auth' => ['auth_all'],
  697. 'action_auth' => [
  698. 'shopnotice.shopnotice/add', //添加公告
  699. 'shopnotice.shopnotice/edit', //编辑公告
  700. 'shopnotice.shopnotice/detail', //公告详情
  701. 'shopnotice.shopnotice/status', //公告状态
  702. 'shopnotice.shopnotice/del', //删除公告
  703. ],
  704. ],
  705. ],
  706. //签到概览
  707. 'calendarsurvey' => [
  708. 'page_path' => '/calendar/survey',
  709. 'view' => [
  710. 'button_auth' => ['view'],
  711. 'action_auth' => ['sign.sign/datacenter'],
  712. ]
  713. ],
  714. //签到规则
  715. 'calendarrule' => [
  716. 'page_path' => '/calendar/rule',
  717. 'view' => [
  718. 'button_auth' => ['view'],
  719. 'action_auth' => ['sign.sign/getconfig'],
  720. ],
  721. 'save' => [
  722. 'button_auth' => ['auth_all'],
  723. 'action_auth' => ['sign.sign/setconfig'],
  724. ],
  725. ],
  726. //签到记录
  727. 'calendarrecord' => [
  728. 'page_path' => '/calendar/record',
  729. 'view' => [
  730. 'button_auth' => ['view'],
  731. 'action_auth' => ['sign.sign/lists'],
  732. ],
  733. ],
  734. //幸运抽奖
  735. 'luckydraw' => [
  736. 'page_path' => '/lucky_draw/index',
  737. 'view' => [
  738. 'button_auth' => ['view'],
  739. 'action_auth' => ['luckydraw.luckydraw/lists'],
  740. ],
  741. 'manage' => [
  742. 'button_auth' => ['auth_all'],
  743. 'action_auth' => [
  744. 'luckydraw.luckydraw/add',
  745. 'luckydraw.luckydraw/edit',
  746. 'luckydraw.luckydraw/detail',
  747. 'luckydraw.luckydraw/del',
  748. 'luckydraw.luckydraw/start',
  749. 'luckydraw.luckydraw/end',
  750. 'luckydraw.luckydraw/record',
  751. 'luckydraw.luckydraw/getprizetype',
  752. ],
  753. ],
  754. ],
  755. //核销订单
  756. 'selffetchorder' => [
  757. 'page_path' => '/selffetch/selffetch_order',
  758. 'view' => [
  759. 'button_auth' => ['view'],
  760. 'action_auth' => ['selffetchshop.verification/lists'],
  761. ],
  762. 'manage' => [
  763. 'button_auth' => ['auth_all'],
  764. 'action_auth' => [
  765. 'selffetchshop.verification/verification', //提货核销
  766. 'selffetchshop.verification/verificationquery', //核销查询
  767. 'selffetchshop.verification/verificationdetail', //查看核销详情
  768. ],
  769. ],
  770. ],
  771. //自提门店
  772. 'selffetchshop' => [
  773. 'page_path' => '/selffetch/selffetch_shop',
  774. 'view' => [
  775. 'button_auth' => ['view'],
  776. 'action_auth' => ['selffetchshop.selffetchshop/lists'],
  777. ],
  778. 'manage' => [
  779. 'button_auth' => ['auth_all'],
  780. 'action_auth' => [
  781. 'selffetchshop.selffetchshop/add', //添加自提门店
  782. 'selffetchshop.selffetchshop/edit', //编辑自提门店
  783. 'selffetchshop.selffetchshop/detail', //查看自提详情
  784. 'selffetchshop.selffetchshop/status', //修改自提门店状态
  785. 'selffetchshop.selffetchshop/del', //删除自提门店
  786. 'selffetchshop.selffetchshop/regionSearch', //腾讯地图区域搜索
  787. ],
  788. ],
  789. ],
  790. //核销员
  791. 'selffetchverifier' => [
  792. 'page_path' => '/selffetch/selffetch_verifier',
  793. 'view' => [
  794. 'button_auth' => ['view'],
  795. 'action_auth' => ['selffetchshop.selffetchverifier/lists'],
  796. ],
  797. 'manage' => [
  798. 'button_auth' => ['auth_all'],
  799. 'action_auth' => [
  800. 'selffetchshop.selffetchverifier/add', //添加核销员
  801. 'selffetchshop.selffetchverifier/edit', //编辑核销员
  802. 'selffetchshop.selffetchverifier/detail', //查看核销员
  803. 'selffetchshop.selffetchverifier/status', //修改核销员状态
  804. 'selffetchshop.selffetchverifier/del', //删除核销员
  805. ],
  806. ],
  807. ],
  808. //直播间
  809. 'livebroadcastlists' => [
  810. 'page_path' => '/live_broadcast/lists',
  811. 'view' => [
  812. 'button_auth' => ['view'],
  813. 'action_auth' => ['live.liveroom/lists'],
  814. ],
  815. 'manage' => [
  816. 'button_auth' => ['auth_all'],
  817. 'action_auth' => [
  818. 'live.liveroom/lists/add', //添加
  819. 'live.liveroom/lists/del', //删除
  820. ],
  821. ],
  822. ],
  823. //直播商品
  824. 'livebroadcastgoods' => [
  825. 'page_path' => '/live_broadcast/goods',
  826. 'view' => [
  827. 'button_auth' => ['view'],
  828. 'action_auth' => ['live.livegoom/lists'],
  829. ],
  830. 'manage' => [
  831. 'button_auth' => ['auth_all'],
  832. 'action_auth' => [
  833. 'live.livegoom/lists/add', //添加
  834. 'live.livegoom/lists/del', //删除
  835. ],
  836. ],
  837. ],
  838. //业务通知
  839. 'notice' => [
  840. 'page_path' => [
  841. '/sms/seller',
  842. '/sms/buyers/buyers',
  843. '/sms/buyers/business',
  844. ],
  845. 'view' => [
  846. 'button_auth' => ['view'],
  847. 'action_auth' => ['notice.notice/settinglists'],
  848. ],
  849. 'manage' => [
  850. 'button_auth' => ['auth_all'],
  851. 'action_auth' => [
  852. 'notice.notice/detail',
  853. 'notice.notice/set',
  854. ],
  855. ],
  856. ],
  857. //短信设置
  858. 'smssetting' => [
  859. 'page_path' => '/sms/sms',
  860. 'view' => [
  861. 'button_auth' => ['view'],
  862. 'action_auth' => ['notice.smsconfig/getconfig'],
  863. ],
  864. 'manage' => [
  865. 'button_auth' => ['auth_all'],
  866. 'action_auth' => [
  867. 'notice.smsconfig/detail',
  868. 'notice.smsconfig/setconfig',
  869. ],
  870. ],
  871. ],
  872. //在线客服
  873. 'service' => [
  874. 'page_path' => '/service/setting',
  875. 'view' => [
  876. 'button_auth' => ['view'],
  877. 'action_auth' => ['settings.service.service/getconfig'],
  878. ],
  879. 'save' => [
  880. 'button_auth' => ['auth_all'],
  881. 'action_auth' => [
  882. 'settings.service.service/setconfig',
  883. ],
  884. ],
  885. ],
  886. //客服列表
  887. 'servicelists' => [
  888. 'page_path' => '/service/lists',
  889. 'view' => [
  890. 'button_auth' => ['view'],
  891. 'action_auth' => ['kefu.kefu/lists'],
  892. ],
  893. 'manage' => [
  894. 'button_auth' => ['auth_all'],
  895. 'action_auth' => [
  896. 'kefu.kefu/add',
  897. 'kefu.kefu/edit',
  898. 'kefu.kefu/detail',
  899. 'kefu.kefu/del',
  900. 'kefu.kefu/status',
  901. 'kefu.kefu/login',
  902. ],
  903. ],
  904. ],
  905. //客服话术
  906. 'speechlists' => [
  907. 'page_path' => '/service/speech_lists',
  908. 'view' => [
  909. 'button_auth' => ['view'],
  910. 'action_auth' => ['kefu.kefulang/lists'],
  911. ],
  912. 'manage' => [
  913. 'button_auth' => ['auth_all'],
  914. 'action_auth' => [
  915. 'kefu.kefulang/add',
  916. 'kefu.kefulang/edit',
  917. 'kefu.kefulang/detail',
  918. 'kefu.kefulang/del',
  919. ],
  920. ],
  921. ],
  922. //批量打印
  923. 'expressassistant' => [
  924. 'page_path' => '/express/batch',
  925. 'view' => [
  926. 'button_auth' => ['view'],
  927. 'action_auth' => [
  928. 'expressassistant.facesheetsender/lists',
  929. 'expressassistant.facesheettemplate/lists',
  930. ],
  931. ],
  932. 'manage' => [
  933. 'button_auth' => ['auth_all'],
  934. 'action_auth' => [
  935. 'expressassistant.facesheetorder/print',
  936. ],
  937. ],
  938. ],
  939. //发件人模板
  940. 'facesheetsender' => [
  941. 'page_path' => '/express/sender',
  942. 'view' => [
  943. 'button_auth' => ['view'],
  944. 'action_auth' => [
  945. 'expressassistant.facesheetsender/lists',
  946. ],
  947. ],
  948. 'manage' => [
  949. 'button_auth' => ['auth_all'],
  950. 'action_auth' => [
  951. 'expressassistant.facesheetsender/add',
  952. 'expressassistant.facesheetsender/detail',
  953. 'expressassistant.facesheetsender/edit',
  954. 'expressassistant.facesheetsender/delete',
  955. ],
  956. ],
  957. ],
  958. //电子面单模板
  959. 'facesheettemplate' => [
  960. 'page_path' => '/express/face_sheet',
  961. 'view' => [
  962. 'button_auth' => ['view'],
  963. 'action_auth' => [
  964. 'expressassistant.facesheettemplate/lists',
  965. ],
  966. ],
  967. 'manage' => [
  968. 'button_auth' => ['auth_all'],
  969. 'action_auth' => [
  970. 'expressassistant.facesheettemplate/add',
  971. 'expressassistant.facesheettemplate/detail',
  972. 'expressassistant.facesheettemplate/edit',
  973. 'expressassistant.facesheettemplate/delete',
  974. ],
  975. ],
  976. ],
  977. //面单设置
  978. 'facesheetsetting' => [
  979. 'page_path' => '/express/face_sheet_set',
  980. 'view' => [
  981. 'button_auth' => ['view'],
  982. 'action_auth' => [
  983. 'expressassistant.facesheetsetting/getconfig',
  984. 'expressassistant.facesheetsetting/getfacesheettype',
  985. ],
  986. ],
  987. 'manage' => [
  988. 'button_auth' => ['auth_all'],
  989. 'action_auth' => [
  990. 'expressassistant.facesheetsetting/setconfig',
  991. ],
  992. ],
  993. ],
  994. //小票打印
  995. 'print' => [
  996. 'page_path' => '/print/list',
  997. 'view' => [
  998. 'button_auth' => ['view'],
  999. 'action_auth' => ['printer.printer/printerlists'],
  1000. ],
  1001. 'manage' => [
  1002. 'button_auth' => ['auth_all'],
  1003. 'action_auth' => [
  1004. 'printer.printer/getprintertype',
  1005. 'printer.printer/printertemplatelists',
  1006. 'printer.printer/printertemplatelists',
  1007. 'printer.printer/printerdetail',
  1008. 'printer.printer/autoprint',
  1009. 'printer.printer/addprinter',
  1010. 'printer.printer/editprinter',
  1011. 'printer.printer/testprinter',
  1012. 'printer.printer/deleteprinter',
  1013. ],
  1014. ],
  1015. ],
  1016. //小票模板
  1017. 'printtemplate' => [
  1018. 'page_path' => '/print/template',
  1019. 'view' => [
  1020. 'button_auth' => ['view'],
  1021. 'action_auth' => ['settings.service.service/getconfig'],
  1022. ],
  1023. 'manage' => [
  1024. 'button_auth' => ['auth_all'],
  1025. 'action_auth' => [
  1026. 'printer.printer/printertemplatelists',
  1027. 'printer.printer/addtemplate',
  1028. 'printer.printer/templatedetail',
  1029. 'printer.printer/edittemplate',
  1030. 'printer.printer/deletetemplate',
  1031. ],
  1032. ],
  1033. ],
  1034. //评价助手
  1035. 'evaluation' => [
  1036. 'page_path' => '/evaluation/index',
  1037. 'view' => [
  1038. 'button_auth' => ['view'],
  1039. 'action_auth' => [
  1040. 'goods.goods_comment_assistant/lists',
  1041. 'goods.goods/otherList'
  1042. ],
  1043. ],
  1044. 'manage' => [
  1045. 'button_auth' => ['auth_all'],
  1046. 'action_auth' => [
  1047. 'user.user_level/lists',
  1048. 'goods.goods_comment_assistant/add',
  1049. ],
  1050. ],
  1051. ],
  1052. //商城资讯
  1053. 'article' => [
  1054. 'page_path' => '/article/lists',
  1055. 'view' => [
  1056. 'button_auth' => ['view'],
  1057. 'action_auth' => ['article/lists'],
  1058. ],
  1059. 'manage' => [
  1060. 'button_auth' => ['auth_all'],
  1061. 'action_auth' => [
  1062. 'article/add',
  1063. 'article/edit',
  1064. 'article/detail',
  1065. 'article/isShow',
  1066. 'article/delete',
  1067. ],
  1068. ],
  1069. ],
  1070. //商城资讯分类
  1071. 'articlecategory' => [
  1072. 'page_path' => '/article/category_lists',
  1073. 'view' => [
  1074. 'button_auth' => ['view'],
  1075. 'action_auth' => ['category_lists/lists'],
  1076. ],
  1077. 'manage' => [
  1078. 'button_auth' => ['auth_all'],
  1079. 'action_auth' => [
  1080. 'article_category/add',
  1081. 'article_category/edit',
  1082. 'article_category/detail',
  1083. 'article_category/isShow',
  1084. 'article_category/delete',
  1085. ],
  1086. ],
  1087. ],
  1088. // 积分商品
  1089. 'integralgoods' => [
  1090. 'page_path' => '/integral_mall/integral_goods',
  1091. 'view' => [
  1092. 'button_auth' => ['view'],
  1093. 'action_auth' => ['integral.integral_goods/lists'],
  1094. ],
  1095. 'save' => [
  1096. 'button_auth' => ['auth_all'],
  1097. 'action_auth' => [
  1098. 'integral.integral_goods/add',
  1099. 'integral.integral_goods/edit',
  1100. 'integral.integral_goods/del',
  1101. 'integral.integral_goods/status',
  1102. ],
  1103. ],
  1104. ],
  1105. // 积分订单
  1106. 'integralorder' => [
  1107. 'page_path' => '/integral_mall/exchange_order',
  1108. 'view' => [
  1109. 'button_auth' => ['view'],
  1110. 'action_auth' => ['integral.integral_order/lists'],
  1111. ],
  1112. 'save' => [
  1113. 'button_auth' => ['auth_all'],
  1114. 'action_auth' => [
  1115. 'integral.integral_order/delivery',
  1116. 'integral.integral_order/confirm',
  1117. 'integral.integral_order/cancel',
  1118. 'integral.integral_order/logistics',
  1119. ],
  1120. ],
  1121. ],
  1122. // 消费奖励
  1123. 'awardintegral' => [
  1124. 'page_path' => '/consumption_reward/setting',
  1125. 'view' => [
  1126. 'button_auth' => ['view'],
  1127. 'action_auth' => ['award_integral/getConfig'],
  1128. ],
  1129. 'save' => [
  1130. 'button_auth' => ['auth_all'],
  1131. 'action_auth' => [
  1132. 'award_integral/setConfig',
  1133. ],
  1134. ],
  1135. ],
  1136. // 包邮活动
  1137. 'freeshipping' => [
  1138. 'page_path' => '/free_shipping/index',
  1139. 'view' => [
  1140. 'button_auth' => ['view'],
  1141. 'action_auth' => ['free_shipping.freeshipping/lists'],
  1142. ],
  1143. 'manage' => [
  1144. 'button_auth' => ['auth_all'],
  1145. 'action_auth' => [
  1146. 'free_shipping.freeshipping/add',
  1147. 'free_shipping.freeshipping/edit',
  1148. 'free_shipping.freeshipping/detail',
  1149. 'free_shipping.freeshipping/start',
  1150. 'free_shipping.freeshipping/end',
  1151. 'free_shipping.freeshipping/delete',
  1152. ],
  1153. ],
  1154. ],
  1155. // 足迹汽泡
  1156. 'footprint' => [
  1157. 'page_path' => '/footprint/index',
  1158. 'view' => [
  1159. 'button_auth' => ['view'],
  1160. 'action_auth' => [
  1161. 'footprint/getconfig',
  1162. 'footprint/lists',
  1163. ],
  1164. ],
  1165. 'manage' => [
  1166. 'button_auth' => ['auth_all'],
  1167. 'action_auth' => [
  1168. 'footprint/setconfig',
  1169. 'footprint/status',
  1170. ],
  1171. ],
  1172. ],
  1173. // 自定义海报
  1174. 'poster' => [
  1175. 'page_path' => '/custom_poster/goods',
  1176. 'view' => [
  1177. 'button_auth' => ['view'],
  1178. 'action_auth' => [
  1179. 'poster.poster/getgoodsconfig',
  1180. 'poster.poster/getdistributionconfig',
  1181. ],
  1182. ],
  1183. 'manage' => [
  1184. 'button_auth' => ['auth_all'],
  1185. 'action_auth' => [
  1186. 'poster.poster/setgoodsconfig',
  1187. 'poster.poster/setdistributionconfig',
  1188. ],
  1189. ],
  1190. ],
  1191. // 商品采集
  1192. 'gather' => [
  1193. 'page_path' => '/goods_collection/index',
  1194. 'view' => [
  1195. 'button_auth' => ['view'],
  1196. 'action_auth' => ['goods.goodsgather/logLists'],
  1197. ],
  1198. 'manage' => [
  1199. 'button_auth' => ['auth_all'],
  1200. 'action_auth' => [
  1201. 'goods.goodsgather/gather',//采集
  1202. 'goods.goodsgather/del',//删除采集记录
  1203. 'goods.goodsgather/lists',//商品采集列表
  1204. 'goods.goodsgather/gatherGoodsDetail',//采集商品详情
  1205. 'goods.goodsgather/gatherGoodsEdit',//编辑采集商品
  1206. 'goods.goodsgather/createGoods',//创建商品
  1207. ],
  1208. ],
  1209. ],
  1210. //地址库
  1211. 'address' => [
  1212. 'page_path' => '/address/lists',
  1213. 'view' => [
  1214. 'button_auth' => ['view'],
  1215. 'action_auth' => [
  1216. 'marketing.address_library/lists',
  1217. ],
  1218. ],
  1219. 'manage' => [
  1220. 'button_auth' => ['auth_all'],
  1221. 'action_auth' => [
  1222. 'marketing.address_library/lists',
  1223. 'marketing.address_library/add',
  1224. 'marketing.address_library/edit',
  1225. 'marketing.address_library/del',
  1226. 'marketing.address_library/default',
  1227. ],
  1228. ],
  1229. ],
  1230. //分享设置-微信小程序
  1231. 'sharempsetting' => [
  1232. 'page_path' => '/share/mpSetting',
  1233. 'view' => [
  1234. 'button_auth' => ['view'],
  1235. 'action_auth' => [
  1236. 'marketing.dev_share/lists',
  1237. ],
  1238. ],
  1239. 'manage' => [
  1240. 'button_auth' => ['auth_all'],
  1241. 'action_auth' => [
  1242. 'marketing.dev_share/lists',
  1243. 'marketing.dev_share/edit',
  1244. 'marketing.dev_share/detail',
  1245. ],
  1246. ],
  1247. ],
  1248. //分享设置-微信公众号
  1249. 'shareoasetting' => [
  1250. 'page_path' => '/share/mpSetting',
  1251. 'view' => [
  1252. 'button_auth' => ['view'],
  1253. 'action_auth' => [
  1254. 'marketing.dev_share/lists',
  1255. ],
  1256. ],
  1257. 'manage' => [
  1258. 'button_auth' => ['auth_all'],
  1259. 'action_auth' => [
  1260. 'marketing.dev_share/lists',
  1261. 'marketing.dev_share/edit',
  1262. 'marketing.dev_share/detail',
  1263. ],
  1264. ],
  1265. ],
  1266. ],
  1267. //财务
  1268. 'finance' => [
  1269. //财务概况
  1270. 'profile' => [
  1271. 'page_path' => '/finance/profile',
  1272. 'view' => [
  1273. 'button_auth' => ['view'],
  1274. 'action_auth' => ['finance.finance/datacenter'],
  1275. ],
  1276. ],
  1277. //提现记录
  1278. 'userwithdrawal' => [
  1279. 'page_path' => '/finance/user_withdrawal',
  1280. 'view' => [
  1281. 'button_auth' => ['view'],
  1282. 'action_auth' => ['withdraw.withdraw/lists'],
  1283. ],
  1284. 'manage' => [
  1285. 'button_auth' => ['auth_all'],
  1286. 'action_auth' => [
  1287. 'withdraw.withdraw/detail',
  1288. 'withdraw.withdraw/pass',
  1289. 'withdraw.withdraw/refuse',
  1290. ]
  1291. ],
  1292. ],
  1293. //余额明细
  1294. 'accountlog' => [
  1295. 'page_path' => '/finance/account_log',
  1296. 'view' => [
  1297. 'button_auth' => ['view'],
  1298. 'action_auth' => ['accountlog/lists','accountlog/getchangetype'],
  1299. ],
  1300. ],
  1301. //积分明细
  1302. 'integrallog' => [
  1303. 'page_path' => '/finance/integral_list',
  1304. 'view' => [
  1305. 'button_auth' => ['view'],
  1306. 'action_auth' => ['accountlog/lists','accountlog/getintegralchangetype'],
  1307. ],
  1308. ],
  1309. //佣金明细
  1310. 'commissionlog' => [
  1311. 'page_path' => '/finance/commission_log',
  1312. 'view' => [
  1313. 'button_auth' => ['view'],
  1314. 'action_auth' => ['accountlog/lists','accountlog/getintegralchangetype'],
  1315. ],
  1316. ],
  1317. ],
  1318. //数据
  1319. 'data' => [
  1320. //流量分析
  1321. 'flowanalysis'=> [
  1322. 'page_path' => '/data/flow_analysis',
  1323. 'view' => [
  1324. 'button_auth' => ['view'],
  1325. 'action_auth' => ['data.center/trafficanalysis'],
  1326. ],
  1327. ],
  1328. //用户分析
  1329. 'user' => [
  1330. 'page_path' => '/data/user',
  1331. 'view' => [
  1332. 'button_auth' => ['view'],
  1333. 'action_auth' => ['data.center/userAnalysis'],
  1334. ],
  1335. ],
  1336. //交易分析
  1337. 'transaction' => [
  1338. 'page_path' => '/data/transaction',
  1339. 'view' => [
  1340. 'button_auth' => ['view'],
  1341. 'action_auth' => ['data.center/transactionanalysis'],
  1342. ],
  1343. ],
  1344. //商品分析
  1345. 'goods' => [
  1346. 'page_path' => '/data/goods/goods',
  1347. 'view' => [
  1348. 'button_auth' => ['view'],
  1349. 'action_auth' => ['data.center/goodsanalysis'],
  1350. ],
  1351. ],
  1352. //交易设置
  1353. 'goodsrank' => [
  1354. 'page_path' => '/data/goods/ranking',
  1355. 'view' => [
  1356. 'button_auth' => ['view'],
  1357. 'action_auth' => ['data.center/goodstop'],
  1358. ],
  1359. ],
  1360. ],
  1361. //渠道
  1362. 'channel' => [
  1363. //微信公众号设置
  1364. 'oasetting' => [
  1365. 'page_path' => '/channel/mp_wechat/index',
  1366. 'view' => [
  1367. 'button_auth' => ['view'],
  1368. 'action_auth' => ['wechat.officialaccountsetting/getconfig'],
  1369. ],
  1370. 'save' => [
  1371. 'button_auth' => ['auth_all'],
  1372. 'action_auth' => ['wechat.officialaccountsetting/setConfig'],
  1373. ],
  1374. ],
  1375. //微信菜单设置
  1376. 'oamenu' => [
  1377. 'page_path' => '/channel/mp_wechat/menu',
  1378. 'view' => [
  1379. 'button_auth' => ['view'],
  1380. 'action_auth' => ['wechat.officialaccountmenu/detail'],
  1381. ],
  1382. 'save' => [
  1383. 'button_auth' => ['auth_all'],
  1384. 'action_auth' => ['wechat.officialaccountsetting/saveandpublish'],
  1385. ],
  1386. ],
  1387. //关注回复
  1388. 'oafollowreply' => [
  1389. 'page_path' => ['/channel/mp_wechat/reply/follow_reply','/channel/mp_wechat/reply/keyword_reply','/channel/mp_wechat/reply/default_reply'],
  1390. 'view' => [
  1391. 'button_auth' => ['view'],
  1392. 'action_auth' => ['wechat.officialaccountreply/lists'],
  1393. ],
  1394. 'manage' => [
  1395. 'button_auth' => ['auth_all'],
  1396. 'action_auth' => [
  1397. 'wechat.officialaccountreply/add',
  1398. 'wechat.officialaccountreply/edit',
  1399. 'wechat.officialaccountreply/status',
  1400. 'wechat.officialaccountreply/detail',
  1401. 'wechat.officialaccountreply/del',
  1402. ]
  1403. ],
  1404. ],
  1405. //小程序设置
  1406. 'mpsetting' => [
  1407. 'page_path' => '/channel/wechat_app/wechat_app',
  1408. 'view' => [
  1409. 'button_auth' => ['view'],
  1410. 'action_auth' => ['wechat.miniprogramsetting/getconfig'],
  1411. ],
  1412. 'save' => [
  1413. 'button_auth' => ['auth_all'],
  1414. 'action_auth' => ['wechat.miniprogramsetting/setconfig'],
  1415. ],
  1416. ],
  1417. //APP设置
  1418. 'appsetting' => [
  1419. 'page_path' => '/channel/app_store/app_store',
  1420. 'view' => [
  1421. 'button_auth' => ['view'],
  1422. 'action_auth' => ['settings.app.appsetting/getconfig'],
  1423. ],
  1424. 'save' => [
  1425. 'button_auth' => ['auth_all'],
  1426. 'action_auth' => ['settings.app.appsetting/setconfig'],
  1427. ],
  1428. ],
  1429. //H5设置
  1430. 'h5setting' => [
  1431. 'page_path' => '/channel/h5_store/h5_store',
  1432. 'view' => [
  1433. 'button_auth' => ['view'],
  1434. 'action_auth' => ['settings.h5.hfivesetting/getconfig'],
  1435. ],
  1436. 'save' => [
  1437. 'button_auth' => ['auth_all'],
  1438. 'action_auth' => ['settings.h5.appsetting/setconfig'],
  1439. ],
  1440. ],
  1441. //今日头条
  1442. 'mptoutiao' => [
  1443. 'page_path' => '/channel/mp_toutiao/index',
  1444. 'view' => [
  1445. 'button_auth' => ['view'],
  1446. 'action_auth' => ['toutiao.toutiao_setting/getconfig'],
  1447. ],
  1448. 'save' => [
  1449. 'button_auth' => ['auth_all'],
  1450. 'action_auth' => ['toutiao.toutiao_setting/setconfig'],
  1451. ],
  1452. ],
  1453. //pc商城-渠道设置
  1454. 'pcstore' => [
  1455. 'page_path' => '/channel/pc_store/index',
  1456. 'view' => [
  1457. 'button_auth' => ['view'],
  1458. 'action_auth' => ['pc.pcsetting/getconfig'],
  1459. ],
  1460. 'save' => [
  1461. 'button_auth' => ['auth_all'],
  1462. 'action_auth' => ['pc.pcsetting/setconfig'],
  1463. ],
  1464. ],
  1465. ],
  1466. //设置
  1467. 'setting' => [
  1468. //店铺信息
  1469. 'shop' => [
  1470. 'page_path' => '/setting/shop/shop',
  1471. 'view' => [
  1472. 'button_auth' => ['view'],
  1473. 'action_auth' => ['settings.shop.shopsetting/getshopinfo'],
  1474. ],
  1475. 'save' => [
  1476. 'button_auth' => ['auth_all'],
  1477. 'action_auth' => ['settings.shop.shopsetting/setconfig'],
  1478. ],
  1479. ],
  1480. //备案信息
  1481. 'record' => [
  1482. 'page_path' => '/setting/shop/record',
  1483. 'view' => [
  1484. 'button_auth' => ['view'],
  1485. 'action_auth' => ['settings.shop.shopsetting/getrecordinfo'],
  1486. ],
  1487. 'save' => [
  1488. 'button_auth' => ['auth_all'],
  1489. 'action_auth' => ['settings.shop.shopsetting/setrecordinfo'],
  1490. ],
  1491. ],
  1492. //分享信息
  1493. 'share' => [
  1494. 'page_path' => '/setting/shop/share',
  1495. 'view' => [
  1496. 'button_auth' => ['view'],
  1497. 'action_auth' => ['settings.shop.shopsetting/getsharesetting'],
  1498. ],
  1499. 'save' => [
  1500. 'button_auth' => ['auth_all'],
  1501. 'action_auth' => ['settings.shop.shopsetting/setsharesetting'],
  1502. ],
  1503. ],
  1504. //政策协议
  1505. 'protocol' => [
  1506. 'page_path' => '/setting/shop/protocol',
  1507. 'view' => [
  1508. 'button_auth' => ['view'],
  1509. 'action_auth' => ['settings.shop.shopsetting/getpolicyagreement'],
  1510. ],
  1511. 'save' => [
  1512. 'button_auth' => ['auth_all'],
  1513. 'action_auth' => ['settings.shop.shopsetting/setpolicyagreement'],
  1514. ],
  1515. ],
  1516. //支付方式
  1517. 'paymethod' => [
  1518. 'page_path' => '/setting/payment/pay_method',
  1519. 'view' => [
  1520. 'button_auth' => ['view'],
  1521. 'action_auth' => ['settings.pay.payway/getpayway'],
  1522. ],
  1523. 'save' => [
  1524. 'button_auth' => ['view'],
  1525. 'action_auth' => ['settings.pay.payway/setpayway'],
  1526. ],
  1527. ],
  1528. //支付配置
  1529. 'payconfig' => [
  1530. 'page_path' => '/setting/payment/pay_config',
  1531. 'view' => [
  1532. 'button_auth' => ['view'],
  1533. 'action_auth' => ['settings.pay.payconfig/lists'],
  1534. ],
  1535. 'edit' => [
  1536. 'button_auth' => ['auth_all'],
  1537. 'action_auth' => [
  1538. 'settings.pay.payway/getconfig',
  1539. 'settings.pay.payway/setconfig',
  1540. ],
  1541. ],
  1542. ],
  1543. //配送方式
  1544. 'delivery' => [
  1545. 'page_path' => '/setting/delivery/index',
  1546. 'view' => [
  1547. 'button_auth' => ['view'],
  1548. 'action_auth' => ['settings.delivery.deliveryway/getconfig'],
  1549. ],
  1550. 'manage' => [
  1551. 'button_auth' => ['auth_all'],
  1552. 'action_auth' => [
  1553. 'settings.delivery.deliveryway/setconfig',
  1554. 'settings.delivery.freight/lists',
  1555. 'settings.delivery.freight/add',
  1556. 'settings.delivery.freight/edit',
  1557. 'settings.delivery.freight/del',
  1558. 'settings.delivery.express/lists',
  1559. 'settings.delivery.express/add',
  1560. 'settings.delivery.express/edit',
  1561. 'settings.delivery.express/del',
  1562. 'settings.delivery.logisticsconfig/getlogisticsconfig',
  1563. 'settings.delivery.logisticsconfig/setlogisticsconfig',
  1564. ],
  1565. ],
  1566. ],
  1567. //管理员
  1568. 'permissions' => [
  1569. 'page_path' => '/setting/permissions/admin',
  1570. 'view' => [
  1571. 'button_auth' => ['view'],
  1572. 'action_auth' => ['auth.admin/lists','auth.role/lists'],
  1573. ],
  1574. 'manage' => [
  1575. 'button_auth' => ['auth_all'],
  1576. 'action_auth' => [
  1577. 'auth.admin/add',
  1578. 'auth.admin/edit',
  1579. 'auth.admin/detail',
  1580. 'auth.admin/del',
  1581. ],
  1582. ],
  1583. ],
  1584. //角色
  1585. 'role' => [
  1586. 'page_path' => '/setting/permissions/role',
  1587. 'view' => [
  1588. 'button_auth' => ['view'],
  1589. 'action_auth' => ['auth.role/lists'],
  1590. ],
  1591. 'manage' => [
  1592. 'button_auth' => ['auth_all'],
  1593. 'action_auth' => [
  1594. 'auth.role/add',
  1595. 'auth.role/edit',
  1596. 'auth.role/detail',
  1597. 'auth.role/getMenu',
  1598. 'auth.role/del',
  1599. ],
  1600. ],
  1601. ],
  1602. //商品设置
  1603. 'goods' => [
  1604. 'page_path' => '/setting/goods/goods',
  1605. 'view' => [
  1606. 'button_auth' => ['view'],
  1607. 'action_auth' => ['settings.goods.goodssettings/getconfig'],
  1608. ],
  1609. 'save' => [
  1610. 'button_auth' => ['auth_all'],
  1611. 'action_auth' => ['settings.goods.goodssettings/setconfig'],
  1612. ],
  1613. ],
  1614. //用户设置
  1615. 'user' => [
  1616. 'page_path' => '/setting/user/user_setting',
  1617. 'view' => [
  1618. 'button_auth' => ['view'],
  1619. 'action_auth' => ['settings.user.user/getconfig'],
  1620. ],
  1621. 'save' => [
  1622. 'button_auth' => ['auth_all'],
  1623. 'action_auth' => ['settings.user.user/setconfig'],
  1624. ],
  1625. ],
  1626. //登录注册
  1627. 'loginregister' => [
  1628. 'page_path' => '/setting/user/login_register',
  1629. 'view' => [
  1630. 'button_auth' => ['view'],
  1631. 'action_auth' => ['settings.user.user/getregisterconfig'],
  1632. ],
  1633. 'save' => [
  1634. 'button_auth' => ['auth_all'],
  1635. 'action_auth' => ['settings.user.user/setregisterconfig'],
  1636. ],
  1637. ],
  1638. //用户提现
  1639. 'withdrawdeposit' => [
  1640. 'page_path' => '/setting/user/withdraw_deposit',
  1641. 'view' => [
  1642. 'button_auth' => ['view'],
  1643. 'action_auth' => ['settings.user.user/getwithdrawconfig'],
  1644. ],
  1645. 'save' => [
  1646. 'button_auth' => ['auth_all'],
  1647. 'action_auth' => ['settings.user.user/setwithdrawconfig'],
  1648. ],
  1649. ],
  1650. //订单设置
  1651. 'order' => [
  1652. 'page_path' => '/setting/order/order',
  1653. 'view' => [
  1654. 'button_auth' => ['view'],
  1655. 'action_auth' => ['settings.order.transaction_settings/getconfig'],
  1656. ],
  1657. 'save' => [
  1658. 'button_auth' => ['auth_all'],
  1659. 'action_auth' => ['settings.order.transaction_settings/setconfig'],
  1660. ],
  1661. ],
  1662. //储存设置
  1663. 'storage' => [
  1664. 'page_path' => '/setting/storage/index',
  1665. 'view' => [
  1666. 'button_auth' => ['view'],
  1667. 'action_auth' => ['settings.shop.storage/lists'],
  1668. ],
  1669. 'manage' => [
  1670. 'button_auth' => ['auth_all'],
  1671. 'action_auth' => [
  1672. 'settings.order.storage/change',
  1673. 'settings.shop.storage/index',
  1674. 'settings.shop.storage/setup'
  1675. ],
  1676. ],
  1677. ],
  1678. //系统日志
  1679. 'systemlog' => [
  1680. 'page_path' => '/setting/system_maintain/journal',
  1681. 'view' => [
  1682. 'button_auth' => ['view'],
  1683. 'action_auth' => ['settings.system.log/lists'],
  1684. ],
  1685. ],
  1686. //系统缓存
  1687. 'systemcache' => [
  1688. 'page_path' => '/setting/system_maintain/cache',
  1689. 'view' => [
  1690. 'button_auth' => ['view'],
  1691. 'action_auth' => [],
  1692. ],
  1693. 'clear' => [
  1694. 'button_auth' => ['auth_all'],
  1695. 'action_auth' => ['settings.system.cache/clear'],
  1696. ],
  1697. ],
  1698. //系统更新
  1699. 'systemupdate' => [
  1700. 'page_path' => '/setting/system_maintain/update',
  1701. 'view' => [
  1702. 'button_auth' => ['view'],
  1703. 'action_auth' => [],
  1704. ],
  1705. ],
  1706. //异常日志
  1707. 'errorlog' => [
  1708. 'page_path' => '/setting/system_maintain/error_journal',
  1709. 'view' => [
  1710. 'button_auth' => ['view'],
  1711. 'action_auth' => [],
  1712. ],
  1713. ],
  1714. //计划任务
  1715. 'task' => [
  1716. 'page_path' => '/setting/task',
  1717. 'view' => [
  1718. 'button_auth' => ['view'],
  1719. 'action_auth' => ['crontab.crontab/lists'],
  1720. ],
  1721. 'manage' => [
  1722. 'button_auth' => ['view'],
  1723. 'action_auth' => [
  1724. 'crontab.crontab/add',
  1725. 'crontab.crontab/edit',
  1726. 'crontab.crontab/operate',
  1727. 'crontab.crontab/del',
  1728. ],
  1729. ],
  1730. ],
  1731. //地图配置
  1732. 'map' => [
  1733. 'page_path' => '/setting/map',
  1734. 'view' => [
  1735. 'button_auth' => ['view'],
  1736. 'action_auth' => ['settings.shop.shop_setting/getMapKey'],
  1737. ],
  1738. 'save' => [
  1739. 'button_auth' => ['auth_all'],
  1740. 'action_auth' => ['settings.shop.shop_setting/setMapKey'],
  1741. ],
  1742. ],
  1743. ],
  1744. ];