admin.php 171 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use app\http\middleware\InstallMiddleware;
  12. use think\facade\Route;
  13. use think\facade\Config;
  14. use think\Response;
  15. /**
  16. * 后台管理路由配置
  17. */
  18. Route::group('adminapi', function () {
  19. /**
  20. * 无需授权的接口
  21. */
  22. Route::group(function () {
  23. //图形验证码
  24. Route::get('ajcaptcha', 'Login/ajcaptcha')->name('ajcaptcha');
  25. //图形验证码
  26. Route::post('ajcheck', 'Login/ajcheck')->name('ajcheck');
  27. //是否需要滑块验证接口
  28. Route::post('is_captcha', 'Login/getAjCaptcha')->name('getAjCaptcha');
  29. //用户名密码登录
  30. Route::post('login', 'Login/login')->name('AdminLogin')->option(['real_name' => '用户名密码登录']);
  31. //短信登录
  32. Route::post('mobile_login', 'Login/mobileLogin')->name('mobileLogin')->option(['real_name' => '短信登录']);
  33. //短信重置密码
  34. Route::post('reset_pwd', 'Login/resetPwd')->name('resetPwd')->option(['real_name' => '短信重置密码']);
  35. //后台登录页面数据
  36. Route::get('login/info', 'Login/info')->option(['real_name' => '登录信息']);
  37. //下载文件
  38. Route::get('download', 'PublicController/download')->option(['real_name' => '下载文件']);
  39. //获取ERP开关配置
  40. Route::get('erp/config', 'PublicController/getErpConfig')->option(['real_name' => '获取ERP开关配置']);
  41. //验证码
  42. Route::get('captcha_pro', 'Login/captcha')->name('')->option(['real_name' => '获取验证码']);
  43. //获取版权
  44. Route::get('copyright', 'Common/getCopyright')->option(['real_name' => '获取版权']);
  45. //扫码上传
  46. Route::post('file/scan/upload', 'PublicController/scanUpload')->name('scanUpload');
  47. // Route::get('index', 'Test/index')->option(['real_name' => '测试地址']);
  48. // Route::get('r', 'Test/rule')->option(['real_name' => '查看路由地址']);
  49. });
  50. /**
  51. * 文件下载、导出相关路由
  52. */
  53. Route::group(function () {
  54. //下载备份记录表
  55. Route::get('backup/download', 'v1.system.SystemDatabackup/downloadFile')->option(['real_name' => '下载表备份记录']);
  56. //首页统计数据
  57. Route::get('home/header', 'Common/homeStatics')->option(['real_name' => '首页统计数据']);
  58. //首页订单图表
  59. Route::get('home/order', 'Common/orderChart')->option(['real_name' => '首页订单图表']);
  60. //首页用户图表
  61. Route::get('home/user', 'Common/userChart')->option(['real_name' => '首页用户图表']);
  62. //首页交易额排行
  63. Route::get('home/rank', 'Common/purchaseRanking')->option(['real_name' => '首页交易额排行']);
  64. //消息提醒
  65. Route::get('jnotice', 'Common/jnotice')->option(['real_name' => '消息提醒']);
  66. //验证授权
  67. Route::get('check_auth', 'Common/check_auth')->option(['real_name' => '验证授权']);
  68. //申请授权
  69. Route::post('auth_apply', 'Common/auth_apply')->option(['real_name' => '申请授权']);
  70. //查询版权
  71. Route::get('crmeb_copyright', 'Common/crmeb_copyright')->option(['real_name' => '申请版权']);
  72. //授权信息
  73. Route::get('auth', 'Common/auth')->option(['real_name' => '授权信息']);
  74. //授权验证码
  75. Route::get('crmeb_verify', 'Common/crmeb_verify')->option(['real_name' => '授权验证码']);
  76. //登录
  77. Route::post('crmeb_login', 'Common/crmeb_login')->option(['real_name' => '登录']);
  78. //授权订单
  79. Route::post('crmeb_order', 'Common/crmeb_order')->option(['real_name' => '授权订单']);
  80. //获取授权订单
  81. Route::get('crmeb_order/:orderId', 'Common/crmeb_order_info')->option(['real_name' => '获取授权订单']);
  82. //授权支付
  83. Route::post('crmeb_pay', 'Common/crmeb_pay')->option(['real_name' => '授权支付']);
  84. //获取授权产品
  85. Route::get('crmeb_product', 'Common/crmeb_product')->option(['real_name' => '获取授权产品']);
  86. //保存版权
  87. Route::post('copyright', 'Common/saveCopyright')->option(['real_name' => '保存版权']);
  88. //获取左侧菜单
  89. Route::get('menus', 'v1.system.SystemMenus/menus')->option(['real_name' => '左侧菜单']);
  90. //获取搜索菜单列表
  91. Route::get('menusList', 'Common/menusList')->option(['real_name' => '搜索菜单列表']);
  92. //获取logo
  93. Route::get('logo', 'Common/getLogo')->option(['real_name' => '获取logo']);
  94. //获取城市数据
  95. Route::get('city', 'Common/city')->option(['real_name' => '获取城市数据']);
  96. })->middleware([
  97. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  98. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  99. \app\http\middleware\admin\AdminLogMiddleware::class
  100. ]);
  101. /**
  102. * 企业微信相关
  103. */
  104. Route::group('work', function () {
  105. //获取企业微信发送朋友圈任务列表
  106. Route::get('moment', 'Moment/index')->option(['real_name' => '获取企业微信发送朋友圈任务列表']);
  107. //保存企业微信发送朋友圈任务
  108. Route::post('moment', 'Moment/save')->option(['real_name' => '保存企业微信发送朋友圈任务']);
  109. //企业微信发送朋友圈详情
  110. Route::get('moment/:id', 'Moment/read')->option(['real_name' => '企业微信发送朋友圈详情']);
  111. //删除企业微信发送朋友圈
  112. Route::delete('moment/:id', 'Moment/delete')->option(['real_name' => '删除企业微信发送朋友圈']);
  113. //获取企业微信发送过朋友圈成员列表
  114. Route::get('moment_list', 'Moment/sendResultList')->option(['real_name' => '获取企业微信发送过朋友圈成员列表']);
  115. //企业微信客户列表
  116. Route::get('client', 'Client/index')->option(['real_name' => '企业微信客户列表']);
  117. //修改企业微信客户
  118. Route::put('client/:id', 'Client/update')->option(['real_name' => '修改企业微信客户']);
  119. //同步企业微信客户
  120. Route::get('client/synch', 'Client/synch')->option(['real_name' => '同步企业微信客户']);
  121. //批量设置企业微信客户标签
  122. Route::post('client/batchLabel', 'Client/batchLabel')->option(['real_name' => '批量设置企业微信客户标签']);
  123. //查找成员下的跟踪客户
  124. Route::post('client/count', 'Client/count')->option(['real_name' => '查找成员下的跟踪客户']);
  125. //企业微信组织架构
  126. Route::get('tree', 'Member/getMemberTree')->option(['real_name' => '企业微信组织架构']);
  127. //企业微信客户标签
  128. Route::get('label', 'Member/getUserLabel')->option(['real_name' => '企业微信客户标签']);
  129. //获取企业微信员工列表
  130. Route::get('member', 'Member/index')->option(['real_name' => '获取企业微信员工列表']);
  131. //获取企业微信部门
  132. Route::get('department', 'Department/index')->option(['real_name' => '获取企业微信部门']);
  133. //获取企业微信客户群聊
  134. Route::get('group_chat', 'GroupChat/index')->option(['real_name' => '获取企业微信客户群聊']);
  135. //获取企业微信客户群聊成员
  136. Route::get('group_chat/member', 'GroupChat/chatMember')->option(['real_name' => '获取企业微信客户群聊成员']);
  137. //客户群统计
  138. Route::get('group_chat/statistics', 'GroupChat/chatStatistics')->option(['real_name' => '客户群统计']);
  139. //客户群统计列表数据
  140. Route::get('group_chat/statisticsList', 'GroupChat/chatStatisticsList')->option(['real_name' => '客户群统计列表数据']);
  141. //同步客户群
  142. Route::post('group_chat/synch', 'GroupChat/synchGroupChat')->option(['real_name' => '同步客户群']);
  143. //同步企业微信成员
  144. Route::post('synchMember', 'Member/synchMember')->option(['real_name' => '同步企业微信成员']);
  145. //获取群发成员列表
  146. Route::get('group_template/memberList/:id', 'GroupTemplate/memberList')->option(['real_name' => '获取群发成员列表']);
  147. //获取群发客户列表
  148. Route::get('group_template/clientList/:id', 'GroupTemplate/clientList')->option(['real_name' => '获取群发客户列表']);
  149. //获取群发群列表
  150. Route::get('group_template_chat/groupChatList/:id', 'GroupTemplate/groupChatList')->option(['real_name' => '获取群发群列表']);
  151. //获取群发群主列表
  152. Route::get('group_template_chat/groupChatOwnerList/:id', 'GroupTemplate/groupChatOwnerList')->option(['real_name' => '获取群发群主列表']);
  153. //获取群发群主下的群列表
  154. Route::get('group_template_chat/getOwnerChatList', 'GroupTemplate/getOwnerChatList')->option(['real_name' => '获取群发群主下的群列表']);
  155. //提醒发送
  156. Route::post('group_template/sendMessage', 'GroupTemplate/sendMessage')->option(['real_name' => '提醒发送']);
  157. //自动拉群配置
  158. Route::resource('group_chat_auth', 'GroupChatAuth')->except(['create', 'edit'])->option([
  159. 'real_name' => [
  160. 'index' => '获取欢自动拉群配置列表',
  161. 'read' => '获取自动拉群配置',
  162. 'save' => '保存自动拉群配置',
  163. 'update' => '修改自动拉群配置',
  164. 'delete' => '删除自动拉群配置'
  165. ]
  166. ]);
  167. //欢迎语
  168. Route::resource('welcome', 'Welcome')->except(['create', 'edit'])->option([
  169. 'real_name' => [
  170. 'index' => '获取欢迎语列表',
  171. 'read' => '获取创建欢迎语',
  172. 'save' => '保存欢迎语',
  173. 'update' => '修改欢迎语',
  174. 'delete' => '删除欢迎语'
  175. ]
  176. ]);
  177. //客户群发
  178. Route::resource('group_template', 'GroupTemplate')->except(['create', 'edit', 'update'])->option([
  179. 'real_name' => [
  180. 'index' => '获取客户群发列表',
  181. 'read' => '获取客户群发详情',
  182. 'save' => '保存客户群发',
  183. 'delete' => '删除客户群发'
  184. ]
  185. ]);
  186. //客户群群发
  187. Route::resource('group_template_chat', 'GroupTemplate')->except(['create', 'edit', 'update'])->option([
  188. 'real_name' => [
  189. 'index' => '获取客户群群发列表',
  190. 'read' => '获取客户群群发详情',
  191. 'save' => '保存客户群群发',
  192. 'delete' => '删除客户群群发'
  193. ]
  194. ]);
  195. //获取扫描渠道码添加的客户列表
  196. Route::get('channel/code/client', 'ChannelCode/getClientList')->option(['real_name' => '获取扫描渠道码添加的客户列表']);
  197. //批量移动分类
  198. Route::post('channel/code/bactch/cate', 'ChannelCode/bactchMoveCate')->option(['real_name' => '批量移动分类']);
  199. //渠道二维码
  200. Route::resource('channel/code', 'ChannelCode')->except(['create', 'edit'])->option([
  201. 'real_name' => [
  202. 'index' => '获取渠道二维码列表',
  203. 'read' => '获取创建渠道二维码',
  204. 'save' => '保存渠道二维码',
  205. 'update' => '修改渠道二维码',
  206. 'delete' => '删除渠道二维码'
  207. ]
  208. ]);
  209. //渠道二维码分类
  210. Route::resource('channel/cate', 'ChannelCate')->except(['read'])->option([
  211. 'real_name' => [
  212. 'index' => '获取渠道二维码分类列表',
  213. 'create' => '获取创建渠道二维码分类表单',
  214. 'save' => '保存渠道二维码分类',
  215. 'edit' => '获取修改渠道二维码分类表单',
  216. 'update' => '修改渠道二维码分类',
  217. 'delete' => '删除渠道二维码分类'
  218. ]
  219. ]);
  220. })->prefix('admin.v1.work.')
  221. ->middleware([
  222. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  223. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  224. \app\http\middleware\admin\AdminLogMiddleware::class
  225. ]);
  226. /**
  227. * 分销管理 相关路由
  228. */
  229. Route::group('agent', function () {
  230. //分销员列表
  231. Route::get('index', 'v1.agent.AgentManage/index')->option(['real_name' => '分销员列表']);
  232. //修改上级推广人
  233. Route::put('spread', 'v1.agent.AgentManage/editSpread')->option(['real_name' => '修改上级推广人']);
  234. //头部统计
  235. Route::get('statistics', 'v1.agent.AgentManage/get_badge')->option(['real_name' => '分销员列表头部统计']);
  236. //推广人列表
  237. Route::get('stair', 'v1.agent.AgentManage/get_stair_list')->option(['real_name' => '推广人列表']);
  238. //推广人头部统计
  239. Route::get('stair/statistics', 'v1.agent.AgentManage/get_stair_badge')->option(['real_name' => '推广人头部统计']);
  240. //计推广订单列表
  241. Route::get('stair/order', 'v1.agent.AgentManage/get_stair_order_list')->option(['real_name' => '推广订单列表']);
  242. //推广订单列表头部
  243. Route::get('stair/order/statistics', 'v1.agent.AgentManage/get_stair_order_badge')->option(['real_name' => '推广订单列表头部']);
  244. //清除上级推广人
  245. Route::put('stair/delete_spread/:uid', 'v1.agent.AgentManage/delete_spread')->option(['real_name' => '清除上级推广人']);
  246. //取消推广资格
  247. Route::put('stair/delete_system_spread/:uid', 'v1.agent.AgentManage/delete_system_spread')->option(['real_name' => '取消推广资格']);
  248. //查看公众号推广二维码
  249. Route::get('look_code', 'v1.agent.AgentManage/look_code')->option(['real_name' => '查看公众号推广二维码']);
  250. //查看小程序推广二维码
  251. Route::get('look_xcx_code', 'v1.agent.AgentManage/look_xcx_code')->option(['real_name' => '查看小程序推广二维码']);
  252. //查看H5推广二维码
  253. Route::get('look_h5_code', 'v1.agent.AgentManage/look_h5_code')->option(['real_name' => '查看H5推广二维码']);
  254. //积分配置编辑表单
  255. Route::get('config/edit_basics', 'v1.system.config.SystemConfig/edit_basics')->option(['real_name' => '积分配置编辑表单']);
  256. //积分配置保存数据
  257. Route::post('config/save_basics', 'v1.system.config.SystemConfig/save_basics')->option(['real_name' => '积分配置保存数据']);
  258. //分销员等级资源路由
  259. Route::resource('level', 'v1.agent.AgentLevel')->name('AgentLevelResource')->option(['real_name' => [
  260. 'index' => '获取分销等级列表',
  261. 'read' => '获取分销等级详情',
  262. 'create' => '获取创建分销等级表单',
  263. 'save' => '保存分销等级',
  264. 'edit' => '获取修改分销等级表单',
  265. 'update' => '修改分销等级',
  266. 'delete' => '删除分销等级'
  267. ]]);
  268. //修改分销等级状态
  269. Route::put('level/set_status/:id/:status', 'v1.agent.AgentLevel/set_status')->name('levelSetStatus')->option(['real_name' => '修改分销等级状态']);
  270. //分销员等级任务资源路由
  271. Route::resource('level_task', 'v1.agent.AgentLevelTask')->name('AgentLevelTaskResource')->option(['real_name' => [
  272. 'index' => '获取分销等级任务列表',
  273. 'read' => '获取分销等级任务详情',
  274. 'create' => '获取创建分销等级任务表单',
  275. 'save' => '保存分销等级任务',
  276. 'edit' => '获取修改分销等级任务表单',
  277. 'update' => '修改分销等级任务',
  278. 'delete' => '删除分销等级任务'
  279. ]]);
  280. //修改分销等级任务状态
  281. Route::put('level_task/set_status/:id/:status', 'v1.agent.AgentLevelTask/set_status')->name('levelTaskSetStatus')->option(['real_name' => '修改分销等级任务状态']);
  282. //获取赠送分销等级表单
  283. Route::get('get_level_form', 'v1.agent.AgentManage/getLevelForm')->name('getLevelForm')->option(['real_name' => '获取赠送分销等级表单']);
  284. //赠送分销等级
  285. Route::post('give_level', 'v1.agent.AgentManage/giveAgentLevel')->name('giveAgentLevel')->option(['real_name' => '赠送分销等级']);
  286. //获取分销说明
  287. Route::get('get_agent_agreement', 'v1.agent.AgentManage/getAgentAgreement')->name('getAgentAgreement')->option(['real_name' => '获取分销说明']);
  288. //保存分销说明
  289. Route::post('set_agent_agreement/:id', 'v1.agent.AgentManage/setAgentAgreement')->name('setAgentAgreement')->option(['real_name' => '保存分销说明']);
  290. })->middleware([
  291. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  292. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  293. \app\http\middleware\admin\AdminLogMiddleware::class
  294. ]);
  295. /**
  296. * 应用模块 相关路由
  297. */
  298. Route::group('app', function () {
  299. //一键同步订阅消息
  300. Route::get('routine/syncSubscribe', 'v1.wechat.RoutineTemplate/syncSubscribe')->name('syncSubscribe')->option(['real_name' => '一键同步订阅消息']);
  301. //一键同步微信模版消息
  302. Route::get('wechat/syncSubscribe', 'v1.wechat.WechatTemplate/syncSubscribe')->name('syncSubscribe')->option(['real_name' => '一键同步微信模版消息']);
  303. //修改订阅消息状态
  304. Route::put('routine/set_status/:id/:status', 'v1.wechat.RoutineTemplate/set_status')->name('RoutineSetStatus')->option(['real_name' => '修改订阅消息状态']);
  305. //微信公众号菜单列表
  306. Route::get('wechat/menu', 'v1.wechat.menus/index')->option(['real_name' => '微信公众号菜单列表']);
  307. //保存微信公众号菜单
  308. Route::post('wechat/menu', 'v1.wechat.menus/save')->option(['real_name' => '保存微信公众号菜单']);
  309. //修改模板消息状态
  310. Route::put('wechat/template/set_status/:id/:status', 'v1.wechat.WechatTemplate/set_status')->name('WechatTemplateSetStatus')->option(['real_name' => '修改模板消息状态']);
  311. /** 公众号渠道码 */
  312. Route::get('wechat_qrcode/cate/list', 'v1.wechat.WechatQrcode/getCateList')->option(['real_name' => '渠道码分类列表']);
  313. Route::get('wechat_qrcode/cate/create/:id', 'v1.wechat.WechatQrcode/createForm')->option(['real_name' => '渠道码分类添加编辑表单']);
  314. Route::post('wechat_qrcode/cate/save', 'v1.wechat.WechatQrcode/saveCate')->option(['real_name' => '渠道码分类保存']);
  315. Route::delete('wechat_qrcode/cate/del/:id', 'v1.wechat.WechatQrcode/delCate')->option(['real_name' => '渠道码分类删除']);
  316. Route::post('wechat_qrcode/save/:id', 'v1.wechat.WechatQrcode/saveQrcode')->option(['real_name' => '保存渠道码']);
  317. Route::get('wechat_qrcode/info/:id', 'v1.wechat.WechatQrcode/qrcodeInfo')->option(['real_name' => '渠道码详情']);
  318. Route::get('wechat_qrcode/list', 'v1.wechat.WechatQrcode/qrcodeList')->option(['real_name' => '渠道码列表']);
  319. Route::delete('wechat_qrcode/del/:id', 'v1.wechat.WechatQrcode/delQrcode')->option(['real_name' => '删除渠道码']);
  320. Route::put('wechat_qrcode/set_status/:id/:status', 'v1.wechat.WechatQrcode/setStatus')->option(['real_name' => '切换渠道码状态']);
  321. Route::get('wechat_qrcode/user_list/:qid', 'v1.wechat.WechatQrcode/userList')->option(['real_name' => '渠道码用户列表']);
  322. Route::get('wechat_qrcode/statistic/:qid', 'v1.wechat.WechatQrcode/qrcodeStatistic')->option(['real_name' => '渠道码统计']);
  323. //关注回复
  324. Route::get('wechat/reply', 'v1.wechat.Reply/reply')->option(['real_name' => '关注回复']);
  325. //获取关注回复二维码
  326. Route::get('wechat/code_reply/:id', 'v1.wechat.Reply/code_reply')->option(['real_name' => '获取关注回复二维码']);
  327. //关键字回复列表
  328. Route::get('wechat/keyword', 'v1.wechat.Reply/index')->option(['real_name' => '关键字回复列表']);
  329. //关键字回复详情
  330. Route::get('wechat/keyword/:id', 'v1.wechat.Reply/read')->option(['real_name' => '关键字回复详情']);
  331. //保存关键字回复
  332. Route::post('wechat/keyword/:id', 'v1.wechat.Reply/save')->option(['real_name' => '保存关键字回复']);
  333. //删除关键字回复
  334. Route::delete('wechat/keyword/:id', 'v1.wechat.Reply/delete')->option(['real_name' => '删除关键字回复']);
  335. //修改关键字回复状态
  336. Route::put('wechat/keyword/set_status/:id/:status', 'v1.wechat.Reply/set_status')->option(['real_name' => '修改关键字回复状态']);
  337. //图文列表
  338. Route::get('wechat/news', 'v1.wechat.WechatNewsCategory/index')->option(['real_name' => '图文列表']);
  339. //图文详情
  340. Route::get('wechat/news/:id', 'v1.wechat.WechatNewsCategory/read')->option(['real_name' => '图文详情']);
  341. //保存图文
  342. Route::post('wechat/news', 'v1.wechat.WechatNewsCategory/save')->option(['real_name' => '保存图文']);
  343. //删除图文
  344. Route::delete('wechat/news/:id', 'v1.wechat.WechatNewsCategory/delete')->option(['real_name' => '删除图文']);
  345. //发送图文消息
  346. Route::post('wechat/push', 'v1.wechat.WechatNewsCategory/push')->option(['real_name' => '发送图文消息']);
  347. //客服列表
  348. Route::get('wechat/kefu', 'v1.message.service.StoreService/index')->option(['real_name' => '客服列表']);
  349. //客服登录
  350. Route::get('wechat/kefu/login/:id', 'v1.message.service.StoreService/keufLogin')->option(['real_name' => '客服登录']);
  351. //新增客服选择用户列表
  352. Route::get('wechat/kefu/create', 'v1.message.service.StoreService/create')->option(['real_name' => '新增客服选择用户列表']);
  353. //添加客服表单
  354. Route::get('wechat/kefu/add', 'v1.message.service.StoreService/add')->option(['real_name' => '添加客服表单']);
  355. //添加客服
  356. Route::post('wechat/kefu', 'v1.message.service.StoreService/save')->option(['real_name' => '添加客服']);
  357. //修改客服表单
  358. Route::get('wechat/kefu/:id/edit', 'v1.message.service.StoreService/edit')->option(['real_name' => '修改客服表单']);
  359. //修改客服
  360. Route::put('wechat/kefu/:id', 'v1.message.service.StoreService/update')->option(['real_name' => '修改客服']);
  361. //删除客服
  362. Route::delete('wechat/kefu/:id', 'v1.message.service.StoreService/delete')->option(['real_name' => '删除客服']);
  363. //修改客服状态
  364. Route::put('wechat/kefu/set_status/:id/:status', 'v1.message.service.StoreService/set_status')->option(['real_name' => '修改客服状态']);
  365. //聊天记录
  366. Route::get('wechat/kefu/record/:id', 'v1.message.service.StoreService/chat_user')->option(['real_name' => '聊天记录']);
  367. //查看对话
  368. Route::get('wechat/kefu/chat_list', 'v1.message.service.StoreService/chat_list')->option(['real_name' => '查看对话']);
  369. //下载小程序模版页面数据
  370. Route::get('routine/info', 'v1.wechat.RoutineTemplate/getDownloadInfo')->option(['real_name' => '下载小程序页面数据']);
  371. //下载小程序模版
  372. Route::post('routine/download', 'v1.wechat.RoutineTemplate/downloadTemp')->option(['real_name' => '下载小程序模版']);
  373. //小程序订阅消息资源路由
  374. Route::resource('routine', 'v1.wechat.RoutineTemplate')->name('RoutineResource')->option(['real_name' => [
  375. 'index' => '获取小程序订阅消息列表',
  376. 'read' => '获取小程序订阅消息详情',
  377. 'create' => '获取创建小程序订阅消息表单',
  378. 'save' => '保存小程序订阅消息',
  379. 'edit' => '获取修改小程序订阅消息表单',
  380. 'update' => '修改小程序订阅消息',
  381. 'delete' => '删除小程序订阅消息'
  382. ]]);
  383. //公众号模版消息资源路由
  384. Route::resource('wechat/template', 'v1.wechat.WechatTemplate')->name('WechatTemplateResource')->option(['real_name' => [
  385. 'index' => '获取公众号模版消息列表',
  386. 'read' => '获取公众号模版消息详情',
  387. 'create' => '获取创建公众号模版消息表单',
  388. 'save' => '保存公众号模版消息',
  389. 'edit' => '获取修改公众号模版消息表单',
  390. 'update' => '修改公众号模版消息',
  391. 'delete' => '删除公众号模版消息'
  392. ]]);
  393. //客服话术资源路由
  394. Route::resource('wechat/speechcraft', 'v1.message.service.StoreServiceSpeechcraft')->option(['real_name' => [
  395. 'index' => '获取客服话术列表',
  396. 'read' => '获取客服话术详情',
  397. 'create' => '获取创建客服话术表单',
  398. 'save' => '保存客服话术',
  399. 'edit' => '获取修改客服话术表单',
  400. 'update' => '修改客服话术',
  401. 'delete' => '删除客服话术'
  402. ]]);
  403. //客服话术分类资源路由
  404. Route::resource('wechat/speechcraftcate', 'v1.message.service.StoreServiceSpeechcraftCate')->option(['real_name' => [
  405. 'index' => '获取客服话术分类列表',
  406. 'read' => '获取客服话术分类详情',
  407. 'create' => '获取创建客服话术分类表单',
  408. 'save' => '保存客服话术分类',
  409. 'edit' => '获取修改客服话术分类表单',
  410. 'update' => '修改客服话术分类',
  411. 'delete' => '删除客服话术分类'
  412. ]]);
  413. //用户反馈资源路由
  414. Route::resource('feedback', 'v1.message.service.StoreServiceFeedback')->only(['index', 'delete', 'update', 'edit'])->option(['real_name' => [
  415. 'index' => '获取用户反馈列表',
  416. 'read' => '获取用户反馈详情',
  417. 'create' => '获取创建用户反馈表单',
  418. 'save' => '保存用户反馈',
  419. 'edit' => '获取修改用户反馈表单',
  420. 'update' => '修改用户反馈',
  421. 'delete' => '删除用户反馈'
  422. ]]);
  423. //获取微信会员卡信息
  424. Route::get('wechat/card', 'v1.wechat.WechatCard/info')->option(['real_name' => '获取微信会员卡信息']);
  425. //保存微信会员卡信息
  426. Route::post('wechat/card', 'v1.wechat.WechatCard/save')->option(['real_name' => '保存微信会员卡信息']);
  427. })->middleware([
  428. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  429. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  430. \app\http\middleware\admin\AdminLogMiddleware::class
  431. ]);
  432. /**
  433. * 文章管理 相关路由
  434. */
  435. Route::group('cms', function () {
  436. //关联商品
  437. Route::put('cms/relation/:id', 'v1.cms.Article/relation')->name('Relation')->option(['real_name' => '文章关联商品']);
  438. //取消关联
  439. Route::put('cms/unrelation/:id', 'v1.cms.Article/unrelation')->name('UnRelation')->option(['real_name' => '取消文章关联商品']);
  440. //修改状态
  441. Route::put('category/set_status/:id/:status', 'v1.cms.ArticleCategory/set_status')->name('CategoryStatus')->option(['real_name' => '修改文章分类状态']);
  442. //分类列表
  443. Route::get('category_list', 'v1.cms.ArticleCategory/categoryList')->name('categoryList')->option(['real_name' => '选择文章分类列表']);
  444. //文章分类资源路由
  445. Route::resource('category', 'v1.cms.ArticleCategory')->name('ArticleCategoryResource')->option(['real_name' => [
  446. 'index' => '获取文章分类列表',
  447. 'read' => '获取文章分类详情',
  448. 'create' => '获取创建文章分类表单',
  449. 'save' => '保存文章分类',
  450. 'edit' => '获取修改文章分类表单',
  451. 'update' => '修改文章分类',
  452. 'delete' => '删除文章分类'
  453. ]]);
  454. //文章资源路由
  455. Route::resource('cms', 'v1.cms.Article')->name('ArticleResource')->option(['real_name' => [
  456. 'index' => '获取文章列表',
  457. 'read' => '获取文章详情',
  458. 'create' => '获取创建文章表单',
  459. 'save' => '保存文章',
  460. 'edit' => '获取修改文章表单',
  461. 'update' => '修改文章',
  462. 'delete' => '删除文章'
  463. ]]);
  464. })->middleware([
  465. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  466. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  467. \app\http\middleware\admin\AdminLogMiddleware::class
  468. ]);
  469. /**
  470. * 首页Diy 相关路由
  471. */
  472. Route::group('diy', function () {
  473. //DIY列表
  474. Route::get('get_list', 'v1.diy.Diy/getList')->option(['real_name' => 'Diy模板列表']);
  475. //Diy数据详情
  476. Route::get('get_info/:id', 'v1.diy.Diy/getInfo')->option(['real_name' => 'Diy模板数据详情']);
  477. //删除DIY模板
  478. Route::delete('del/:id', 'v1.diy.Diy/del')->option(['real_name' => '删除DIY模板']);
  479. //使用DIY模板
  480. Route::put('set_status/:id', 'v1.diy.Diy/setStatus')->option(['real_name' => '使用DIY模板']);
  481. //添加DIY模板
  482. Route::post('save/[:id]', 'v1.diy.Diy/saveData')->option(['real_name' => '添加DIY模板']);
  483. //获取前端页面路径
  484. Route::get('get_url', 'v1.diy.Diy/getUrl')->option(['real_name' => '获取前端页面路径']);
  485. //获取商品分类
  486. Route::get('get_category', 'v1.diy.Diy/getCategory')->option(['real_name' => '获取商品分类']);
  487. //获取商品
  488. Route::get('get_product', 'v1.diy.Diy/getProduct')->option(['real_name' => '获取商品列表']);
  489. //获取门店自提开启状态
  490. Route::get('get_store_status', 'v1.diy.Diy/getStoreStatus')->option(['real_name' => '获取门店自提开启状态']);
  491. //还原Diy默认数据
  492. Route::get('recovery/:id', 'v1.diy.Diy/Recovery')->option(['real_name' => '还原Diy默认数据']);
  493. //设置Diy默认数据
  494. Route::get('set_default_data/:id', 'v1.diy.Diy/setDefaultData')->option(['real_name' => '设置Diy默认数据']);
  495. //获取所有二级分类
  496. Route::get('get_by_category', 'v1.diy.Diy/getByCategory')->option(['real_name' => '获取所有二级分类']);
  497. //获取推荐不同类型商品
  498. Route::get('groom_list/:type', 'v1.diy.Diy/groom_list')->name('groomList')->option(['real_name' => '获取推荐不同类型商品']);
  499. //换色和分类保存
  500. Route::put('color_change/:status/:type', 'v1.diy.Diy/colorChange')->option(['real_name' => '换色和分类保存']);
  501. //换色和分类详情
  502. Route::get('get_color_change/:type', 'v1.diy.Diy/getColorChange')->option(['real_name' => '换色和分类详情']);
  503. //获取diy小程序二维码
  504. Route::get('get_routine_code/:id', 'v1.diy.Diy/getRoutineCode')->option(['real_name' => 'diy小程序预览码']);
  505. //个人中心菜单获取
  506. Route::get('get_member', 'v1.diy.Diy/getMember')->option(['real_name' => '个人中心详情']);
  507. //个人中心菜单保存
  508. Route::post('member_save', 'v1.diy.Diy/memberSaveData')->option(['real_name' => '个人中心保存']);
  509. //获取页面链接分类
  510. Route::get('get_page_category', 'v1.diy.PageLink/getCategory')->option(['real_name' => '获取页面链接分类']);
  511. //获取页面链接
  512. Route::get('get_page_link/:cate_id', 'v1.diy.PageLink/getLinks')->option(['real_name' => '获取页面链接']);
  513. //保存自定义链接
  514. Route::post('save_link/:cate_id', 'v1.diy.PageLink/saveLink')->option(['real_name' => '保存自定义链接']);
  515. //删除DIY模板
  516. Route::delete('del_link/:id', 'v1.diy.PageLink/del')->option(['real_name' => '删除链接']);
  517. //开屏广告
  518. Route::get('open_adv/info', 'v1.diy.Diy/getOpenAdv')->option(['real_name' => '获取开屏广告']);
  519. Route::post('open_adv/add', 'v1.diy.Diy/openAdvAdd')->option(['real_name' => '保存开屏广告']);
  520. //获取商品详情diy
  521. Route::get('get_product_detail', 'v1.diy.Diy/getProductDetailDiy')->option(['real_name' => '获取商品详情diy']);
  522. //保存商品详情diy
  523. Route::post('save_product_detail', 'v1.diy.Diy/saveProductDetailDiy')->option(['real_name' => '保存商品详情diy']);
  524. //新人专享商品diy
  525. Route::get('newcomer_list', 'v1.diy.Diy/newcomerList')->option(['real_name' => '保存商品详情diy']);
  526. })->middleware([
  527. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  528. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  529. \app\http\middleware\admin\AdminLogMiddleware::class
  530. ]);
  531. /**
  532. * 导出excel相关路由
  533. */
  534. Route::group('export', function () {
  535. //用户资金
  536. Route::get('userFinance', 'v1.other.export.ExportExcel/userFinance')->option(['real_name' => '用户资金导出']);
  537. //用户佣金
  538. Route::get('userCommission', 'v1.other.export.ExportExcel/userCommission')->option(['real_name' => '用户佣金导出']);
  539. //用户积分
  540. Route::get('userPoint', 'v1.other.export.ExportExcel/userPoint')->option(['real_name' => '用户积分导出']);
  541. //用户充值
  542. Route::get('userRecharge', 'v1.other.export.ExportExcel/userRecharge')->option(['real_name' => '用户充值导出']);
  543. //分销员推广列表
  544. Route::get('userAgent', 'v1.other.export.ExportExcel/userAgent')->option(['real_name' => '分销员推广列表导出']);
  545. //微信用户
  546. Route::get('wechatUser', 'v1.other.export.ExportExcel/wechatUser')->option(['real_name' => '微信用户导出']);
  547. //砍价商品
  548. Route::get('storeBargain', 'v1.other.export.ExportExcel/storeBargain')->option(['real_name' => '砍价商品导出']);
  549. //拼团商品
  550. Route::get('storeCombination', 'v1.other.export.ExportExcel/storeCombination')->option(['real_name' => '拼团商品导出']);
  551. //秒杀商品
  552. Route::get('storeSeckill', 'v1.other.export.ExportExcel/storeSeckill')->option(['real_name' => '秒杀商品导出']);
  553. //商品
  554. Route::get('storeProduct', 'v1.other.export.ExportExcel/storeProduct')->option(['real_name' => '商品导出']);
  555. //订单
  556. Route::get('storeOrder', 'v1.other.export.ExportExcel/storeOrder')->option(['real_name' => '订单导出']);
  557. //提货点
  558. Route::get('storeMerchant', 'v1.other.export.ExportExcel/storeMerchant')->option(['real_name' => '提货点导出']);
  559. //导出会员卡
  560. Route::get('memberCard/:id', 'v1.other.export.ExportExcel/memberCard')->option(['real_name' => '会员卡导出']);
  561. Route::get('extract', 'v1.other.export.ExportExcel/extract')->option(['real_name' => '提现导出']);
  562. Route::get('exchange', 'v1.other.export.ExportExcel/exchange')->option(['real_name' => '转换导出']);
  563. Route::get('extractInfo', 'v1.other.export.ExportExcel/extractMonthInfo')->option(['real_name' => '提现统计']);
  564. //导出批量发货记录
  565. Route::get('batchOrderDelivery/:id/:queueType/:cacheType', 'v1.other.export.ExportExcel/batchOrderDelivery')->option(['real_name' => '批量发货记录导出']);
  566. //物流公司对照表导出
  567. Route::get('expressList', 'v1.other.export.ExportExcel/expressList')->option(['real_name' => '物流公司对照表导出']);
  568. //积分兑换订单导出
  569. Route::get('storeIntegralOrder', 'v1.other.export.ExportExcel/storeIntegralOrder')->option(['real_name' => '积分兑换订单导出']);
  570. //门店账单导出
  571. Route::get('storeFinanceRecord', 'v1.other.export.ExportExcel/financeRecord')->option(['real_name' => '门店账单导出']);
  572. //门店流水导出
  573. Route::get('storeFlowExport', 'v1.other.export.ExportExcel/flowExport')->option(['real_name' => '门店流水导出']);
  574. //供应商流水导出
  575. Route::get('supplierWaterExport', 'v1.other.export.ExportExcel/waterExport')->option(['real_name' => '供应商流水导出']);
  576. //供应商账单导出
  577. Route::get('supplierWaterRecord', 'v1.other.export.ExportExcel/waterRecord')->option(['real_name' => '供应商账单导出']);
  578. //商品卡号、卡密模版导出
  579. Route::get('storeProductCardTemplate', 'v1.other.export.ExportExcel/storeProductCardTemplate')->option(['real_name' => '商品卡号、卡密模版导出']);
  580. //发票导出
  581. Route::get('invoiceExport', 'v1.other.export.ExportExcel/invoiceExport')->option(['real_name' => '发票导出']);
  582. //系统表单收集数据导出
  583. Route::get('systemFormDataExport/:id', 'v1.other.export.ExportExcel/systemFormDataExport')->option(['real_name' => '系统表单收集数据导出']);
  584. })->middleware([
  585. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  586. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  587. \app\http\middleware\admin\AdminLogMiddleware::class
  588. ]);
  589. /**
  590. * 附件相关路由
  591. */
  592. Route::group('file', function () {
  593. //图片附件列表
  594. Route::get('file', 'v1.system.attachment.SystemAttachment/index')->option(['real_name' => '图片附件列表']);
  595. //删除图片
  596. Route::post('file/delete', 'v1.system.attachment.SystemAttachment/delete')->option(['real_name' => '删除图片']);
  597. //移动图片分类表单
  598. Route::get('file/move', 'v1.system.attachment.SystemAttachment/move')->option(['real_name' => '移动图片分类表单']);
  599. //移动图片分类
  600. Route::put('file/do_move', 'v1.system.attachment.SystemAttachment/moveImageCate')->option(['real_name' => '移动图片分类']);
  601. //修改图片名称
  602. Route::put('file/update/:id', 'v1.system.attachment.SystemAttachment/update')->option(['real_name' => '修改图片名称']);
  603. //上传图片
  604. Route::post('upload/[:upload_type]', 'v1.system.attachment.SystemAttachment/upload')->option(['real_name' => '上传图片']);
  605. //获取上传类型
  606. Route::get('upload_type', 'v1.system.attachment.SystemAttachment/uploadType')->option(['real_name' => '上传类型']);
  607. //分片上传本地视频
  608. Route::post('video_upload', 'v1.system.attachment.SystemAttachment/videoUpload')->option(['real_name' => '分片上传本地视频']);
  609. //oss视频素材保存
  610. Route::post('video_attachment', 'v1.system.attachment.SystemAttachment/saveVideoAttachment')->option(['real_name' => '视频素材保存']);
  611. //获取扫码上传页面链接以及参数
  612. Route::get('scan/qrcode', 'v1.system.attachment.SystemAttachment/scanUploadQrcode')->option(['real_name' => '获取扫码上传页面链接以及参数']);
  613. //删除二维码
  614. Route::get('remove/qrcode', 'v1.system.attachment.SystemAttachment/removeUploadQrcode')->option(['real_name' => '删除二维码']);
  615. //获取扫码上传的图片数据
  616. Route::get('scan/image/list/:scan_token', 'v1.system.attachment.SystemAttachment/scanUploadImage')->option(['real_name' => '获取扫码上传的图片数据']);
  617. //网络图片上传
  618. Route::post('online/upload', 'v1.system.attachment.SystemAttachment/onlineUpload')->option(['real_name' => '网络图片上传']);
  619. //获取上传信息
  620. Route::get('get/way_data', 'v1.system.attachment.SystemAttachment/getAdminsData')->option(['real_name' => '获取上传信息']);
  621. //保存上传信息
  622. Route::get('set/way_data/:is_way', 'v1.system.attachment.SystemAttachment/setAdminsData')->option(['real_name' => '保存上传信息']);
  623. //附件分类管理资源路由
  624. Route::resource('category', 'v1.system.attachment.SystemAttachmentCategory')->option(['real_name' => [
  625. 'index' => '获取附件分类列表',
  626. 'read' => '获取附件分类详情',
  627. 'create' => '获取创建附件分类表单',
  628. 'save' => '保存附件分类',
  629. 'edit' => '获取修改附件分类表单',
  630. 'update' => '修改附件分类',
  631. 'delete' => '删除附件分类'
  632. ]]);
  633. })->middleware([
  634. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  635. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  636. \app\http\middleware\admin\AdminLogMiddleware::class
  637. ]);
  638. /**
  639. * 财务模块 相关路由
  640. */
  641. Route::group('finance', function () {
  642. //资金记录类型
  643. Route::get('finance/bill_type', 'v1.finance.Finance/bill_type')->option(['real_name' => '资金记录类型']);
  644. //资金记录列表
  645. Route::get('finance/list', 'v1.finance.Finance/list')->option(['real_name' => '资金记录列表']);
  646. //佣金记录
  647. Route::get('finance/commission_list', 'v1.finance.Finance/get_commission_list')->option(['real_name' => '佣金记录列表']);
  648. //佣金详情用户信息
  649. Route::get('finance/user_info/:id', 'v1.finance.Finance/user_info')->option(['real_name' => '佣金详情用户信息']);
  650. //个人佣金记录列表
  651. Route::get('finance/extract_list/:id', 'v1.finance.Finance/getUserBrokeragelist')->option(['real_name' => '个人佣金记录列表']);
  652. //提现申请列表
  653. Route::get('extract', 'v1.finance.UserExtract/index')->option(['real_name' => '提现申请列表']);
  654. //提现记录修改表单
  655. Route::get('extract/:id/edit', 'v1.finance.UserExtract/edit')->option(['real_name' => '提现记录修改表单']);
  656. //提现记录修改
  657. Route::put('extract/:id', 'v1.finance.UserExtract/update')->option(['real_name' => '提现记录修改']);
  658. //拒绝提现申请
  659. Route::put('extract/refuse/:id', 'v1.finance.UserExtract/refuse')->option(['real_name' => '拒绝提现申请']);
  660. //通过提现申请
  661. Route::put('extract/adopt/:id', 'v1.finance.UserExtract/adopt')->option(['real_name' => '通过提现申请']);
  662. //提现申请列表
  663. Route::get('exchange', 'v1.finance.UserExchange/index')->option(['real_name' => '转换申请列表']);
  664. //提现记录修改表单
  665. Route::get('exchange/:id/edit', 'v1.finance.UserExchange/edit')->option(['real_name' => '转换记录修改表单']);
  666. //提现记录修改
  667. Route::put('exchange/:id', 'v1.finance.UserExchange/update')->option(['real_name' => '转换记录修改']);
  668. //拒绝提现申请
  669. Route::put('exchange/refuse/:id', 'v1.finance.UserExchange/refuse')->option(['real_name' => '拒绝转换申请']);
  670. //通过提现申请
  671. Route::put('exchange/adopt/:id', 'v1.finance.UserExchange/adopt')->option(['real_name' => '通过转换申请']);
  672. //提现审核单
  673. Route::get('extract/order', 'v1.finance.UserExtract/getOrderList')->option(['real_name' => '提现审核单']);
  674. //提现审核单明细
  675. Route::get('extract/order/:id', 'v1.finance.UserExtract/getOrderExt')->option(['real_name' => '提现审核单明细']);
  676. //提现审核单明细导出
  677. Route::get('extract/order/print/:id', 'v1.finance.UserExtract/getOrderTemplate')->option(['real_name' => '提现审核单明细导出']);
  678. //提现审核
  679. Route::post('extract/order/:id', 'v1.finance.UserExtract/changeOrderStatusForm')->option(['real_name' => '提现审核表单']);
  680. Route::put('extract/order/:id', 'v1.finance.UserExtract/changeOrderStatus')->option(['real_name' => '提现审核']);
  681. Route::post('integral/set_rate', 'v1.finance.Finance/setAwardIntegral')->option(['real_name' => '同步倍数']);
  682. Route::get('lake', 'v1.finance.Finance/addLackEdit')->option(['real_name' => '资金池操作表单']);
  683. Route::post('lake', 'v1.finance.Finance/addLake')->option(['real_name' => '资金池操作']);
  684. //充值记录列表
  685. Route::get('recharge', 'v1.finance.UserRecharge/index')->option(['real_name' => '充值记录列表']);
  686. //删除充值记录
  687. Route::delete('recharge/:id', 'v1.finance.UserRecharge/delete')->option(['real_name' => '删除充值记录']);
  688. //获取用户充值数据
  689. Route::get('recharge/user_recharge', 'v1.finance.UserRecharge/user_recharge')->option(['real_name' => '获取用户充值数据']);
  690. //充值退款表单
  691. Route::get('recharge/:id/refund_edit', 'v1.finance.UserRecharge/refund_edit')->option(['real_name' => '充值退款表单']);
  692. //充值退款
  693. Route::put('recharge/:id', 'v1.finance.UserRecharge/refund_update')->option(['real_name' => '充值退款']);
  694. //用户资金流水
  695. Route::get('flow/get_list', 'v1.finance.CapitalFlow/getFlowList')->option(['real_name' => '资金流水']);
  696. Route::post('flow/set_mark/:id', 'v1.finance.CapitalFlow/setMark')->option(['real_name' => '设置备注']);
  697. })->middleware([
  698. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  699. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  700. \app\http\middleware\admin\AdminLogMiddleware::class
  701. ]);
  702. /**
  703. * 物流公司相关路由
  704. */
  705. Route::group('freight', function () {
  706. //修改物流公司状态
  707. Route::put('express/set_status/:id/:status', 'v1.other.Express/set_status')->option(['real_name' => '修改物流公司状态']);
  708. //同步物流公司
  709. Route::get('express/sync_express', 'v1.other.Express/syncExpress')->option(['real_name' => '同步物流公司']);
  710. //物流公司资源路由
  711. Route::resource('express', 'v1.other.Express')->name('ExpressResource')->option(['real_name' => [
  712. 'index' => '获取物流公司列表',
  713. 'read' => '获取物流公司详情',
  714. 'create' => '获取创建物流公司表单',
  715. 'save' => '保存物流公司',
  716. 'edit' => '获取修改物流公司表单',
  717. 'update' => '修改物流公司',
  718. 'delete' => '删除物流公司'
  719. ]]);
  720. })->middleware([
  721. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  722. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  723. \app\http\middleware\admin\AdminLogMiddleware::class
  724. ]);
  725. /**
  726. * 直播相关路由
  727. */
  728. Route::group('live', function () {
  729. //主播列表
  730. Route::get('anchor/list', 'v1.marketing.live.LiveAnchor/list')->option(['real_name' => '主播列表']);
  731. //添加修改主播表单
  732. Route::get('anchor/add/:id', 'v1.marketing.live.LiveAnchor/add')->option(['real_name' => '添加修改主播表单']);
  733. //保存主播数据
  734. Route::post('anchor/save', 'v1.marketing.live.LiveAnchor/save')->option(['real_name' => '保存主播数据']);
  735. //删除主播
  736. Route::delete('anchor/del/:id', 'v1.marketing.live.LiveAnchor/delete')->option(['real_name' => '删除主播']);
  737. //设置是否显示
  738. Route::get('anchor/set_show/:id/:is_show', 'v1.marketing.live.LiveAnchor/setShow')->option(['real_name' => '设置主播是否显示']);
  739. //同步主播
  740. Route::get('anchor/syncAnchor', 'v1.marketing.live.LiveAnchor/syncAnchor')->option(['real_name' => '同步主播']);
  741. //直播商品列表
  742. Route::get('goods/list', 'v1.marketing.live.LiveGoods/list')->option(['real_name' => '直播商品列表']);
  743. //生成直播商品
  744. Route::post('goods/create', 'v1.marketing.live.LiveGoods/create')->option(['real_name' => '生成直播商品']);
  745. //添加修改直播商品
  746. Route::post('goods/add', 'v1.marketing.live.LiveGoods/add')->option(['real_name' => '添加修改直播商品']);
  747. //直播商品详情
  748. Route::get('goods/detail/:id', 'v1.marketing.live.LiveGoods/detail')->option(['real_name' => '直播商品详情']);
  749. //直播商品重新审核
  750. Route::get('goods/audit/:id', 'v1.marketing.live.LiveGoods/audit')->option(['real_name' => '直播商品重新审核']);
  751. //直播商品撤回审核
  752. Route::get('goods/resestAudit/:id', 'v1.marketing.live.LiveGoods/resetAudit')->option(['real_name' => '直播商品撤回审核']);
  753. //删除直播商品
  754. Route::delete('goods/del/:id', 'v1.marketing.live.LiveGoods/delete')->option(['real_name' => '删除直播商品']);
  755. //设置直播商品是否显示
  756. Route::get('goods/set_show/:id/:is_show', 'v1.marketing.live.liveGoods/setShow')->option(['real_name' => '设置直播商品是否显示']);
  757. //同步直播商品状态
  758. Route::get('goods/syncGoods', 'v1.marketing.live.liveGoods/syncGoods')->option(['real_name' => '同步直播商品状态']);
  759. //直播间列表
  760. Route::get('room/list', 'v1.marketing.live.LiveRoom/list')->option(['real_name' => '直播间列表']);
  761. //直播间添加
  762. Route::post('room/add', 'v1.marketing.live.LiveRoom/add')->option(['real_name' => '直播间添加']);
  763. //直播间详情
  764. Route::get('room/detail/:id', 'v1.marketing.live.LiveRoom/detail')->option(['real_name' => '直播间详情']);
  765. //直播间添加商品
  766. Route::post('room/add_goods', 'v1.marketing.live.LiveRoom/addGoods')->option(['real_name' => '直播间添加商品']);
  767. //删除直播间
  768. Route::delete('room/del/:id', 'v1.marketing.live.LiveRoom/delete')->option(['real_name' => '删除直播间']);
  769. //设置直播间是否显示
  770. Route::get('room/set_show/:id/:is_show', 'v1.marketing.live.LiveRoom/setShow')->option(['real_name' => '设置直播间是否显示']);
  771. //同步直播间状态
  772. Route::get('room/syncRoom', 'v1.marketing.live.LiveRoom/syncRoom')->option(['real_name' => '同步直播间状态']);
  773. })->middleware([
  774. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  775. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  776. \app\http\middleware\admin\AdminLogMiddleware::class
  777. ]);
  778. /**
  779. * 抽奖相关路由
  780. */
  781. Route::group('lottery', function () {
  782. //抽奖活动列表
  783. Route::get('list', 'v1.marketing.lottery.LuckLottery/index')->option(['real_name' => '抽奖活动列表']);
  784. //抽奖活动详情
  785. Route::get('detail/:id', 'v1.marketing.lottery.LuckLottery/detail')->option(['real_name' => '抽奖活动详情']);
  786. //抽奖活动详情
  787. Route::get('factor_info/:factor', 'v1.marketing.lottery.LuckLottery/factorInfo')->option(['real_name' => '抽奖活动详情']);
  788. //添加抽奖活动
  789. Route::post('add', 'v1.marketing.lottery.LuckLottery/add')->option(['real_name' => '添加抽奖活动']);
  790. //修改抽奖活动数据
  791. Route::put('edit/:id', 'v1.marketing.lottery.LuckLottery/edit')->option(['real_name' => '修改抽奖活动数据']);
  792. //删除抽奖活动
  793. Route::delete('del/:id', 'v1.marketing.lottery.LuckLottery/delete')->option(['real_name' => '删除抽奖活动']);
  794. //设置抽奖活动是否显示
  795. Route::post('set_status/:id/:status', 'v1.marketing.lottery.LuckLottery/setStatus')->option(['real_name' => '设置抽奖活动是否显示']);
  796. //抽奖记录列表
  797. Route::get('record/list', 'v1.marketing.lottery.LuckLotteryRecord/list')->option(['real_name' => '抽奖记录列表']);
  798. //抽奖记录列表
  799. Route::get('record/list/:id', 'v1.marketing.lottery.LuckLotteryRecord/index')->option(['real_name' => '抽奖记录列表']);
  800. //抽奖中奖发货、备注处理
  801. Route::post('record/deliver', 'v1.marketing.lottery.LuckLotteryRecord/deliver')->option(['real_name' => '抽奖中奖发货、备注处理']);
  802. })->middleware([
  803. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  804. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  805. \app\http\middleware\admin\AdminLogMiddleware::class
  806. ]);
  807. /**
  808. * 优惠卷,砍价,拼团,秒杀 路由
  809. */
  810. Route::group('marketing', function () {
  811. //已发布优惠券列表
  812. Route::get('coupon/released', 'v1.marketing.coupon.StoreCouponIssue/index')->option(['real_name' => '已发布优惠券列表']);
  813. //添加优惠券
  814. Route::post('coupon/save_coupon', 'v1.marketing.coupon.StoreCouponIssue/saveCoupon')->option(['real_name' => '添加优惠券']);
  815. //修改优惠券状态
  816. Route::get('coupon/status/:id/:status', 'v1.marketing.coupon.StoreCouponIssue/status')->option(['real_name' => '修改优惠券状态']);
  817. //一键复制优惠券
  818. Route::get('coupon/copy/:id', 'v1.marketing.coupon.StoreCouponIssue/copy')->option(['real_name' => '一键复制优惠券']);
  819. //发送优惠券列表
  820. Route::get('coupon/grant', 'v1.marketing.coupon.StoreCouponIssue/index')->option(['real_name' => '发送优惠券列表']);
  821. //优惠券相关 资源路由
  822. Route::get('coupon/list', 'v1.marketing.coupon.StoreCoupon/index')->option(['real_name' => '优惠券']);
  823. //优惠卷添加
  824. Route::get('coupon/create/:type', 'v1.marketing.coupon.StoreCoupon/create')->option(['real_name' => '优惠卷添加']);
  825. //优惠卷数据添加
  826. Route::post('coupon/save', 'v1.marketing.coupon.StoreCoupon/save')->option(['real_name' => '优惠卷数据添加']);
  827. //优惠卷修改
  828. Route::delete('coupon/del/:id', 'v1.marketing.coupon.StoreCoupon/delete')->option(['real_name' => '优惠卷修改']);
  829. //修改优惠券状态
  830. Route::put('coupon/status/:id', 'v1.marketing.coupon.StoreCoupon/status')->option(['real_name' => '修改优惠券状态']);
  831. //发布优惠券表单
  832. Route::get('coupon/issue/:id', 'v1.marketing.coupon.StoreCoupon/issue')->option(['real_name' => '发布优惠券表单']);
  833. //发布优惠券
  834. Route::post('coupon/issue/:id', 'v1.marketing.coupon.StoreCoupon/update_issue')->option(['real_name' => '发布优惠券']);
  835. //已发布优惠券删除
  836. Route::delete('coupon/released/:id', 'v1.marketing.coupon.StoreCouponIssue/delete')->option(['real_name' => '已发布优惠券删除']);
  837. //已发布优惠券修改状态表单
  838. Route::get('coupon/released/:id/status', 'v1.marketing.coupon.StoreCouponIssue/edit')->option(['real_name' => '已发布优惠券修改状态表单']);
  839. //已发布优惠券修改状态
  840. Route::put('coupon/released/status/:id', 'v1.marketing.coupon.StoreCouponIssue/status')->option(['real_name' => '已发布优惠券修改状态']);
  841. //已发布优惠券领取记录
  842. Route::get('coupon/released/issue_log/:id', 'v1.marketing.coupon.StoreCouponIssue/issue_log')->option(['real_name' => '已发布优惠券领取记录']);
  843. //会员领取记录
  844. Route::get('coupon/user', 'v1.marketing.coupon.StoreCouponUser/index')->option(['real_name' => '会员领取记录']);
  845. //发送优惠券
  846. Route::post('coupon/user/grant', 'v1.marketing.coupon.StoreCouponUser/grant')->option(['real_name' => '发送优惠券']);
  847. //砍价商品列表
  848. Route::get('bargain', 'v1.marketing.bargain.StoreBargain/index')->option(['real_name' => '砍价商品列表']);
  849. //砍价商品详情
  850. Route::get('bargain/:id', 'v1.marketing.bargain.StoreBargain/read')->option(['real_name' => '砍价商品详情']);
  851. //新增或编辑砍价商品
  852. Route::post('bargain/:id', 'v1.marketing.bargain.StoreBargain/save')->option(['real_name' => '新增或编辑砍价商品']);
  853. //删除砍价商品
  854. Route::delete('bargain/:id', 'v1.marketing.bargain.StoreBargain/delete')->option(['real_name' => '删除砍价商品']);
  855. //修改砍价商品状态
  856. Route::put('bargain/set_status/:id/:status', 'v1.marketing.bargain.StoreBargain/set_status')->option(['real_name' => '修改砍价商品状态']);
  857. //参与砍价列表
  858. Route::get('bargain_list', 'v1.marketing.bargain.StoreBargain/bargainList')->option(['real_name' => '参与砍价列表']);
  859. //砍价人列表
  860. Route::get('bargain_list_info/:id', 'v1.marketing.bargain.StoreBargain/bargainListInfo')->option(['real_name' => '砍价人列表']);
  861. //砍价统计
  862. Route::get('bargain/statistics/head/:id', 'v1.marketing.bargain.StoreBargain/bargainStatistics')->option(['real_name' => '砍价统计']);
  863. //砍价统计列表
  864. Route::get('bargain/statistics/list/:id', 'v1.marketing.bargain.StoreBargain/bargainStatisticsList')->option(['real_name' => '砍价统计列表']);
  865. //砍价统计订单
  866. Route::get('bargain/statistics/order/:id', 'v1.marketing.bargain.StoreBargain/bargainStatisticsOrder')->option(['real_name' => '砍价统计订单']);
  867. //拼团商品列表
  868. Route::get('combination', 'v1.marketing.combination.StoreCombination/index')->option(['real_name' => '拼团商品列表']);
  869. //拼团商品统计
  870. Route::get('combination/statistics', 'v1.marketing.combination.StoreCombination/statistics')->option(['real_name' => '拼团商品统计']);
  871. //拼团商品详情
  872. Route::get('combination/:id', 'v1.marketing.combination.StoreCombination/read')->option(['real_name' => '拼团商品详情']);
  873. //新增或编辑拼团商品
  874. Route::post('combination/:id', 'v1.marketing.combination.StoreCombination/save')->option(['real_name' => '新增或编辑拼团商品']);
  875. //删除拼团商品
  876. Route::delete('combination/:id', 'v1.marketing.combination.StoreCombination/delete')->option(['real_name' => '删除拼团商品']);
  877. //修改拼团商品状态
  878. Route::put('combination/set_status/:id/:status', 'v1.marketing.combination.StoreCombination/set_status')->option(['real_name' => '修改拼团商品状态']);
  879. //参与拼团列表
  880. Route::get('combination/combine/list', 'v1.marketing.combination.StoreCombination/combine_list')->option(['real_name' => '参与拼团列表']);
  881. //拼团人列表
  882. Route::get('combination/order_pink/:id', 'v1.marketing.combination.StoreCombination/order_pink')->option(['real_name' => '拼团人列表']);
  883. //拼团统计
  884. Route::get('combination/statistics/head/:id', 'v1.marketing.combination.StoreCombination/combinationStatistics')->option(['real_name' => '拼团统计']);
  885. //拼团统计列表
  886. Route::get('combination/statistics/list/:id', 'v1.marketing.combination.StoreCombination/combinationStatisticsList')->option(['real_name' => '拼团统计列表']);
  887. //拼团统计订单
  888. Route::get('combination/statistics/order/:id', 'v1.marketing.combination.StoreCombination/combinationStatisticsOrder')->option(['real_name' => '拼团统计订单']);
  889. //秒杀时间段列表
  890. Route::get('seckill/time', 'v1.marketing.seckill.StoreSeckillTime/index')->option(['real_name' => '秒杀时间段列表']);
  891. //秒杀时间段新增、编辑表单
  892. Route::get('seckill/time/create/:id', 'v1.marketing.seckill.StoreSeckillTime/create')->option(['real_name' => '秒杀时间段新增、编辑表单']);
  893. //秒杀时间段保存
  894. Route::post('seckill/time/:id', 'v1.marketing.seckill.StoreSeckillTime/save')->option(['real_name' => '秒杀时间段保存']);
  895. //删除秒杀时间段
  896. Route::delete('seckill/time/:id', 'v1.marketing.seckill.StoreSeckillTime/delete')->option(['real_name' => '删除秒杀时间段']);
  897. //秒杀时间段修改状态
  898. Route::put('seckill/time/set_status/:id/:status', 'v1.marketing.seckill.StoreSeckillTime/set_status')->option(['real_name' => '秒杀时间段修改状态']);
  899. //秒杀时间段列表
  900. Route::get('seckill/time_list', 'v1.marketing.seckill.StoreSeckillTime/time_list')->option(['real_name' => '秒杀时间段列表']);
  901. //秒杀活动列表
  902. Route::get('seckill', 'v1.marketing.seckill.StoreActivitySeckill/index')->option(['real_name' => '秒杀活动列表']);
  903. //秒杀商品列表
  904. Route::get('seckill/product', 'v1.marketing.seckill.StoreSeckill/index')->option(['real_name' => '秒杀商品列表']);
  905. //秒杀活动详情
  906. Route::get('seckill/:id', 'v1.marketing.seckill.StoreActivitySeckill/read')->option(['real_name' => '秒杀活动详情']);
  907. //新增或编辑秒杀活动
  908. Route::post('seckill/:id', 'v1.marketing.seckill.StoreActivitySeckill/save')->option(['real_name' => '新增或编辑秒杀活动']);
  909. //删除秒杀活动
  910. Route::delete('seckill/:id', 'v1.marketing.seckill.StoreActivitySeckill/delete')->option(['real_name' => '删除秒杀活动']);
  911. //修改秒杀活动状态
  912. Route::put('seckill/set_status/:id/:status', 'v1.marketing.seckill.StoreActivitySeckill/set_status')->option(['real_name' => '修改秒杀活动状态']);
  913. //秒杀商品详情
  914. Route::get('seckill/product/:id', 'v1.marketing.seckill.StoreSeckill/read')->option(['real_name' => '秒杀商品详情']);
  915. //新增或编辑秒杀商品
  916. Route::post('seckill/product/:id', 'v1.marketing.seckill.StoreSeckill/save')->option(['real_name' => '新增或编辑秒杀商品']);
  917. //删除秒杀商品
  918. Route::delete('seckill/product/:id', 'v1.marketing.seckill.StoreSeckill/delete')->option(['real_name' => '删除秒杀商品']);
  919. //修改秒杀商品状态
  920. Route::put('seckill/product/set_status/:id/:status', 'v1.marketing.seckill.StoreSeckill/set_status')->option(['real_name' => '修改秒杀商品状态']);
  921. //秒杀商品统计
  922. Route::get('seckill/statistics/head/:id', 'v1.marketing.seckill.StoreSeckill/seckillStatistics')->option(['real_name' => '秒杀统计']);
  923. //秒杀商品参与人
  924. Route::get('seckill/statistics/people/:id', 'v1.marketing.seckill.StoreSeckill/seckillPeople')->option(['real_name' => '秒杀活动参与人']);
  925. //秒杀商品订单
  926. Route::get('seckill/statistics/order/:id', 'v1.marketing.seckill.StoreSeckill/seckillOrder')->option(['real_name' => '秒杀活动订单']);
  927. //积分日志列表
  928. Route::get('integral', 'v1.marketing.integral.UserPoint/index')->option(['real_name' => '积分日志列表']);
  929. //积分日志头部数据
  930. Route::get('integral/statistics', 'v1.marketing.integral.UserPoint/integral_statistics')->option(['real_name' => '积分日志头部数据']);
  931. //积分配置编辑表单
  932. Route::get('integral_config/edit_basics', 'v1.system.config.SystemConfig/edit_basics')->option(['real_name' => '积分配置编辑表单']);
  933. //积分配置保存数据
  934. Route::post('integral_config/save_basics', 'v1.system.config.SystemConfig/save_basics')->option(['real_name' => '积分配置保存数据']);
  935. //积分商品列表
  936. Route::get('integral_product', 'v1.marketing.integral.StoreIntegral/index')->option(['real_name' => '积分商品列表']);
  937. //积分商品批量保存
  938. Route::post('integral/batch', 'v1.marketing.integral.StoreIntegral/batch_add')->option(['real_name' => '积分商品批量保存']);
  939. //积分商品新增或编辑
  940. Route::post('integral/:id', 'v1.marketing.integral.StoreIntegral/save')->option(['real_name' => '积分商品新增或编辑']);
  941. //积分商品详情
  942. Route::get('integral/:id', 'v1.marketing.integral.StoreIntegral/read')->option(['real_name' => '积分商品详情']);
  943. //修改积分商品状态
  944. Route::put('integral/set_show/:id/:is_show', 'v1.marketing.integral.StoreIntegral/set_show')->option(['real_name' => '修改积分商品状态']);
  945. //积分商品删除
  946. Route::delete('integral/:id', 'v1.marketing.integral.StoreIntegral/delete')->option(['real_name' => '积分商品删除']);
  947. //积分商城订单列表
  948. Route::get('integral/order/list', 'v1.marketing.integral.StoreIntegralOrder/lst')->option(['real_name' => '积分商城订单列表']);
  949. //积分商城订单数据
  950. Route::get('integral/order/chart', 'v1.marketing.integral.StoreIntegralOrder/chart')->option(['real_name' => '积分商城订单数据']);
  951. //积分商城订单详情数据
  952. Route::get('integral/order/info/:id', 'v1.marketing.integral.StoreIntegralOrder/order_info')->option(['real_name' => '积分商城订单详情数据']);
  953. //修改积分商品订单备注信息
  954. Route::put('integral/order/remark/:id', 'v1.marketing.integral.StoreIntegralOrder/remark')->option(['real_name' => '修改积分商品订单备注信息']);
  955. //获取积分订单状态
  956. Route::get('integral/order/status/:id', 'v1.marketing.integral.StoreIntegralOrder/status')->option(['real_name' => '获取积分订单状态']);
  957. //删除积分订单
  958. Route::delete('integral/order/del/:id', 'v1.marketing.integral.StoreIntegralOrder/del')->option(['real_name' => '删除积分订单']);
  959. //积分订单发送货
  960. Route::put('integral/order/delivery/:id', 'v1.marketing.integral.StoreIntegralOrder/update_delivery')->option(['real_name' => '积分订单发送货']);
  961. //获取积分订单配送信息表单
  962. Route::get('integral/order/distribution/:id', 'v1.marketing.integral.StoreIntegralOrder/distribution')->option(['real_name' => '获取积分订单配送信息表单']);
  963. //修改积分订单配送信息
  964. Route::put('integral/order/distribution/:id', 'v1.marketing.integral.StoreIntegralOrder/update_distribution')->option(['real_name' => '修改积分订单配送信息']);
  965. //积分订单确认收货
  966. Route::put('integral/order/take/:id', 'v1.marketing.integral.StoreIntegralOrder/take_delivery')->option(['real_name' => '积分订单确认收货']);
  967. //积分订单获取物流公司
  968. Route::get('integral/order/express_list', 'v1.marketing.integral.StoreIntegralOrder/express')->option(['real_name' => '积分订单获取物流公司']);
  969. //积分订单快递公司电子面单模版
  970. Route::get('integral/order/express/temp', 'v1.marketing.integral.StoreIntegralOrder/express_temp')->option(['real_name' => '积分订单快递公司电子面单模版']);
  971. //积分订单获取物流信息
  972. Route::get('integral/order/express/:id', 'v1.marketing.integral.StoreIntegralOrder/get_express')->option(['real_name' => '积分订单获取物流信息']);
  973. //打印积分订单
  974. Route::get('integral/order/print/:id', 'v1.marketing.integral.StoreIntegralOrder/order_print')->option(['real_name' => '打印积分订单']);
  975. //积分订单列表获取配送员
  976. Route::get('integral/order/delivery/list', 'v1.order.DeliveryService/get_delivery_list')->option(['real_name' => '积分订单列表获取配送员']);
  977. //积分订单获取面单默认配置信息
  978. Route::get('integral/order/sheet_info', 'v1.marketing.integral.StoreIntegralOrder/getDeliveryInfo')->option(['real_name' => '积分订单获取面单默认配置信息']);
  979. //积分记录
  980. Route::get('point_record', 'v1.marketing.integral.UserPoint/pointRecord')->option(['read_name' => '积分记录列表']);
  981. Route::post('point_record/remark/:id', 'v1.marketing.integral.UserPoint/pointRecordRemark')->option(['read_name' => '积分记录列表备注']);
  982. Route::get('point/get_basic', 'v1.marketing.integral.UserPoint/getBasic')->option(['read_name' => '积分统计基本信息']);
  983. Route::get('point/get_trend', 'v1.marketing.integral.UserPoint/getTrend')->option(['read_name' => '积分统计趋势图']);
  984. Route::get('point/get_channel', 'v1.marketing.integral.UserPoint/getChannel')->option(['read_name' => '积分来源统计']);
  985. Route::get('point/get_type', 'v1.marketing.integral.UserPoint/getType')->option(['read_name' => '积分消耗统计']);
  986. //添加或修改优惠套餐商品
  987. Route::post('discounts/save', 'v1.marketing.discounts.StoreDiscounts/save')->option(['real_name' => '添加或修改优惠套餐商品']);
  988. //优惠套餐列表
  989. Route::get('discounts/list', 'v1.marketing.discounts.StoreDiscounts/getList')->option(['real_name' => '优惠套餐列表']);
  990. //优惠套餐详情
  991. Route::get('discounts/info/:id', 'v1.marketing.discounts.StoreDiscounts/getInfo')->option(['real_name' => '优惠套餐详情']);
  992. //优惠套餐上下架
  993. Route::get('discounts/set_status/:id/:status', 'v1.marketing.discounts.StoreDiscounts/setStatus')->option(['real_name' => '优惠套餐上下架']);
  994. //优惠套餐删除
  995. Route::delete('discounts/del/:id', 'v1.marketing.discounts.StoreDiscounts/del')->option(['real_name' => '优惠套餐删除']);
  996. //促销活动列表
  997. Route::get('promotions/list/:type', 'v1.marketing.promotions.StorePromotions/index')->option(['real_name' => '促销活动列表']);
  998. //促销活动详情
  999. Route::get('promotions/info/:id', 'v1.marketing.promotions.StorePromotions/getInfo')->option(['real_name' => '促销活动详情']);
  1000. //添加或修改折扣活动
  1001. Route::post('promotions/save_discount/:type/:id', 'v1.marketing.promotions.StorePromotions/saveDiscount')->option(['real_name' => '添加或修改折扣活动']);
  1002. //添加或修改满减活动
  1003. Route::post('promotions/save/:type/:id', 'v1.marketing.promotions.StorePromotions/save')->option(['real_name' => '添加或修改满减活动']);
  1004. //促销活动上下架
  1005. Route::get('promotions/set_status/:id/:status', 'v1.marketing.promotions.StorePromotions/setStatus')->option(['real_name' => '促销活动上下架']);
  1006. //促销活动删除
  1007. Route::delete('promotions/del/:id', 'v1.marketing.promotions.StorePromotions/delete')->option(['real_name' => '促销活动删除']);
  1008. //短视频
  1009. Route::get('video/index', 'v1.marketing.video.Video/index')->option(['real_name' => '短视频列表']);
  1010. //短视频信息
  1011. Route::get('video/info/:id', 'v1.marketing.video.Video/info')->option(['real_name' => '短视频信息']);
  1012. //短视频保存
  1013. Route::post('video/save/:id', 'v1.marketing.video.Video/save')->option(['real_name' => '短视频保存']);
  1014. //短视频上下架
  1015. Route::get('video/set_status/:id/:status', 'v1.marketing.video.Video/set_show')->option(['real_name' => '短视频上下架']);
  1016. //短视频推荐
  1017. Route::get('video/set_recommend/:id/:recommend', 'v1.marketing.video.Video/recommend')->option(['real_name' => '短视频推荐']);
  1018. //短视频审核
  1019. Route::get('video/verify/:id/:verify', 'v1.marketing.video.Video/verify')->option(['real_name' => '短视频审核']);
  1020. //短视频强制下架
  1021. Route::get('video/take_down/:id', 'v1.marketing.video.Video/takeDown')->option(['real_name' => '短视频强制下架']);
  1022. //短视频删除
  1023. Route::delete('video/del/:id', 'v1.marketing.video.Video/delete')->option(['real_name' => '短视频删除']);
  1024. //短视频评论
  1025. Route::get('video/comment', 'v1.marketing.video.VideoComment/index')->option(['real_name' => '短视频评论列表']);
  1026. //短视频评论回复列表
  1027. Route::get('video/comment/reply/:id', 'v1.marketing.video.VideoComment/getCommentReply')->option(['real_name' => '短视频评论回复列表']);
  1028. //短视频评论回复
  1029. Route::post('video/comment/reply/:id', 'v1.marketing.video.VideoComment/setReply')->option(['real_name' => '短视频评论回复']);
  1030. //短视频评论获取管理员回复
  1031. Route::get('video/comment/get_reply/:id', 'v1.marketing.video.VideoComment/getReply')->option(['real_name' => '短视频评论获取管理员回复']);
  1032. //短视频评论删除
  1033. Route::delete('video/comment/:id', 'v1.marketing.video.VideoComment/delete')->option(['real_name' => '短视频评论列表']);
  1034. //短视频自评表单
  1035. Route::get('video/comment/fictitious/:video_id', 'v1.marketing.video.VideoComment/fictitiousComment')->option(['real_name' => '短视频自评表单']);
  1036. //短视频保存自评
  1037. Route::post('video/comment/save_fictitious', 'v1.marketing.video.VideoComment/saveFictitiousComment')->option(['real_name' => '短视频保存自评']);
  1038. //活动边框列表
  1039. Route::get('activity_frame/list', 'v1.marketing.activityFrame.ActivityFrame/index')->option(['real_name' => '活动边框列表']);
  1040. //活动边框详情
  1041. Route::get('activity_frame/info/:id', 'v1.marketing.activityFrame.ActivityFrame/getInfo')->option(['real_name' => '活动边框详情']);
  1042. //添加或修改活动边框
  1043. Route::post('activity_frame/save/:id', 'v1.marketing.activityFrame.ActivityFrame/save')->option(['real_name' => '添加或修改活动边框']);
  1044. //活动边框上下架
  1045. Route::get('activity_frame/set_status/:id/:status', 'v1.marketing.activityFrame.ActivityFrame/setStatus')->option(['real_name' => '活动边框上下架']);
  1046. //活动边框删除
  1047. Route::delete('activity_frame/del/:id', 'v1.marketing.activityFrame.ActivityFrame/delete')->option(['real_name' => '活动边框删除']);
  1048. //活动背景列表
  1049. Route::get('activity_background/list', 'v1.marketing.activityBackground.ActivityBackground/index')->option(['real_name' => '活动背景列表']);
  1050. //活动背景详情
  1051. Route::get('activity_background/info/:id', 'v1.marketing.activityBackground.ActivityBackground/getInfo')->option(['real_name' => '活动背景详情']);
  1052. //添加或修改活动背景
  1053. Route::post('activity_background/save/:id', 'v1.marketing.activityBackground.ActivityBackground/save')->option(['real_name' => '添加或修改活动背景']);
  1054. //活动背景上下架
  1055. Route::get('activity_background/set_status/:id/:status', 'v1.marketing.activityBackground.ActivityBackground/setStatus')->option(['real_name' => '活动背景上下架']);
  1056. //活动背景删除
  1057. Route::delete('activity_background/del/:id', 'v1.marketing.activityBackground.ActivityBackground/delete')->option(['real_name' => '活动背景删除']);
  1058. })->middleware([
  1059. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1060. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1061. \app\http\middleware\admin\AdminLogMiddleware::class
  1062. ]);
  1063. /**
  1064. * 门店相关路由
  1065. */
  1066. Route::group('store', function () {
  1067. //门店首页头部统计数据
  1068. Route::get('home/header', 'v1.store.Common/homeStatics')->option(['real_name' => '门店首页头部统计数据']);
  1069. //门店首页营业趋势图表
  1070. Route::get('home/operate', 'v1.store.Common/operateChart')->option(['real_name' => '门店首页营业趋势图表']);
  1071. //门店首页交易图表
  1072. Route::get('home/orderChart', 'v1.store.Common/orderChart')->option(['real_name' => '门店首页交易图表']);
  1073. //门店首页店员统计
  1074. Route::get('home/store', 'v1.store.Common/storeChart')->option(['real_name' => '门店首页门店统计']);
  1075. //门店分类树形列表
  1076. Route::get('category/tree/:type', 'v1.store.StoreCategory/tree_list')->option(['real_name' => '门店分类树形列表']);
  1077. //门店分类cascader行列表
  1078. Route::get('category/cascader_list/[:type]', 'v1.store.StoreCategory/cascader_list')->option(['real_name' => '门店分类cascader行列表']);
  1079. //门店分类列表
  1080. Route::get('category', 'v1.store.StoreCategory/index')->option(['real_name' => '门店分类列表']);
  1081. //门店分类新增、编辑表单
  1082. Route::get('category/create/:id', 'v1.store.StoreCategory/create')->option(['real_name' => '门店分类新增、编辑表单']);
  1083. //门店分类保存
  1084. Route::post('category/:id', 'v1.store.StoreCategory/save')->option(['real_name' => '门店分类保存']);
  1085. //删除门店分类
  1086. Route::delete('category/:id', 'v1.store.StoreCategory/delete')->option(['real_name' => '删除门店分类']);
  1087. //门店分类修改状态
  1088. Route::put('category/set_show/:id/:is_show', 'v1.store.StoreCategory/set_show')->option(['real_name' => '门店分类修改状态']);
  1089. //门店列表
  1090. Route::get('store', 'v1.store.SystemStore/index')->option(['real_name' => '门店列表']);
  1091. //门店上下架
  1092. Route::put('store/set_show/:id/:is_show', 'v1.store.SystemStore/set_show')->option(['real_name' => '门店上下架']);
  1093. //门店删除
  1094. Route::delete('store/del/:id', 'v1.store.SystemStore/delete')->option(['real_name' => '门店删除']);
  1095. //门店位置选择
  1096. Route::get('store/address', 'v1.store.SystemStore/select_address')->option(['real_name' => '门店位置选择']);
  1097. //获取ERP门店列表
  1098. Route::get('erp/shop', 'v1.store.SystemStore/getErpShop')->option(['real_name' => '获取ERP门店列表']);
  1099. //门店详情
  1100. Route::get('store/get_info/:id', 'v1.store.SystemStore/get_info')->option(['real_name' => '门店详情']);
  1101. //保存修改门店信息
  1102. Route::post('store/:id', 'v1.store.SystemStore/save')->option(['real_name' => '保存修改门店信息']);
  1103. //门店快捷登录
  1104. Route::get('store/login/:id', 'v1.store.SystemStore/storeLogin')->option(['real_name' => '门店快捷登录']);
  1105. //获取门店重置账号密码表单
  1106. Route::get('store/reset_admin/:id', 'v1.store.SystemStore/resetAdminForm')->option(['real_name' => '获取门店重置账号密码表单']);
  1107. //门店重置账号密码
  1108. Route::post('store/reset_admin/:id', 'v1.store.SystemStore/resetAdmin')->option(['real_name' => '门店重置账号密码']);
  1109. //获取头部数据
  1110. Route::get('order/header', 'v1.store.Order/header')->name('StoreOrderHeader')->option(['real_name' => '获取门店订单头部统计']);
  1111. //订单列表
  1112. Route::get('order/list', 'v1.store.Order/index')->name('StoreOrderList')->option(['real_name' => '订单列表']);
  1113. //订单头部数据
  1114. Route::get('order/chart', 'v1.store.Order/chart')->name('StoreOrderChart')->option(['real_name' => '订单头部数据']);
  1115. //订单详情
  1116. Route::get('order/info/:id', 'v1.store.Order/order_info')->name('StoreOrderorInfo')->option(['real_name' => '订单详情']);
  1117. //修改备注信息
  1118. Route::put('order/remark/:id', 'v1.store.Order/remark')->name('StoreOrderorRemark')->option(['real_name' => '修改备注信息']);
  1119. //获取订单状态
  1120. Route::get('order/status/:id', 'v1.store.Order/status')->name('StoreOrderorStatus')->option(['real_name' => '获取订单状态']);
  1121. //订单分配
  1122. Route::post('share/order', 'v1.store.Order/shareOrder')->option(['real_name' => '订单分配']);
  1123. //充值订单列表
  1124. Route::get('recharge', 'v1.store.Recharge/index')->name('RechargeOrderList')->option(['real_name' => '充值订单列表']);
  1125. //保存充值订单备注
  1126. Route::put('recharge/remark/:id', 'v1.store.Recharge/remarks')->option(['real_name' => '保存充值订单备注']);
  1127. //获取充值订单备注
  1128. Route::get('recharge/remark/:id', 'v1.store.Recharge/getRemark')->option(['real_name' => '获取充值订单备注']);
  1129. //付费会员订单列表
  1130. Route::get('vip_order', 'v1.store.PayVipOrder/index')->name('PayVipOrderList')->option(['real_name' => '付费会员订单列表']);
  1131. //获取会员状态
  1132. Route::get('vip/status/:id', 'v1.store.PayVipOrder/status')->name('getStatusList')->option(['real_name' => '获取会员状态']);
  1133. //获取会员备注
  1134. Route::get('vip/remark/:id', 'v1.store.PayVipOrder/getRemark')->name('getRemark')->option(['real_name' => '获取会员备注']);
  1135. //保存会员备注
  1136. Route::put('vip/remark/:id', 'v1.store.PayVipOrder/remark')->name('remarkSave')->option(['real_name' => '保存会员备注']);
  1137. //门店转账列表
  1138. Route::get('extract/list', 'v1.store.StoreExtract/index')->option(['real_name' => '门店转账列表']);
  1139. //门店转账记录备注
  1140. Route::post('extract/mark/:id', 'v1.store.StoreExtract/mark')->option(['real_name' => '门店转账记录备注']);
  1141. //提现审核
  1142. Route::post('extract/verify/:id', 'v1.store.StoreExtract/verify')->option(['real_name' => '门店转账记录备注']);
  1143. //转账表单
  1144. Route::get('extract/transfer/:id', 'v1.store.StoreExtract/transfer')->option(['real_name' => '转账表单']);
  1145. //转账提交
  1146. Route::post('extract/save_transfer/:id', 'v1.store.StoreExtract/save_transfer')->option(['real_name' => '转账提交']);
  1147. //门店流水列表
  1148. Route::get('finance_flow/list', 'v1.store.StoreFinanceFlow/index')->option(['real_name' => '门店流水列表']);
  1149. //门店流水备注
  1150. Route::put('finance_flow/mark/:id', 'v1.store.StoreFinanceFlow/mark')->option(['real_name' => '门店流水备注']);
  1151. //门店账单记录
  1152. Route::get('finance_flow/fund_record', 'v1.store.StoreFinanceFlow/fundRecord')->option(['real_name' => '门店账单记录']);
  1153. //门店账单详情
  1154. Route::get('finance_flow/fund_record_info', 'v1.store.StoreFinanceFlow/fundRecordInfo')->option(['real_name' => '门店账单详情']);
  1155. //门店财务设置头部
  1156. Route::get('finance/header_basics', 'v1.system.config.SystemConfig/header_basics')->option(['real_name' => '门店财务设置头部']);
  1157. //门店财务编辑表单
  1158. Route::get('finance/edit_basics', 'v1.system.config.SystemConfig/edit_basics')->option(['real_name' => '门店财务编辑表单']);
  1159. //门店财务保存数据
  1160. Route::post('finance/save_basics', 'v1.system.config.SystemConfig/save_basics')->option(['real_name' => '门店财务保存数据']);
  1161. })->middleware([
  1162. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1163. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1164. \app\http\middleware\admin\AdminLogMiddleware::class
  1165. ]);
  1166. /**
  1167. * mendi 相关路由
  1168. */
  1169. Route::group('merchant', function () {
  1170. //门店列表
  1171. Route::get('store', 'v1.merchant.SystemStore/index')->option(['real_name' => '门店列表']);
  1172. //门店列表头部数据
  1173. Route::get('store/get_header', 'v1.merchant.SystemStore/get_header')->option(['real_name' => '门店列表头部数据']);
  1174. //门店上下架
  1175. Route::put('store/set_show/:id/:is_show', 'v1.merchant.SystemStore/set_show')->option(['real_name' => '门店上下架']);
  1176. //门店删除
  1177. Route::delete('store/del/:id', 'v1.merchant.SystemStore/delete')->option(['real_name' => '门店删除']);
  1178. //门店位置选择
  1179. Route::get('store/address', 'v1.merchant.SystemStore/select_address')->option(['real_name' => '门店位置选择']);
  1180. //门店详情
  1181. Route::get('store/get_info/:id', 'v1.merchant.SystemStore/get_info')->option(['real_name' => '门店详情']);
  1182. //保存修改门店信息
  1183. Route::post('store/:id', 'v1.merchant.SystemStore/save')->option(['real_name' => '保存修改门店信息']);
  1184. //获取门店店员列表
  1185. Route::get('store_staff', 'v1.merchant.SystemStoreStaff/index')->option(['real_name' => '获取门店店员列表']);
  1186. //添加门店店员表单
  1187. Route::get('store_staff/create', 'v1.merchant.SystemStoreStaff/create')->option(['real_name' => '添加门店店员表单']);
  1188. //门店搜索列表
  1189. Route::get('store_list', 'v1.merchant.SystemStoreStaff/store_list')->option(['real_name' => '门店搜索列表']);
  1190. //修改店员状态
  1191. Route::put('store_staff/set_show/:id/:is_show', 'v1.merchant.SystemStoreStaff/set_show')->option(['real_name' => '修改店员状态']);
  1192. //修改店员表单
  1193. Route::get('store_staff/:id/edit', 'v1.merchant.SystemStoreStaff/edit')->option(['real_name' => '修改店员表单']);
  1194. //保存店员
  1195. Route::post('store_staff/save/:id', 'v1.merchant.SystemStoreStaff/save')->option(['real_name' => '保存店员']);
  1196. //删除店员
  1197. Route::delete('store_staff/del/:id', 'v1.merchant.SystemStoreStaff/delete')->option(['real_name' => '删除店员']);
  1198. //获取核销订单列表
  1199. Route::get('verify_order', 'v1.merchant.SystemVerifyOrder/list')->option(['real_name' => '获取核销订单列表']);
  1200. //获取核销订单头部
  1201. Route::get('verify_badge', 'v1.merchant.SystemVerifyOrder/getVerifyBadge')->option(['real_name' => '获取核销订单头部']);
  1202. //核销订单推荐人信息
  1203. Route::get('verify/spread_info/:uid', 'v1.merchant.SystemVerifyOrder/order_spread_user')->option(['real_name' => '核销订单推荐人信息']);
  1204. })->middleware([
  1205. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1206. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1207. \app\http\middleware\admin\AdminLogMiddleware::class
  1208. ]);
  1209. /**
  1210. * 消息通知管理、模版消息(列表,通知,添加,编辑)、短信 相关路由
  1211. */
  1212. Route::group('notify', function () {
  1213. //保存短信配置
  1214. Route::post('sms/config', 'v1.notification.sms.SmsConfig/save_basics')->option(['real_name' => '保存短信配置']);
  1215. //短信发送记录
  1216. Route::get('sms/record', 'v1.notification.sms.SmsConfig/record')->option(['real_name' => '短信发送记录']);
  1217. //短信账号数据
  1218. Route::get('sms/data', 'v1.notification.sms.SmsConfig/data')->option(['real_name' => '短信账号数据']);
  1219. //查看短信账号是否登录
  1220. Route::get('sms/is_login', 'v1.notification.sms.SmsConfig/is_login')->option(['real_name' => '查看短信账号是否登录']);
  1221. //短信账号退出登录
  1222. Route::get('sms/logout', 'v1.notification.sms.SmsConfig/logout')->option(['real_name' => '短信账号退出登录']);
  1223. //发送短信验证码
  1224. Route::post('sms/captcha', 'v1.notification.sms.SmsAdmin/captcha')->option(['real_name' => '发送短信验证码']);
  1225. //修改或注册短信平台账号
  1226. Route::post('sms/register', 'v1.notification.sms.SmsAdmin/save')->option(['real_name' => '修改或注册短信平台账号']);
  1227. //短信模板列表
  1228. Route::get('sms/temp', 'v1.notification.sms.SmsTemplateApply/index')->option(['real_name' => '短信模板列表']);
  1229. //短信模板申请表单
  1230. Route::get('sms/temp/create', 'v1.notification.sms.SmsTemplateApply/create')->option(['real_name' => '短信模板申请表单']);
  1231. //短信模板申请
  1232. Route::post('sms/temp', 'v1.notification.sms.SmsTemplateApply/save')->option(['real_name' => '短信模板申请']);
  1233. //公共短信模板列表
  1234. Route::get('sms/public_temp', 'v1.notification.sms.SmsPublicTemp/index')->option(['real_name' => '公共短信模板列表']);
  1235. //短信剩余条数
  1236. Route::get('sms/number', 'v1.notification.sms.SmsPay/number')->option(['real_name' => '短信剩余条数']);
  1237. //获取短信购买套餐
  1238. Route::get('sms/price', 'v1.notification.sms.SmsPay/price')->option(['real_name' => '获取短信购买套餐']);
  1239. //获取短信购买支付码
  1240. Route::post('sms/pay_code', 'v1.notification.sms.SmsPay/pay')->option(['real_name' => '获取短信购买支付码']);
  1241. })->middleware([
  1242. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1243. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1244. \app\http\middleware\admin\AdminLogMiddleware::class
  1245. ]);
  1246. /**
  1247. * 订单路由
  1248. */
  1249. Route::group('order', function () {
  1250. //打印订单
  1251. Route::get('print/:id', 'v1.order.StoreOrder/order_print')->name('StoreOrderPrint')->option(['real_name' => '打印订单']);
  1252. //订单列表
  1253. Route::get('list', 'v1.order.StoreOrder/lst')->name('StoreOrderList')->option(['real_name' => '订单列表']);
  1254. //订单头部数据
  1255. Route::get('chart', 'v1.order.StoreOrder/chart')->name('StoreOrderChart')->option(['real_name' => '订单头部数据']);
  1256. //订单核销
  1257. Route::post('write', 'v1.order.StoreOrder/write_order')->name('writeOrder')->option(['real_name' => '订单核销']);
  1258. //订单号核销
  1259. Route::put('write_update/:order_id', 'v1.order.StoreOrder/write_update')->name('writeOrderUpdate')->option(['real_name' => '订单号核销']);
  1260. //获取订单编辑表单
  1261. Route::get('edit/:id', 'v1.order.StoreOrder/edit')->name('StoreOrderEdit')->option(['real_name' => '获取订单编辑表单']);
  1262. //修改订单
  1263. Route::put('update/:id', 'v1.order.StoreOrder/update')->name('StoreOrderUpdate')->option(['real_name' => '修改订单']);
  1264. //确认收货
  1265. Route::put('take/:id', 'v1.order.StoreOrder/take_delivery')->name('StoreOrderTakeDelivery')->option(['real_name' => '确认收货']);
  1266. //订单发送货
  1267. Route::put('delivery/:id', 'v1.order.StoreOrder/update_delivery')->name('StoreOrderUpdateDelivery')->option(['real_name' => '订单发送货']);
  1268. //获取订单可拆分商品列表
  1269. Route::get('split_cart_info/:id', 'v1.order.StoreOrder/split_cart_info')->name('StoreOrderSplitCartInfo')->option(['real_name' => '获取订单可拆分商品列表']);
  1270. //拆单发送货
  1271. Route::put('split_delivery/:id', 'v1.order.StoreOrder/split_delivery')->name('StoreOrderSplitDelivery')->option(['real_name' => '拆单发送货']);
  1272. //获取订单拆分子订单列表
  1273. Route::get('split_order/:id', 'v1.order.StoreOrder/split_order')->name('StoreOrderSplitOrder')->option(['real_name' => '获取订单拆分子订单列表']);
  1274. //订单退款表单
  1275. Route::get('refund/:id', 'v1.order.StoreOrder/refund')->name('StoreOrderRefund')->option(['real_name' => '订单退款表单']);
  1276. //订单退款
  1277. Route::put('refund/:id', 'v1.order.StoreOrder/update_refund')->name('StoreOrderUpdateRefund')->option(['real_name' => '订单退款']);
  1278. //后台拆单退款
  1279. Route::post('open/refund/:id', 'v1.order.StoreOrder/open_order_refund')->name('StoreOrderUpdateRefund')->option(['real_name' => '后台拆单退款']);
  1280. //快递公司电子面单模版
  1281. Route::get('express/temp', 'v1.order.StoreOrder/express_temp')->option(['real_name' => '快递公司电子面单模版']);
  1282. //获取物流信息
  1283. Route::get('express/:id', 'v1.order.StoreOrder/get_express')->name('StoreOrderUpdateExpress')->option(['real_name' => '获取物流信息']);
  1284. //获取物流公司
  1285. Route::get('express_list', 'v1.order.StoreOrder/express')->name('StoreOrdeRexpressList')->option(['real_name' => '获取物流公司']);
  1286. //订单详情
  1287. Route::get('info/:id', 'v1.order.StoreOrder/order_info')->name('StoreOrderorInfo')->option(['real_name' => '订单详情']);
  1288. //获取配送信息表单
  1289. Route::get('distribution/:id', 'v1.order.StoreOrder/distribution')->name('StoreOrderorDistribution')->option(['real_name' => '获取配送信息表单']);
  1290. //修改配送信息
  1291. Route::put('distribution/:id', 'v1.order.StoreOrder/update_distribution')->name('StoreOrderorUpdateDistribution')->option(['real_name' => '修改配送信息']);
  1292. //获取不退款表单
  1293. Route::get('no_refund/:id', 'v1.order.StoreOrder/no_refund')->name('StoreOrderorNoRefund')->option(['real_name' => '获取不退款表单']);
  1294. //修改不退款理由
  1295. Route::put('no_refund/:id', 'v1.order.StoreOrder/update_un_refund')->name('StoreOrderorUpdateNoRefund')->option(['real_name' => '修改不退款理由']);
  1296. //线下支付
  1297. Route::post('pay_offline/:id', 'v1.order.StoreOrder/pay_offline')->name('StoreOrderorPayOffline')->option(['real_name' => '线下支付']);
  1298. //获取退积分表单
  1299. Route::get('refund_integral/:id', 'v1.order.StoreOrder/refund_integral')->name('StoreOrderorRefundIntegral')->option(['real_name' => '获取退积分表单']);
  1300. //修改退积分
  1301. Route::put('refund_integral/:id', 'v1.order.StoreOrder/update_refund_integral')->name('StoreOrderorUpdateRefundIntegral')->option(['real_name' => '修改退积分']);
  1302. //修改备注信息
  1303. Route::put('remark/:id', 'v1.order.StoreOrder/remark')->name('StoreOrderorRemark')->option(['real_name' => '修改备注信息']);
  1304. //获取订单状态
  1305. Route::get('status/:id', 'v1.order.StoreOrder/status')->name('StoreOrderorStatus')->option(['real_name' => '获取订单状态']);
  1306. //删除订单单个
  1307. Route::delete('del/:id', 'v1.order.StoreOrder/del')->name('StoreOrderorDel')->option(['real_name' => '删除订单单个']);
  1308. //批量删除订单
  1309. Route::post('dels', 'v1.order.StoreOrder/del_orders')->name('StoreOrderorDels')->option(['real_name' => '批量删除订单']);
  1310. //面单默认配置信息
  1311. Route::get('sheet_info', 'v1.order.StoreOrder/getDeliveryInfo')->option(['real_name' => '面单默认配置信息']);
  1312. //获取线下付款二维码
  1313. Route::get('offline_scan', 'v1.order.OtherOrder/offline_scan')->name('OfflineScan')->option(['real_name' => '获取线下付款二维码']);
  1314. //线下收银列表
  1315. Route::get('scan_list', 'v1.order.OtherOrder/scan_list')->name('ScanList')->option(['real_name' => '线下收银列表']);
  1316. //发票列表头部统计
  1317. Route::get('invoice/chart', 'v1.order.StoreOrderInvoice/chart')->name('StoreOrderorInvoiceChart')->option(['real_name' => '发票列表头部统计']);
  1318. //申请发票列表
  1319. Route::get('invoice/list', 'v1.order.StoreOrderInvoice/list')->name('StoreOrderorInvoiceList')->option(['real_name' => '申请发票列表']);
  1320. //设置发票状态
  1321. Route::post('invoice/set/:id', 'v1.order.StoreOrderInvoice/set_invoice')->name('StoreOrderorInvoiceSet')->option(['real_name' => '设置发票状态']);
  1322. //开票订单详情
  1323. Route::get('invoice_order_info/:id', 'v1.order.StoreOrderInvoice/orderInfo')->name('StoreOrderorInvoiceOrderInfo')->option(['real_name' => '开票订单详情']);
  1324. //配送员列表
  1325. Route::get('delivery/index', 'v1.order.DeliveryService/index')->option(['real_name' => '配送员列表']);
  1326. //新增配送员选择用户列表
  1327. Route::get('delivery/create', 'v1.order.DeliveryService/create')->option(['real_name' => '新增配送员选择用户列表']);
  1328. //新增配送表单
  1329. Route::get('delivery/add', 'v1.order.DeliveryService/add')->option(['real_name' => '新增配送表单']);
  1330. //保存新建的配送员
  1331. Route::post('delivery/save', 'v1.order.DeliveryService/save')->option(['real_name' => '保存新建的配送员']);
  1332. //编辑配送员表单
  1333. Route::get('delivery/:id/edit', 'v1.order.DeliveryService/edit')->option(['real_name' => '编辑配送员表单']);
  1334. //修改配送员
  1335. Route::put('delivery/update/:id', 'v1.order.DeliveryService/update')->option(['real_name' => '修改配送员']);
  1336. //删除配送员
  1337. Route::delete('delivery/del/:id', 'v1.order.DeliveryService/delete')->option(['real_name' => '删除配送员']);
  1338. //修改配送员状态
  1339. Route::get('delivery/set_status/:id/:status', 'v1.order.DeliveryService/set_status')->option(['real_name' => '修改配送员状态']);
  1340. //订单列表获取配送员
  1341. Route::get('delivery/list', 'v1.order.DeliveryService/get_delivery_list')->option(['real_name' => '订单列表获取配送员']);
  1342. //电子面单模板列表
  1343. Route::get('expr/temp', 'v1.order.StoreOrder/expr_temp')->option(['real_name' => '电子面单模板列表']);
  1344. //更多操作打印电子面单
  1345. Route::get('order_dump/:order_id', 'v1.order.StoreOrder/order_dump')->option(['real_name' => '更多操作打印电子面单']);
  1346. //批量发货
  1347. Route::get('hand/batch_delivery', 'v1.order.StoreOrder/hand_batch_delivery')->option(['real_name' => '批量发货']);
  1348. //自动批量发货
  1349. Route::post('other/batch_delivery', 'v1.order.StoreOrder/other_batch_delivery')->option(['real_name' => '自动批量发货']);
  1350. //订单批量删除
  1351. Route::post('batch/del_orders', 'v1.order.StoreOrder/del_orders')->option(['real_name' => '订单批量删除']);
  1352. //订单提醒发货
  1353. Route::put('deliver_remind/:supplier_id/:id', 'v1.supplier.StoreOrder/deliverRemind')->name('deliverRemind')->option(['real_name' => '订单提醒发货']);
  1354. //打印配货单信息
  1355. Route::get('distribution_info', 'v1.order.StoreOrder/distributionInfo')->name('StoreOrderDistributionInfo')->option(['real_name' => '打印配货单信息']);
  1356. //配送订单
  1357. Route::get('delivery_order/list', 'v1.order.StoreDeliveryOrder/index')->name('StoreDeliveryOrderList')->option(['real_name' => '配送订单列表']);
  1358. Route::get('delivery_order/info/:id', 'v1.order.StoreDeliveryOrder/detail')->name('StoreDeliveryOrderDetail')->option(['real_name' => '配送订单详情']);
  1359. Route::get('delivery_order/cancelForm/:id', 'v1.order.StoreDeliveryOrder/cancelForm')->name('StoreDeliveryOrderCancelForm')->option(['real_name' => '配送订单取消表单']);
  1360. Route::post('delivery_order/cancel/:id', 'v1.order.StoreDeliveryOrder/cancel')->name('StoreDeliveryOrderCancel')->option(['real_name' => '配送订单取消']);
  1361. Route::delete('delivery_order/:id', 'v1.order.StoreDeliveryOrder/delete')->name('StoreDeliveryOrderDelete')->option(['real_name' => '配送订单删除']);
  1362. })->middleware([
  1363. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1364. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1365. \app\http\middleware\admin\AdminLogMiddleware::class
  1366. ]);
  1367. /**
  1368. * 商品路由
  1369. */
  1370. Route::group('product', function () {
  1371. //商品批量操作
  1372. Route::post('batch_process', 'v1.product.StoreProduct/batchProcess')->option(['real_name' => '商品批量操作']);
  1373. //商品分类列表
  1374. Route::get('category', 'v1.product.StoreProductCategory/index')->option(['real_name' => '商品分类列表']);
  1375. //用户标签(分类)树形列表
  1376. Route::get('user_label', 'v1.user.UserLabel/tree_list')->option(['real_name' => '用户标签(分类)树形列表']);
  1377. //商品标签(分类)树形列表
  1378. Route::get('product_label', 'v1.product.label.StoreProductLabel/tree_list')->option(['real_name' => '用户标签(分类)树形列表']);
  1379. Route::get('all_label', 'v1.product.label.StoreProductLabel/allLabel')->option(['real_name' => '所有的用户标签']);
  1380. Route::get('all_ensure', 'v1.product.ensure.StoreProductEnsure/allEnsure')->option(['real_name' => '所有的保障服务']);
  1381. Route::get('all_specs', 'v1.product.specs.StoreProductSpecs/allSpecs')->option(['real_name' => '所有的参数模版']);
  1382. //商品分类树形列表
  1383. Route::get('category/tree/:type', 'v1.product.StoreProductCategory/tree_list')->option(['real_name' => '商品分类树形列表']);
  1384. //商品分类cascader行列表
  1385. Route::get('category/cascader_list/[:type]', 'v1.product.StoreProductCategory/cascader_list')->option(['real_name' => '商品分类cascader行列表']);
  1386. //商品分类新增表单
  1387. Route::get('category/create', 'v1.product.StoreProductCategory/create')->option(['real_name' => '商品分类新增表单']);
  1388. //商品分类新增
  1389. Route::post('category', 'v1.product.StoreProductCategory/save')->option(['real_name' => '商品分类新增']);
  1390. //商品分类编辑表单
  1391. Route::get('category/:id', 'v1.product.StoreProductCategory/edit')->option(['real_name' => '商品分类编辑表单']);
  1392. //商品分类编辑
  1393. Route::put('category/:id', 'v1.product.StoreProductCategory/update')->option(['real_name' => '商品分类编辑']);
  1394. //删除商品分类
  1395. Route::delete('category/:id', 'v1.product.StoreProductCategory/delete')->option(['real_name' => '删除商品分类']);
  1396. //商品分类修改状态
  1397. Route::put('category/set_show/:id/:is_show', 'v1.product.StoreProductCategory/set_show')->option(['real_name' => '商品分类修改状态']);
  1398. //商品分类快捷编辑
  1399. Route::put('category/set_category/:id', 'v1.product.StoreProductCategory/set_category')->option(['real_name' => '商品分类快捷编辑']);
  1400. //商品列表
  1401. Route::get('product', 'v1.product.StoreProduct/index')->option(['real_name' => '商品列表']);
  1402. //获取退出未保存的数据
  1403. Route::get('cache', 'v1.product.StoreProduct/getCacheData')->option(['real_name' => '获取退出未保存的数据']);
  1404. //导入ERP商品到平台
  1405. Route::post('import_erp_product', 'v1.product.StoreProduct/import_erp_product')->option(['real_name' => '导入ERP商品到平台']);
  1406. //保存还未提交数据
  1407. Route::post('cache', 'v1.product.StoreProduct/saveCacheData')->option(['real_name' => '保存还未提交数据']);
  1408. //删除退出未保存的数据
  1409. Route::delete('cache', 'v1.product.StoreProduct/deleteCacheData')->option(['real_name' => '删除退出未保存的数据']);
  1410. //获取所有商品列表
  1411. Route::get('product/list', 'v1.product.StoreProduct/search_list')->option(['real_name' => '获取所有商品列表']);
  1412. //获取商品规格
  1413. Route::get('product/attrs/:id/:type', 'v1.product.StoreProduct/get_attrs')->option(['real_name' => '获取商品规格']);
  1414. //商品列表头部数据
  1415. Route::get('product/type_header', 'v1.product.StoreProduct/type_header')->option(['real_name' => '商品列表头部数据']);
  1416. //商品放入回收站
  1417. Route::delete('product/:id', 'v1.product.StoreProduct/delete')->option(['real_name' => '商品放入回收站']);
  1418. //新建或修改商品
  1419. Route::post('product/:id', 'v1.product.StoreProduct/save')->option(['real_name' => '新建或修改商品']);
  1420. //修改商品状态
  1421. Route::put('product/set_show/:id/:is_show', 'v1.product.StoreProduct/set_show')->option(['real_name' => '修改商品状态']);
  1422. //商品快速编辑
  1423. Route::put('product/set_product/:id', 'v1.product.StoreProduct/set_product')->option(['real_name' => '商品快速编辑']);
  1424. //设置批量商品上架
  1425. Route::put('product/product_show', 'v1.product.StoreProduct/product_show')->option(['real_name' => '设置批量商品上架']);
  1426. //设置批量商品下架
  1427. Route::put('product/product_unshow', 'v1.product.StoreProduct/product_unshow')->option(['real_name' => '设置批量商品下架']);
  1428. //设置商品配送方式
  1429. Route::put('product/setDeliveryType', 'v1.product.StoreProduct/setProductDeliveryType')->option(['real_name' => '设置商品配送方式']);
  1430. //商品规则列表
  1431. Route::get('product/rule', 'v1.product.StoreProductRule/index')->option(['real_name' => '商品规则列表']);
  1432. //新建或编辑商品规则
  1433. Route::post('product/rule/:id', 'v1.product.StoreProductRule/save')->option(['real_name' => '新建或编辑商品规则']);
  1434. //商品规则详情
  1435. Route::get('product/rule/:id', 'v1.product.StoreProductRule/read')->option(['real_name' => '商品规则详情']);
  1436. //删除商品规则
  1437. Route::delete('product/rule/delete/:id', 'v1.product.StoreProductRule/delete')->option(['real_name' => '删除商品规则']);
  1438. //生成商品规格列表
  1439. Route::post('generate_attr/:id/:type', 'v1.product.StoreProduct/is_format_attr')->option(['real_name' => '生成商品规格列表']);
  1440. //商品评论列表
  1441. Route::get('reply', 'v1.product.StoreProductReply/index')->option(['real_name' => '商品评论列表']);
  1442. //商品回复评论
  1443. Route::put('reply/set_reply/:id', 'v1.product.StoreProductReply/set_reply')->option(['real_name' => '商品回复评论']);
  1444. //删除商品评论
  1445. Route::delete('reply/:id', 'v1.product.StoreProductReply/delete')->option(['real_name' => '删除商品评论']);
  1446. //获取复制商品配置
  1447. Route::get('copy_config', 'v1.product.CopyTaobao/getConfig')->option(['real_name' => '获取复制商品配置']);
  1448. //获取商品数据
  1449. Route::post('crawl', 'v1.product.CopyTaobao/get_request_contents')->option(['real_name' => '获取采集商品数据']);
  1450. //采集其他平台商品
  1451. Route::post('copy', 'v1.product.CopyTaobao/copyProduct')->option(['real_name' => '复制其他平台商品']);
  1452. //保存采集商品数据
  1453. Route::post('crawl/save', 'v1.product.CopyTaobao/save_product')->option(['real_name' => '保存采集商品数据']);
  1454. //自评表单
  1455. Route::get('reply/fictitious_reply/:product_id', 'v1.product.StoreProductReply/fictitious_reply')->option(['real_name' => '自评表单']);
  1456. //保存自评
  1457. Route::post('reply/save_fictitious_reply', 'v1.product.StoreProductReply/save_fictitious_reply')->option(['real_name' => '保存自评']);
  1458. //获取评论回复列表
  1459. Route::get('reply/comment/:id', 'v1.product.StoreProductReply/getComment')->option(['real_name' => '获取评论回复列表']);
  1460. //获取管理员评论回复
  1461. Route::get('reply/get_reply/:id', 'v1.product.StoreProductReply/getReply')->option(['real_name' => '获取管理员评论回复']);
  1462. //保存管理员回复
  1463. Route::post('reply/save_comment/:replyId/:id', 'v1.product.StoreProductReply/saveComment')->option(['real_name' => '保存管理员回复']);
  1464. //删除评论回复
  1465. Route::delete('reply/delete_comment/:id', 'v1.product.StoreProductReply/deleteComment')->option(['real_name' => '删除评论回复']);
  1466. //获取商品规则属性模板
  1467. Route::get('product/get_rule', 'v1.product.StoreProduct/get_rule')->option(['real_name' => '获取商品规则属性模板']);
  1468. //获取运费模板
  1469. Route::get('product/get_template', 'v1.product.StoreProduct/get_template')->option(['real_name' => '获取运费模板']);
  1470. //上传视频密钥接口
  1471. Route::get('product/get_temp_keys', 'v1.product.StoreProduct/getTempKeys')->option(['real_name' => '上传视频密钥接口']);
  1472. //检测是商品否有活动开启
  1473. Route::get('product/check_activity/:id', 'v1.product.StoreProduct/check_activity')->option(['real_name' => '检测是商品否有活动开启']);
  1474. //导入虚拟商品卡密
  1475. Route::get('product/import_card', 'v1.product.StoreProduct/import_card')->option(['real_name' => '导入虚拟商品卡密']);
  1476. //商品详情
  1477. Route::get('product/:id', 'v1.product.StoreProduct/get_product_info')->option(['real_name' => '商品详情']);
  1478. //获取商品规格
  1479. Route::get('product/attrs/:id', 'v1.product.StoreProduct/getAttrs')->option(['real_name' => '获取商品规格']);
  1480. //快速批量修改库存
  1481. Route::put('product/saveStocks/:id', 'v1.product.StoreProduct/saveProductAttrsStock')->option(['real_name' => '快速批量修改库存']);
  1482. //商品审核表单
  1483. Route::get('product/verify/:id', 'v1.product.StoreProduct/verifyForm')->option(['real_name' => '商品审核表单']);
  1484. //商品强制下架表单
  1485. Route::get('product/remove/:id', 'v1.product.StoreProduct/removeForm')->option(['real_name' => '商品强制下架表单']);
  1486. //商品审核
  1487. Route::post('product/set_verify/:id', 'v1.product.StoreProduct/setVerify')->option(['real_name' => '商品审核']);
  1488. //商品分类列表
  1489. Route::get('brand', 'v1.product.StoreBrand/index')->option(['real_name' => '品牌分类列表']);
  1490. //商品品牌cascader行列表
  1491. Route::get('brand/cascader_list/[:type]', 'v1.product.StoreBrand/cascader_list')->option(['real_name' => '商品品牌cascader行列表']);
  1492. //商品品牌新增
  1493. Route::post('brand', 'v1.product.StoreBrand/save')->option(['real_name' => '品牌品牌新增']);
  1494. //商品品牌编辑
  1495. Route::put('brand/:id', 'v1.product.StoreBrand/update')->option(['real_name' => '商品品牌编辑']);
  1496. //删除商品品牌
  1497. Route::delete('brand/:id', 'v1.product.StoreBrand/delete')->option(['real_name' => '删除商品品牌']);
  1498. //商品品牌修改状态
  1499. Route::put('brand/set_show/:id/:is_show', 'v1.product.StoreBrand/set_show')->option(['real_name' => '商品品牌修改状态']);
  1500. //获取所有商品单位
  1501. Route::get('get_all_unit', 'v1.product.StoreProductUnit/getAllUnit')->option(['real_name' => '获取所有商品单位']);
  1502. //商品单位
  1503. Route::resource('unit', 'v1.product.StoreProductUnit')->option(['real_name' => [
  1504. 'index' => '获取商品单位列表',
  1505. 'read' => '获取商品单位详情',
  1506. 'create' => '获取创建商品单位表单',
  1507. 'save' => '保存商品单位',
  1508. 'edit' => '获取修改商品单位表单',
  1509. 'update' => '修改商品单位',
  1510. 'delete' => '删除商品单位'
  1511. ]]);
  1512. //商品标签分类
  1513. Route::resource('label_cate', 'v1.product.label.StoreProductLabelCate')->option(['real_name' => [
  1514. 'index' => '获取商品标签分类列表',
  1515. 'read' => '获取商品标签分类详情',
  1516. 'create' => '获取创建商品标签分类表单',
  1517. 'save' => '保存商品标签分类',
  1518. 'edit' => '获取修改商品标签分类表单',
  1519. 'update' => '修改商品标签分类',
  1520. 'delete' => '删除商品标签分类'
  1521. ]]);
  1522. //商品标签
  1523. Route::post('label/:id', 'v1.product.label.StoreProductLabel/save')->option(['real_name' => '保存商品标签']);
  1524. Route::delete('label/:id', 'v1.product.label.StoreProductLabel/delete')->option(['real_name' => '删除商品标签']);
  1525. Route::get('label/form', 'v1.product.label.StoreProductLabel/getLabelForm')->option(['real_name' => '获取商品标签表单']);
  1526. //商品保障服务
  1527. Route::resource('ensure', 'v1.product.ensure.StoreProductEnsure')->option(['real_name' => [
  1528. 'index' => '获取商品保障服务列表',
  1529. 'read' => '获取商品保障服务详情',
  1530. 'create' => '获取创建商品保障服务表单',
  1531. 'save' => '保存商品保障服务',
  1532. 'edit' => '获取修改商品保障服务表单',
  1533. 'update' => '修改商品保障服务',
  1534. 'delete' => '删除商品保障服务'
  1535. ]]);
  1536. Route::put('ensure/set_show/:id/:is_show', 'v1.product.ensure.StoreProductEnsure/set_show')->option(['real_name' => '商品保障服务是否显示']);
  1537. //商品参数
  1538. Route::get('specs', 'v1.product.specs.StoreProductSpecs/index')->option(['real_name' => '商品参数模版列表']);
  1539. Route::get('specs/:id', 'v1.product.specs.StoreProductSpecs/getInfo')->option(['real_name' => '获取商品参数模版详情']);
  1540. Route::post('specs/:id', 'v1.product.specs.StoreProductSpecs/save')->option(['real_name' => '保存商品参数模版']);
  1541. Route::delete('specs/:id', 'v1.product.specs.StoreProductSpecs/delete')->option(['real_name' => '删除商品参数模版']);
  1542. })->middleware([
  1543. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1544. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1545. \app\http\middleware\admin\AdminLogMiddleware::class
  1546. ]);
  1547. /**
  1548. * 用户模块 相关路由
  1549. */
  1550. Route::group('queue', function () {
  1551. //队列任务列表
  1552. Route::get('index', 'v1.other.queue.Queue/index')->option(['real_name' => '队列任务列表']);
  1553. //队列批量发货记录
  1554. Route::get('delivery/log/:id/:type', 'v1.other.queue.Queue/delivery_log')->option(['real_name' => '队列批量发货记录']);
  1555. //再次执行批量队列任务
  1556. Route::get('again/do_queue/:id/:type', 'v1.other.queue.Queue/again_do_queue')->option(['real_name' => '再次执行批量队列任务']);
  1557. //清除异常任务队列
  1558. Route::get('del/wrong_queue/:id/:type', 'v1.other.queue.Queue/del_wrong_queue')->option(['real_name' => '清除异常任务队列']);
  1559. //停止队列任务
  1560. Route::get('stop/wrong_queue/:id', 'v1.other.queue.Queue/stop_wrong_queue')->option(['real_name' => '停止队列任务']);
  1561. })->middleware([
  1562. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1563. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1564. \app\http\middleware\admin\AdminLogMiddleware::class
  1565. ]);
  1566. /**
  1567. * 服务平台路由
  1568. */
  1569. Route::group('serve', function () {
  1570. //一号通平台登录
  1571. Route::post('login', 'v1.serve.Login/login')->option(['real_name' => '一号通平台登录']);
  1572. //一号通获取验证码
  1573. Route::post('captcha', 'v1.serve.Login/captcha')->option(['real_name' => '一号通获取验证码']);
  1574. //一号通验证验证码
  1575. Route::post('checkCode', 'v1.serve.Login/checkCode')->option(['real_name' => '一号通验证验证码']);
  1576. //一号通注册
  1577. Route::post('register', 'v1.serve.Login/register')->option(['real_name' => '一号通注册']);
  1578. //开通电子面单
  1579. Route::post('opn_express', 'v1.serve.Serve/openExpress')->option(['real_name' => '一号通开通电子面单']);
  1580. //一号通账户信息
  1581. Route::get('info', 'v1.serve.Serve/getUserInfo')->option(['real_name' => '一号通账户信息']);
  1582. //一号通支付套餐列表
  1583. Route::get('meal_list', 'v1.serve.Serve/mealList')->option(['real_name' => '一号通支付套餐列表']);
  1584. //一号通支付二维码
  1585. Route::post('pay_meal', 'v1.serve.Serve/payMeal')->option(['real_name' => '一号通支付二维码']);
  1586. //一号通开通短信服务
  1587. Route::get('sms/open', 'v1.serve.Sms/openServe')->option(['real_name' => '一号通开通短信服务']);
  1588. //一号通开通其他服务
  1589. Route::get('open', 'v1.serve.Serve/openServe')->option(['real_name' => '一号通开通其他服务']);
  1590. //一号通修改签名
  1591. Route::put('sms/sign', 'v1.serve.Sms/editSign')->option(['real_name' => '一号通修改签名']);
  1592. //一号通获取短信模板
  1593. Route::get('sms/temps', 'v1.serve.Sms/temps')->option(['real_name' => '一号通获取短信模板']);
  1594. //一号通申请模板
  1595. Route::post('sms/apply', 'v1.serve.Sms/apply')->option(['real_name' => '一号通申请模板']);
  1596. //一号通获取申请记录
  1597. Route::get('sms/apply_record', 'v1.serve.Sms/applyRecord')->option(['real_name' => '一号通获取申请记录']);
  1598. //一号通消费记录
  1599. Route::get('record', 'v1.serve.Serve/getRecord')->option(['real_name' => '一号通消费记录']);
  1600. //一号通是否开启电子面单打印
  1601. Route::get('dump_open', 'v1.serve.Export/dumpIsOpen')->name('dumpIsOpen')->option(['real_name' => '一号通是否开启电子面单打印']);
  1602. //一号通获取全部物流公司
  1603. Route::get('export_all', 'v1.serve.Export/getExportAll')->option(['real_name' => '一号通获取全部物流公司']);
  1604. //一号通获取物流公司模板
  1605. Route::get('export_temp', 'v1.serve.Export/getExportTemp')->option(['real_name' => '一号通获取物流公司模板']);
  1606. //一号通修改密码
  1607. Route::post('modify', 'v1.serve.Serve/modify')->option(['real_name' => '一号通修改密码']);
  1608. //一号通修改手机号码
  1609. Route::post('update_phone', 'v1.serve.Serve/updatePhone')->option(['real_name' => '一号通修改手机号码']);
  1610. //一号通短信配置编辑表单
  1611. Route::get('sms_config/edit_basics', 'v1.system.config.SystemConfig/edit_basics')->option(['real_name' => '一号通短信配置编辑表单']);
  1612. //一号通短信配置保存数据
  1613. Route::post('sms_config/save_basics', 'v1.system.config.SystemConfig/save_basics')->option(['real_name' => '一号通短信配置保存数据']);
  1614. })->middleware([
  1615. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1616. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1617. \app\http\middleware\admin\AdminLogMiddleware::class
  1618. ]);
  1619. /**
  1620. * 系统设置维护 系统权限管理、系统菜单管理 系统配置 相关路由
  1621. */
  1622. Route::group('setting', function () {
  1623. //管理员退出登陆
  1624. Route::get('admin/logout', 'v1.system.admin.SystemAdmin/logout')->name('SystemAdminLogout')->option(['real_name' => '退出登陆']);
  1625. //修改管理员状态
  1626. Route::put('set_status/:id/:status', 'v1.system.admin.SystemAdmin/set_status')->name('SystemAdminSetStatus')->option(['real_name' => '修改管理员状态']);
  1627. //获取当前管理员信息
  1628. Route::get('info', 'v1.system.admin.SystemAdmin/info')->name('SystemAdminInfo')->option(['real_name' => '获取当前管理员信息']);
  1629. //修改当前管理员信息
  1630. Route::put('update_admin', 'v1.system.admin.SystemAdmin/update_admin')->name('SystemAdminUpdateAdmin')->option(['real_name' => '修改当前管理员信息']);
  1631. //修改权限规格显示状态
  1632. Route::put('menus/show/:id', 'v1.system.SystemMenus/show')->name('SystemMenusShow')->option(['real_name' => '修改权限规格显示状态']);
  1633. //管理员身份列表
  1634. Route::get('role', 'v1.system.SystemRole/index')->option(['real_name' => '管理员身份列表']);
  1635. //管理员身份权限列表
  1636. Route::get('role/create', 'v1.system.SystemRole/create')->option(['real_name' => '管理员身份权限列表']);
  1637. //编辑管理员详情
  1638. Route::get('role/:id/edit', 'v1.system.SystemRole/edit')->option(['real_name' => '编辑管理员详情']);
  1639. //新建或编辑管理员
  1640. Route::post('role/:id', 'v1.system.SystemRole/save')->option(['real_name' => '新建或编辑管理员']);
  1641. //修改管理员身份状态
  1642. Route::put('role/set_status/:id/:status', 'v1.system.SystemRole/set_status')->option(['real_name' => '修改管理员身份状态']);
  1643. //删除管理员身份
  1644. Route::delete('role/:id', 'v1.system.SystemRole/delete')->option(['real_name' => '删除管理员身份']);
  1645. //修改配置分类状态
  1646. Route::put('config_class/set_status/:id/:status', 'v1.system.config.SystemConfigTab/set_status')->option(['real_name' => '修改配置分类状态']);
  1647. //修改配置状态
  1648. Route::put('config/set_status/:id/:status', 'v1.system.config.SystemConfig/set_status')->option(['real_name' => '修改配置状态']);
  1649. //基本配置编辑头部数据
  1650. Route::get('config/header_basics', 'v1.system.config.SystemConfig/header_basics')->option(['real_name' => '基本配置编辑头部数据']);
  1651. //基本配置编辑表单
  1652. Route::get('config/edit_basics', 'v1.system.config.SystemConfig/edit_basics')->option(['real_name' => '基本配置编辑表单']);
  1653. //新配置编辑表单
  1654. Route::get('config/edit_new_build/:type', 'v1.system.config.SystemConfig/getNewFormBuild')->option(['real_name' => '新配置编辑表单']);
  1655. //获取置缩略图配置信息
  1656. Route::get('config/image', 'v1.system.config.SystemConfig/getImageConfig')->option(['real_name' => '获取置缩略图配置信息']);
  1657. //获取用户配置信息
  1658. Route::get('config/user/:type', 'v1.system.config.SystemConfig/getUserConfig')->option(['real_name' => '获取用户配置信息']);
  1659. //获取用户配置信息
  1660. Route::post('config/user/:type', 'v1.system.config.SystemConfig/saveUserConfig')->option(['real_name' => '获取用户配置信息']);
  1661. //基本配置保存数据
  1662. Route::post('config/save_basics', 'v1.system.config.SystemConfig/save_basics')->option(['real_name' => '基本配置保存数据']);
  1663. //获取单个配置值
  1664. Route::get('config/get_system/:name', 'v1.system.config.SystemConfig/get_system')->option(['real_name' => '基本配置编辑表单']);
  1665. //基本配置上传文件
  1666. Route::post('config/upload', 'v1.system.config.SystemConfig/file_upload')->option(['real_name' => '基本配置上传文件']);
  1667. //获取版权信息
  1668. Route::get('get_version', 'v1.system.config.SystemConfig/getVersion')->option(['real_name' => '获取版权信息']);
  1669. //组合数据全部
  1670. Route::get('group_all', 'v1.system.config.SystemGroup/getGroup')->option(['real_name' => '组合数据全部']);
  1671. //组合数据头部
  1672. Route::get('group_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '组合数据头部']);
  1673. //修改组合数据状态
  1674. Route::put('group_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '修改组合数据状态']);
  1675. //获取城市数据列表
  1676. Route::get('city/list/:parent_id', 'v1.other.CityArea/index')->option(['real_name' => '获取城市数据列表']);
  1677. //添加城市数据表单
  1678. Route::get('city/add/:parent_id', 'v1.other.CityArea/add')->option(['real_name' => '添加城市数据表单']);
  1679. //修改城市数据表单
  1680. Route::get('city/:id/edit', 'v1.other.CityArea/edit')->option(['real_name' => '修改城市数据表单']);
  1681. //新增/修改城市数据
  1682. Route::post('city/save', 'v1.other.CityArea/save')->option(['real_name' => '新增/修改城市数据']);
  1683. //删除城市数据
  1684. Route::delete('city/del/:city_id', 'v1.other.CityArea/delete')->option(['real_name' => '删除城市数据']);
  1685. //清除城市数据缓存
  1686. Route::get('city/clean_cache', 'v1.other.CityArea/clean_cache')->option(['real_name' => '清除城市数据缓存']);
  1687. //运费模板列表
  1688. Route::get('shipping_templates/list', 'v1.product.ShippingTemplates/temp_list')->option(['real_name' => '运费模板列表']);
  1689. //修改运费模板数据
  1690. Route::get('shipping_templates/:id/edit', 'v1.product.ShippingTemplates/edit')->option(['real_name' => '修改运费模板数据']);
  1691. //新增或修改运费模版
  1692. Route::post('shipping_templates/save/:id', 'v1.product.ShippingTemplates/save')->option(['real_name' => '新增或修改运费模版']);
  1693. //删除运费模板
  1694. Route::delete('shipping_templates/del/:id', 'v1.product.ShippingTemplates/delete')->option(['real_name' => '删除运费模板']);
  1695. //城市数据接口
  1696. Route::get('shipping_templates/city_list', 'v1.product.ShippingTemplates/city_list')->option(['real_name' => '城市数据接口']);
  1697. //获取客服广告
  1698. Route::get('get_kf_adv', 'v1.system.config.SystemGroupData/getKfAdv')->option(['real_name' => '获取客服广告']);
  1699. //设置客服广告
  1700. Route::post('set_kf_adv', 'v1.system.config.SystemGroupData/setKfAdv')->option(['real_name' => '设置客服广告']);
  1701. //获取隐私协议
  1702. Route::get('get_user_agreement/:type', 'v1.system.config.SystemGroupData/getUserAgreement')->option(['real_name' => '获取隐私协议']);
  1703. //设置隐私协议
  1704. Route::post('set_user_agreement/:type', 'v1.system.config.SystemGroupData/setUserAgreement')->option(['real_name' => '设置隐私协议']);
  1705. //签到数据头部
  1706. Route::get('sign_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '签到数据头部']);
  1707. //修改签到数据状态
  1708. Route::put('sign_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '修改签到数据状态']);
  1709. //订单数据字段
  1710. Route::get('order_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '订单数据字段']);
  1711. //订单数据状态
  1712. Route::put('order_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '订单数据状态']);
  1713. //个人中心菜单数据字段
  1714. Route::get('usermenu_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '个人中心菜单数据字段']);
  1715. //个人中心菜单数据状态
  1716. Route::put('usermenu_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '个人中心菜单数据状态']);
  1717. //分享海报数据字段
  1718. Route::get('poster_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '分享海报数据字段']);
  1719. //分享海报数据状态
  1720. Route::put('poster_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '分享海报数据状态']);
  1721. //秒杀数据字段
  1722. Route::get('seckill_data/header', 'v1.system.config.SystemGroupData/header')->option(['real_name' => '秒杀数据字段']);
  1723. //秒杀数据状态
  1724. Route::put('seckill_data/set_status/:id/:status', 'v1.system.config.SystemGroupData/set_status')->option(['real_name' => '秒杀数据状态']);
  1725. //云存储列表
  1726. Route::get('config/storage/save_type/:type', 'v1.system.config.SystemStorage/uploadType')->name('SystemStorageUploadType')->option(['real_name' => '选择存储方式']);
  1727. //云存储列表
  1728. Route::get('config/storage', 'v1.system.config.SystemStorage/index')->name('SystemStorageIndex')->option(['real_name' => '云存储列表']);
  1729. //获取云存储创建表单
  1730. Route::get('config/storage/create/:type', 'v1.system.config.SystemStorage/create')->name('SystemStorageCreate')->option(['real_name' => '获取云存储创建表单']);
  1731. //获取云存储配置表单
  1732. Route::get('config/storage/form/:type', 'v1.system.config.SystemStorage/getConfigForm')->name('getConfigForm')->option(['real_name' => '获取云存储配置表单']);
  1733. //获取云存储配置
  1734. Route::get('config/storage/config', 'v1.system.config.SystemStorage/getConfig')->name('SystemStorageConfig')->option(['real_name' => '获取云存储配置']);
  1735. //保存云存储配置
  1736. Route::post('config/storage/config', 'v1.system.config.SystemStorage/saveConfig')->name('SystemStorageSaveConfig')->option(['real_name' => '保存云存储配置']);
  1737. //同步云存储列表
  1738. Route::put('config/storage/synch/:type', 'v1.system.config.SystemStorage/synch')->name('SystemStorageSynch')->option(['real_name' => '同步云存储列表']);
  1739. //获取修改云存储域名表单
  1740. Route::get('config/storage/domain/:id', 'v1.system.config.SystemStorage/getUpdateDomainForm')->name('getUpdateDomainForm')->option(['real_name' => '获取修改云存储域名表单']);
  1741. //修改云存储域名
  1742. Route::post('config/storage/domain/:id', 'v1.system.config.SystemStorage/updateDomain')->name('updateDomain')->option(['real_name' => '修改云存储域名']);
  1743. //保存云存储数据
  1744. Route::post('config/storage/:type', 'v1.system.config.SystemStorage/save')->name('SystemStorageSave')->option(['real_name' => '保存云存储数据']);
  1745. //删除云存储
  1746. Route::delete('config/storage/:id', 'v1.system.config.SystemStorage/delete')->name('SystemStorageDelete')->option(['real_name' => '删除云存储']);
  1747. //修改云存储状态
  1748. Route::put('config/storage/status/:id', 'v1.system.config.SystemStorage/status')->name('SystemStorageStatus')->option(['real_name' => '修改云存储状态']);
  1749. //订单详情动态图配置资源
  1750. Route::resource('order_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1751. 'index' => '获取订单详情动态图列表',
  1752. 'read' => '获取订单详情动态图详情',
  1753. 'create' => '获取创建订单详情动态图表单',
  1754. 'save' => '保存订单详情动态图',
  1755. 'edit' => '获取修改订单详情动态图表单',
  1756. 'update' => '修改订单详情动态图',
  1757. 'delete' => '删除订单详情动态图'
  1758. ]]);
  1759. //签到天数配置资源
  1760. Route::resource('sign_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1761. 'index' => '获取签到天数列表',
  1762. 'read' => '获取签到天数详情',
  1763. 'create' => '获取创建签到天数表单',
  1764. 'save' => '保存签到天数',
  1765. 'edit' => '获取修改签到天数表单',
  1766. 'update' => '修改签到天数',
  1767. 'delete' => '删除签到天数'
  1768. ]]);
  1769. //个人中心菜单配置资源
  1770. Route::resource('usermenu_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1771. 'index' => '获取个人中心菜单列表',
  1772. 'read' => '获取个人中心菜单详情',
  1773. 'create' => '获取创建个人中心菜单表单',
  1774. 'save' => '保存个人中心菜单',
  1775. 'edit' => '获取修改个人中心菜单表单',
  1776. 'update' => '修改个人中心菜单',
  1777. 'delete' => '删除个人中心菜单'
  1778. ]]);
  1779. //分享海报配置资源
  1780. Route::resource('poster_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1781. 'index' => '获取分享海报列表',
  1782. 'read' => '获取分享海报详情',
  1783. 'create' => '获取创建分享海报表单',
  1784. 'save' => '保存分享海报',
  1785. 'edit' => '获取修改分享海报表单',
  1786. 'update' => '修改分享海报',
  1787. 'delete' => '删除分享海报'
  1788. ]]);
  1789. //秒杀配置资源
  1790. Route::resource('seckill_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1791. 'index' => '获取秒杀配置列表',
  1792. 'read' => '获取秒杀配置详情',
  1793. 'create' => '获取创建秒杀配置表单',
  1794. 'save' => '保存秒杀配置',
  1795. 'edit' => '获取修改秒杀配置表单',
  1796. 'update' => '修改秒杀配置',
  1797. 'delete' => '删除秒杀配置'
  1798. ]]);
  1799. //组合数据资源路由
  1800. Route::resource('group', 'v1.system.config.SystemGroup')->option(['real_name' => [
  1801. 'index' => '获取组合数据列表',
  1802. 'read' => '获取组合数据详情',
  1803. 'create' => '获取创建组合数据表单',
  1804. 'save' => '保存组合数据',
  1805. 'edit' => '获取修改组合数据表单',
  1806. 'update' => '修改组合数据',
  1807. 'delete' => '删除组合数据'
  1808. ]]);
  1809. //组合数据子数据资源路由
  1810. Route::resource('group_data', 'v1.system.config.SystemGroupData')->option(['real_name' => [
  1811. 'index' => '获取组合数据子数据列表',
  1812. 'read' => '获取组合数据子数据详情',
  1813. 'create' => '获取创建组合数据子数据表单',
  1814. 'save' => '保存组合数据子数据',
  1815. 'edit' => '获取修改组合数据子数据表单',
  1816. 'update' => '修改组合数据子数据',
  1817. 'delete' => '删除组合数据子数据'
  1818. ]]);
  1819. //系统配置分类资源路由
  1820. Route::resource('config_class', 'v1.system.config.SystemConfigTab')->option(['real_name' => [
  1821. 'index' => '获取系统配置分类列表',
  1822. 'read' => '获取系统配置分类详情',
  1823. 'create' => '获取创建系统配置分类表单',
  1824. 'save' => '保存系统配置分类',
  1825. 'edit' => '获取修改系统配置分类表单',
  1826. 'update' => '修改系统配置分类',
  1827. 'delete' => '删除系统配置分类'
  1828. ]]);
  1829. //系统配置资源路由
  1830. Route::resource('config', 'v1.system.config.SystemConfig')->option(['real_name' => [
  1831. 'index' => '获取系统配置列表',
  1832. 'read' => '获取系统配置详情',
  1833. 'create' => '获取创建系统配置表单',
  1834. 'save' => '保存系统配置',
  1835. 'edit' => '获取修改系统配置表单',
  1836. 'update' => '修改系统配置',
  1837. 'delete' => '删除系统配置'
  1838. ]]);
  1839. //权限菜单资源路由
  1840. Route::resource('menus', 'v1.system.SystemMenus')->option(['real_name' => [
  1841. 'index' => '获取权限菜单列表',
  1842. 'read' => '获取权限菜单详情',
  1843. 'create' => '获取权限菜单表单',
  1844. 'save' => '保存权限菜单',
  1845. 'edit' => '获取修改权限菜单表单',
  1846. 'update' => '修改权限菜单',
  1847. 'delete' => '删除权限菜单'
  1848. ]]);
  1849. //未添加的权限规则列表
  1850. Route::get('ruleList', 'v1.system.SystemMenus/ruleList')->option(['real_name' => '未添加的权限规则列表']);
  1851. //管理员资源路由
  1852. Route::resource('admin', 'v1.system.admin.SystemAdmin')->except(['read'])->option(['real_name' => [
  1853. 'index' => '获取管理员列表',
  1854. 'read' => '获取管理员详情',
  1855. 'create' => '获取创建管理员表单',
  1856. 'save' => '保存管理员',
  1857. 'edit' => '获取修改管理员表单',
  1858. 'update' => '修改管理员',
  1859. 'delete' => '删除管理员'
  1860. ]]);
  1861. //系统通知
  1862. //系统通知列表
  1863. Route::get('notification/index', 'v1.message.SystemNotification/index')->option(['real_name' => '系统通知列表']);
  1864. //获取单条数据
  1865. Route::get('notification/info', 'v1.message.SystemNotification/info')->option(['real_name' => '获取单条通知数据']);
  1866. //保存通知设置
  1867. Route::post('notification/save', 'v1.message.SystemNotification/save')->option(['real_name' => '保存通知设置']);
  1868. //修改消息状态
  1869. Route::put('notification/set_status/:type/:status/:id', 'v1.message.SystemNotification/set_status')->option(['real_name' => '修改消息状态']);
  1870. //管理员路由
  1871. Route::resource('admin', 'v1.system.admin.SystemAdmin')->except(['read'])->option(['real_name' => '管理员']);
  1872. //数据配置保存
  1873. Route::post('group_data/save_all', 'v1.system.config.SystemGroupData/saveAll')->option(['real_name' => '提交数据配置']);
  1874. //对外接口账号信息
  1875. Route::get('system_out/index', 'v1.out.SystemOut/index')->option(['real_name' => '对外接口账号信息']);
  1876. //对外接口账号信息详情
  1877. Route::get('system_out/info/:id', 'v1.out.SystemOut/info')->option(['real_name' => '对外接口账号信息详情']);
  1878. //对外接口账号添加
  1879. Route::post('system_out/save', 'v1.out.SystemOut/save')->option(['real_name' => '对外接口账号添加']);
  1880. //对外接口账号修改
  1881. Route::post('system_out/update/:id', 'v1.out.SystemOut/update')->option(['real_name' => '对外接口账号修改']);
  1882. //设置账号是否禁用
  1883. Route::put('system_out/set_status/:id/:status', 'v1.out.SystemOut/set_status')->option(['real_name' => '设置账号是否禁用']);
  1884. //删除账号
  1885. Route::delete('system_out/delete/:id', 'v1.out.SystemOut/delete')->option(['real_name' => '删除账号']);
  1886. })->middleware([
  1887. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1888. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1889. \app\http\middleware\admin\AdminLogMiddleware::class
  1890. ]);
  1891. /**
  1892. * 分销管理 相关路由
  1893. */
  1894. Route::group('statistic', function () {
  1895. /** 用户统计 */
  1896. //用户基础
  1897. Route::get('user/get_basic', 'v1.statistic.UserStatistic/getBasic')->option(['real_name' => '用户基础统计']);
  1898. //用户增长趋势
  1899. Route::get('user/get_trend', 'v1.statistic.UserStatistic/getTrend')->option(['real_name' => '用户增长趋势']);
  1900. //微信用户
  1901. Route::get('user/get_wechat', 'v1.statistic.UserStatistic/getWechat')->option(['real_name' => '微信用户统计']);
  1902. //微信用户成长趋势
  1903. Route::get('user/get_wechat_trend', 'v1.statistic.UserStatistic/getWechatTrend')->option(['real_name' => '微信用户成长趋势']);
  1904. //用户地域排行
  1905. Route::get('user/get_region', 'v1.statistic.UserStatistic/getRegion')->option(['real_name' => '用户地域排行']);
  1906. //用户性别分布
  1907. Route::get('user/get_sex', 'v1.statistic.UserStatistic/getSex')->option(['real_name' => '用户性别分布']);
  1908. //用户数据导出
  1909. Route::get('user/get_excel', 'v1.statistic.UserStatistic/getExcel')->option(['real_name' => '用户数据导出']);
  1910. /** 商品统计 */
  1911. //商品基础
  1912. Route::get('product/get_basic', 'v1.statistic.ProductStatistic/getBasic')->option(['real_name' => '商品基础统计']);
  1913. //商品趋势
  1914. Route::get('product/get_trend', 'v1.statistic.ProductStatistic/getTrend')->option(['real_name' => '商品趋势']);
  1915. //商品排行
  1916. Route::get('product/get_product_ranking', 'v1.statistic.ProductStatistic/getProductRanking')->option(['real_name' => '商品排行']);
  1917. //商品数据导出
  1918. Route::get('product/get_excel', 'v1.statistic.ProductStatistic/getExcel')->option(['real_name' => '商品数据导出']);
  1919. /** 交易统计 */
  1920. //今日营业额统计
  1921. Route::get('trade/top_trade', 'v1.statistic.TradeStatistic/topTrade')->option(['real_name' => '今日营业额统计']);
  1922. //交易统计底部数据
  1923. Route::get('trade/bottom_trade', 'v1.statistic.TradeStatistic/bottomTrade')->option(['real_name' => '交易统计底部数据']);
  1924. /** 订单统计 */
  1925. Route::group(function () {
  1926. //订单基础
  1927. Route::get('order/get_basic', 'v1.statistic.OrderStatistic/getBasic')->option(['real_name' => '订单基础统计']);
  1928. //订单趋势
  1929. Route::get('order/get_trend', 'v1.statistic.OrderStatistic/getTrend')->option(['real_name' => '订单趋势']);
  1930. //订单来源
  1931. Route::get('order/get_channel', 'v1.statistic.OrderStatistic/getChannel')->option(['real_name' => '订单来源']);
  1932. //订单类型
  1933. Route::get('order/get_type', 'v1.statistic.OrderStatistic/getType')->option(['real_name' => '订单类型']);
  1934. })->option(['parent' => 'statistic', 'cate_name' => '订单统计']);
  1935. /** 余额统计 */
  1936. Route::group(function () {
  1937. //余额基础统计
  1938. Route::get('balance/get_basic', 'v1.statistic.BalanceStatistic/getBasic')->option(['real_name' => '余额基础统计']);
  1939. //余额趋势
  1940. Route::get('balance/get_trend', 'v1.statistic.BalanceStatistic/getTrend')->option(['real_name' => '余额趋势']);
  1941. //余额来源
  1942. Route::get('balance/get_channel', 'v1.statistic.BalanceStatistic/getChannel')->option(['real_name' => '余额来源']);
  1943. //余额消耗
  1944. Route::get('balance/get_type', 'v1.statistic.BalanceStatistic/getType')->option(['real_name' => '余额消耗']);
  1945. })->option(['parent' => 'statistic', 'cate_name' => '余额统计']);
  1946. })->middleware([
  1947. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  1948. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  1949. \app\http\middleware\admin\AdminLogMiddleware::class
  1950. ]);
  1951. /**
  1952. * 维护 相关路由
  1953. */
  1954. Route::group('system', function () {
  1955. //系统日志
  1956. Route::get('log', 'v1.system.log.SystemLog/index')->name('SystemLog')->option(['real_name' => '系统日志']);
  1957. //系统日志管理员搜索条件
  1958. Route::get('log/search_admin', 'v1.system.log.SystemLog/search_admin')->option(['real_name' => '系统日志管理员搜索条件']);
  1959. //文件校验
  1960. Route::get('file', 'v1.system.log.SystemFile/index')->name('SystemFile')->option(['real_name' => '文件校验']);
  1961. //打开目录
  1962. //Route::get('file/opendir', 'v1.system.log.SystemFile/opendir')->option(['real_name' => '打开目录']);
  1963. //读取文件
  1964. //Route::get('file/openfile', 'v1.system.log.SystemFile/openfile')->option(['real_name' => '读取文件']);
  1965. //保存文件
  1966. //Route::post('file/savefile', 'v1.system.log.SystemFile/savefile')->option(['real_name' => '保存文件']);
  1967. //数据库所有表
  1968. Route::get('backup', 'v1.system.SystemDatabackup/index')->option(['real_name' => '数据库所有表']);
  1969. //数据备份详情
  1970. Route::get('backup/read', 'v1.system.SystemDatabackup/read')->option(['real_name' => '数据备份详情']);
  1971. //数据备份 优化表
  1972. Route::put('backup/optimize', 'v1.system.SystemDatabackup/optimize')->option(['real_name' => '数据备份优化表']);
  1973. //数据备份 修复表
  1974. Route::put('backup/repair', 'v1.system.SystemDatabackup/repair')->option(['real_name' => '数据备份修复表']);
  1975. //数据备份 备份表
  1976. Route::put('backup/backup', 'v1.system.SystemDatabackup/backup')->option(['real_name' => '数据备份备份表']);
  1977. //数据库备份记录
  1978. Route::get('backup/file_list', 'v1.system.SystemDatabackup/fileList')->option(['real_name' => '数据库备份记录']);
  1979. //删除数据库备份记录
  1980. Route::delete('backup/del_file', 'v1.system.SystemDatabackup/delFile')->option(['real_name' => '删除数据库备份记录']);
  1981. //导入数据库备份记录
  1982. Route::post('backup/import', 'v1.system.SystemDatabackup/import')->option(['real_name' => '导入数据库备份记录']);
  1983. //清除用户数据
  1984. Route::get('clear/:type', 'v1.system.SystemClearData/index')->option(['real_name' => '清除用户数据']);
  1985. //清除系统缓存
  1986. Route::get('refresh_cache/cache', 'v1.system.log.Clear/refresh_cache')->option(['real_name' => '清除系统缓存']);
  1987. //清除系统日志
  1988. Route::get('refresh_cache/log', 'v1.system.log.Clear/delete_log')->option(['real_name' => '清除系统日志']);
  1989. //域名替换接口
  1990. Route::post('replace_site_url', 'v1.system.SystemClearData/replaceSiteUrl')->option(['real_name' => '域名替换']);
  1991. //预热营销商品redis库存
  1992. Route::post('hot_product_stock', 'v1.system.SystemClearData/hotProductStock')->option(['real_name' => '预热营销商品redis库存']);
  1993. //定时任务名称及标识
  1994. Route::get('timer/task', 'v1.system.SystemTimer/task_name')->option(['real_name' => '定时任务名称及标识']);
  1995. //定时任务列表
  1996. Route::get('timer/index', 'v1.system.SystemTimer/index')->option(['real_name' => '定时任务列表']);
  1997. //定时任务删除
  1998. Route::get('timer/del/:id', 'v1.system.SystemTimer/delete')->option(['real_name' => '定时任务删除']);
  1999. //修改定时任务状态
  2000. Route::get('timer/set_show/:id/:is_show', 'v1.system.SystemTimer/set_show')->option(['real_name' => '修改定时任务状态']);
  2001. //获取定时任务信息
  2002. Route::get('timer/one/:id', 'v1.system.SystemTimer/get_timer_one')->option(['real_name' => '获取定时任务信息']);
  2003. //保存定时任务
  2004. Route::post('timer/save', 'v1.system.SystemTimer/save')->option(['real_name' => '保存定时任务']);
  2005. //更新定时任务
  2006. Route::post('timer/update/:id', 'v1.system.SystemTimer/update')->option(['real_name' => '更新定时任务']);
  2007. //系统表单列表
  2008. Route::get('form/index', 'v1.system.form.SystemForm/index')->option(['real_name' => '系统表单列表']);
  2009. //保存、更新系统表单
  2010. Route::post('form/save/:id', 'v1.system.form.SystemForm/save')->option(['real_name' => '保存系统表单']);
  2011. //系统表单删除
  2012. Route::delete('form/del/:id', 'v1.system.form.SystemForm/del')->option(['real_name' => '系统表单删除']);
  2013. //修改系统表单状态
  2014. Route::get('form/set_show/:id/:is_show', 'v1.system.form.SystemForm/set_show')->option(['real_name' => '修改系统表单状态']);
  2015. //获取系统表单信息
  2016. Route::get('form/info/:id', 'v1.system.form.SystemForm/getInfo')->option(['real_name' => '获取系统表单信息']);
  2017. //获取所有系统表单
  2018. Route::get('form/all_system_form', 'v1.system.form.SystemForm/allSystemForm')->option(['real_name' => '获取所有系统表单']);
  2019. //获取某个系统表单收集数据列表
  2020. Route::get('form/data/:id', 'v1.system.form.SystemForm/formData')->option(['real_name' => '获取系统表单收集数据列表']);
  2021. })->middleware([
  2022. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  2023. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  2024. \app\http\middleware\admin\AdminLogMiddleware::class
  2025. ]);
  2026. /**
  2027. * 用户模块 相关路由
  2028. */
  2029. Route::group('user', function () {
  2030. //用户批量操作
  2031. Route::post('batch_process', 'v1.user.user/batchProcess')->option(['real_name' => '用户批量操作']);
  2032. //添加用户
  2033. Route::post('user/save', 'v1.user.user/save_info')->option(['real_name' => '添加用户']);
  2034. //同步微信用户
  2035. Route::get('user/syncUsers', 'v1.user.user/syncWechatUsers')->option(['real_name' => '同步微信用户']);
  2036. //用户列表头部数据
  2037. Route::get('user/type_header', 'v1.user.user/type_header')->option(['real_name' => '用户列表头部数据']);
  2038. //赠送用户等级
  2039. Route::get('give_level/:id', 'v1.user.user/give_level')->option(['real_name' => '赠送用户等级']);
  2040. //执行赠送用户等级
  2041. Route::put('save_give_level/:id', 'v1.user.user/save_give_level')->option(['real_name' => '执行赠送用户等级']);
  2042. //赠送付费会员时长
  2043. Route::get('give_level_time/:id', 'v1.user.user/give_level_time')->option(['real_name' => '赠送付费会员时长']);
  2044. //执行赠送付费会员时长
  2045. Route::put('save_give_level_time/:id', 'v1.user.user/save_give_level_time')->option(['real_name' => '执行赠送付费会员时长']);
  2046. //清除用户等级
  2047. Route::delete('del_level/:id', 'v1.user.user/del_level')->option(['real_name' => '清除用户等级']);
  2048. //修改积分余额表单
  2049. Route::get('edit_other/:id', 'v1.user.user/edit_other')->option(['real_name' => '修改积分余额表单']);
  2050. //修改积分余额
  2051. Route::put('update_other/:id', 'v1.user.user/update_other')->option(['real_name' => '修改积分余额']);
  2052. //修改用户状态
  2053. Route::put('set_status/:status/:id', 'v1.user.user/set_status')->option(['real_name' => '修改用户状态']);
  2054. //获取指定用户的信息
  2055. Route::get('one_info/:id', 'v1.user.user/oneUserInfo')->option(['real_name' => '获取指定用户的信息']);
  2056. //商品浏览列表
  2057. Route::get('visit_list/:id', 'v1.user.user/visitList')->option(['real_name' => '商品浏览列表']);
  2058. //推荐人记录列表
  2059. Route::get('spread_list/:id', 'v1.user.user/spreadList')->option(['real_name' => '推荐人记录列表']);
  2060. /*会员设置模块*/
  2061. //添加用户等级表单
  2062. Route::get('user_level/create', 'v1.user.UserLevel/create')->option(['real_name' => '添加用户等级表单']);
  2063. //添加或修改用户等级
  2064. Route::post('user_level', 'v1.user.UserLevel/save')->option(['real_name' => '添加或修改用户等级']);
  2065. //用户等级详情
  2066. Route::get('user_level/read/:id', 'v1.user.UserLevel/read')->option(['real_name' => '用户等级详情']);
  2067. //获取系统设置的用户等级列表
  2068. Route::get('user_level/vip_list', 'v1.user.UserLevel/get_system_vip_list')->option(['real_name' => '获取系统设置的用户等级列表']);
  2069. //删除用户等级
  2070. Route::put('user_level/delete/:id', 'v1.user.UserLevel/delete')->option(['real_name' => '删除用户等级']);
  2071. Route::delete('user/delete', 'v1.user.User/cancelUser')->option(['real_name' => '注销用户']);
  2072. //设置用户等级上下架
  2073. Route::put('user_level/set_show/:id/:is_show', 'v1.user.UserLevel/set_show')->option(['real_name' => '设置用户等级上下架']);
  2074. //用户等级列表快速编辑
  2075. Route::put('user_level/set_value/:id', 'v1.user.UserLevel/set_value')->option(['real_name' => '用户等级列表快速编辑']);
  2076. //用户等级任务列表
  2077. Route::get('user_level/task/:level_id', 'v1.user.UserLevel/get_task_list')->option(['real_name' => '用户等级任务列表']);
  2078. //快速编辑用户等级任务
  2079. Route::put('user_level/set_task/:id', 'v1.user.UserLevel/set_task_value')->option(['real_name' => '快速编辑用户等级任务']);
  2080. //设置用户等级任务显示|隐藏
  2081. Route::put('user_level/set_task_show/:id/:is_show', 'v1.user.UserLevel/set_task_show')->option(['real_name' => '设置用户等级任务显示|隐藏']);
  2082. //设置用户等级任务是否务必达成
  2083. Route::put('user_level/set_task_must/:id/:is_must', 'v1.user.UserLevel/set_task_must')->option(['real_name' => '设置用户等级任务是否务必达成']);
  2084. //添加用户等级任务表单
  2085. Route::get('user_level/create_task', 'v1.user.UserLevel/create_task')->option(['real_name' => '添加用户等级任务表单']);
  2086. //保存或修改用户等级任务
  2087. Route::post('user_level/save_task', 'v1.user.UserLevel/save_task')->option(['real_name' => '保存或修改用户等级任务']);
  2088. //删除用户等级任务
  2089. Route::delete('user_level/delete_task/:id', 'v1.user.UserLevel/delete_task')->option(['real_name' => '删除用户等级任务']);
  2090. //获取用户分组列表
  2091. Route::get('user_group/list', 'v1.user.UserGroup/index')->option(['real_name' => '获取用户分组列表']);
  2092. //添加修改分组表单
  2093. Route::get('user_group/add/:id', 'v1.user.UserGroup/add')->option(['real_name' => '添加修改分组表单']);
  2094. //保存分组表单数据
  2095. Route::post('user_group/save', 'v1.user.UserGroup/save')->option(['real_name' => '保存分组表单数据']);
  2096. //删除用户分组数据
  2097. Route::delete('user_group/del/:id', 'v1.user.UserGroup/delete')->option(['real_name' => '删除用户分组数据']);
  2098. //用户分组表单
  2099. Route::post('set_group', 'v1.user.user/set_group')->option(['real_name' => '用户分组表单']);
  2100. //设置用户分组
  2101. Route::put('save_set_group', 'v1.user.user/save_set_group')->option(['real_name' => '设置用户分组']);
  2102. //用户标签列表
  2103. Route::get('user_label', 'v1.user.UserLabel/index')->option(['real_name' => '用户标签列表']);
  2104. //同步企业微信标签
  2105. Route::get('synchro/work/label', 'v1.user.UserLabel/synchroWorkLabel')->option(['real_name' => '同步企业微信标签']);
  2106. //添加或修改用户标签表单
  2107. Route::get('user_label/add/:id', 'v1.user.UserLabel/add')->option(['real_name' => '添加或修改用户标签表单']);
  2108. //添加或修改用户标签
  2109. Route::post('user_label/save', 'v1.user.UserLabel/save')->option(['real_name' => '添加或修改用户标签']);
  2110. //删除用户标签
  2111. Route::delete('user_label/del/:id', 'v1.user.UserLabel/delete')->option(['real_name' => '删除用户标签']);
  2112. //设置用户标签
  2113. Route::post('set_label', 'v1.user.user/set_label')->option(['real_name' => '设置用户标签']);
  2114. //获取用户标签
  2115. Route::get('label/:uid', 'v1.user.UserLabel/getUserLabel')->option(['real_name' => '获取用户标签']);
  2116. //获取用户标签分类全部
  2117. Route::get('user_label_cate/all', 'v1.user.UserLabelCate/getAll')->option(['real_name' => '获取用户标签分类全部']);
  2118. //设置和取消用户标签
  2119. Route::post('label/:uid', 'v1.user.UserLabel/setUserLabel')->option(['real_name' => '设置和取消用户标签']);
  2120. //保存用户标签
  2121. Route::put('save_set_label', 'v1.user.user/save_set_label')->option(['real_name' => '保存用户标签']);
  2122. //会员卡批次列表
  2123. Route::get('member_batch/index', 'v1.user.member.MemberCardBatch/index')->option(['real_name' => '会员卡批次列表']);
  2124. //添加会员卡批次
  2125. Route::post('member_batch/save/:id', 'v1.user.member.MemberCardBatch/save')->option(['real_name' => '添加会员卡批次']);
  2126. //会员卡列表
  2127. Route::get('member_card/index/:card_batch_id', 'v1.user.member.MemberCard/index')->option(['real_name' => '会员卡列表']);
  2128. //会员卡修改状态
  2129. Route::get('member_card/set_status', 'v1.user.member.MemberCard/set_status')->option(['real_name' => '会员卡修改状态']);
  2130. //会员卡批次快速修改
  2131. Route::get('member_batch/set_value/:id', 'v1.user.member.MemberCardBatch/set_value')->option(['real_name' => '会员卡批次快速修改']);
  2132. //会员类型列表
  2133. Route::get('member/ship', 'v1.user.member.MemberCard/member_ship')->option(['real_name' => '会员类型列表']);
  2134. //会员类型修改状态
  2135. Route::get('member_ship/set_ship_status', 'v1.user.member.MemberCard/set_ship_status')->option(['real_name' => '会员类型修改状态']);
  2136. //会员卡类型编辑
  2137. Route::post('member_ship/save/:id', 'v1.user.member.MemberCard/ship_save')->option(['real_name' => '会员卡类型编辑']);
  2138. //会员类型删除
  2139. Route::delete('member_ship/delete/:id', 'v1.user.member.MemberCard/delete')->option(['real_name' => '会员类型删除']);
  2140. //兑换会员卡二维码
  2141. Route::get('member_scan', 'v1.user.member.MemberCardBatch/member_scan')->option(['real_name' => '兑换会员卡二维码']);
  2142. //会员记录
  2143. Route::get('member/record', 'v1.user.member.MemberCard/member_record')->option(['real_name' => '会员记录']);
  2144. //会员权益列表
  2145. Route::get('member/right', 'v1.user.member.MemberCard/member_right')->option(['real_name' => '会员权益列表']);
  2146. //会员权益修改
  2147. Route::post('member_right/save/:id', 'v1.user.member.MemberCard/right_save')->option(['real_name' => '会员权益修改']);
  2148. //保存会员协议
  2149. Route::post('member_agreement/save/:id', 'v1.user.member.MemberCardBatch/save_member_agreement')->option(['real_name' => '会员协议']);
  2150. //获取会员协议
  2151. Route::get('member/agreement', 'v1.user.member.MemberCardBatch/getAgreement')->option(['real_name' => '获取会员协议']);
  2152. //会员类型select
  2153. Route::get('member/ship_select', 'v1.user.member.MemberCard/get_ship_select')->option(['real_name' => '会员类型select']);
  2154. //用户补充信息表单
  2155. Route::get('user/extend_info/:id', 'v1.user.User/extendInfoForm')->option(['real_name' => '用户补充信息表单']);
  2156. //用户补充信息保存
  2157. Route::post('user/extend_info/:id', 'v1.user.User/saveExtendForm')->option(['real_name' => '用户补充信息保存']);
  2158. //用户管理资源路由
  2159. Route::resource('user', 'v1.user.user')->option(['real_name' => [
  2160. 'index' => '获取用户列表',
  2161. 'read' => '获取用户详情',
  2162. 'create' => '获取创建用户表单',
  2163. 'save' => '保存用户',
  2164. 'edit' => '获取修改用户表单',
  2165. 'update' => '修改用户',
  2166. 'delete' => '删除用户'
  2167. ]]);
  2168. //标签分类
  2169. Route::resource('user_label_cate', 'v1.user.UserLabelCate')->option(['real_name' => [
  2170. 'index' => '获取标签分类列表',
  2171. 'read' => '获取标签分类详情',
  2172. 'create' => '获取创建标签分类表单',
  2173. 'save' => '保存标签分类',
  2174. 'edit' => '获取修改标签分类表单',
  2175. 'update' => '修改标签分类',
  2176. 'delete' => '删除标签分类'
  2177. ]]);
  2178. })->middleware([
  2179. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  2180. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  2181. \app\http\middleware\admin\AdminLogMiddleware::class
  2182. ]);
  2183. /**
  2184. * 售后 相关路由
  2185. */
  2186. Route::group('refund', function () {
  2187. //售后列表
  2188. Route::get('list', 'v1.order.RefundOrder/getRefundList')->option(['real_name' => '售后订单列表']);
  2189. //商家同意退款,等待用户退货
  2190. Route::get('agree/:order_id', 'v1.order.RefundOrder/agreeRefund')->option(['real_name' => '商家同意退款,等待用户退货']);
  2191. //售后订单备注
  2192. Route::put('remark/:id', 'v1.order.RefundOrder/remark')->option(['real_name' => '售后订单备注']);
  2193. //售后订单退款表单
  2194. Route::get('refund/:id', 'v1.order.RefundOrder/refund')->name('StoreOrderRefund')->option(['real_name' => '售后订单退款表单']);
  2195. //售后订单退款
  2196. Route::put('refund/:id', 'v1.order.RefundOrder/update_refund')->name('StoreOrderUpdateRefund')->option(['real_name' => '售后订单退款']);
  2197. //售后详情
  2198. Route::get('detail/:id', 'v1.order.RefundOrder/refundDetail')->option(['real_name' => '售后订单详情']);
  2199. })->middleware([
  2200. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  2201. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  2202. \app\http\middleware\admin\AdminLogMiddleware::class
  2203. ]);
  2204. /**
  2205. * 供应商 相关路由
  2206. */
  2207. Route::group('supplier', function () {
  2208. //供应商管理员资源路由
  2209. Route::resource('supplier', 'v1.supplier.SystemSupplier')->option(['real_name' => [
  2210. 'index' => '获取供应商列表',
  2211. 'read' => '获取供应商详情',
  2212. 'save' => '保存供应商',
  2213. 'update' => '修改供应商',
  2214. 'delete' => '删除供应商'
  2215. ]]);
  2216. //供应商财务接口
  2217. //转账提交
  2218. Route::post('extract/save_transfer/:id', 'v1.supplier.SupplierExtract/save_transfer')->option(['real_name' => '转账提交']);
  2219. //供应商转账列表
  2220. Route::get('extract/list', 'v1.supplier.SupplierExtract/index')->option(['real_name' => '供应商转账列表']);
  2221. //供应商转账记录备注
  2222. Route::post('extract/mark/:id', 'v1.supplier.SupplierExtract/mark')->option(['real_name' => '供应商转账记录备注']);
  2223. //提现审核
  2224. Route::post('extract/verify/:id', 'v1.supplier.SupplierExtract/verify')->option(['real_name' => '供应商转账记录备注']);
  2225. //转账表单
  2226. Route::get('extract/transfer/:id', 'v1.supplier.SupplierExtract/transfer')->option(['real_name' => '转账表单']);
  2227. //转账提交
  2228. Route::post('extract/save_transfer/:id', 'v1.supplier.SupplierExtract/save_transfer')->option(['real_name' => '转账提交']);
  2229. //供应商流水列表
  2230. Route::get('flowing_water/list', 'v1.supplier.SupplierFlowingWater/index')->option(['real_name' => '供应商流水列表']);
  2231. //供应商流水备注
  2232. Route::put('flowing_water/mark/:id', 'v1.supplier.SupplierFlowingWater/mark')->option(['real_name' => '供应商流水备注']);
  2233. //供应商账单记录
  2234. Route::get('flowing_water/fund_record', 'v1.supplier.SupplierFlowingWater/fundRecord')->option(['real_name' => '供应商账单记录']);
  2235. //供应商账单详情
  2236. Route::get('flowing_water/fund_record_info', 'v1.supplier.SupplierFlowingWater/fundRecordInfo')->option(['real_name' => '供应商账单详情']);
  2237. /**
  2238. * 供应商申请
  2239. */
  2240. Route::group('apply', function () {
  2241. Route::get('list', 'v1.supplier.SupplierApply/index')->option(['real_name' => '供应商申请列表']);
  2242. Route::get('info/:id', 'v1.supplier.SupplierApply/read')->option(['real_name' => '供应商申请详情']);
  2243. Route::get('verify/form/:id', 'v1.supplier.SupplierApply/verifyForm')->option(['real_name' => '供应商申请审核表单']);
  2244. Route::post('verify/:id', 'v1.supplier.SupplierApply/verifyApply')->option(['real_name' => '供应商申请审核']);
  2245. Route::get('mark/form/:id', 'v1.supplier.SupplierApply/markForm')->option(['real_name' => '供应商申请备注表单']);
  2246. Route::post('mark/:id', 'v1.supplier.SupplierApply/mark')->option(['real_name' => '供应商申请备注']);
  2247. Route::delete('del/:id', 'v1.supplier.SupplierApply/delete')->option(['real_name' => '供应商申请删除']);
  2248. });
  2249. //修改供应商状态
  2250. Route::put('supplier/set_status/:id/:status', 'v1.supplier.SystemSupplier/set_status')->option(['real_name' => '修改供应商状态']);
  2251. //供应商快捷登录
  2252. Route::get('supplier/login/:id', 'v1.supplier.SystemSupplier/supplierLogin')->option(['real_name' => '供应商快捷登录']);
  2253. //供应商首页头部统计数据
  2254. Route::get('home/header', 'v1.supplier.Common/homeStatics')->option(['real_name' => '供应商首页头部统计数据']);
  2255. //供应商首页营业趋势图表
  2256. Route::get('home/order', 'v1.supplier.Common/orderChart')->option(['real_name' => '供应商首页交易图表']);
  2257. //首页订单来源分析
  2258. Route::get('home/order_channel', 'v1.supplier.Common/orderChannel')->option(['real_name' => '订单来源分析']);
  2259. //首页订单类型分析
  2260. Route::get('home/order_type', 'v1.supplier.Common/orderType')->option(['real_name' => '订单订单类型分析']);
  2261. //订单提醒发货
  2262. Route::put('order/deliver_remind/:supplier_id/:id', 'v1.supplier.StoreOrder/deliverRemind')->name('deliverRemind')->option(['real_name' => '订单提醒发货']);
  2263. //供应商首页数据统计
  2264. Route::get('home/supplier', 'v1.supplier.Common/supplierChart')->option(['real_name' => '供应商首页供应商统计']);
  2265. //供应商筛选列表
  2266. Route::get('list', 'v1.supplier.SystemSupplier/search')->option(['real_name' => '供应商筛选列表']);
  2267. /**
  2268. * 订单路由
  2269. */
  2270. Route::group('order', function () {
  2271. //订单列表
  2272. Route::get('list', 'v1.supplier.StoreOrder/index')->name('StoreOrderList')->option(['real_name' => '订单列表']);
  2273. //订单列表获取配送员
  2274. Route::get('delivery/list', 'v1.supplier.StoreOrder/get_delivery_list')->option(['real_name' => '订单列表获取配送员']);
  2275. //获取物流公司
  2276. Route::get('express_list', 'v1.supplier.StoreOrder/express')->name('StoreOrdeRexpressList')->option(['real_name' => '获取物流公司']);
  2277. //获取订单可拆分商品列表
  2278. Route::get('split_cart_info/:id', 'v1.supplier.StoreOrder/split_cart_info')->name('StoreOrderSplitCartInfo')->option(['real_name' => '获取订单可拆分商品列表']);
  2279. //拆单发送货
  2280. Route::put('split_delivery/:id', 'v1.supplier.StoreOrder/split_delivery')->name('StoreOrderSplitDelivery')->option(['real_name' => '拆单发送货']);
  2281. //面单默认配置信息
  2282. Route::get('sheet_info', 'v1.supplier.StoreOrder/getDeliveryInfo')->option(['real_name' => '面单默认配置信息']);
  2283. //获取物流信息
  2284. Route::get('express/:id', 'v1.supplier.StoreOrder/get_express')->name('StoreOrderUpdateExpress')->option(['real_name' => '获取物流信息']);
  2285. //快递公司电子面单模版
  2286. Route::get('express/temp', 'v1.supplier.StoreOrder/express_temp')->option(['real_name' => '快递公司电子面单模版']);
  2287. //订单发送货
  2288. Route::put('delivery/:id', 'v1.supplier.StoreOrder/update_delivery')->name('StoreOrderUpdateDelivery')->option(['real_name' => '订单发送货']);
  2289. //打印订单
  2290. Route::get('print/:id', 'v1.supplier.StoreOrder/order_print')->name('StoreOrderPrint')->option(['real_name' => '打印订单']);
  2291. //确认收货
  2292. Route::put('take/:id', 'v1.supplier.StoreOrder/take_delivery')->name('StoreOrderTakeDelivery')->option(['real_name' => '确认收货']);
  2293. //修改备注信息
  2294. Route::put('remark/:id', 'v1.supplier.StoreOrder/remark')->name('StoreOrderorRemark')->option(['real_name' => '修改备注信息']);
  2295. //获取订单状态
  2296. Route::get('status/:id', 'v1.supplier.StoreOrder/status')->name('StoreOrderorStatus')->option(['real_name' => '获取订单状态']);
  2297. //拆单发送货
  2298. Route::put('split_delivery/:id', 'v1.supplier.StoreOrder/split_delivery')->name('StoreOrderSplitDelivery')->option(['real_name' => '拆单发送货']);
  2299. //获取订单拆分子订单列表
  2300. Route::get('split_order/:id', 'v1.supplier.StoreOrder/split_order')->name('StoreOrderSplitOrder')->option(['real_name' => '获取订单拆分子订单列表']);
  2301. //订单退款表单
  2302. Route::get('refund/:id', 'v1.supplier.StoreOrder/refund')->name('StoreOrderRefund')->option(['real_name' => '订单退款表单']);
  2303. //订单退款
  2304. Route::put('refund/:id', 'v1.supplier.StoreOrder/update_refund')->name('StoreOrderUpdateRefund')->option(['real_name' => '订单退款']);
  2305. //订单详情
  2306. Route::get('info/:id', 'v1.supplier.StoreOrder/order_info')->name('SupplierOrderInfo')->option(['real_name' => '订单详情']);
  2307. //批量发货
  2308. Route::get('hand/batch_delivery', 'v1.supplier.StoreOrder/hand_batch_delivery')->option(['real_name' => '批量发货']);
  2309. //获取不退款表单
  2310. Route::get('no_refund/:id', 'v1.supplier.StoreOrder/no_refund')->name('StoreOrderorNoRefund')->option(['real_name' => '获取不退款表单']);
  2311. //修改不退款理由
  2312. Route::put('no_refund/:id', 'v1.supplier.StoreOrder/update_un_refund')->name('StoreOrderorUpdateNoRefund')->option(['real_name' => '修改不退款理由']);
  2313. //线下支付
  2314. Route::post('pay_offline/:id', 'v1.supplier.StoreOrder/pay_offline')->name('StoreOrderorPayOffline')->option(['real_name' => '线下支付']);
  2315. //获取退积分表单
  2316. Route::get('refund_integral/:id', 'v1.supplier.StoreOrder/refund_integral')->name('StoreOrderorRefundIntegral')->option(['real_name' => '获取退积分表单']);
  2317. //修改退积分
  2318. Route::put('refund_integral/:id', 'v1.supplier.StoreOrder/update_refund_integral')->name('StoreOrderorUpdateRefundIntegral')->option(['real_name' => '修改退积分']);
  2319. //更多操作打印电子面单
  2320. Route::get('order_dump/:order_id', 'v1.supplier.StoreOrder/order_dump')->option(['real_name' => '更多操作打印电子面单']);
  2321. //删除单个订单
  2322. Route::delete('del/:id', 'v1.supplier.StoreOrder/del')->name('StoreOrderorDel')->option(['real_name' => '删除订单单个']);
  2323. //批量删除订单
  2324. Route::post('dels', 'v1.supplier.StoreOrder/del_orders')->name('StoreOrderorDels')->option(['real_name' => '批量删除订单']);
  2325. //获取订单编辑表单
  2326. Route::get('edit/:id', 'v1.supplier.StoreOrder/edit')->name('StoreOrderEdit')->option(['real_name' => '获取订单编辑表单']);
  2327. //修改订单
  2328. Route::put('update/:id', 'v1.supplier.StoreOrder/update')->name('StoreOrderUpdate')->option(['real_name' => '修改订单']);
  2329. //获取配送信息表单
  2330. Route::get('distribution/:id', 'v1.supplier.StoreOrder/distribution')->name('StoreOrderDistribution')->option(['real_name' => '获取配送信息表单']);
  2331. //修改配送信息
  2332. Route::put('distribution/:id', 'v1.supplier.StoreOrder/update_distribution')->name('StoreOrderUpdateDistribution')->option(['real_name' => '修改配送信息']);
  2333. //订单核销
  2334. Route::post('write', 'v1.supplier.StoreOrder/write_order')->name('writeOrder')->option(['real_name' => '订单核销']);
  2335. //订单号核销
  2336. Route::put('write_update/:order_id', 'v1.supplier.StoreOrder/write_update')->name('writeOrderUpdate')->option(['real_name' => '订单号核销']);
  2337. //快递公司电子面单模版
  2338. Route::get('express/temp', 'v1.supplier.StoreOrder/express_temp')->option(['real_name' => '快递公司电子面单模版']);
  2339. //获取线下付款二维码
  2340. Route::get('offline_scan', 'v1.order.OtherOrder/offline_scan')->name('OfflineScan')->option(['real_name' => '获取线下付款二维码']);
  2341. //线下收银列表
  2342. Route::get('scan_list', 'v1.order.OtherOrder/scan_list')->name('ScanList')->option(['real_name' => '线下收银列表']);
  2343. //发票列表头部统计
  2344. Route::get('invoice/chart', 'v1.order.StoreOrderInvoice/chart')->name('StoreOrderorInvoiceChart')->option(['real_name' => '发票列表头部统计']);
  2345. //申请发票列表
  2346. Route::get('invoice/list', 'v1.order.StoreOrderInvoice/list')->name('StoreOrderorInvoiceList')->option(['real_name' => '申请发票列表']);
  2347. //设置发票状态
  2348. Route::post('invoice/set/:id', 'v1.order.StoreOrderInvoice/set_invoice')->name('StoreOrderorInvoiceSet')->option(['real_name' => '设置发票状态']);
  2349. //开票订单详情
  2350. Route::get('invoice_order_info/:id', 'v1.order.StoreOrderInvoice/orderInfo')->name('StoreOrderorInvoiceOrderInfo')->option(['real_name' => '开票订单详情']);
  2351. //电子面单模板列表
  2352. Route::get('expr/temp', 'v1.order.StoreOrder/expr_temp')->option(['real_name' => '电子面单模板列表']);
  2353. //打印配货单信息
  2354. Route::get('distribution_info', 'v1.supplier.StoreOrder/distributionInfo')->name('StoreOrderDistributionInfo')->option(['real_name' => '打印配货单信息']);
  2355. });
  2356. /**
  2357. * 售后 相关路由
  2358. */
  2359. Route::group('refund', function () {
  2360. //售后列表
  2361. Route::get('list', 'v1.supplier.RefundOrder/getRefundList')->option(['real_name' => '售后订单列表']);
  2362. //商家同意退款,等待用户退货
  2363. Route::get('agree/:order_id', 'v1.supplier.RefundOrder/agreeRefund')->option(['real_name' => '商家同意退款,等待用户退货']);
  2364. //售后订单备注
  2365. Route::put('remark/:id', 'v1.supplier.RefundOrder/remark')->option(['real_name' => '售后订单备注']);
  2366. //售后订单退款表单
  2367. Route::get('refund/:id', 'v1.supplier.RefundOrder/refund')->name('StoreOrderRefund')->option(['real_name' => '售后订单退款表单']);
  2368. //售后订单退款
  2369. Route::put('refund/:id', 'v1.supplier.RefundOrder/update_refund')->name('StoreOrderUpdateRefund')->option(['real_name' => '售后订单退款']);
  2370. //售后详情
  2371. Route::get('detail/:id', 'v1.supplier.RefundOrder/refundDetail')->option(['real_name' => '售后订单详情']);
  2372. });
  2373. })->middleware([
  2374. \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
  2375. \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
  2376. \app\http\middleware\admin\AdminLogMiddleware::class
  2377. ]);
  2378. /**
  2379. * miss 路由
  2380. */
  2381. Route::miss(function () {
  2382. if (app()->request->isOptions()) {
  2383. $header = Config::get('cookie.header');
  2384. $header['Access-Control-Allow-Origin'] = app()->request->header('origin');
  2385. return Response::create('ok')->code(200)->header($header);
  2386. } else
  2387. return Response::create()->code(404);
  2388. });
  2389. })->prefix('admin.')->middleware(InstallMiddleware::class)->middleware(\app\http\middleware\AllowOriginMiddleware::class);