auth.php 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  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. 'info' =>[
  334. //自然风光
  335. 'ziran' => [//内容管理
  336. 'page_path' => '/natural-scenery/natural-scenery-list',
  337. 'view' => [
  338. 'button_auth' => ['view'],
  339. 'action_auth' => ['info.Info/lists'],//接口
  340. ],
  341. 'manage' => [
  342. 'button_auth' => ['auth_all'],
  343. 'action_auth' => [
  344. 'info.Info/add',
  345. 'info.Info/edit',
  346. 'info.Info/del',
  347. ]
  348. ],
  349. ],
  350. ],
  351. //用户
  352. 'user' => [
  353. //用户概述
  354. 'profile' => [
  355. 'page_path' => '/user/profile',
  356. 'view' => [
  357. 'button_auth' => ['view'],
  358. 'action_auth' => ['user.user/index'],
  359. ],
  360. ],
  361. //用户管理
  362. 'list' => [
  363. 'page_path' => '/user/lists',
  364. 'view' => [
  365. 'button_auth' => ['view'],
  366. 'action_auth' => ['user.user/lists','user.user/otherlist'],
  367. ],
  368. 'manage' => [
  369. 'button_auth' => ['auth_all'],
  370. 'action_auth' => [
  371. 'user.user/detail', //用户详情
  372. 'user.user/info', //用户信息
  373. 'user.user/setinfo', //设置用户信息
  374. 'user.user/setlabel', //设置批量标签
  375. 'user.user/userinviterlists', //我邀请的人
  376. 'user.user/setuserlabel', //设置用户标签
  377. ]
  378. ],
  379. 'adjustaccount' => [
  380. 'button_auth' => [
  381. 'adjustuserwallet'
  382. ],
  383. 'action_auth' => [
  384. 'user.user/adjustuserwallet'
  385. ],
  386. ],
  387. ],
  388. //用户等级
  389. 'userlevel' => [
  390. 'page_path' => '/user/grade',
  391. 'view' => [
  392. 'button_auth' => ['view'],
  393. 'action_auth' => ['user.userlevel/lists'],
  394. ],
  395. 'manage' => [
  396. 'button_auth' => ['auth_all'],
  397. 'action_auth' => [
  398. 'user.userlevel/add',
  399. 'user.userlevel/edit',
  400. 'user.userlevel/detail',
  401. 'user.userlevel/del',
  402. ]
  403. ],
  404. ],
  405. //用户等级
  406. 'userlabel' => [
  407. 'page_path' => '/user/tag',
  408. 'view' => [
  409. 'button_auth' => ['view'],
  410. 'action_auth' => ['user.userlabel/lists'],
  411. ],
  412. 'manage' => [
  413. 'button_auth' => ['auth_all'],
  414. 'action_auth' => [
  415. 'user.userlabel/add',
  416. 'user.userlabel/edit',
  417. 'user.userlabel/detail',
  418. 'user.userlabel/del',
  419. ]
  420. ],
  421. ],
  422. ],
  423. //营销
  424. 'marketing' => [
  425. //应用中心
  426. 'marketing' => [
  427. 'page_path' => '/marketing/index',
  428. 'view' => [
  429. 'button_auth' => ['view'],
  430. 'action_auth' => ['config/getmarketingmodule'],
  431. ],
  432. ],
  433. //营销中心
  434. 'marketingapp' => [
  435. 'page_path' => '/application/app',
  436. 'view' => [
  437. 'button_auth' => ['view'],
  438. 'action_auth' => ['config/getappmodule'],
  439. ],
  440. ],
  441. //优惠券概览
  442. 'couponsurvey' => [
  443. 'page_path' => ['/coupon/survey'],
  444. 'view' => [
  445. 'button_auth' => ['view'],
  446. 'action_auth' => ['marketing.coupon/survey'],
  447. ],
  448. ],
  449. //优惠券
  450. 'couponlists' => [
  451. 'page_path' => '/coupon/lists',
  452. 'view' => [
  453. 'button_auth' => ['view'],
  454. 'action_auth' => ['marketing.coupon/lists'],
  455. ],
  456. 'manage' => [
  457. 'button_auth' => ['auth_all'],
  458. 'action_auth' => [
  459. 'marketing.coupon/add', //新增优惠券
  460. 'marketing.coupon/edit', //编辑优惠券
  461. 'marketing.coupon/delete', //删除优惠券
  462. 'marketing.coupon/info', //优惠券详情
  463. 'marketing.coupon/open', //开启发放优惠券
  464. 'marketing.coupon/stop', //结束发放优惠券
  465. 'marketing.coupon/send', //卖家发放优惠券
  466. 'marketing.coupon/detail', //获取优惠券详细
  467. ]
  468. ],
  469. ],
  470. //优惠券记录
  471. 'couponrecord' => [
  472. 'page_path' => '/coupon/receive_record',
  473. 'view' => [
  474. 'button_auth' => ['view'],
  475. 'action_auth' => ['marketing.coupon/record'],
  476. ],
  477. 'manage' => [
  478. 'button_auth' => ['auth_all'],
  479. 'action_auth' => [
  480. 'marketing.coupon/void', //作废优惠券
  481. 'order.order/detail', //查看订单
  482. ]
  483. ],
  484. ],
  485. //秒杀
  486. 'seckilllists' => [
  487. 'page_path' => '/seckill/lists',
  488. 'view' => [
  489. 'button_auth' => ['view'],
  490. 'action_auth' => ['marketing.seckill/lists'],
  491. ],
  492. 'manage' => [
  493. 'button_auth' => ['auth_all'],
  494. 'action_auth' => [
  495. 'marketing.seckill/add', //新增秒杀
  496. 'marketing.seckill/edit', //编辑秒杀
  497. 'marketing.seckill/info', //秒杀信息
  498. 'marketing.seckill/delete', //删除秒杀
  499. 'marketing.seckill/open', //确认开启活动
  500. 'marketing.seckill/stop', //停止关闭活动
  501. ]
  502. ],
  503. ],
  504. //拼团活动
  505. 'combinationsurvey' => [
  506. 'page_path' => '/combination/survey',
  507. 'view' => [
  508. 'button_auth' => ['view'],
  509. 'action_auth' => ['marketing.team/survey'],
  510. ],
  511. ],
  512. //拼团活动
  513. 'combinationlists' => [
  514. 'page_path' => '/combination/lists',
  515. 'view' => [
  516. 'button_auth' => ['view'],
  517. 'action_auth' => ['marketing.team/lists'],
  518. ],
  519. 'manage' => [
  520. 'button_auth' => ['auth_all'],
  521. 'action_auth' => [
  522. 'marketing.team/add', //新增拼团
  523. 'marketing.team/edit', //编辑拼团
  524. 'marketing.team/info', //拼团信息
  525. 'marketing.team/delete', //删除拼团
  526. 'marketing.team/open', //确认开启活动
  527. 'marketing.team/stop', //停止关闭活动
  528. ]
  529. ],
  530. ],
  531. //砍价活动
  532. 'bargainlists' => [
  533. 'page_path' => '/bargain/lists',
  534. 'view' => [
  535. 'button_auth' => ['view'],
  536. 'action_auth' => ['bargain.bargainactivity/lists'],
  537. ],
  538. 'manage' => [
  539. 'button_auth' => ['auth_all'],
  540. 'action_auth' => [
  541. 'bargain.bargainactivity/add', //添加砍价
  542. 'bargain.bargainactivity/edit', //编辑砍价
  543. 'bargain.bargainactivity/detail', //砍价详情
  544. 'bargain.bargainactivity/confirm', //确认砍价
  545. 'bargain.bargainactivity/stop', //停止砍价
  546. 'bargain.bargainactivity/delete', //删除砍价
  547. ],
  548. ],
  549. ],
  550. 'bargainrecord' => [
  551. 'page_path' => '/bargain/bargain_record',
  552. 'view' => [
  553. 'button_auth' => ['view'],
  554. 'action_auth' => ['bargain.bargainactivity/activityrecord'],
  555. ],
  556. 'stop' => [
  557. 'button_auth' => ['auth_all'],
  558. 'action_auth' => [
  559. 'bargain.bargainactivity/stop', //停止砍价
  560. ],
  561. ],
  562. ],
  563. //会员折扣
  564. 'discountlevel' => [
  565. 'page_path' => '/member_price/index',
  566. 'view' => [
  567. 'button_auth' => ['view'],
  568. 'action_auth' => ['marketing.discount/lists','marketing.discount/otherLists'],
  569. ],
  570. 'manage' => [
  571. 'button_auth' => ['auth_all'],
  572. 'action_auth' => [
  573. 'marketing.discount/join', //参与折扣
  574. 'marketing.bargainactivity/quit', //不参与折扣
  575. 'marketing.bargainactivity/detail', //折扣详情
  576. 'marketing.bargainactivity/setDiscount', //设置折扣
  577. ],
  578. ],
  579. ],
  580. //分销概览
  581. 'distributionsurvey' => [
  582. 'page_path' => '/distribution/survey',
  583. 'view' => [
  584. 'button_auth' => ['view'],
  585. 'action_auth' => ['distribution.distributiondata/datacenter'],
  586. ],
  587. ],
  588. //分销商
  589. 'distributionstore' => [
  590. 'page_path' => '/distribution/store',
  591. 'view' => [
  592. 'button_auth' => ['view'],
  593. 'action_auth' => [
  594. 'distribution.distributionmember/lists',
  595. 'distribution.distributionlevel/lists'
  596. ],
  597. ],
  598. 'manage' => [
  599. 'button_auth' => ['auth_all'],
  600. 'action_auth' => [
  601. 'distribution.distributionmember/detail', //查看分销商详情
  602. 'distribution.distributionmember/adjustLevelinfo', //调整分销等级界面信息
  603. 'distribution.distributionmember/getfans', //查看下级
  604. 'distribution.distributionmember/getfanslists', //下级列表
  605. 'distribution.distributionmember/freeze', //冻结/解冻资格
  606. 'distribution.distributionmember/open', //开通分销
  607. ],
  608. ],
  609. ],
  610. //分销申请
  611. 'distributionapplystore' => [
  612. 'page_path' => '/distribution/distribution_apply',
  613. 'view' => [
  614. 'button_auth' => ['view'],
  615. 'action_auth' => ['distribution.distributionapply/lists'],
  616. ],
  617. 'manage' => [
  618. 'button_auth' => ['auth_all'],
  619. 'action_auth' => [
  620. 'distribution.distributionapply/detail', //详情
  621. 'distribution.distributionapply/pass', //审核通过
  622. 'distribution.distributionapply/refuse', //审核拒绝
  623. ],
  624. ],
  625. ],
  626. //分销商商品
  627. 'distributiongoods' => [
  628. 'page_path' => '/distribution/distribution_goods',
  629. 'view' => [
  630. 'button_auth' => ['view'],
  631. 'action_auth' => ['distribution.distributiongoods/lists'],
  632. ],
  633. 'manage' => [
  634. 'button_auth' => ['auth_all'],
  635. 'action_auth' => [
  636. 'distribution.distributiongoods/set', //设置佣金
  637. 'distribution.distributionapply/join', //参与/不参与分销
  638. 'distribution.distributionapply/detail', //查看分销商品详情
  639. ],
  640. ],
  641. ],
  642. //分销商订单
  643. 'distributionorder' => [
  644. 'page_path' => '/distribution/distribution_orders',
  645. 'view' => [
  646. 'button_auth' => ['view'],
  647. 'action_auth' => ['distribution.distributionordergoods/lists'],
  648. ],
  649. ],
  650. //分销等级
  651. 'distributiongrade' => [
  652. 'page_path' => '/distribution/distribution_grade',
  653. 'view' => [
  654. 'button_auth' => ['view'],
  655. 'action_auth' => ['distribution.distributionlevel/lists'],
  656. ],
  657. 'manage' => [
  658. 'button_auth' => ['auth_all'],
  659. 'action_auth' => [
  660. 'distribution.distributionlevel/add', //添加等级
  661. 'distribution.distributionlevel/edit', //编辑等级
  662. 'distribution.distributionlevel/detail', //等级详情
  663. 'distribution.distributionlevel/delete', //删除等级
  664. ],
  665. ],
  666. ],
  667. //分销设置-基础设置
  668. 'distributionconfig' => [
  669. 'page_path' => ['/distribution/base_setting','/distribution/result_setting'],
  670. 'view' => [
  671. 'button_auth' => ['view'],
  672. 'action_auth' => ['distribution.distributionconfig/getconfig'],
  673. ],
  674. 'save' => [
  675. 'button_auth' => ['save'],
  676. 'action_auth' => ['distribution.distributionconfig/setconfig'],
  677. ],
  678. ],
  679. //充值概览
  680. 'rechargesurvey' => [
  681. 'page_path' => '/recharge/survey',
  682. 'view' => [
  683. 'button_auth' => ['view'],
  684. 'action_auth' => ['recharge.recharge/datacenter'],
  685. ]
  686. ],
  687. //充值规则
  688. 'rechargerule' => [
  689. 'page_path' => '/recharge/rule',
  690. 'view' => [
  691. 'button_auth' => ['view'],
  692. 'action_auth' => ['recharge.recharge/getconfig'],
  693. ],
  694. 'save' => [
  695. 'button_auth' => ['auth_all'],
  696. 'action_auth' => ['recharge.recharge/setconfig'],
  697. ],
  698. ],
  699. //充值记录
  700. 'rechargerecord' => [
  701. 'page_path' => '/recharge/record',
  702. 'view' => [
  703. 'button_auth' => ['view'],
  704. 'action_auth' => ['recharge.recharge/lists'],
  705. ],
  706. ],
  707. //商城公告
  708. 'shopnotice' => [
  709. 'page_path' => '/notice/lists',
  710. 'view' => [
  711. 'button_auth' => ['view'],
  712. 'action_auth' => ['shopnotice.shopnotice/lists'],
  713. ],
  714. 'manage' => [
  715. 'button_auth' => ['auth_all'],
  716. 'action_auth' => [
  717. 'shopnotice.shopnotice/add', //添加公告
  718. 'shopnotice.shopnotice/edit', //编辑公告
  719. 'shopnotice.shopnotice/detail', //公告详情
  720. 'shopnotice.shopnotice/status', //公告状态
  721. 'shopnotice.shopnotice/del', //删除公告
  722. ],
  723. ],
  724. ],
  725. //签到概览
  726. 'calendarsurvey' => [
  727. 'page_path' => '/calendar/survey',
  728. 'view' => [
  729. 'button_auth' => ['view'],
  730. 'action_auth' => ['sign.sign/datacenter'],
  731. ]
  732. ],
  733. //签到规则
  734. 'calendarrule' => [
  735. 'page_path' => '/calendar/rule',
  736. 'view' => [
  737. 'button_auth' => ['view'],
  738. 'action_auth' => ['sign.sign/getconfig'],
  739. ],
  740. 'save' => [
  741. 'button_auth' => ['auth_all'],
  742. 'action_auth' => ['sign.sign/setconfig'],
  743. ],
  744. ],
  745. //签到记录
  746. 'calendarrecord' => [
  747. 'page_path' => '/calendar/record',
  748. 'view' => [
  749. 'button_auth' => ['view'],
  750. 'action_auth' => ['sign.sign/lists'],
  751. ],
  752. ],
  753. //幸运抽奖
  754. 'luckydraw' => [
  755. 'page_path' => '/lucky_draw/index',
  756. 'view' => [
  757. 'button_auth' => ['view'],
  758. 'action_auth' => ['luckydraw.luckydraw/lists'],
  759. ],
  760. 'manage' => [
  761. 'button_auth' => ['auth_all'],
  762. 'action_auth' => [
  763. 'luckydraw.luckydraw/add',
  764. 'luckydraw.luckydraw/edit',
  765. 'luckydraw.luckydraw/detail',
  766. 'luckydraw.luckydraw/del',
  767. 'luckydraw.luckydraw/start',
  768. 'luckydraw.luckydraw/end',
  769. 'luckydraw.luckydraw/record',
  770. 'luckydraw.luckydraw/getprizetype',
  771. ],
  772. ],
  773. ],
  774. //核销订单
  775. 'selffetchorder' => [
  776. 'page_path' => '/selffetch/selffetch_order',
  777. 'view' => [
  778. 'button_auth' => ['view'],
  779. 'action_auth' => ['selffetchshop.verification/lists'],
  780. ],
  781. 'manage' => [
  782. 'button_auth' => ['auth_all'],
  783. 'action_auth' => [
  784. 'selffetchshop.verification/verification', //提货核销
  785. 'selffetchshop.verification/verificationquery', //核销查询
  786. 'selffetchshop.verification/verificationdetail', //查看核销详情
  787. ],
  788. ],
  789. ],
  790. //自提门店
  791. 'selffetchshop' => [
  792. 'page_path' => '/selffetch/selffetch_shop',
  793. 'view' => [
  794. 'button_auth' => ['view'],
  795. 'action_auth' => ['selffetchshop.selffetchshop/lists'],
  796. ],
  797. 'manage' => [
  798. 'button_auth' => ['auth_all'],
  799. 'action_auth' => [
  800. 'selffetchshop.selffetchshop/add', //添加自提门店
  801. 'selffetchshop.selffetchshop/edit', //编辑自提门店
  802. 'selffetchshop.selffetchshop/detail', //查看自提详情
  803. 'selffetchshop.selffetchshop/status', //修改自提门店状态
  804. 'selffetchshop.selffetchshop/del', //删除自提门店
  805. 'selffetchshop.selffetchshop/regionSearch', //腾讯地图区域搜索
  806. ],
  807. ],
  808. ],
  809. //核销员
  810. 'selffetchverifier' => [
  811. 'page_path' => '/selffetch/selffetch_verifier',
  812. 'view' => [
  813. 'button_auth' => ['view'],
  814. 'action_auth' => ['selffetchshop.selffetchverifier/lists'],
  815. ],
  816. 'manage' => [
  817. 'button_auth' => ['auth_all'],
  818. 'action_auth' => [
  819. 'selffetchshop.selffetchverifier/add', //添加核销员
  820. 'selffetchshop.selffetchverifier/edit', //编辑核销员
  821. 'selffetchshop.selffetchverifier/detail', //查看核销员
  822. 'selffetchshop.selffetchverifier/status', //修改核销员状态
  823. 'selffetchshop.selffetchverifier/del', //删除核销员
  824. ],
  825. ],
  826. ],
  827. //直播间
  828. 'livebroadcastlists' => [
  829. 'page_path' => '/live_broadcast/lists',
  830. 'view' => [
  831. 'button_auth' => ['view'],
  832. 'action_auth' => ['live.liveroom/lists'],
  833. ],
  834. 'manage' => [
  835. 'button_auth' => ['auth_all'],
  836. 'action_auth' => [
  837. 'live.liveroom/lists/add', //添加
  838. 'live.liveroom/lists/del', //删除
  839. ],
  840. ],
  841. ],
  842. //直播商品
  843. 'livebroadcastgoods' => [
  844. 'page_path' => '/live_broadcast/goods',
  845. 'view' => [
  846. 'button_auth' => ['view'],
  847. 'action_auth' => ['live.livegoom/lists'],
  848. ],
  849. 'manage' => [
  850. 'button_auth' => ['auth_all'],
  851. 'action_auth' => [
  852. 'live.livegoom/lists/add', //添加
  853. 'live.livegoom/lists/del', //删除
  854. ],
  855. ],
  856. ],
  857. //业务通知
  858. 'notice' => [
  859. 'page_path' => [
  860. '/sms/seller',
  861. '/sms/buyers/buyers',
  862. '/sms/buyers/business',
  863. ],
  864. 'view' => [
  865. 'button_auth' => ['view'],
  866. 'action_auth' => ['notice.notice/settinglists'],
  867. ],
  868. 'manage' => [
  869. 'button_auth' => ['auth_all'],
  870. 'action_auth' => [
  871. 'notice.notice/detail',
  872. 'notice.notice/set',
  873. ],
  874. ],
  875. ],
  876. //短信设置
  877. 'smssetting' => [
  878. 'page_path' => '/sms/sms',
  879. 'view' => [
  880. 'button_auth' => ['view'],
  881. 'action_auth' => ['notice.smsconfig/getconfig'],
  882. ],
  883. 'manage' => [
  884. 'button_auth' => ['auth_all'],
  885. 'action_auth' => [
  886. 'notice.smsconfig/detail',
  887. 'notice.smsconfig/setconfig',
  888. ],
  889. ],
  890. ],
  891. //在线客服
  892. 'service' => [
  893. 'page_path' => '/service/setting',
  894. 'view' => [
  895. 'button_auth' => ['view'],
  896. 'action_auth' => ['settings.service.service/getconfig'],
  897. ],
  898. 'save' => [
  899. 'button_auth' => ['auth_all'],
  900. 'action_auth' => [
  901. 'settings.service.service/setconfig',
  902. ],
  903. ],
  904. ],
  905. //客服列表
  906. 'servicelists' => [
  907. 'page_path' => '/service/lists',
  908. 'view' => [
  909. 'button_auth' => ['view'],
  910. 'action_auth' => ['kefu.kefu/lists'],
  911. ],
  912. 'manage' => [
  913. 'button_auth' => ['auth_all'],
  914. 'action_auth' => [
  915. 'kefu.kefu/add',
  916. 'kefu.kefu/edit',
  917. 'kefu.kefu/detail',
  918. 'kefu.kefu/del',
  919. 'kefu.kefu/status',
  920. 'kefu.kefu/login',
  921. ],
  922. ],
  923. ],
  924. //客服话术
  925. 'speechlists' => [
  926. 'page_path' => '/service/speech_lists',
  927. 'view' => [
  928. 'button_auth' => ['view'],
  929. 'action_auth' => ['kefu.kefulang/lists'],
  930. ],
  931. 'manage' => [
  932. 'button_auth' => ['auth_all'],
  933. 'action_auth' => [
  934. 'kefu.kefulang/add',
  935. 'kefu.kefulang/edit',
  936. 'kefu.kefulang/detail',
  937. 'kefu.kefulang/del',
  938. ],
  939. ],
  940. ],
  941. //批量打印
  942. 'expressassistant' => [
  943. 'page_path' => '/express/batch',
  944. 'view' => [
  945. 'button_auth' => ['view'],
  946. 'action_auth' => [
  947. 'expressassistant.facesheetsender/lists',
  948. 'expressassistant.facesheettemplate/lists',
  949. ],
  950. ],
  951. 'manage' => [
  952. 'button_auth' => ['auth_all'],
  953. 'action_auth' => [
  954. 'expressassistant.facesheetorder/print',
  955. ],
  956. ],
  957. ],
  958. //发件人模板
  959. 'facesheetsender' => [
  960. 'page_path' => '/express/sender',
  961. 'view' => [
  962. 'button_auth' => ['view'],
  963. 'action_auth' => [
  964. 'expressassistant.facesheetsender/lists',
  965. ],
  966. ],
  967. 'manage' => [
  968. 'button_auth' => ['auth_all'],
  969. 'action_auth' => [
  970. 'expressassistant.facesheetsender/add',
  971. 'expressassistant.facesheetsender/detail',
  972. 'expressassistant.facesheetsender/edit',
  973. 'expressassistant.facesheetsender/delete',
  974. ],
  975. ],
  976. ],
  977. //电子面单模板
  978. 'facesheettemplate' => [
  979. 'page_path' => '/express/face_sheet',
  980. 'view' => [
  981. 'button_auth' => ['view'],
  982. 'action_auth' => [
  983. 'expressassistant.facesheettemplate/lists',
  984. ],
  985. ],
  986. 'manage' => [
  987. 'button_auth' => ['auth_all'],
  988. 'action_auth' => [
  989. 'expressassistant.facesheettemplate/add',
  990. 'expressassistant.facesheettemplate/detail',
  991. 'expressassistant.facesheettemplate/edit',
  992. 'expressassistant.facesheettemplate/delete',
  993. ],
  994. ],
  995. ],
  996. //面单设置
  997. 'facesheetsetting' => [
  998. 'page_path' => '/express/face_sheet_set',
  999. 'view' => [
  1000. 'button_auth' => ['view'],
  1001. 'action_auth' => [
  1002. 'expressassistant.facesheetsetting/getconfig',
  1003. 'expressassistant.facesheetsetting/getfacesheettype',
  1004. ],
  1005. ],
  1006. 'manage' => [
  1007. 'button_auth' => ['auth_all'],
  1008. 'action_auth' => [
  1009. 'expressassistant.facesheetsetting/setconfig',
  1010. ],
  1011. ],
  1012. ],
  1013. //小票打印
  1014. 'print' => [
  1015. 'page_path' => '/print/list',
  1016. 'view' => [
  1017. 'button_auth' => ['view'],
  1018. 'action_auth' => ['printer.printer/printerlists'],
  1019. ],
  1020. 'manage' => [
  1021. 'button_auth' => ['auth_all'],
  1022. 'action_auth' => [
  1023. 'printer.printer/getprintertype',
  1024. 'printer.printer/printertemplatelists',
  1025. 'printer.printer/printertemplatelists',
  1026. 'printer.printer/printerdetail',
  1027. 'printer.printer/autoprint',
  1028. 'printer.printer/addprinter',
  1029. 'printer.printer/editprinter',
  1030. 'printer.printer/testprinter',
  1031. 'printer.printer/deleteprinter',
  1032. ],
  1033. ],
  1034. ],
  1035. //小票模板
  1036. 'printtemplate' => [
  1037. 'page_path' => '/print/template',
  1038. 'view' => [
  1039. 'button_auth' => ['view'],
  1040. 'action_auth' => ['settings.service.service/getconfig'],
  1041. ],
  1042. 'manage' => [
  1043. 'button_auth' => ['auth_all'],
  1044. 'action_auth' => [
  1045. 'printer.printer/printertemplatelists',
  1046. 'printer.printer/addtemplate',
  1047. 'printer.printer/templatedetail',
  1048. 'printer.printer/edittemplate',
  1049. 'printer.printer/deletetemplate',
  1050. ],
  1051. ],
  1052. ],
  1053. //评价助手
  1054. 'evaluation' => [
  1055. 'page_path' => '/evaluation/index',
  1056. 'view' => [
  1057. 'button_auth' => ['view'],
  1058. 'action_auth' => [
  1059. 'goods.goods_comment_assistant/lists',
  1060. 'goods.goods/otherList'
  1061. ],
  1062. ],
  1063. 'manage' => [
  1064. 'button_auth' => ['auth_all'],
  1065. 'action_auth' => [
  1066. 'user.user_level/lists',
  1067. 'goods.goods_comment_assistant/add',
  1068. ],
  1069. ],
  1070. ],
  1071. //商城资讯
  1072. 'article' => [
  1073. 'page_path' => '/article/lists',
  1074. 'view' => [
  1075. 'button_auth' => ['view'],
  1076. 'action_auth' => ['article/lists'],
  1077. ],
  1078. 'manage' => [
  1079. 'button_auth' => ['auth_all'],
  1080. 'action_auth' => [
  1081. 'article/add',
  1082. 'article/edit',
  1083. 'article/detail',
  1084. 'article/isShow',
  1085. 'article/delete',
  1086. ],
  1087. ],
  1088. ],
  1089. //商城资讯分类
  1090. 'articlecategory' => [
  1091. 'page_path' => '/article/category_lists',
  1092. 'view' => [
  1093. 'button_auth' => ['view'],
  1094. 'action_auth' => ['category_lists/lists'],
  1095. ],
  1096. 'manage' => [
  1097. 'button_auth' => ['auth_all'],
  1098. 'action_auth' => [
  1099. 'article_category/add',
  1100. 'article_category/edit',
  1101. 'article_category/detail',
  1102. 'article_category/isShow',
  1103. 'article_category/delete',
  1104. ],
  1105. ],
  1106. ],
  1107. // 积分商品
  1108. 'integralgoods' => [
  1109. 'page_path' => '/integral_mall/integral_goods',
  1110. 'view' => [
  1111. 'button_auth' => ['view'],
  1112. 'action_auth' => ['integral.integral_goods/lists'],
  1113. ],
  1114. 'save' => [
  1115. 'button_auth' => ['auth_all'],
  1116. 'action_auth' => [
  1117. 'integral.integral_goods/add',
  1118. 'integral.integral_goods/edit',
  1119. 'integral.integral_goods/del',
  1120. 'integral.integral_goods/status',
  1121. ],
  1122. ],
  1123. ],
  1124. // 积分订单
  1125. 'integralorder' => [
  1126. 'page_path' => '/integral_mall/exchange_order',
  1127. 'view' => [
  1128. 'button_auth' => ['view'],
  1129. 'action_auth' => ['integral.integral_order/lists'],
  1130. ],
  1131. 'save' => [
  1132. 'button_auth' => ['auth_all'],
  1133. 'action_auth' => [
  1134. 'integral.integral_order/delivery',
  1135. 'integral.integral_order/confirm',
  1136. 'integral.integral_order/cancel',
  1137. 'integral.integral_order/logistics',
  1138. ],
  1139. ],
  1140. ],
  1141. // 消费奖励
  1142. 'awardintegral' => [
  1143. 'page_path' => '/consumption_reward/setting',
  1144. 'view' => [
  1145. 'button_auth' => ['view'],
  1146. 'action_auth' => ['award_integral/getConfig'],
  1147. ],
  1148. 'save' => [
  1149. 'button_auth' => ['auth_all'],
  1150. 'action_auth' => [
  1151. 'award_integral/setConfig',
  1152. ],
  1153. ],
  1154. ],
  1155. // 包邮活动
  1156. 'freeshipping' => [
  1157. 'page_path' => '/free_shipping/index',
  1158. 'view' => [
  1159. 'button_auth' => ['view'],
  1160. 'action_auth' => ['free_shipping.freeshipping/lists'],
  1161. ],
  1162. 'manage' => [
  1163. 'button_auth' => ['auth_all'],
  1164. 'action_auth' => [
  1165. 'free_shipping.freeshipping/add',
  1166. 'free_shipping.freeshipping/edit',
  1167. 'free_shipping.freeshipping/detail',
  1168. 'free_shipping.freeshipping/start',
  1169. 'free_shipping.freeshipping/end',
  1170. 'free_shipping.freeshipping/delete',
  1171. ],
  1172. ],
  1173. ],
  1174. // 足迹汽泡
  1175. 'footprint' => [
  1176. 'page_path' => '/footprint/index',
  1177. 'view' => [
  1178. 'button_auth' => ['view'],
  1179. 'action_auth' => [
  1180. 'footprint/getconfig',
  1181. 'footprint/lists',
  1182. ],
  1183. ],
  1184. 'manage' => [
  1185. 'button_auth' => ['auth_all'],
  1186. 'action_auth' => [
  1187. 'footprint/setconfig',
  1188. 'footprint/status',
  1189. ],
  1190. ],
  1191. ],
  1192. // 自定义海报
  1193. 'poster' => [
  1194. 'page_path' => '/custom_poster/goods',
  1195. 'view' => [
  1196. 'button_auth' => ['view'],
  1197. 'action_auth' => [
  1198. 'poster.poster/getgoodsconfig',
  1199. 'poster.poster/getdistributionconfig',
  1200. ],
  1201. ],
  1202. 'manage' => [
  1203. 'button_auth' => ['auth_all'],
  1204. 'action_auth' => [
  1205. 'poster.poster/setgoodsconfig',
  1206. 'poster.poster/setdistributionconfig',
  1207. ],
  1208. ],
  1209. ],
  1210. // 商品采集
  1211. 'gather' => [
  1212. 'page_path' => '/goods_collection/index',
  1213. 'view' => [
  1214. 'button_auth' => ['view'],
  1215. 'action_auth' => ['goods.goodsgather/logLists'],
  1216. ],
  1217. 'manage' => [
  1218. 'button_auth' => ['auth_all'],
  1219. 'action_auth' => [
  1220. 'goods.goodsgather/gather',//采集
  1221. 'goods.goodsgather/del',//删除采集记录
  1222. 'goods.goodsgather/lists',//商品采集列表
  1223. 'goods.goodsgather/gatherGoodsDetail',//采集商品详情
  1224. 'goods.goodsgather/gatherGoodsEdit',//编辑采集商品
  1225. 'goods.goodsgather/createGoods',//创建商品
  1226. ],
  1227. ],
  1228. ],
  1229. //地址库
  1230. 'address' => [
  1231. 'page_path' => '/address/lists',
  1232. 'view' => [
  1233. 'button_auth' => ['view'],
  1234. 'action_auth' => [
  1235. 'marketing.address_library/lists',
  1236. ],
  1237. ],
  1238. 'manage' => [
  1239. 'button_auth' => ['auth_all'],
  1240. 'action_auth' => [
  1241. 'marketing.address_library/lists',
  1242. 'marketing.address_library/add',
  1243. 'marketing.address_library/edit',
  1244. 'marketing.address_library/del',
  1245. 'marketing.address_library/default',
  1246. ],
  1247. ],
  1248. ],
  1249. //分享设置-微信小程序
  1250. 'sharempsetting' => [
  1251. 'page_path' => '/share/mpSetting',
  1252. 'view' => [
  1253. 'button_auth' => ['view'],
  1254. 'action_auth' => [
  1255. 'marketing.dev_share/lists',
  1256. ],
  1257. ],
  1258. 'manage' => [
  1259. 'button_auth' => ['auth_all'],
  1260. 'action_auth' => [
  1261. 'marketing.dev_share/lists',
  1262. 'marketing.dev_share/edit',
  1263. 'marketing.dev_share/detail',
  1264. ],
  1265. ],
  1266. ],
  1267. //分享设置-微信公众号
  1268. 'shareoasetting' => [
  1269. 'page_path' => '/share/mpSetting',
  1270. 'view' => [
  1271. 'button_auth' => ['view'],
  1272. 'action_auth' => [
  1273. 'marketing.dev_share/lists',
  1274. ],
  1275. ],
  1276. 'manage' => [
  1277. 'button_auth' => ['auth_all'],
  1278. 'action_auth' => [
  1279. 'marketing.dev_share/lists',
  1280. 'marketing.dev_share/edit',
  1281. 'marketing.dev_share/detail',
  1282. ],
  1283. ],
  1284. ],
  1285. ],
  1286. //财务
  1287. 'finance' => [
  1288. //财务概况
  1289. 'profile' => [
  1290. 'page_path' => '/finance/profile',
  1291. 'view' => [
  1292. 'button_auth' => ['view'],
  1293. 'action_auth' => ['finance.finance/datacenter'],
  1294. ],
  1295. ],
  1296. //提现记录
  1297. 'userwithdrawal' => [
  1298. 'page_path' => '/finance/user_withdrawal',
  1299. 'view' => [
  1300. 'button_auth' => ['view'],
  1301. 'action_auth' => ['withdraw.withdraw/lists'],
  1302. ],
  1303. 'manage' => [
  1304. 'button_auth' => ['auth_all'],
  1305. 'action_auth' => [
  1306. 'withdraw.withdraw/detail',
  1307. 'withdraw.withdraw/pass',
  1308. 'withdraw.withdraw/refuse',
  1309. ]
  1310. ],
  1311. ],
  1312. //余额明细
  1313. 'accountlog' => [
  1314. 'page_path' => '/finance/account_log',
  1315. 'view' => [
  1316. 'button_auth' => ['view'],
  1317. 'action_auth' => ['accountlog/lists','accountlog/getchangetype'],
  1318. ],
  1319. ],
  1320. //积分明细
  1321. 'integrallog' => [
  1322. 'page_path' => '/finance/integral_list',
  1323. 'view' => [
  1324. 'button_auth' => ['view'],
  1325. 'action_auth' => ['accountlog/lists','accountlog/getintegralchangetype'],
  1326. ],
  1327. ],
  1328. //佣金明细
  1329. 'commissionlog' => [
  1330. 'page_path' => '/finance/commission_log',
  1331. 'view' => [
  1332. 'button_auth' => ['view'],
  1333. 'action_auth' => ['accountlog/lists','accountlog/getintegralchangetype'],
  1334. ],
  1335. ],
  1336. ],
  1337. //数据
  1338. 'data' => [
  1339. //流量分析
  1340. 'flowanalysis'=> [
  1341. 'page_path' => '/data/flow_analysis',
  1342. 'view' => [
  1343. 'button_auth' => ['view'],
  1344. 'action_auth' => ['data.center/trafficanalysis'],
  1345. ],
  1346. ],
  1347. //用户分析
  1348. 'user' => [
  1349. 'page_path' => '/data/user',
  1350. 'view' => [
  1351. 'button_auth' => ['view'],
  1352. 'action_auth' => ['data.center/userAnalysis'],
  1353. ],
  1354. ],
  1355. //交易分析
  1356. 'transaction' => [
  1357. 'page_path' => '/data/transaction',
  1358. 'view' => [
  1359. 'button_auth' => ['view'],
  1360. 'action_auth' => ['data.center/transactionanalysis'],
  1361. ],
  1362. ],
  1363. //商品分析
  1364. 'goods' => [
  1365. 'page_path' => '/data/goods/goods',
  1366. 'view' => [
  1367. 'button_auth' => ['view'],
  1368. 'action_auth' => ['data.center/goodsanalysis'],
  1369. ],
  1370. ],
  1371. //交易设置
  1372. 'goodsrank' => [
  1373. 'page_path' => '/data/goods/ranking',
  1374. 'view' => [
  1375. 'button_auth' => ['view'],
  1376. 'action_auth' => ['data.center/goodstop'],
  1377. ],
  1378. ],
  1379. ],
  1380. //渠道
  1381. 'channel' => [
  1382. //微信公众号设置
  1383. 'oasetting' => [
  1384. 'page_path' => '/channel/mp_wechat/index',
  1385. 'view' => [
  1386. 'button_auth' => ['view'],
  1387. 'action_auth' => ['wechat.officialaccountsetting/getconfig'],
  1388. ],
  1389. 'save' => [
  1390. 'button_auth' => ['auth_all'],
  1391. 'action_auth' => ['wechat.officialaccountsetting/setConfig'],
  1392. ],
  1393. ],
  1394. //微信菜单设置
  1395. 'oamenu' => [
  1396. 'page_path' => '/channel/mp_wechat/menu',
  1397. 'view' => [
  1398. 'button_auth' => ['view'],
  1399. 'action_auth' => ['wechat.officialaccountmenu/detail'],
  1400. ],
  1401. 'save' => [
  1402. 'button_auth' => ['auth_all'],
  1403. 'action_auth' => ['wechat.officialaccountsetting/saveandpublish'],
  1404. ],
  1405. ],
  1406. //关注回复
  1407. 'oafollowreply' => [
  1408. 'page_path' => ['/channel/mp_wechat/reply/follow_reply','/channel/mp_wechat/reply/keyword_reply','/channel/mp_wechat/reply/default_reply'],
  1409. 'view' => [
  1410. 'button_auth' => ['view'],
  1411. 'action_auth' => ['wechat.officialaccountreply/lists'],
  1412. ],
  1413. 'manage' => [
  1414. 'button_auth' => ['auth_all'],
  1415. 'action_auth' => [
  1416. 'wechat.officialaccountreply/add',
  1417. 'wechat.officialaccountreply/edit',
  1418. 'wechat.officialaccountreply/status',
  1419. 'wechat.officialaccountreply/detail',
  1420. 'wechat.officialaccountreply/del',
  1421. ]
  1422. ],
  1423. ],
  1424. //小程序设置
  1425. 'mpsetting' => [
  1426. 'page_path' => '/channel/wechat_app/wechat_app',
  1427. 'view' => [
  1428. 'button_auth' => ['view'],
  1429. 'action_auth' => ['wechat.miniprogramsetting/getconfig'],
  1430. ],
  1431. 'save' => [
  1432. 'button_auth' => ['auth_all'],
  1433. 'action_auth' => ['wechat.miniprogramsetting/setconfig'],
  1434. ],
  1435. ],
  1436. //APP设置
  1437. 'appsetting' => [
  1438. 'page_path' => '/channel/app_store/app_store',
  1439. 'view' => [
  1440. 'button_auth' => ['view'],
  1441. 'action_auth' => ['settings.app.appsetting/getconfig'],
  1442. ],
  1443. 'save' => [
  1444. 'button_auth' => ['auth_all'],
  1445. 'action_auth' => ['settings.app.appsetting/setconfig'],
  1446. ],
  1447. ],
  1448. //H5设置
  1449. 'h5setting' => [
  1450. 'page_path' => '/channel/h5_store/h5_store',
  1451. 'view' => [
  1452. 'button_auth' => ['view'],
  1453. 'action_auth' => ['settings.h5.hfivesetting/getconfig'],
  1454. ],
  1455. 'save' => [
  1456. 'button_auth' => ['auth_all'],
  1457. 'action_auth' => ['settings.h5.appsetting/setconfig'],
  1458. ],
  1459. ],
  1460. //今日头条
  1461. 'mptoutiao' => [
  1462. 'page_path' => '/channel/mp_toutiao/index',
  1463. 'view' => [
  1464. 'button_auth' => ['view'],
  1465. 'action_auth' => ['toutiao.toutiao_setting/getconfig'],
  1466. ],
  1467. 'save' => [
  1468. 'button_auth' => ['auth_all'],
  1469. 'action_auth' => ['toutiao.toutiao_setting/setconfig'],
  1470. ],
  1471. ],
  1472. //pc商城-渠道设置
  1473. 'pcstore' => [
  1474. 'page_path' => '/channel/pc_store/index',
  1475. 'view' => [
  1476. 'button_auth' => ['view'],
  1477. 'action_auth' => ['pc.pcsetting/getconfig'],
  1478. ],
  1479. 'save' => [
  1480. 'button_auth' => ['auth_all'],
  1481. 'action_auth' => ['pc.pcsetting/setconfig'],
  1482. ],
  1483. ],
  1484. ],
  1485. //设置
  1486. 'setting' => [
  1487. //店铺信息
  1488. 'shop' => [
  1489. 'page_path' => '/setting/shop/shop',
  1490. 'view' => [
  1491. 'button_auth' => ['view'],
  1492. 'action_auth' => ['settings.shop.shopsetting/getshopinfo'],
  1493. ],
  1494. 'save' => [
  1495. 'button_auth' => ['auth_all'],
  1496. 'action_auth' => ['settings.shop.shopsetting/setconfig'],
  1497. ],
  1498. ],
  1499. //备案信息
  1500. 'record' => [
  1501. 'page_path' => '/setting/shop/record',
  1502. 'view' => [
  1503. 'button_auth' => ['view'],
  1504. 'action_auth' => ['settings.shop.shopsetting/getrecordinfo'],
  1505. ],
  1506. 'save' => [
  1507. 'button_auth' => ['auth_all'],
  1508. 'action_auth' => ['settings.shop.shopsetting/setrecordinfo'],
  1509. ],
  1510. ],
  1511. //分享信息
  1512. 'share' => [
  1513. 'page_path' => '/setting/shop/share',
  1514. 'view' => [
  1515. 'button_auth' => ['view'],
  1516. 'action_auth' => ['settings.shop.shopsetting/getsharesetting'],
  1517. ],
  1518. 'save' => [
  1519. 'button_auth' => ['auth_all'],
  1520. 'action_auth' => ['settings.shop.shopsetting/setsharesetting'],
  1521. ],
  1522. ],
  1523. //政策协议
  1524. 'protocol' => [
  1525. 'page_path' => '/setting/shop/protocol',
  1526. 'view' => [
  1527. 'button_auth' => ['view'],
  1528. 'action_auth' => ['settings.shop.shopsetting/getpolicyagreement'],
  1529. ],
  1530. 'save' => [
  1531. 'button_auth' => ['auth_all'],
  1532. 'action_auth' => ['settings.shop.shopsetting/setpolicyagreement'],
  1533. ],
  1534. ],
  1535. //支付方式
  1536. 'paymethod' => [
  1537. 'page_path' => '/setting/payment/pay_method',
  1538. 'view' => [
  1539. 'button_auth' => ['view'],
  1540. 'action_auth' => ['settings.pay.payway/getpayway'],
  1541. ],
  1542. 'save' => [
  1543. 'button_auth' => ['view'],
  1544. 'action_auth' => ['settings.pay.payway/setpayway'],
  1545. ],
  1546. ],
  1547. //支付配置
  1548. 'payconfig' => [
  1549. 'page_path' => '/setting/payment/pay_config',
  1550. 'view' => [
  1551. 'button_auth' => ['view'],
  1552. 'action_auth' => ['settings.pay.payconfig/lists'],
  1553. ],
  1554. 'edit' => [
  1555. 'button_auth' => ['auth_all'],
  1556. 'action_auth' => [
  1557. 'settings.pay.payway/getconfig',
  1558. 'settings.pay.payway/setconfig',
  1559. ],
  1560. ],
  1561. ],
  1562. //配送方式
  1563. 'delivery' => [
  1564. 'page_path' => '/setting/delivery/index',
  1565. 'view' => [
  1566. 'button_auth' => ['view'],
  1567. 'action_auth' => ['settings.delivery.deliveryway/getconfig'],
  1568. ],
  1569. 'manage' => [
  1570. 'button_auth' => ['auth_all'],
  1571. 'action_auth' => [
  1572. 'settings.delivery.deliveryway/setconfig',
  1573. 'settings.delivery.freight/lists',
  1574. 'settings.delivery.freight/add',
  1575. 'settings.delivery.freight/edit',
  1576. 'settings.delivery.freight/del',
  1577. 'settings.delivery.express/lists',
  1578. 'settings.delivery.express/add',
  1579. 'settings.delivery.express/edit',
  1580. 'settings.delivery.express/del',
  1581. 'settings.delivery.logisticsconfig/getlogisticsconfig',
  1582. 'settings.delivery.logisticsconfig/setlogisticsconfig',
  1583. ],
  1584. ],
  1585. ],
  1586. //管理员
  1587. 'permissions' => [
  1588. 'page_path' => '/setting/permissions/admin',
  1589. 'view' => [
  1590. 'button_auth' => ['view'],
  1591. 'action_auth' => ['auth.admin/lists','auth.role/lists'],
  1592. ],
  1593. 'manage' => [
  1594. 'button_auth' => ['auth_all'],
  1595. 'action_auth' => [
  1596. 'auth.admin/add',
  1597. 'auth.admin/edit',
  1598. 'auth.admin/detail',
  1599. 'auth.admin/del',
  1600. ],
  1601. ],
  1602. ],
  1603. //角色
  1604. 'role' => [
  1605. 'page_path' => '/setting/permissions/role',
  1606. 'view' => [
  1607. 'button_auth' => ['view'],
  1608. 'action_auth' => ['auth.role/lists'],
  1609. ],
  1610. 'manage' => [
  1611. 'button_auth' => ['auth_all'],
  1612. 'action_auth' => [
  1613. 'auth.role/add',
  1614. 'auth.role/edit',
  1615. 'auth.role/detail',
  1616. 'auth.role/getMenu',
  1617. 'auth.role/del',
  1618. ],
  1619. ],
  1620. ],
  1621. //商品设置
  1622. 'goods' => [
  1623. 'page_path' => '/setting/goods/goods',
  1624. 'view' => [
  1625. 'button_auth' => ['view'],
  1626. 'action_auth' => ['settings.goods.goodssettings/getconfig'],
  1627. ],
  1628. 'save' => [
  1629. 'button_auth' => ['auth_all'],
  1630. 'action_auth' => ['settings.goods.goodssettings/setconfig'],
  1631. ],
  1632. ],
  1633. //用户设置
  1634. 'user' => [
  1635. 'page_path' => '/setting/user/user_setting',
  1636. 'view' => [
  1637. 'button_auth' => ['view'],
  1638. 'action_auth' => ['settings.user.user/getconfig'],
  1639. ],
  1640. 'save' => [
  1641. 'button_auth' => ['auth_all'],
  1642. 'action_auth' => ['settings.user.user/setconfig'],
  1643. ],
  1644. ],
  1645. //登录注册
  1646. 'loginregister' => [
  1647. 'page_path' => '/setting/user/login_register',
  1648. 'view' => [
  1649. 'button_auth' => ['view'],
  1650. 'action_auth' => ['settings.user.user/getregisterconfig'],
  1651. ],
  1652. 'save' => [
  1653. 'button_auth' => ['auth_all'],
  1654. 'action_auth' => ['settings.user.user/setregisterconfig'],
  1655. ],
  1656. ],
  1657. //用户提现
  1658. 'withdrawdeposit' => [
  1659. 'page_path' => '/setting/user/withdraw_deposit',
  1660. 'view' => [
  1661. 'button_auth' => ['view'],
  1662. 'action_auth' => ['settings.user.user/getwithdrawconfig'],
  1663. ],
  1664. 'save' => [
  1665. 'button_auth' => ['auth_all'],
  1666. 'action_auth' => ['settings.user.user/setwithdrawconfig'],
  1667. ],
  1668. ],
  1669. //订单设置
  1670. 'order' => [
  1671. 'page_path' => '/setting/order/order',
  1672. 'view' => [
  1673. 'button_auth' => ['view'],
  1674. 'action_auth' => ['settings.order.transaction_settings/getconfig'],
  1675. ],
  1676. 'save' => [
  1677. 'button_auth' => ['auth_all'],
  1678. 'action_auth' => ['settings.order.transaction_settings/setconfig'],
  1679. ],
  1680. ],
  1681. //储存设置
  1682. 'storage' => [
  1683. 'page_path' => '/setting/storage/index',
  1684. 'view' => [
  1685. 'button_auth' => ['view'],
  1686. 'action_auth' => ['settings.shop.storage/lists'],
  1687. ],
  1688. 'manage' => [
  1689. 'button_auth' => ['auth_all'],
  1690. 'action_auth' => [
  1691. 'settings.order.storage/change',
  1692. 'settings.shop.storage/index',
  1693. 'settings.shop.storage/setup'
  1694. ],
  1695. ],
  1696. ],
  1697. //系统日志
  1698. 'systemlog' => [
  1699. 'page_path' => '/setting/system_maintain/journal',
  1700. 'view' => [
  1701. 'button_auth' => ['view'],
  1702. 'action_auth' => ['settings.system.log/lists'],
  1703. ],
  1704. ],
  1705. //系统缓存
  1706. 'systemcache' => [
  1707. 'page_path' => '/setting/system_maintain/cache',
  1708. 'view' => [
  1709. 'button_auth' => ['view'],
  1710. 'action_auth' => [],
  1711. ],
  1712. 'clear' => [
  1713. 'button_auth' => ['auth_all'],
  1714. 'action_auth' => ['settings.system.cache/clear'],
  1715. ],
  1716. ],
  1717. //系统更新
  1718. 'systemupdate' => [
  1719. 'page_path' => '/setting/system_maintain/update',
  1720. 'view' => [
  1721. 'button_auth' => ['view'],
  1722. 'action_auth' => [],
  1723. ],
  1724. ],
  1725. //异常日志
  1726. 'errorlog' => [
  1727. 'page_path' => '/setting/system_maintain/error_journal',
  1728. 'view' => [
  1729. 'button_auth' => ['view'],
  1730. 'action_auth' => [],
  1731. ],
  1732. ],
  1733. //计划任务
  1734. 'task' => [
  1735. 'page_path' => '/setting/task',
  1736. 'view' => [
  1737. 'button_auth' => ['view'],
  1738. 'action_auth' => ['crontab.crontab/lists'],
  1739. ],
  1740. 'manage' => [
  1741. 'button_auth' => ['view'],
  1742. 'action_auth' => [
  1743. 'crontab.crontab/add',
  1744. 'crontab.crontab/edit',
  1745. 'crontab.crontab/operate',
  1746. 'crontab.crontab/del',
  1747. ],
  1748. ],
  1749. ],
  1750. //地图配置
  1751. 'map' => [
  1752. 'page_path' => '/setting/map',
  1753. 'view' => [
  1754. 'button_auth' => ['view'],
  1755. 'action_auth' => ['settings.shop.shop_setting/getMapKey'],
  1756. ],
  1757. 'save' => [
  1758. 'button_auth' => ['auth_all'],
  1759. 'action_auth' => ['settings.shop.shop_setting/setMapKey'],
  1760. ],
  1761. ],
  1762. ],
  1763. ];