企微短剧业务系统

api.php 58KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | API Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register API routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | is assigned the "api" middleware group. Enjoy building your API!
  12. |
  13. */
  14. Route::middleware('auth:api')->get('/user', function (Request $request) {
  15. return $request->user();
  16. });
  17. # 简单的登录
  18. Route::get('/login', 'Api\SysUserController@login');
  19. # 客户来源列表
  20. Route::get('/customer/addWayList', 'Api\CustomerController@addWayList');
  21. # 测试视图查询
  22. Route::any('/customer/test', 'Api\TestController@customer');
  23. Route::get('/radar/traceLinkGet', 'Api\TestController@traceLink');
  24. Route::get('/customer/getExternalUserid', 'Api\TestController@getExternalUserid');
  25. # 获取分表信息
  26. Route::get('/getLabel/{corpid}', 'Api\TestController@getLabel');
  27. # 获取用户授权信息
  28. Route::get('/empower', 'Api\AuthController@getAuthorize');
  29. # 获取jsapi授权相关信息
  30. Route::get('/jsapi/auth', 'Api\AuthController@authData');
  31. # 网页授权通过code获取用户信息
  32. Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
  33. # 网页授权过程异常上报
  34. Route::get('/oauth2/warnReport', 'Api\AuthController@warnReport');
  35. # 安卓工具异常数据上报
  36. Route::post('/android/warnReport', 'Api\AndroidToolController@warnReport');
  37. # 获取客服已分配的客户列表
  38. Route::get('/task/customerList', 'Api\BatchAddCustomerController@customerList');
  39. # 添加客户行为数据上报
  40. Route::get('/addCustomer/dataReporting', 'Api\BatchAddCustomerController@dataReporting');
  41. # 接收用户日志测试
  42. Route::post('/android/sendLogEmail', 'Api\AndroidToolController@sendLogEmail');
  43. # 智能雷达
  44. Route::group(['prefix' => 'radarPage'], function() {
  45. Route::get('detail', 'Api\RadarController@radarDetailForH5'); // 获取H5页面需要展示的雷达内容
  46. Route::get('report', 'Api\RadarController@behaviorReport'); // 数据上报
  47. });
  48. # 网页授权通过code获取用户信息
  49. Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
  50. # 获取反馈类型列表
  51. Route::get('/opinionFeedbackTypeList', 'Api\Admin\SystemController@opinionFeedbackTypeList');
  52. # 用户反馈
  53. Route::post('/userOpinionFeedbackAction', 'Api\Admin\SystemController@userOpinionFeedbackAction');
  54. # 上传附件
  55. Route::post('uploadFileToOss', 'Api\MaterialController@uploadFileToOss');
  56. # 登录之后才可以访问
  57. Route::group(['namespace' => 'Api', 'middleware' => ['api.login']], function () {
  58. # 获取预授权码
  59. Route::get('/authCode', 'AuthController@getPreAuthCode');
  60. # 获取企业内用户列表
  61. Route::get('/sys/userList', 'SysUserController@userList');
  62. # 用户反馈列表
  63. Route::post('/sys/userOpinionFeedbackList', 'Admin\SystemController@userOpinionFeedbackList');
  64. # 群发消息
  65. Route::group(['prefix'=>'massMsg'],function() {
  66. Route::post('set', 'MassMsgController@setRule'); // 设置群发规则
  67. Route::get('lists', 'MassMsgController@ruleLists'); // 群发规则列表
  68. Route::get('detail', 'MassMsgController@ruleDetail'); // 群发规则详情
  69. Route::get('customerMatchCount', 'MassMsgController@customerMatchCount'); // 群发规则匹配客户数查询
  70. Route::get('updateStatus', 'MassMsgController@updateStatus'); // 群发规则状态变更
  71. Route::get('noticeUser', 'MassMsgController@noticeUser'); // 给员工群发记录未发送成员发送消息提醒
  72. Route::get('data/overview', 'MassMsgController@overview'); //数据统计纵览
  73. Route::get('data/sender_list', 'MassMsgController@sender_list'); //发送成员列表
  74. Route::get('data/sender_list/export', 'MassMsgController@sender_list_export'); //发送成员导出
  75. Route::get('massSendCustList', 'MassMsgController@massSendCustList'); //发送客户列表
  76. Route::get('massSendCustList/export', 'MassMsgController@massSendCustListExport'); //发送客户列表
  77. Route::get('sendNoticeList', 'MassMsgController@sendNoticeList');
  78. Route::get('getLicenseExpirationUserList', 'MassMsgController@getLicenseExpirationUserList');
  79. Route::get('sendNoticeListNew', 'MassMsgController@sendNoticeListNew');
  80. });
  81. # 停止企业群发消息
  82. Route::group(['prefix'=>'massMsgCancel'],function() {
  83. Route::post('setConfig', 'MassMsgCancelController@setConfig'); // 设置企业群发消息停止任务
  84. Route::get('taskList', 'MassMsgCancelController@taskList'); // 群发停止任务列表
  85. });
  86. # 新用户欢迎语
  87. Route::group(['prefix'=>'welcomeMsg'],function() {
  88. Route::post('set', 'WelcomeMsgController@setRule'); // 设置新用户欢迎语规则
  89. Route::get('lists', 'WelcomeMsgController@ruleLists'); // 新用户欢迎语规则列表
  90. Route::get('detail', 'WelcomeMsgController@ruleDetail'); // 新用户欢迎语规则详情
  91. Route::get('updateStatus', 'WelcomeMsgController@updateStatus'); // 新用户欢迎语规则状态变更
  92. Route::get('ruleDel', 'WelcomeMsgController@ruleDel'); // 新用户欢迎语规则状态变更
  93. Route::post('strLength', 'WelcomeMsgController@strLength'); // 获取欢迎语内容长度
  94. });
  95. # 素材管理
  96. Route::group(['prefix'=>'material'],function() {
  97. Route::post('upload', 'MaterialController@upload'); // 上传素材
  98. Route::post('uploadFileToOss', 'MaterialController@uploadFileToOss'); // 上传文件到阿里云oss
  99. Route::post('uploadFileByUrl', 'MaterialController@uploadFileByUrl'); // 通过图片url上传文件到阿里云oss
  100. });
  101. # 充值订单管理
  102. Route::group(['prefix'=>'order'],function() {
  103. Route::post('stat', 'OrderController@dataStat'); // 订单数据汇总
  104. Route::post('lists', 'OrderController@lists'); // 企微订单列表
  105. Route::post('actionUpload', 'OrderController@actionUpload'); // 手动上报订单数据
  106. # 订单导出
  107. Route::get('orderExport', 'OrderController@orderExport');
  108. Route::get('orderExportOffline', 'OrderController@orderExportOffline');
  109. Route::get('orderExportList', 'OrderController@orderExportList');
  110. # 数据看板订单列表
  111. Route::get('orderList', 'OrderController@orderList');
  112. # 平台列表
  113. Route::get('platformList', 'OrderController@platformList');
  114. # 设置第三方平台订单金额分成比例
  115. Route::post('setShareInProportionConf', 'OrderController@setShareInProportionConf');
  116. # 获取第三方平台订单金额分成比例
  117. Route::get('getShareInProportionConf', 'OrderController@getShareInProportionConf');
  118. });
  119. # 朋友圈消息
  120. Route::group(['prefix'=>'momentMsg'],function() {
  121. Route::post('set', 'MomentController@setRule'); // 设置朋友圈任务规则
  122. Route::get('lists', 'MomentController@taskList'); // 朋友圈任务规则列表
  123. Route::get('detail', 'MomentController@taskDetail'); // 朋友圈任务规则详情
  124. Route::get('customerMatchCount', 'MomentController@customerMatchCount'); // 朋友圈任务匹配客户数查询
  125. Route::get('changeStatus', 'MomentController@changeStatus'); // 朋友圈任务状态变更
  126. Route::get('momentInteract', 'MomentController@momentInteract'); // 朋友圈点赞评论详情
  127. Route::get('momentRecordList', 'MomentController@momentRecordList'); // 朋友圈发送记录列表
  128. Route::get('noticeUser', 'MomentController@noticeUser'); // 给朋友圈消息未发送成员发送消息提醒
  129. });
  130. # 批量加好友
  131. Route::group(['prefix'=>'BatchAddCustomer'],function() {
  132. Route::post('editConfig', 'BatchAddCustomerController@setAutomateConfig'); // 配置自动提醒及自动回收
  133. Route::get('configInfo', 'BatchAddCustomerController@configInfo'); // 获取自动提醒及自动回收配置信息
  134. Route::post('noticeUser', 'BatchAddCustomerController@noticeUser'); // 手动提醒客服完成加好友任务
  135. Route::get('dataSummary', 'BatchAddCustomerController@dataSummary'); // 数据概览
  136. Route::get('statistic', 'BatchAddCustomerController@statistic'); // 好友添加统计列表
  137. });
  138. # 更新企业所有信息
  139. Route::get('/corp/getCorCustomerList', 'CustomerController@getCorCustomerList');
  140. # 获取标签列表
  141. Route::get('/tag/tagList', 'TagController@tagList');
  142. # 检索客服列表
  143. Route::get('/user/userList', 'UserController@userList');
  144. # 获取可用的账号许可数量
  145. Route::get('/license/count', 'UserController@licenseCount');
  146. # 分配许可
  147. Route::get('/license/activeAccount', 'UserController@activeAccount');
  148. # 转移许可
  149. Route::get('/license/transfer', 'UserController@transfer');
  150. # 批量分配许可
  151. Route::post('/license/batchActiveAccount', 'UserController@batchActiveAccount');
  152. # 创建许可续期任务
  153. Route::post('/license/createRenewalJob', 'UserController@createRenewalJob');
  154. # 许可续期任务列表
  155. Route::get('/license/renewalJobList', 'UserController@renewalJobList');
  156. # 许可续期任务详情
  157. Route::get('/license/renewalJobDetail', 'UserController@renewalJobDetail');
  158. # 取消许可续期任务
  159. Route::post('/license/cancelRenewalJob', 'UserController@cancelRenewalJob');
  160. # 客户列表
  161. Route::get('/customer/customerList', 'CustomerController@customerList');
  162. # 客户详情概览
  163. Route::get('/customer/customerDetail', 'CustomerController@customerDetail');
  164. # 批量编辑标签接口
  165. Route::post('/customer/setCustomerTag', 'TagController@setCustomerTag');
  166. # 查询批量编辑标签结果
  167. Route::get('/customer/batchMarkTagResult', 'TagController@batchCustomerTagResult');
  168. # 客户动态
  169. Route::get('/customer/customerDynamicList', 'CustomerController@customerDynamicList');
  170. # 客户详情标签展示(编辑时使用)
  171. Route::get('/customer/customerDetailTagList', 'CustomerController@customerDetailTagList');
  172. # 客户详情标签编辑
  173. Route::post('/customer/customerDetailTagUpdate', 'CustomerController@customerDetailTagUpdate');
  174. # 流失客户列表
  175. Route::get('/customer/lossCustomerList', 'CustomerController@lossCustomerList');
  176. # 客户详情订单列表
  177. Route::get('/customer/customerOrderList', 'CustomerController@customerOrderList');
  178. # 客户信息编辑
  179. Route::post('/customer/customerInfoUpdate', 'CustomerController@customerInfoUpdate');
  180. # 将客户加入黑名单
  181. Route::post('/customer/moveCustomerToBlackList', 'CustomerController@moveCustomerToBlackList');
  182. # 将客户移除黑名单
  183. Route::post('/customer/removeCustomerFromBlackList', 'CustomerController@removeCustomerFromBlackList');
  184. # 黑名单列表
  185. Route::get('/customer/blackList', 'CustomerController@blackListNew');
  186. // Route::get('/customer/blackListNew', 'CustomerController@blackListNew');
  187. # 待分配客户列表
  188. Route::get('/customer/unassignedCustomerList', 'CustomerController@unassignedCustomerList');
  189. # 客户迁移
  190. Route::post('/customer/transferCustomer', 'CustomerController@transferCustomerNew');
  191. # 客户分配列表
  192. Route::get('/customer/customerAssignmentList', 'CustomerController@customerAssignmentList');
  193. Route::get('/customer/customerAssignmentRecordList', 'CustomerController@customerAssignmentRecordList');
  194. # 成员管理
  195. Route::get('/user/users', 'UserController@users');
  196. Route::get('/user/user_info', 'UserController@user_info');
  197. Route::get('/user/user_conversation_report', 'UserController@conversation_report');
  198. Route::get('/user/user_conversation_report_total', 'UserController@conversation_report_total');
  199. # 部门列表
  200. Route::get('/user/departments', 'UserController@departments');
  201. # 添加标签
  202. Route::post('/tag/addTagGroup', 'TagController@addTagGroup');
  203. # 添加单个标签
  204. Route::post('/tag/addSingleTag', 'TagController@addSingleTag');
  205. # 标签组排序
  206. Route::post('/tag/updateTagGroupOrder', 'TagController@updateTagGroupOrder');
  207. # 删除标签组
  208. Route::post('/tag/deleteTagGroup', 'TagController@deleteTagGroup');
  209. # 编辑标签组
  210. Route::post('/tag/updateTagGroup', 'TagController@updateTagGroup');
  211. # 同步企微的标签
  212. Route::get('/tag/syncCorpTag', 'TagController@syncCorpTag');
  213. # 公众号数据
  214. Route::get('/statistics/wechatAccountData', 'DataStatisticsController@wechatAccountData');
  215. Route::get('/statistics/OfficialAccountData', 'DataStatisticsController@OfficialAccountData');
  216. # 短剧数据
  217. Route::get('/statistics/playletData', 'DataStatisticsController@playletData');
  218. # 获取短剧数据去重用户数
  219. Route::get('/statistics/playletDataUniqueUser', 'DataStatisticsController@playletDataUniqueUser');
  220. # 获取投手投放数据去重用户数
  221. // Route::get('/statistics/throwPersonDataUniqueUser', 'DataStatisticsController@throwPersonDataUniqueUser');
  222. # 获取投手数据去重用户数
  223. Route::get('/statistics/pitcherDataUniqueUser', 'DataStatisticsController@pitcherDataUniqueUser');
  224. # 短剧粉丝激活趋势
  225. Route::get('/statistics/activeFansData', 'DataStatisticsController@activeFansData');
  226. # 授权企微账号列表
  227. Route::get('/authorize/corpList', 'CorpController@lists');
  228. # 管理的账号组列表
  229. Route::get('/authorize/accountGroupList', 'Admin\AdminController@accountGroupList');
  230. # 权限列表
  231. Route::get("/permission/list",'Admin\PermissionController@permission_list');
  232. # 添加顶级菜单
  233. Route::any("/permission/l1/add",'Admin\PermissionController@create_permission_l1');
  234. # 添加次级菜单
  235. Route::any("/permission/l2/add",'Admin\PermissionController@create_permission_l2');
  236. # 权限排序
  237. Route::post("/permission/be_sort","Admin\PermissionController@be_sort");
  238. # 权限删除
  239. Route::get("/permission/delete","Admin\PermissionController@permission_del");
  240. # 编辑顶级权限
  241. Route::any("/permission/l1/edit",'Admin\PermissionController@edit_permission_l1');
  242. #编辑非顶级权限
  243. Route::any("/permission/l2/edit",'Admin\PermissionController@edit_permission_l2');
  244. #权限树
  245. Route::get("/permission/tree",'Admin\PermissionController@permission_tree');
  246. /*
  247. * 角色管理
  248. */
  249. #添加角色
  250. Route::any("/role/add",'Admin\RoleController@create_role');
  251. #编辑角色
  252. Route::any("/role/edit",'Admin\RoleController@edit_role');
  253. #查看角色
  254. Route::get("/role/list",'Admin\RoleController@role_list');
  255. #查看角色详情
  256. Route::get("/role/info",'Admin\RoleController@role_info');
  257. #删除角色
  258. Route::any("/role/del",'Admin\RoleController@del_role');
  259. # 获取角色类型
  260. Route::get('/role/type', 'Admin\RoleController@role_type');
  261. #首页客户数据
  262. Route::get("/stat/custTotal",'StatisticsController@custTotal');
  263. Route::get("/stat/custTrends",'StatisticsController@custTrends');
  264. #推广数据
  265. Route::get("/stat/playletPopulariz",'StatisticsController@playletPopulariz');
  266. Route::get("/stat/momentsPopulariz",'StatisticsController@momentsPopulariz');
  267. Route::get("/stat/popularizAccounts",'StatisticsController@popularizAccounts');
  268. Route::get("/stat/popularizPlaylets",'StatisticsController@popularizPlaylets');
  269. Route::get("/stat/popularizCompanys",'StatisticsController@popularizCompanys');
  270. #运营数据
  271. Route::get("/stat/operateDayRetrieve",'StatisticsController@operateDayRetrieve');
  272. Route::get('/stat/operateDayRetrieveByAccount', 'StatisticsController@operateDayRetrieveByAccount');
  273. # 运营端数据
  274. Route::group(['prefix'=>'operate'],function() {
  275. Route::get('accountData', 'OperateController@accountData'); // 运营公众号数据
  276. Route::get('accountDataSummary', 'OperateController@accountDataSummary'); // 运营公众号数据汇总
  277. Route::get('data', 'OperateController@data'); // 运营数据
  278. Route::get('dataSummary', 'OperateController@dataSummary'); // 运营数据汇总
  279. });
  280. #投手数据
  281. Route::get("/stat/throwPersonData",'StatisticsController@throwPersonData');
  282. Route::get("/stat/throwPersonList",'StatisticsController@throwPersonList');
  283. #公众号趋势
  284. Route::get("/stat/officialTrendTotal",'StatisticsController@officialTrendTotal');
  285. Route::get("/stat/officialTrendList",'StatisticsController@officialTrendList');
  286. Route::get("/stat/chargeUserUnique",'StatisticsController@chargeUserUnique');
  287. Route::get("/stat/firstDayChargeUserUnique",'StatisticsController@firstDayChargeUserUnique');
  288. #客户汇总数据
  289. Route::get("/stat/custTotalNew",'StatisticsController@custTotalNew');
  290. Route::get("/stat/custTrendsNew",'StatisticsController@custTrendsNew');
  291. Route::get("/stat/custDataList",'StatisticsController@custDataList');
  292. /***
  293. * 管理员管理
  294. */
  295. #管理员列表
  296. Route::get("/admin/list","Admin\AdminController@admin_list");
  297. Route::get("/admin/info","Admin\AdminController@admin_info");
  298. #列出可选主体
  299. Route::get("/all_corp/list","Admin\AdminController@corp_list");
  300. #列出可选角色
  301. Route::get("/all_role/list","Admin\AdminController@role_list");
  302. #管理员创建
  303. Route::any("/admin/create","Admin\AdminController@create_admin");
  304. #管理员编辑
  305. Route::any("/admin/edit","Admin\AdminController@edit_admin");
  306. #管理员删除
  307. Route::any("/admin/del","Admin\AdminController@delete_admin");
  308. # 企微批量分配绑定成员
  309. Route::post('/admin/corpBindMultipleUser', 'Admin\AdminController@corpBindMultipleUser');
  310. # 企微已分配成员列表
  311. Route::get('/admin/getCorpBindUserList', 'Admin\AdminController@getCorpBindUserList');
  312. #用户权限列表
  313. Route::get("/userPermission/list","Admin\UserPermissionController@index");
  314. Route::get("/userPermission/userProfile","Admin\UserPermissionController@user_profile");
  315. # 获取用户是否有导出权限
  316. Route::get("/userPermission/exportAuth","Admin\UserPermissionController@exportAuth");
  317. Route::group(['prefix' => 'statistics'], function() {
  318. # 短剧数据趋势
  319. Route::get('playletDataTrend', 'DataStatisticsController@playletDataTrend');
  320. # 循环数据报表
  321. Route::get('reg_range_report', 'Report\AdvertiserController@reg_range_report');
  322. Route::get('reg_range_report_new', 'Report\AdvertiserController@reg_range_report_new');
  323. Route::get('dataCycleList', 'DataStatisticsController@dataCycleList');
  324. Route::get('dataCycleListByAccount', 'DataStatisticsController@dataCycleListByAccount');
  325. # 花生平台数据循环统计
  326. Route::get('HuaShengDataCycleList', 'DataStatisticsController@HuaShengDataCycleList');
  327. # 花生数据循环统计平台列表
  328. Route::get('HuaShengDataPlatformList', 'DataStatisticsController@HuaShengDataPlatformList');
  329. # 短剧投放趋势数据
  330. Route::get('playletTrendData', 'DataStatisticsController@playletTrendData');
  331. # 列表
  332. Route::get('publicAccountDataList', 'StatisticsController@publicAccountDataList');
  333. # 总概
  334. Route::get('publicAccountDataSummary', 'StatisticsController@publicAccountDataSummary');
  335. # 充值数据
  336. Route::get('cumulativeRecoveryData', 'StatisticsController@cumulativeRecoveryData');
  337. # 客服数据
  338. Route::get('customerServiceData', 'StatisticsController@customerServiceData');
  339. # 客服数据总概
  340. Route::get('customerServiceDataTotal', 'StatisticsController@customerServiceDataTotal');
  341. # 投手ADQ数据汇总
  342. Route::get('pitcherAdqAccountData', 'DataStatisticsController@pitcherAdqAccountData');
  343. });
  344. # 新客户详情概览
  345. Route::get('/customer/customerDetails', 'CustomerController@customerDetails');
  346. # 投手数据
  347. Route::get("/stat/pitcherData",'StatisticsController@pitcherData');
  348. # 编辑客服状态
  349. Route::post('/user/updateUserStatus', 'UserController@updateUserStatus');
  350. ## 预警相关
  351. # 批量加好友
  352. Route::group(['prefix'=>'warn'],function() {
  353. # 预警用户组列表
  354. Route::get("groupList",'WarnController@groupList');
  355. # 预警用户组添加
  356. Route::post("groupAdd",'WarnController@groupAdd');
  357. # 预警用户组数据详情
  358. Route::get("groupDetail",'WarnController@groupDetail');
  359. # 预警用户组编辑
  360. Route::post("groupEdit",'WarnController@groupEdit');
  361. # 预警用户组开启和禁用
  362. Route::post("groupEableOp",'WarnController@groupEableOp');
  363. # 预警规则配置列表
  364. Route::get("ruleConfList",'WarnController@ruleConfList');
  365. # 预警规则配置操作
  366. Route::post("ruleConfOperate",'WarnController@ruleConfOperate');
  367. # 预警人员列表
  368. Route::get("userList",'WarnController@userList');
  369. # 预警人员操作
  370. Route::post("userOperate",'WarnController@userOperate');
  371. # 预警客服列表
  372. Route::get("djuserList",'WarnController@djuserList');
  373. # 企微用户规模阈值列表(废弃)
  374. Route::get('corpUserScaleWarnThresholdList', 'WarnController@corpUserScaleWarnThresholdList');
  375. # 企微用户规模预警设置(废弃)
  376. Route::post('setCorpUserScaleWarnConf', 'WarnController@setCorpUserScaleWarnConf');
  377. # 企微用户规模预警设置(新)
  378. Route::post('setCorpUserScaleWarnConfNew', 'WarnController@setCorpUserScaleWarnConfNew');
  379. # 企微用户规模预警展示
  380. Route::post('getCorpUserScaleWarnConf', 'WarnController@getCorpUserScaleWarnConf');
  381. });
  382. # 账号异常预警
  383. Route::group(['prefix' => 'abnormalAccount'], function() {
  384. # 设置预警规则
  385. Route::post('setConf', 'AbnormalAccountController@setConf');
  386. # 预警规则列表
  387. Route::get('confList', 'AbnormalAccountController@confList');
  388. # 预警规则详情
  389. Route::get('confDetail', 'AbnormalAccountController@confDetail');
  390. # 预警规则开启关闭
  391. Route::post('updateConfStatus', 'AbnormalAccountController@updateConfStatus');
  392. });
  393. # 批量添加客户--导入
  394. Route::post('/customer/batchAddCustomerImport', 'CustomerController@batchAddCustomerImport');
  395. # 批量添加客户--二次确认
  396. Route::post('/customer/batchAddCustomerImportConfirm', 'CustomerController@batchAddCustomerImportConfirm');
  397. # 客户导入列表
  398. Route::get('/customer/batchAddCustomerDetailsList', 'CustomerController@batchAddCustomerDetailsList');
  399. # 客户导入记录列表
  400. Route::get('/customer/batchAddCustomerRecordList', 'CustomerController@batchAddCustomerRecordList');
  401. # 客户导入记录详情
  402. Route::get('/customer/batchAddCustomerRecordDetail', 'CustomerController@batchAddCustomerRecordDetail');
  403. # 批量分配客户
  404. Route::post('/customer/batchDistributionCustomer', 'CustomerController@batchDistributionCustomer');
  405. # 删除导入记录
  406. Route::post('/customer/deleteRecord', 'CustomerController@deleteRecord');
  407. # 删除导入客户
  408. Route::post('/customer/deleteDetail', 'CustomerController@deleteDetail');
  409. # 批量提醒
  410. Route::post('/customer/batchRemind', 'CustomerController@batchRemind');
  411. # 批量添加客户 导入excel
  412. Route::post('/material/importExcel', 'MaterialController@importExcel');
  413. # 预警用户组列表
  414. Route::get("/warn/groupList",'WarnController@groupList');
  415. # 预警用户组添加
  416. Route::post("/warn/groupAdd",'WarnController@groupAdd');
  417. # 预警用户组数据详情
  418. Route::get("/warn/groupDetail",'WarnController@groupDetail');
  419. # 预警用户组编辑
  420. Route::post("/warn/groupEdit",'WarnController@groupEdit');
  421. # 预警规则配置列表
  422. Route::get("/warn/ruleConfList",'WarnController@ruleConfList');
  423. # 预警规则配置操作
  424. Route::post("/warn/ruleConfOperate",'WarnController@ruleConfOperate');
  425. # 快捷话术
  426. Route::group(['prefix' => 'chatMenu'], function () {
  427. Route::post('createChatMenuGroup', 'ChatMenuController@createChatMenuGroup');# 创建话术分组
  428. Route::get('chatMenuGroupList', 'ChatMenuController@chatMenuGroupList');# 话术分组列表
  429. Route::post('updateChatMenuGroup', 'ChatMenuController@updateChatMenuGroup');# 编辑话术分组
  430. Route::post('deleteChatMenuGroup', 'ChatMenuController@deleteChatMenuGroup');# 删除话术分组
  431. Route::post('updateChatMenuGroupSortOrder', 'ChatMenuController@updateChatMenuGroupSortOrder');# 话术分组排序
  432. Route::post('createChatMenuRule', 'ChatMenuController@createChatMenuRule');# 创建话术规则
  433. Route::get('chatMenuRuleList', 'ChatMenuController@chatMenuRuleList');# 话术规则列表
  434. Route::post('chatMenuRuleDetail', 'ChatMenuController@chatMenuRuleDetail');# 话术规则详情
  435. Route::post('updateChatMenuRule', 'ChatMenuController@updateChatMenuRule');# 编辑话术规则
  436. Route::post('deleteChatMenuRule', 'ChatMenuController@deleteChatMenuRule');# 删除话术规则
  437. Route::post('updateChatMenuRuleSortOrder', 'ChatMenuController@updateChatMenuRuleSortOrder');# 话术规则排序
  438. });
  439. ## 渠道活码
  440. # 活码分组
  441. Route::post("/sq/addSqgroup",'SourceQrcodeController@addSqgroup');
  442. Route::post("/sq/editSqgroup",'SourceQrcodeController@editSqgroup');
  443. Route::post("/sq/editGroupSort",'SourceQrcodeController@editGroupSort');
  444. Route::post("/sq/delSqGroup",'SourceQrcodeController@delSqGroup');
  445. Route::get("/sq/sqGroupList",'SourceQrcodeController@sqGroupList');
  446. # 渠道活码
  447. Route::post("/sq/addSourceQrcode",'SourceQrcodeController@addSourceQrcode');
  448. Route::post("/sq/editSourceQrcode",'SourceQrcodeController@editSourceQrcode');
  449. Route::get("/sq/sourceQrcodeList",'SourceQrcodeController@sourceQrcodeList');
  450. Route::post("/sq/delSourceQrcode",'SourceQrcodeController@delSourceQrcode');
  451. Route::get("/sq/sourceQrcodeDetail",'SourceQrcodeController@sourceQrcodeDetail');
  452. #推广数据
  453. Route::get("/populariz/ruleLists",'PopularizController@ruleLists');
  454. Route::get("/populariz/ruleTotal",'PopularizController@ruleTotal');
  455. Route::get("/populariz/taskList",'PopularizController@taskList');
  456. Route::get("/populariz/momentTotal",'PopularizController@momentTotal');
  457. Route::get('/populariz/promotionData', 'PopularizController@promotionData');
  458. # 送达数据
  459. Route::get('/service/massMsg', 'DataStatisticsController@massMsgServiceData');
  460. Route::get('/service/chatGroupMassMsg', 'DataStatisticsController@chatGroupMassMsgServiceData');
  461. Route::get('/service/periodMassMsg', 'DataStatisticsController@periodMassMsgServiceData');
  462. # 数据分析概览
  463. Route::get("/sq/dataView",'SourceQrcodeController@dataView');
  464. # 数据分析趋势
  465. Route::get("/sq/dataTrend",'SourceQrcodeController@dataTrend');
  466. # 数据统计
  467. Route::get("/sq/customerList",'SourceQrcodeController@customerList');
  468. Route::get("/sq/staffList",'SourceQrcodeController@staffList');
  469. # 智能雷达
  470. Route::group(['prefix' => 'radar'], function() {
  471. # 创建雷达组
  472. Route::post('radarGroupCreate', 'RadarController@radarGroupCreate');
  473. # 雷达组列表
  474. Route::get('radarGroupList', 'RadarController@radarGroupList');
  475. # 编辑雷达组
  476. Route::post('radarGroupUpdate', 'RadarController@radarGroupUpdate');
  477. # 雷达组排序
  478. Route::post('radarGroupSortUpdate', 'RadarController@radarGroupSortUpdate');
  479. # 删除雷达组
  480. Route::post('radarGroupDelete', 'RadarController@radarGroupDelete');
  481. # 创建雷达
  482. Route::post('radarCreate', 'RadarController@radarCreate');
  483. # 雷达列表
  484. Route::get('radarList', 'RadarController@radarList');
  485. # 雷达详情
  486. Route::get('radarDetail', 'RadarController@radarDetail');
  487. # 雷达编辑
  488. Route::post('radarUpdate', 'RadarController@radarUpdate');
  489. # 雷达排序
  490. Route::post('radarSortUpdate', 'RadarController@radarSortUpdate');
  491. # 删除雷达
  492. Route::post('radarDelete', 'RadarController@radarDelete');
  493. # 数据分析--总概
  494. Route::get('dataStatisticsTotal', 'RadarController@dataStatisticsTotal');
  495. # 数据分析--列表
  496. Route::get('dataStatisticsList', 'RadarController@dataStatisticsList');
  497. # 渠道列表
  498. Route::get('channelList', 'RadarController@channelList');
  499. });
  500. # 侧边栏-客户画像
  501. Route::group(['prefix'=>'portrait'],function() {
  502. # 画像配置列表
  503. Route::get("confList",'PortraitController@confList');
  504. # 画像配置操作
  505. Route::post("confOperate",'PortraitController@confOperate');
  506. # 画像配置添加属性
  507. Route::post("confAdd",'PortraitController@confAdd');
  508. # 画像配置修改属性
  509. Route::post("confEdit",'PortraitController@confEdit');
  510. });
  511. # 客户群群发
  512. Route::group(['prefix' => 'chatGroupMassMsg'], function() {
  513. # 设置群发规则
  514. Route::post('setRule', 'ChatGroupController@setChatGroupMassMsg');
  515. # 群发规则列表
  516. Route::get('ruleLists', 'ChatGroupController@ruleLists');
  517. # 群发规则详情
  518. Route::get('ruleDetail', 'ChatGroupController@ruleDetail');
  519. # 群发规则禁用启用
  520. Route::post('updateStatus', 'ChatGroupController@updateStatus');
  521. # 群发规则消息提醒
  522. Route::post('noticeUser', 'ChatGroupController@noticeUser');
  523. # 群发详情-客户群接收列表
  524. Route::get('chatGroupReceiveDetail', 'ChatGroupController@chatGroupReceiveDetail');
  525. });
  526. # 客户群管理
  527. Route::group(['prefix' => 'chatGroup'], function() {
  528. # 群列表
  529. Route::get('groupList', 'ChatGroupController@groupList');
  530. # 获取企业所有客户群去重后的客户数
  531. Route::get('uniqueMemberCount', 'ChatGroupController@uniqueMemberCount');
  532. # 客户群概况
  533. Route::get('condition', 'ChatGroupController@condition');
  534. # 群成员列表
  535. Route::get('memberList', 'ChatGroupController@memberList');
  536. # 群主列表
  537. Route::get('ownerList', 'ChatGroupController@chatGroupOwnerList');
  538. # 获取账号下各企微的群主列表
  539. Route::get('ownerListOfCompany', 'ChatGroupController@OwnerListOfCompany');
  540. # 客户群检索列表
  541. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  542. # 简版群主列表
  543. Route::get('chatGroupOwnerIndex', 'ChatGroupController@chatGroupOwnerIndex');
  544. # 邀请入群规则配置
  545. Route::post('setInviteRule', 'ChatGroupController@setInviteRule');
  546. # 邀请入群规则列表
  547. Route::get('inviteRuleList', 'ChatGroupController@inviteRuleList');
  548. # 邀请入群规则详情
  549. Route::get('inviteRuleDetail', 'ChatGroupController@inviteRuleDetail');
  550. # 删除邀请入群规则
  551. Route::get('inviteRuleDel', 'ChatGroupController@inviteRuleDel');
  552. # 修改邀请入群规则状态
  553. Route::get('inviteRuleStatusChange', 'ChatGroupController@inviteRuleStatusChange');
  554. # 客户群数据
  555. Route::post('chatGroupStatistic', 'ChatGroupController@chatGroupStatistic');
  556. # 客户群数据概览
  557. Route::post('chatGroupCondition', 'ChatGroupController@chatGroupCondition');
  558. # 手动同步企微客户群列表
  559. Route::get('syncCorpChatGroup', 'ChatGroupController@syncCorpChatGroup');
  560. # 添加客户群欢迎语素材
  561. Route::post('setWelcomeTemplate', 'ChatGroupController@setWelcomeTemplate');
  562. # 客户群欢迎语素材列表
  563. Route::get('welcomeTemplateList', 'ChatGroupController@welcomeTemplateList');
  564. # 客户群欢迎语素材详情
  565. Route::get('welcomeTemplateDetail', 'ChatGroupController@welcomeTemplateDetail');
  566. # 删除客户群欢迎语素材
  567. Route::post('delWelcomeTemplate', 'ChatGroupController@delWelcomeTemplate');
  568. # 重置退群客户重新邀请入群时间点游标
  569. Route::get('resetSupplementaryInviteTime', 'ChatGroupController@resetSupplementaryInviteTime');
  570. });
  571. # 群渠道活码
  572. Route::group(['prefix' => 'qrcodeChatGroup'], function() {
  573. # 群活码创建
  574. Route::post('setRule', 'GroupChatJoinWayController@setRule');
  575. # 群活码编辑
  576. Route::post('editRule', 'GroupChatJoinWayController@editRule');
  577. # 群活码列表
  578. Route::get('ruleList', 'GroupChatJoinWayController@ruleList');
  579. # 群活码禁用
  580. Route::get('delQrcode', 'GroupChatJoinWayController@delQrcode');
  581. # 群活码详情
  582. Route::get('ruleDetail', 'GroupChatJoinWayController@ruleDetail');
  583. # 数据总概
  584. Route::get('condition', 'GroupChatJoinWayController@condition');
  585. # 群活码每日数据分析
  586. Route::get('dailyReport', 'GroupChatJoinWayController@dailyReport');
  587. # 群活码扫码进群客户列表
  588. Route::get('customerList', 'GroupChatJoinWayController@customerList');
  589. # 群活码配置群的数据分析
  590. Route::get('analysis', 'GroupChatJoinWayController@analysis');
  591. # 获取群组下的群活码规则数
  592. Route::get('chatGroupCountOfGroup', 'GroupChatJoinWayController@chatGroupCountOfGroup');
  593. # 客户群检索列表
  594. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  595. });
  596. # 账号数据趋势
  597. Route::group(['prefix' => 'accountDataTrend'], function() {
  598. # Adq账号数据
  599. Route::post('adqAccount', 'AccountDataTrendController@adqAccount');
  600. # Adq账号总概数据
  601. Route::post('adqAccountSummary', 'AccountDataTrendController@adqAccountSummary');
  602. # Adq账号数据汇总曲线
  603. Route::post('adqAccountCurve', 'AccountDataTrendController@adqAccountCurve');
  604. # Mp账号数据
  605. Route::post('mpAccount', 'AccountDataTrendController@mpAccount');
  606. # Mp账号总概数据
  607. Route::post('mpAccountSummary', 'AccountDataTrendController@mpAccountSummary');
  608. # Mp账号数据汇总曲线
  609. Route::post('mpAccountCurve', 'AccountDataTrendController@mpAccountCurve');
  610. # 各投放渠道累计账号数据
  611. Route::post('account', 'AccountDataTrendController@account');
  612. # 各投放渠道累计账号总概数据
  613. Route::post('accountSummary', 'AccountDataTrendController@accountSummary');
  614. # 各投放渠道累计账号数据汇总曲线
  615. Route::post('accountCurve', 'AccountDataTrendController@accountCurve');
  616. });
  617. # 粉丝激活趋势
  618. Route::group(['prefix' => 'activeFansTrend'], function() {
  619. # Adq粉丝激活趋势
  620. Route::post('adqAccount', 'ActiveFansDataController@adqAccount');
  621. # Adq粉丝激活趋势总概数据
  622. Route::post('adqAccountSummary', 'ActiveFansDataController@adqAccountSummary');
  623. # Adq粉丝激活趋势数据汇总曲线
  624. Route::post('adqAccountCurve', 'ActiveFansDataController@adqAccountCurve');
  625. # mp粉丝激活趋势
  626. Route::post('mpAccount', 'ActiveFansDataController@mpAccount');
  627. # mp粉丝激活趋势总概数据
  628. Route::post('mpAccountSummary', 'ActiveFansDataController@mpAccountSummary');
  629. # mp粉丝激活趋势数据汇总曲线
  630. Route::post('mpAccountCurve', 'ActiveFansDataController@mpAccountCurve');
  631. # 各投放渠道累计账号数据
  632. Route::post('account', 'ActiveFansDataController@account');
  633. # 各投放渠道累计账号总概数据
  634. Route::post('accountSummary', 'ActiveFansDataController@accountSummary');
  635. # 各投放渠道累计账号数据汇总曲线
  636. Route::post('accountCurve', 'ActiveFansDataController@accountCurve');
  637. });
  638. # 获取数据看板更新时间
  639. Route::get('/dataCube/uptime', 'DataStatisticsController@uptime');
  640. # 客户流失数据趋势
  641. Route::group(['prefix' => 'customerLossTrend'], function() {
  642. # 账号客户流失数据趋势
  643. Route::get('account', 'CustomerLossController@accountLossTrend');
  644. # 账号客户流失总概数据
  645. Route::get('summary', 'CustomerLossController@accountLossSummary');
  646. # 账号客户流失趋势曲线
  647. Route::get('curve', 'CustomerLossController@accountLossCurve');
  648. });
  649. # 第三方平台
  650. Route::group(['prefix' => 'platform'], function() {
  651. # 短剧列表
  652. Route::get('playletList', 'PlatformController@playletList');
  653. # 自动创建推广链接
  654. Route::get('createLink', 'PlatformController@createLink');
  655. # 创建编辑短剧组
  656. Route::post('setPlayletGroup', 'PlatformController@setPlayletGroup');
  657. # 短剧组列表
  658. Route::get('playletGroupList', 'PlatformController@playletGroupList');
  659. # 添加短剧人短剧组
  660. Route::get('addPlayletToGroup', 'PlatformController@addPlayletToGroup');
  661. # 短剧组详情
  662. Route::get('playletGroupDetail', 'PlatformController@playletGroupDetail');
  663. # 创建短剧组链接
  664. Route::get('createPlayletGroupLink', 'PlatformController@createPlayletGroupLink');
  665. # 添加剧集到剧集组参数校验
  666. Route::get('paramsValidate', 'PlatformController@paramsValidate');
  667. # 批量创建推广链接
  668. Route::post('batchCreateLink', 'PlatformController@batchCreateLink');
  669. });
  670. # 客服绑定adq投放账号ID
  671. Route::post('/user/bindUserAdqAccountId', 'UserController@bindUserAdqAccountId');
  672. Route::group(['prefix' => 'pitcher'], function() {
  673. # adq投放账号列表
  674. Route::get('adqAccountList', 'PitcherController@adqAccountList');
  675. # adq投放账号绑定投手,剧集
  676. Route::post('adqBindPitcher', 'PitcherController@adqBindPitcher');
  677. # adq绑定投手,剧集列表
  678. Route::get('adqPitcherIndex', 'PitcherController@adqPitcherIndex');
  679. # adq编辑绑定投手 剧集
  680. Route::post('adqEditPitcher', 'PitcherController@adqEditPitcher');
  681. # 编辑adq投放账号绑定企微以及数据源ID
  682. Route::post('adqBindUserActionSetId', 'PitcherController@adqBindUserActionSetId');
  683. # adq投放账号设置回传规则
  684. Route::post('setAdqAccountReportRule', 'PitcherController@setAdqAccountReportRule');
  685. # 投放账号列表(ADQ+MP)
  686. Route::get('adAccountList', 'PitcherController@adAccountList');
  687. # mp投放账号列表
  688. Route::get('wxAccountList', 'PitcherController@wxAccountList');
  689. # 公众号列表
  690. Route::get('officialAccountsList', 'PitcherController@officialAccountsList');
  691. # 剧集列表
  692. Route::get('dramaList', 'PitcherController@dramaList');
  693. # 投手列表
  694. Route::get('pitcherList', 'PitcherController@pitcherList');
  695. # 绑定投手
  696. Route::post('bind', 'PitcherController@bind');
  697. # 投手绑定数据
  698. Route::get('index', 'PitcherController@index');
  699. # 投手绑定数据
  700. Route::post('relaEdit', 'PitcherController@relaEdit');
  701. # 剧集添加
  702. Route::post('dramaAdd', 'PitcherController@dramaAdd');
  703. # 剧集编辑
  704. Route::post('dramaEdit', 'PitcherController@dramaEdit');
  705. # 公众号设置回传规则
  706. Route::post('setReportRule', 'PitcherController@setReportRule');
  707. Route::get('reportRuleList', 'PitcherController@reportRuleList');
  708. # 公众号绑定数据源,企微号
  709. Route::get('getCorpIdList', 'PitcherController@getCorpIdList');
  710. Route::post('setAccountReportConf', 'PitcherController@setAccountReportConf');
  711. # 绑定客服
  712. Route::post('adqAccountBindUserAction', 'PitcherController@adqAccountBindUserAction');
  713. # 已绑定客服列表
  714. Route::get('adqAccountBindUserList', 'PitcherController@adqAccountBindUserList');
  715. # 删除绑定关系
  716. Route::post('adqAccountBindUserDelete', 'PitcherController@adqAccountBindUserDelete');
  717. # 绑定公众号
  718. Route::post('adqAccountBindAppId', 'PitcherController@adqAccountBindAppId');
  719. });
  720. # 临时统计账号相关接口
  721. Route::group(['prefix' => 'provisionalStat'], function() {
  722. # 微信公众号列表
  723. Route::get('wxAccountList', 'ProvisionalStatController@wxAccountList');
  724. # adq投放账号列表
  725. Route::get('adqAccountList', 'ProvisionalStatController@adqAccountList');
  726. # adq账号绑定公众号
  727. Route::post('bind', 'ProvisionalStatController@bind');
  728. });
  729. # 好友共享配置
  730. Route::group(['prefix' => 'customerShare'], function() {
  731. Route::post('setConfig', 'AndroidToolController@takeoverUserBind'); // 好友共享配置绑定
  732. Route::get('configList', 'AndroidToolController@shareConfigList'); // 共享好友配置列表
  733. Route::get('changeStatus', 'AndroidToolController@shareConfigStatusChange'); // 修改配置状态
  734. });
  735. Route::group(['prefix' => 'shortPlayDataTrend'], function() {
  736. # 短剧数据趋势列表
  737. Route::post('adqShortPlayDataTrendList', 'ShortPlayDataTrendController@adqShortPlayDataTrendList');
  738. # 短剧数据趋势曲线(按日汇总)
  739. Route::post('adqShortPlayDataTrendCurve', 'ShortPlayDataTrendController@adqShortPlayDataTrendCurve');
  740. # 短剧数据趋势汇总
  741. Route::post('adqSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@adqSummaryOfShortDramaDataTrends');
  742. # 短剧数据趋势列表
  743. Route::post('mpShortPlayDataTrendList', 'ShortPlayDataTrendController@mpShortPlayDataTrendList');
  744. # 短剧数据趋势曲线(按日汇总)
  745. Route::post('mpShortPlayDataTrendCurve', 'ShortPlayDataTrendController@mpShortPlayDataTrendCurve');
  746. # 短剧数据趋势汇总
  747. Route::post('mpSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@mpSummaryOfShortDramaDataTrends');
  748. # 短剧数据趋势列表
  749. Route::post('shortPlayDataTrendList', 'ShortPlayDataTrendController@shortPlayDataTrendList');
  750. # 短剧数据趋势曲线(按日汇总)
  751. Route::post('shortPlayDataTrendCurve', 'ShortPlayDataTrendController@shortPlayDataTrendCurve');
  752. # 短剧数据趋势汇总
  753. Route::post('summaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrends');
  754. # 短剧数据趋势列表
  755. Route::post('shortPlayDataTrendListByAccount', 'ShortPlayDataTrendController@shortPlayDataTrendListByAccount');
  756. # 短剧数据趋势曲线(按日汇总)
  757. Route::post('shortPlayDataTrendCurveByAccount', 'ShortPlayDataTrendController@shortPlayDataTrendCurveByAccount');
  758. # 短剧数据趋势汇总
  759. Route::post('summaryOfShortDramaDataTrendsByAccount', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrendsByAccount');
  760. });
  761. Route::group(['prefix' => 'intelligentMassSending'], function(){
  762. Route::post('addAccount', 'IntelligentMassSendingController@addAccount');
  763. Route::post('platformIndex', 'IntelligentMassSendingController@platformIndex');
  764. Route::post('accountIndex', 'IntelligentMassSendingController@accountIndex');
  765. Route::post('editAccount', 'IntelligentMassSendingController@editAccount');
  766. Route::post('addSmallApp', 'IntelligentMassSendingController@addSmallApp');
  767. Route::post('editSmallApp', 'IntelligentMassSendingController@editSmallApp');
  768. Route::post('smallAppIndex', 'IntelligentMassSendingController@smallAppIndex');
  769. Route::post('accountList', 'IntelligentMassSendingController@accountList');
  770. Route::post('smallAppList', 'IntelligentMassSendingController@smallAppList');
  771. Route::post('appList', 'IntelligentMassSendingController@appList');
  772. });
  773. # 个人SOP
  774. Route::group(['prefix' => 'userSop'], function() {
  775. # 配置规则
  776. Route::post('setRule', 'UserSopController@setRule');
  777. # 配置列表
  778. Route::get('ruleList', 'UserSopController@ruleList');
  779. # 配置详情
  780. Route::get('ruleDetail', 'UserSopController@ruleDetail');
  781. # 配置禁用/开启
  782. Route::get('changeStatus', 'UserSopController@changeStatus');
  783. });
  784. # 智能群发(新用户延迟运营)
  785. Route::group(['prefix' => 'CircleMassMsg'], function() {
  786. Route::post('set', 'CircleMassMsgController@setRule'); // 设置智能群发规则
  787. Route::get('lists', 'CircleMassMsgController@ruleLists'); // 群发智能规则列表
  788. Route::get('detail', 'CircleMassMsgController@ruleDetail'); // 智能群发规则详情
  789. Route::get('updateStatus', 'CircleMassMsgController@updateStatus'); // 智能群发规则状态变更
  790. Route::get('recordLists', 'CircleMassMsgController@recordLists'); // 发送记录列表
  791. Route::get('recordDetail', 'CircleMassMsgController@recordDetail'); // 发送记录详情
  792. Route::get('overview', 'CircleMassMsgController@overview'); // 发送记录统计数据
  793. Route::get('senderList', 'CircleMassMsgController@senderList');// 发送记录客服列表
  794. Route::get('senderListExport', 'CircleMassMsgController@senderListExport'); // 发送记录客服导出
  795. Route::get('massSendCustList', 'CircleMassMsgController@massSendCustList'); // 发送记录客服发送的客户列表
  796. Route::get('massSendCustListExport', 'CircleMassMsgController@massSendCustListExport'); //发送记录客服发送的客户列表数据导出
  797. });
  798. # 智能群发V2(新用户按添加自然日进行周期运营)
  799. Route::group(['prefix' => 'PeriodMassMsg'], function() {
  800. Route::post('editTempGroup', 'PeriodMassMsgController@editTempGroup'); // 新建/编辑模板分组
  801. Route::post('tempGroupList', 'PeriodMassMsgController@tempGroupList'); // 模板分组列表
  802. Route::get('changeTempGroupStatus', 'PeriodMassMsgController@changeTempGroupStatus'); // 变更模板分组状态
  803. Route::get('delTempGroup', 'PeriodMassMsgController@delTempGroup'); // 删除模板分组
  804. Route::post('changeTempGroupBatch', 'PeriodMassMsgController@changeTempGroupBatch'); // 批量移动模板分组
  805. Route::post('setTemplate', 'PeriodMassMsgController@setTemplate'); // 设置智能群发模板
  806. Route::get('templateList', 'PeriodMassMsgController@templateList'); // 智能群发模板列表
  807. Route::get('templateDetail', 'PeriodMassMsgController@templateDetail'); // 智能群发模板详情
  808. Route::get('changeStatus', 'PeriodMassMsgController@changeStatus'); // 智能群发模板状态变更
  809. Route::get('delTemplate', 'PeriodMassMsgController@delTemplate'); // 批量删除智能群发模板
  810. Route::post('editGroup', 'PeriodMassMsgController@editGroup'); // 新建/编辑智能群发分组
  811. Route::post('groupList', 'PeriodMassMsgController@groupList'); // 智能群发分组列表
  812. Route::get('groupDetail', 'PeriodMassMsgController@groupDetail'); // 智能群发分组详情
  813. Route::get('changeGroupStatus', 'PeriodMassMsgController@changeGroupStatus'); // 变更智能群发分组状态
  814. Route::get('delGroup', 'PeriodMassMsgController@delGroup'); // 删除智能群发分组
  815. Route::post('changeGroupBatch', 'PeriodMassMsgController@changeGroupBatch'); // 批量移动智能群发规则分组
  816. Route::post('set', 'PeriodMassMsgController@setRule'); // 设置智能群发规则
  817. Route::get('lists', 'PeriodMassMsgController@ruleLists'); // 群发智能规则列表
  818. Route::get('detail', 'PeriodMassMsgController@ruleDetail'); // 智能群发规则详情
  819. Route::get('updateStatus', 'PeriodMassMsgController@updateStatus'); // 智能群发规则状态变更
  820. Route::get('recordLists', 'PeriodMassMsgController@recordLists'); // 发送记录列表
  821. Route::get('recordDetail', 'PeriodMassMsgController@recordDetail'); // 发送记录详情
  822. Route::get('overview', 'PeriodMassMsgController@overview'); // 发送记录统计数据
  823. Route::get('senderList', 'PeriodMassMsgController@senderList');// 发送记录客服列表
  824. Route::get('senderListExport', 'PeriodMassMsgController@senderListExport'); // 发送记录客服导出
  825. Route::get('massSendCustList', 'PeriodMassMsgController@massSendCustList'); // 发送记录客服发送的客户列表
  826. Route::get('massSendCustListExport', 'PeriodMassMsgController@massSendCustListExport'); //发送记录客服发送的客户列表数据导出
  827. Route::get('deleteRule', 'PeriodMassMsgController@deleteRule');
  828. });
  829. # 客户阶段
  830. Route::group(['prefix' => 'CustomerStage'], function() {
  831. Route::post('setStageRule', 'CustomerStageController@setStageRule'); # 设置阶段规则
  832. Route::get('stageRuleList', 'CustomerStageController@stageRuleList'); # 阶段规则列表
  833. Route::post('stageRuleDel', 'CustomerStageController@stageRuleDel'); # 阶段规则删除
  834. Route::post('stageRuleSort', 'CustomerStageController@stageRuleSort'); # 阶段规则排序
  835. Route::get('confirmSet', 'CustomerStageController@confirmSet'); # 排序后确认阶段配置
  836. Route::get('basicDataAnalysis', 'CustomerStageController@basicDataAnalysis'); # 基础数据分析
  837. Route::get('tagRankList', 'CustomerStageController@tagRankList'); # 标签排行
  838. Route::get('analysis', 'CustomerStageController@analysis');// 客户阶段分析-总该
  839. Route::get('trend', 'CustomerStageController@trend'); # 客户阶段分析-趋势
  840. Route::get('situation', 'CustomerStageController@situation'); # 客户阶段分析-流转情况
  841. });
  842. # 运营组
  843. Route::group(['prefix' => 'OperationGroup'], function() {
  844. Route::post('setConfig', 'OperationGroupController@setConfig'); # 配置运营组信息
  845. Route::get('groupList', 'OperationGroupController@groupList'); # 运营组信息列表
  846. Route::get('groupDetail', 'OperationGroupController@groupDetail'); # 运营组详情
  847. Route::get('changeStatus', 'OperationGroupController@groupStatusChange'); # 运营组状态调整
  848. });
  849. # 素材库
  850. Route::group(['prefix' => 'media'], function() {
  851. Route::post('editGroup', 'MediaController@editGroup'); # 创建/编辑 素材组
  852. Route::get('delGroup', 'MediaController@delGroup'); # 删除素材组
  853. Route::get('groupList', 'MediaController@groupList'); # 素材组列表
  854. Route::post('upload', 'MaterialController@uploadFileToOss'); # 上传素材
  855. Route::post('editMedia', 'MediaController@editMedia'); # 批量新增/编辑素材到素材库
  856. Route::get('mediaList', 'MediaController@mediaList'); # 素材列表
  857. Route::post('changeGroup', 'MediaController@changeGroup'); # 批量移动素材至指定分组
  858. Route::post('delMedia', 'MediaController@delMedia'); # 批量删除素材
  859. Route::get('mediaSel', 'MediaController@mediaSel'); # 选择素材
  860. });
  861. # 安卓模拟点击工具相关
  862. Route::group(['prefix' => 'androidTool'], function() {
  863. Route::post('editCorpBind', 'AndroidToolController@editCorpBind'); # 安卓设备与企微、客服信息绑定关系设置
  864. Route::get('bindDetail', 'AndroidToolController@bindDetail'); # 安卓设备绑定详情
  865. Route::post('deviceList', 'AndroidToolController@deviceList'); # 安卓设备列表
  866. Route::get('forwardMsgRecord', 'AndroidToolController@forwardMsgRecord'); # 消息转发记录列表
  867. });
  868. # 投放账号绑定推广计划(直投)
  869. Route::group(['prefix' => 'accountConf'], function() {
  870. Route::post('bindPid', 'AccountConfController@bindPid'); # 绑定pid
  871. Route::get('bindPidList', 'AccountConfController@bindPidList'); # 获取绑定pid列表
  872. Route::post('editStatus', 'AccountConfController@editStatus'); # 修改绑定关系状态
  873. Route::get('checkBindType', 'AccountConfController@checkBindType'); # 检测是否绑定了其他投放关系
  874. });
  875. # 客户群分配
  876. Route::group(['prefix' => 'chatGroupTransfer'], function() {
  877. Route::post('editConfig', 'ChatGroupTransferController@editConfig'); # 编辑分配客户群配置
  878. Route::get('configList', 'ChatGroupTransferController@configList'); # 分配客户群配置列表
  879. Route::get('configDetail', 'ChatGroupTransferController@configDetail'); # 分配客户群配置详情
  880. Route::get('changeStatus', 'ChatGroupTransferController@changeStatus'); # 修改配置状态
  881. Route::get('record', 'ChatGroupTransferController@record'); # 获取客户群分配分配记录
  882. });
  883. # 转发消息客户群创建配置
  884. Route::group(['prefix' => 'forwardChatGroup'], function() {
  885. Route::get('forwardMemberList', 'ChatGroupController@forwardMemberList'); # 开启转发消息状态客服列表(转发人列表)
  886. Route::post('setRule', 'ChatGroupController@setForwardChatGroupCreateRule'); # 创建群规则配置
  887. Route::get('ruleList', 'ChatGroupController@forwardChatGroupCreateRuleList'); # 规则列表
  888. Route::get('ruleDetail', 'ChatGroupController@forwardChatGroupCreateRuleDetail'); # 规则详情
  889. Route::post('changeStatus', 'ChatGroupController@forwardChatGroupCreateRuleChangeStatus'); # 规则开启关闭
  890. Route::post('delRule', 'ChatGroupController@forwardChatGroupCreateRuleDelete'); # 删除规则
  891. });
  892. });
  893. # h5接口
  894. Route::group(['namespace' => 'Api', 'middleware' => ['h5.verify'], 'prefix'=>'h5'], function () {
  895. #客户详情页
  896. Route::get('portrait/customerDetail', 'PortraitController@h5CustomerDetail');
  897. Route::get('portrait/h5CustomerDynamicList', 'PortraitController@h5CustomerDynamicList');
  898. Route::get('portrait/h5CustomerOrderList', 'PortraitController@h5CustomerOrderList');
  899. Route::post('portrait/h5CustomerTagUpdate', 'PortraitController@h5CustomerTagUpdate');
  900. Route::post('portrait/edit', 'PortraitController@edit');
  901. Route::post('portrait/tagList', 'PortraitController@h5TagList');
  902. #jsapi授权数据
  903. Route::post('auth/commonAuthData', 'AuthController@commonAuthData');
  904. Route::get('radarPage/list', 'RadarController@radarListForH5');
  905. Route::get('radarPage/groupList', 'RadarController@radarGroupListForH5'); //
  906. Route::get('radarPage/getLinkMsgOfRadar', 'Radarcd Controller@getLinkMsgOfRadar'); // 发送前替换雷达内部素材
  907. # 快捷话术
  908. Route::group(['prefix' => 'chatMenuPage'], function() {
  909. Route::get('list', 'ChatMenuController@chatMenuListForH5'); // 快捷话术信息列表
  910. Route::get('groupList', 'ChatMenuController@chatMenuGroupListForH5'); // 快捷话术组列表
  911. Route::get('report', 'ChatMenuController@behaviorReport'); // 数据上报
  912. Route::get('customerInfo', 'ChatMenuController@getCustomerInfo'); // 获取客户信息
  913. Route::get('chatMessage', 'ChatMenuController@chatMessage'); // 将消息处理成可发送的数据结构
  914. });
  915. # 客户群活码
  916. Route::group(['prefix' => 'chatGroupQrcode'], function() {
  917. # 获取群活码
  918. Route::get('detail', 'GroupChatJoinWayController@detail');
  919. # 群活码扫码数据上报
  920. Route::get('scan', 'GroupChatJoinWayController@scan');
  921. # 创建临时渠道码
  922. Route::get('contactQrcode', 'GroupChatJoinWayController@contactQrcode');
  923. });
  924. # 个人SOP
  925. Route::group(['prefix' => 'userSop'], function() {
  926. # 规则详情
  927. Route::get('detail', 'UserSopController@detail');
  928. # 获取待跟进客户信息
  929. Route::get('customer', 'UserSopController@customer');
  930. # 数据上报
  931. Route::get('report', 'UserSopController@report');
  932. });
  933. # 客户群群发
  934. Route::group(['prefix' => 'chatGroupMag'], function(){
  935. # 获取群发内容
  936. Route::get('getMessage', 'ChatGroupMsgController@getMessage');
  937. # 发送数据上报
  938. Route::get('report', 'ChatGroupMsgController@report');
  939. });
  940. Route::get('platform/playletGroupH5Detail', 'PlatformController@playletGroupH5Detail');
  941. # 安卓客户端获取待确认的消息
  942. Route::get('massMsg/senderConfirm', 'MassMsgController@senderConfirmList');
  943. # 安卓客户端获取待邀请入群的客户信息
  944. Route::post('customer/waitInvite', 'CustomerController@waitInvite');
  945. # 安卓客户端获取待邀请入群的补充客户信息-按群模板随机补拉
  946. Route::post('customer/waitSupplementaryInvite', 'CustomerController@waitSupplementaryInvite');
  947. # 安卓客户端获取待邀请入群的补充客户信息-将用户拉回指定群
  948. Route::post('customer/waitInviteTargetGroup', 'CustomerController@waitInviteTargetGroup');
  949. # 安卓客户端获取待邀请入群的客户信息-新用户邀请入群
  950. Route::post('customer/inviteNewUser', 'CustomerController@inviteNewUser');
  951. # 安卓客户端获取待共享的客户信息
  952. Route::post('customer/waitShare', 'CustomerController@waitShare');
  953. # 安卓客户端获取待确认发送的朋友圈信息
  954. Route::get('momentMsg/senderConfirm', 'MomentController@senderConfirmList');
  955. # 安卓客户端获取单向好友开关状态
  956. Route::get('customer/getHistoryDataAndStatus', 'AndroidToolController@getHistoryDataAndStatus');
  957. # 安卓客户端获取单向好友
  958. Route::post('customer/receiveUploadData', 'AndroidToolController@receiveUploadData');
  959. # 接收创建群聊任务消息
  960. Route::post('chatGroup/receiveCreateChatGroupData', 'ChatGroupController@receiveCreateChatGroupData');
  961. # 创建群聊任务下发
  962. Route::post('chatGroup/getCreateGroupTask', 'ChatGroupController@getCreateGroupTask');
  963. # 获取待邀请入群的转发客服信息
  964. Route::post('chatGroup/waitCreate', 'AndroidToolController@waitCreate');
  965. # 获取模拟点击工具转发消息记录
  966. Route::post('forwardMessageRecord', 'AndroidToolController@forwardMessageRecord');
  967. });