企微短剧业务系统

api.php 35KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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::get('/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. # 沈松的测试接口
  30. Route::get('/ss/test', 'Api\TestController@ssTest');
  31. # 获取jsapi授权相关信息
  32. Route::get('/jsapi/auth', 'Api\AuthController@authData');
  33. # 网页授权通过code获取用户信息
  34. Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
  35. # 获取客服已分配的客户列表
  36. Route::get('/task/customerList', 'Api\BatchAddCustomerController@customerList');
  37. # 添加客户行为数据上报
  38. Route::get('/addCustomer/dataReporting', 'Api\BatchAddCustomerController@dataReporting');
  39. # 智能雷达
  40. Route::group(['prefix' => 'radarPage'], function() {
  41. Route::get('detail', 'Api\RadarController@radarDetailForH5'); // 获取H5页面需要展示的雷达内容
  42. Route::get('report', 'Api\RadarController@behaviorReport'); // 数据上报
  43. });
  44. # 网页授权通过code获取用户信息
  45. Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
  46. # 登录之后才可以访问
  47. Route::group(['namespace' => 'Api', 'middleware' => ['api.login']], function () {
  48. # 获取预授权码
  49. Route::get('/authCode', 'AuthController@getPreAuthCode');
  50. # 获取企业内用户列表
  51. Route::get('/sys/userList', 'SysUserController@userList');
  52. # 群发消息
  53. Route::group(['prefix'=>'massMsg'],function() {
  54. Route::post('set', 'MassMsgController@setRule'); // 设置群发规则
  55. Route::get('lists', 'MassMsgController@ruleLists'); // 群发规则列表
  56. Route::get('detail', 'MassMsgController@ruleDetail'); // 群发规则详情
  57. Route::get('customerMatchCount', 'MassMsgController@customerMatchCount'); // 群发规则匹配客户数查询
  58. Route::get('updateStatus', 'MassMsgController@updateStatus'); // 群发规则状态变更
  59. Route::get('noticeUser', 'MassMsgController@noticeUser'); // 给员工群发记录未发送成员发送消息提醒
  60. Route::get('data/overview', 'MassMsgController@overview'); //数据统计纵览
  61. Route::get('data/sender_list', 'MassMsgController@sender_list'); //发送成员列表
  62. Route::get('data/sender_list/export', 'MassMsgController@sender_list_export'); //发送成员导出
  63. Route::get('massSendCustList', 'MassMsgController@massSendCustList'); //发送客户列表
  64. Route::get('massSendCustList/export', 'MassMsgController@massSendCustListExport'); //发送客户列表
  65. });
  66. # 新用户欢迎语
  67. Route::group(['prefix'=>'welcomeMsg'],function() {
  68. Route::post('set', 'WelcomeMsgController@setRule'); // 设置新用户欢迎语规则
  69. Route::get('lists', 'WelcomeMsgController@ruleLists'); // 新用户欢迎语规则列表
  70. Route::get('detail', 'WelcomeMsgController@ruleDetail'); // 新用户欢迎语规则详情
  71. Route::get('updateStatus', 'WelcomeMsgController@updateStatus'); // 新用户欢迎语规则状态变更
  72. Route::post('strLength', 'WelcomeMsgController@strLength'); // 获取欢迎语内容长度
  73. });
  74. # 素材管理
  75. Route::group(['prefix'=>'material'],function() {
  76. Route::post('upload', 'MaterialController@upload'); // 上传素材
  77. Route::post('uploadFileToOss', 'MaterialController@uploadFileToOss'); // 上传文件到阿里云oss
  78. });
  79. # 充值订单管理
  80. Route::group(['prefix'=>'order'],function() {
  81. Route::post('stat', 'OrderController@dataStat'); // 订单数据汇总
  82. Route::post('lists', 'OrderController@lists'); // 企微订单列表
  83. });
  84. # 朋友圈消息
  85. Route::group(['prefix'=>'momentMsg'],function() {
  86. Route::post('set', 'MomentController@setRule'); // 设置朋友圈任务规则
  87. Route::get('lists', 'MomentController@taskList'); // 朋友圈任务规则列表
  88. Route::get('detail', 'MomentController@taskDetail'); // 朋友圈任务规则详情
  89. Route::get('customerMatchCount', 'MomentController@customerMatchCount'); // 朋友圈任务匹配客户数查询
  90. Route::get('changeStatus', 'MomentController@changeStatus'); // 朋友圈任务状态变更
  91. Route::get('momentInteract', 'MomentController@momentInteract'); // 朋友圈点赞评论详情
  92. Route::get('momentRecordList', 'MomentController@momentRecordList'); // 朋友圈发送记录列表
  93. Route::get('noticeUser', 'MomentController@noticeUser'); // 给朋友圈消息未发送成员发送消息提醒
  94. });
  95. # 批量加好友
  96. Route::group(['prefix'=>'BatchAddCustomer'],function() {
  97. Route::post('editConfig', 'BatchAddCustomerController@setAutomateConfig'); // 配置自动提醒及自动回收
  98. Route::get('configInfo', 'BatchAddCustomerController@configInfo'); // 获取自动提醒及自动回收配置信息
  99. Route::post('noticeUser', 'BatchAddCustomerController@noticeUser'); // 手动提醒客服完成加好友任务
  100. Route::get('dataSummary', 'BatchAddCustomerController@dataSummary'); // 数据概览
  101. Route::get('statistic', 'BatchAddCustomerController@statistic'); // 好友添加统计列表
  102. });
  103. # 更新企业所有信息
  104. Route::get('/corp/getCorCustomerList', 'CustomerController@getCorCustomerList');
  105. # 获取标签列表
  106. Route::get('/tag/tagList', 'TagController@tagList');
  107. # 检索客服列表
  108. Route::get('/user/userList', 'UserController@userList');
  109. # 客户列表
  110. Route::get('/customer/customerList', 'CustomerController@customerList');
  111. # 客户详情概览
  112. Route::get('/customer/customerDetail', 'CustomerController@customerDetail');
  113. # 批量编辑标签接口
  114. Route::post('/customer/setCustomerTag', 'TagController@setCustomerTag');
  115. # 查询批量编辑标签结果
  116. Route::get('/customer/batchMarkTagResult', 'TagController@batchCustomerTagResult');
  117. # 客户动态
  118. Route::get('/customer/customerDynamicList', 'CustomerController@customerDynamicList');
  119. # 客户详情标签展示(编辑时使用)
  120. Route::get('/customer/customerDetailTagList', 'CustomerController@customerDetailTagList');
  121. # 客户详情标签编辑
  122. Route::post('/customer/customerDetailTagUpdate', 'CustomerController@customerDetailTagUpdate');
  123. # 流失客户列表
  124. Route::get('/customer/lossCustomerList', 'CustomerController@lossCustomerList');
  125. # 客户详情订单列表
  126. Route::get('/customer/customerOrderList', 'CustomerController@customerOrderList');
  127. # 客户信息编辑
  128. Route::post('/customer/customerInfoUpdate', 'CustomerController@customerInfoUpdate');
  129. # 将客户加入黑名单
  130. Route::post('/customer/moveCustomerToBlackList', 'CustomerController@moveCustomerToBlackList');
  131. # 将客户移除黑名单
  132. Route::post('/customer/removeCustomerFromBlackList', 'CustomerController@removeCustomerFromBlackList');
  133. # 黑名单列表
  134. Route::get('/customer/blackList', 'CustomerController@blackListNew');
  135. // Route::get('/customer/blackListNew', 'CustomerController@blackListNew');
  136. # 待分配客户列表
  137. Route::get('/customer/unassignedCustomerList', 'CustomerController@unassignedCustomerList');
  138. # 客户迁移
  139. Route::post('/customer/transferCustomer', 'CustomerController@transferCustomerNew');
  140. # 客户分配列表
  141. Route::get('/customer/customerAssignmentList', 'CustomerController@customerAssignmentList');
  142. # 成员管理
  143. Route::get('/user/users', 'UserController@users');
  144. Route::get('/user/user_info', 'UserController@user_info');
  145. Route::get('/user/user_conversation_report', 'UserController@conversation_report');
  146. Route::get('/user/user_conversation_report_total', 'UserController@conversation_report_total');
  147. # 部门列表
  148. Route::get('/user/departments', 'UserController@departments');
  149. # 添加标签
  150. Route::post('/tag/addTagGroup', 'TagController@addTagGroup');
  151. # 添加单个标签
  152. Route::post('/tag/addSingleTag', 'TagController@addSingleTag');
  153. # 标签组排序
  154. Route::post('/tag/updateTagGroupOrder', 'TagController@updateTagGroupOrder');
  155. # 删除标签组
  156. Route::post('/tag/deleteTagGroup', 'TagController@deleteTagGroup');
  157. # 编辑标签组
  158. Route::post('/tag/updateTagGroup', 'TagController@updateTagGroup');
  159. # 公众号数据
  160. Route::get('/statistics/wechatAccountData', 'DataStatisticsController@wechatAccountData');
  161. Route::get('/statistics/OfficialAccountData', 'DataStatisticsController@OfficialAccountData');
  162. # 短剧数据
  163. Route::get('/statistics/playletData', 'DataStatisticsController@playletData');
  164. # 获取短剧数据去重用户数
  165. Route::get('/statistics/playletDataUniqueUser', 'DataStatisticsController@playletDataUniqueUser');
  166. # 获取投手投放数据去重用户数
  167. // Route::get('/statistics/throwPersonDataUniqueUser', 'DataStatisticsController@throwPersonDataUniqueUser');
  168. # 获取投手数据去重用户数
  169. Route::get('/statistics/pitcherDataUniqueUser', 'DataStatisticsController@pitcherDataUniqueUser');
  170. # 短剧粉丝激活趋势
  171. Route::get('/statistics/activeFansData', 'DataStatisticsController@activeFansData');
  172. # 授权企微账号列表
  173. Route::get('/authorize/corpList', 'CorpController@lists');
  174. # 管理的账号组列表
  175. Route::get('/authorize/accountGroupList', 'Admin\AdminController@accountGroupList');
  176. # 权限列表
  177. Route::get("/permission/list",'Admin\PermissionController@permission_list');
  178. # 添加顶级菜单
  179. Route::any("/permission/l1/add",'Admin\PermissionController@create_permission_l1');
  180. # 添加次级菜单
  181. Route::any("/permission/l2/add",'Admin\PermissionController@create_permission_l2');
  182. # 权限排序
  183. Route::post("/permission/be_sort","Admin\PermissionController@be_sort");
  184. # 权限删除
  185. Route::get("/permission/delete","Admin\PermissionController@permission_del");
  186. # 编辑顶级权限
  187. Route::any("/permission/l1/edit",'Admin\PermissionController@edit_permission_l1');
  188. #编辑非顶级权限
  189. Route::any("/permission/l2/edit",'Admin\PermissionController@edit_permission_l2');
  190. #权限树
  191. Route::get("/permission/tree",'Admin\PermissionController@permission_tree');
  192. /*
  193. * 角色管理
  194. */
  195. #添加角色
  196. Route::any("/role/add",'Admin\RoleController@create_role');
  197. #编辑角色
  198. Route::any("/role/edit",'Admin\RoleController@edit_role');
  199. #查看角色
  200. Route::get("/role/list",'Admin\RoleController@role_list');
  201. #查看角色详情
  202. Route::get("/role/info",'Admin\RoleController@role_info');
  203. #删除角色
  204. Route::any("/role/del",'Admin\RoleController@del_role');
  205. # 获取角色类型
  206. Route::get('/role/type', 'Admin\RoleController@role_type');
  207. #首页客户数据
  208. Route::get("/stat/custTotal",'StatisticsController@custTotal');
  209. Route::get("/stat/custTrends",'StatisticsController@custTrends');
  210. #推广数据
  211. Route::get("/stat/playletPopulariz",'StatisticsController@playletPopulariz');
  212. Route::get("/stat/momentsPopulariz",'StatisticsController@momentsPopulariz');
  213. Route::get("/stat/popularizAccounts",'StatisticsController@popularizAccounts');
  214. Route::get("/stat/popularizPlaylets",'StatisticsController@popularizPlaylets');
  215. Route::get("/stat/popularizCompanys",'StatisticsController@popularizCompanys');
  216. #运营数据
  217. Route::get("/stat/operateDayRetrieve",'StatisticsController@operateDayRetrieve');
  218. #投手数据
  219. Route::get("/stat/throwPersonData",'StatisticsController@throwPersonData');
  220. Route::get("/stat/throwPersonList",'StatisticsController@throwPersonList');
  221. #公众号趋势
  222. Route::get("/stat/officialTrendTotal",'StatisticsController@officialTrendTotal');
  223. Route::get("/stat/officialTrendList",'StatisticsController@officialTrendList');
  224. Route::get("/stat/chargeUserUnique",'StatisticsController@chargeUserUnique');
  225. Route::get("/stat/firstDayChargeUserUnique",'StatisticsController@firstDayChargeUserUnique');
  226. #客户汇总数据
  227. Route::get("/stat/custTotalNew",'StatisticsController@custTotalNew');
  228. Route::get("/stat/custTrendsNew",'StatisticsController@custTrendsNew');
  229. Route::get("/stat/custDataList",'StatisticsController@custDataList');
  230. /***
  231. * 管理员管理
  232. */
  233. #管理员列表
  234. Route::get("/admin/list","Admin\AdminController@admin_list");
  235. Route::get("/admin/info","Admin\AdminController@admin_info");
  236. #列出可选主体
  237. Route::get("/all_corp/list","Admin\AdminController@corp_list");
  238. #列出可选角色
  239. Route::get("/all_role/list","Admin\AdminController@role_list");
  240. #管理员创建
  241. Route::any("/admin/create","Admin\AdminController@create_admin");
  242. #管理员编辑
  243. Route::any("/admin/edit","Admin\AdminController@edit_admin");
  244. #管理员删除
  245. Route::any("/admin/del","Admin\AdminController@delete_admin");
  246. # 投放账号列表(ADQ+MP)
  247. Route::get('/pitcher/adAccountList', 'PitcherController@adAccountList');
  248. # 微信公众号列表
  249. Route::get('/pitcher/wxAccountList', 'PitcherController@wxAccountList');
  250. # 剧集列表
  251. Route::get('/pitcher/dramaList', 'PitcherController@dramaList');
  252. # 投手列表
  253. Route::get('/pitcher/pitcherList', 'PitcherController@pitcherList');
  254. # 绑定投手
  255. Route::post('/pitcher/bind', 'PitcherController@bind');
  256. # 投手绑定数据
  257. Route::get('/pitcher/index', 'PitcherController@index');
  258. # 投手绑定数据
  259. Route::post('/pitcher/relaEdit', 'PitcherController@relaEdit');
  260. # 剧集添加
  261. Route::post('/pitcher/dramaAdd', 'PitcherController@dramaAdd');
  262. # 剧集编辑
  263. Route::post('/pitcher/dramaEdit', 'PitcherController@dramaEdit');
  264. # 公众号设置回传规则
  265. Route::post('/pitcher/setReportRule', 'PitcherController@setReportRule');
  266. Route::get('/pitcher/reportRuleList', 'PitcherController@reportRuleList');
  267. # 公众号绑定数据源,企微号
  268. Route::get('/pitcher/getCorpIdList', 'PitcherController@getCorpIdList');
  269. Route::post('/pitcher/setAccountReportConf', 'PitcherController@setAccountReportConf');
  270. #用户权限列表
  271. Route::get("/userPermission/list","Admin\UserPermissionController@index");
  272. Route::get("/userPermission/userProfile","Admin\UserPermissionController@user_profile");
  273. # 短剧数据趋势
  274. Route::get('/statistics/playletDataTrend', 'DataStatisticsController@playletDataTrend');
  275. # 循环数据报表
  276. Route::get('/statistics/reg_range_report', 'Report\AdvertiserController@reg_range_report');
  277. Route::get('/statistics/reg_range_report_new', 'Report\AdvertiserController@reg_range_report_new');
  278. Route::get('/statistics/dataCycleList', 'DataStatisticsController@dataCycleList');
  279. # 短剧投放趋势数据
  280. Route::get('/statistics/playletTrendData', 'DataStatisticsController@playletTrendData');
  281. # 新客户详情概览
  282. Route::get('/customer/customerDetails', 'CustomerController@customerDetails');
  283. # 投手数据
  284. Route::get("/stat/pitcherData",'StatisticsController@pitcherData');
  285. ## 预警相关
  286. # 批量加好友
  287. Route::group(['prefix'=>'warn'],function() {
  288. # 预警用户组列表
  289. Route::get("groupList",'WarnController@groupList');
  290. # 预警用户组添加
  291. Route::post("groupAdd",'WarnController@groupAdd');
  292. # 预警用户组数据详情
  293. Route::get("groupDetail",'WarnController@groupDetail');
  294. # 预警用户组编辑
  295. Route::post("groupEdit",'WarnController@groupEdit');
  296. # 预警用户组开启和禁用
  297. Route::post("groupEableOp",'WarnController@groupEableOp');
  298. # 预警规则配置列表
  299. Route::get("ruleConfList",'WarnController@ruleConfList');
  300. # 预警规则配置操作
  301. Route::post("ruleConfOperate",'WarnController@ruleConfOperate');
  302. # 预警人员列表
  303. Route::get("userList",'WarnController@userList');
  304. # 预警人员操作
  305. Route::post("userOperate",'WarnController@userOperate');
  306. # 预警客服列表
  307. Route::get("djuserList",'WarnController@djuserList');
  308. });
  309. # 批量添加客户--导入
  310. Route::post('/customer/batchAddCustomerImport', 'CustomerController@batchAddCustomerImport');
  311. # 批量添加客户--二次确认
  312. Route::post('/customer/batchAddCustomerImportConfirm', 'CustomerController@batchAddCustomerImportConfirm');
  313. # 客户导入列表
  314. Route::get('/customer/batchAddCustomerDetailsList', 'CustomerController@batchAddCustomerDetailsList');
  315. # 客户导入记录列表
  316. Route::get('/customer/batchAddCustomerRecordList', 'CustomerController@batchAddCustomerRecordList');
  317. # 客户导入记录详情
  318. Route::get('/customer/batchAddCustomerRecordDetail', 'CustomerController@batchAddCustomerRecordDetail');
  319. # 批量分配客户
  320. Route::post('/customer/batchDistributionCustomer', 'CustomerController@batchDistributionCustomer');
  321. # 删除导入记录
  322. Route::post('/customer/deleteRecord', 'CustomerController@deleteRecord');
  323. # 删除导入客户
  324. Route::post('/customer/deleteDetail', 'CustomerController@deleteDetail');
  325. # 批量提醒
  326. Route::post('/customer/batchRemind', 'CustomerController@batchRemind');
  327. # 批量添加客户 导入excel
  328. Route::post('/material/importExcel', 'MaterialController@importExcel');
  329. # 预警用户组列表
  330. Route::get("/warn/groupList",'WarnController@groupList');
  331. # 预警用户组添加
  332. Route::post("/warn/groupAdd",'WarnController@groupAdd');
  333. # 预警用户组数据详情
  334. Route::get("/warn/groupDetail",'WarnController@groupDetail');
  335. # 预警用户组编辑
  336. Route::post("/warn/groupEdit",'WarnController@groupEdit');
  337. # 预警规则配置列表
  338. Route::get("/warn/ruleConfList",'WarnController@ruleConfList');
  339. # 预警规则配置操作
  340. Route::post("/warn/ruleConfOperate",'WarnController@ruleConfOperate');
  341. # 快捷话术
  342. Route::group(['prefix' => 'chatMenu'], function () {
  343. Route::post('createChatMenuGroup', 'ChatMenuController@createChatMenuGroup');# 创建话术分组
  344. Route::get('chatMenuGroupList', 'ChatMenuController@chatMenuGroupList');# 话术分组列表
  345. Route::post('updateChatMenuGroup', 'ChatMenuController@updateChatMenuGroup');# 编辑话术分组
  346. Route::post('deleteChatMenuGroup', 'ChatMenuController@deleteChatMenuGroup');# 删除话术分组
  347. Route::post('updateChatMenuGroupSortOrder', 'ChatMenuController@updateChatMenuGroupSortOrder');# 话术分组排序
  348. Route::post('createChatMenuRule', 'ChatMenuController@createChatMenuRule');# 创建话术规则
  349. Route::get('chatMenuRuleList', 'ChatMenuController@chatMenuRuleList');# 话术规则列表
  350. Route::post('chatMenuRuleDetail', 'ChatMenuController@chatMenuRuleDetail');# 话术规则详情
  351. Route::post('updateChatMenuRule', 'ChatMenuController@updateChatMenuRule');# 编辑话术规则
  352. Route::post('deleteChatMenuRule', 'ChatMenuController@deleteChatMenuRule');# 删除话术规则
  353. Route::post('updateChatMenuRuleSortOrder', 'ChatMenuController@updateChatMenuRuleSortOrder');# 话术规则排序
  354. });
  355. ## 渠道活码
  356. # 活码分组
  357. Route::post("/sq/addSqgroup",'SourceQrcodeController@addSqgroup');
  358. Route::post("/sq/editSqgroup",'SourceQrcodeController@editSqgroup');
  359. Route::post("/sq/editGroupSort",'SourceQrcodeController@editGroupSort');
  360. Route::post("/sq/delSqGroup",'SourceQrcodeController@delSqGroup');
  361. Route::get("/sq/sqGroupList",'SourceQrcodeController@sqGroupList');
  362. # 渠道活码
  363. Route::post("/sq/addSourceQrcode",'SourceQrcodeController@addSourceQrcode');
  364. Route::post("/sq/editSourceQrcode",'SourceQrcodeController@editSourceQrcode');
  365. Route::get("/sq/sourceQrcodeList",'SourceQrcodeController@sourceQrcodeList');
  366. Route::post("/sq/delSourceQrcode",'SourceQrcodeController@delSourceQrcode');
  367. Route::get("/sq/sourceQrcodeDetail",'SourceQrcodeController@sourceQrcodeDetail');
  368. #推广数据
  369. Route::get("/populariz/ruleLists",'PopularizController@ruleLists');
  370. Route::get("/populariz/ruleTotal",'PopularizController@ruleTotal');
  371. Route::get("/populariz/taskList",'PopularizController@taskList');
  372. Route::get("/populariz/momentTotal",'PopularizController@momentTotal');
  373. # 数据分析概览
  374. Route::get("/sq/dataView",'SourceQrcodeController@dataView');
  375. # 数据分析趋势
  376. Route::get("/sq/dataTrend",'SourceQrcodeController@dataTrend');
  377. # 数据统计
  378. Route::get("/sq/customerList",'SourceQrcodeController@customerList');
  379. Route::get("/sq/staffList",'SourceQrcodeController@staffList');
  380. # 智能雷达
  381. Route::group(['prefix' => 'radar'], function() {
  382. # 创建雷达组
  383. Route::post('radarGroupCreate', 'RadarController@radarGroupCreate');
  384. # 雷达组列表
  385. Route::get('radarGroupList', 'RadarController@radarGroupList');
  386. # 编辑雷达组
  387. Route::post('radarGroupUpdate', 'RadarController@radarGroupUpdate');
  388. # 雷达组排序
  389. Route::post('radarGroupSortUpdate', 'RadarController@radarGroupSortUpdate');
  390. # 删除雷达组
  391. Route::post('radarGroupDelete', 'RadarController@radarGroupDelete');
  392. # 创建雷达
  393. Route::post('radarCreate', 'RadarController@radarCreate');
  394. # 雷达列表
  395. Route::get('radarList', 'RadarController@radarList');
  396. # 雷达详情
  397. Route::get('radarDetail', 'RadarController@radarDetail');
  398. # 雷达编辑
  399. Route::post('radarUpdate', 'RadarController@radarUpdate');
  400. # 雷达排序
  401. Route::post('radarSortUpdate', 'RadarController@radarSortUpdate');
  402. # 删除雷达
  403. Route::post('radarDelete', 'RadarController@radarDelete');
  404. # 数据分析--总概
  405. Route::get('dataStatisticsTotal', 'RadarController@dataStatisticsTotal');
  406. # 数据分析--列表
  407. Route::get('dataStatisticsList', 'RadarController@dataStatisticsList');
  408. # 渠道列表
  409. Route::get('channelList', 'RadarController@channelList');
  410. });
  411. # 侧边栏-客户画像
  412. Route::group(['prefix'=>'portrait'],function() {
  413. # 画像配置列表
  414. Route::get("confList",'PortraitController@confList');
  415. # 画像配置操作
  416. Route::post("confOperate",'PortraitController@confOperate');
  417. # 画像配置添加属性
  418. Route::post("confAdd",'PortraitController@confAdd');
  419. # 画像配置修改属性
  420. Route::post("confEdit",'PortraitController@confEdit');
  421. });
  422. # 客户群群发
  423. Route::group(['prefix' => 'chatGroupMassMsg'], function() {
  424. # 设置群发规则
  425. Route::post('setRule', 'ChatGroupController@setChatGroupMassMsg');
  426. # 群发规则列表
  427. Route::get('ruleLists', 'ChatGroupController@ruleLists');
  428. # 群发规则详情
  429. Route::get('ruleDetail', 'ChatGroupController@ruleDetail');
  430. # 群发规则禁用启用
  431. Route::post('updateStatus', 'ChatGroupController@updateStatus');
  432. # 群发规则消息提醒
  433. Route::post('noticeUser', 'ChatGroupController@noticeUser');
  434. # 群发详情-客户群接收列表
  435. Route::get('chatGroupReceiveDetail', 'ChatGroupController@chatGroupReceiveDetail');
  436. });
  437. # 客户群管理
  438. Route::group(['prefix' => 'chatGroup'], function() {
  439. # 群列表
  440. Route::get('groupList', 'ChatGroupController@groupList');
  441. # 获取企业所有客户群去重后的客户数
  442. Route::get('uniqueMemberCount', 'ChatGroupController@uniqueMemberCount');
  443. # 客户群概况
  444. Route::get('condition', 'ChatGroupController@condition');
  445. # 群成员列表
  446. Route::get('memberList', 'ChatGroupController@memberList');
  447. # 群主列表
  448. Route::get('ownerList', 'ChatGroupController@chatGroupOwnerList');
  449. # 客户群检索列表
  450. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  451. });
  452. # 群渠道活码
  453. Route::group(['prefix' => 'qrcodeChatGroup'], function() {
  454. # 群活码创建
  455. Route::post('setRule', 'GroupChatJoinWayController@setRule');
  456. # 群活码编辑
  457. Route::post('editRule', 'GroupChatJoinWayController@editRule');
  458. # 群活码列表
  459. Route::get('ruleList', 'GroupChatJoinWayController@ruleList');
  460. # 群活码禁用
  461. Route::get('delQrcode', 'GroupChatJoinWayController@delQrcode');
  462. # 群活码详情
  463. Route::get('ruleDetail', 'GroupChatJoinWayController@ruleDetail');
  464. # 数据总概
  465. Route::get('condition', 'GroupChatJoinWayController@condition');
  466. # 群活码每日数据分析
  467. Route::get('dailyReport', 'GroupChatJoinWayController@dailyReport');
  468. # 群活码扫码进群客户列表
  469. Route::get('customerList', 'GroupChatJoinWayController@customerList');
  470. # 群活码配置群的数据分析
  471. Route::get('analysis', 'GroupChatJoinWayController@analysis');
  472. # 获取群组下的群活码规则数
  473. Route::get('chatGroupCountOfGroup', 'GroupChatJoinWayController@chatGroupCountOfGroup');
  474. # 客户群检索列表
  475. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  476. });
  477. # 账号数据趋势
  478. Route::group(['prefix' => 'accountDataTrend'], function() {
  479. # Adq账号数据
  480. Route::post('adqAccount', 'AccountDataTrendController@adqAccount');
  481. # Adq账号总概数据
  482. Route::post('adqAccountSummary', 'AccountDataTrendController@adqAccountSummary');
  483. # Adq账号数据汇总曲线
  484. Route::post('adqAccountCurve', 'AccountDataTrendController@adqAccountCurve');
  485. # Mp账号数据
  486. Route::post('mpAccount', 'AccountDataTrendController@mpAccount');
  487. # Mp账号总概数据
  488. Route::post('mpAccountSummary', 'AccountDataTrendController@mpAccountSummary');
  489. # Mp账号数据汇总曲线
  490. Route::post('mpAccountCurve', 'AccountDataTrendController@mpAccountCurve');
  491. # 各投放渠道累计账号数据
  492. Route::post('account', 'AccountDataTrendController@account');
  493. # 各投放渠道累计账号总概数据
  494. Route::post('accountSummary', 'AccountDataTrendController@accountSummary');
  495. # 各投放渠道累计账号数据汇总曲线
  496. Route::post('accountCurve', 'AccountDataTrendController@accountCurve');
  497. });
  498. # 粉丝激活趋势
  499. Route::group(['prefix' => 'activeFansTrend'], function() {
  500. # Adq粉丝激活趋势
  501. Route::post('adqAccount', 'ActiveFansDataController@adqAccount');
  502. # Adq粉丝激活趋势总概数据
  503. Route::post('adqAccountSummary', 'ActiveFansDataController@adqAccountSummary');
  504. # Adq粉丝激活趋势数据汇总曲线
  505. Route::post('adqAccountCurve', 'ActiveFansDataController@adqAccountCurve');
  506. # Adq粉丝激活趋势
  507. Route::post('mpAccount', 'ActiveFansDataController@mpAccount');
  508. # Adq粉丝激活趋势总概数据
  509. Route::post('mpAccountSummary', 'ActiveFansDataController@mpAccountSummary');
  510. # Adq粉丝激活趋势数据汇总曲线
  511. Route::post('mpAccountCurve', 'ActiveFansDataController@mpAccountCurve');
  512. });
  513. # 获取数据看板更新时间
  514. Route::get('/dataCube/uptime', 'DataStatisticsController@uptime');
  515. # 客户流失数据趋势
  516. Route::group(['prefix' => 'customerLossTrend'], function() {
  517. # 账号客户流失数据趋势
  518. Route::get('account', 'CustomerLossController@accountLossTrend');
  519. # 账号客户流失总概数据
  520. Route::get('summary', 'CustomerLossController@accountLossSummary');
  521. # 账号客户流失趋势曲线
  522. Route::get('curve', 'CustomerLossController@accountLossCurve');
  523. });
  524. # 第三方平台
  525. Route::group(['prefix' => 'platform'], function() {
  526. # 短剧列表
  527. Route::get('playletList', 'PlatformController@playletList');
  528. # 自动创建推广链接
  529. Route::get('createLink', 'PlatformController@createLink');
  530. });
  531. # 客服绑定adq投放账号ID
  532. Route::post('/user/bindUserAdqAccountId', 'UserController@bindUserAdqAccountId');
  533. # adq投放账号列表
  534. Route::get('/pitcher/adqAccountList', 'PitcherController@adqAccountList');
  535. # adq投放账号绑定投手,剧集
  536. Route::post('/pitcher/adqBindPitcher', 'PitcherController@adqBindPitcher');
  537. # adq绑定投手,剧集列表
  538. Route::get('/pitcher/adqPitcherIndex', 'PitcherController@adqPitcherIndex');
  539. # adq编辑绑定投手 剧集
  540. Route::post('/pitcher/adqEditPitcher', 'PitcherController@adqEditPitcher');
  541. # 编辑adq投放账号绑定企微以及数据源ID
  542. Route::post('/pitcher/adqBindUserActionSetId', 'PitcherController@adqBindUserActionSetId');
  543. # adq投放账号设置回传规则
  544. Route::post('/pitcher/setAdqAccountReportRule', 'PitcherController@setAdqAccountReportRule');
  545. Route::group(['prefix' => 'shortPlayDataTrend'], function() {
  546. # 短剧数据趋势列表
  547. Route::post('adqShortPlayDataTrendList', 'ShortPlayDataTrendController@adqShortPlayDataTrendList');
  548. # 短剧数据趋势曲线(按日汇总)
  549. Route::post('adqShortPlayDataTrendCurve', 'ShortPlayDataTrendController@adqShortPlayDataTrendCurve');
  550. # 短剧数据趋势汇总
  551. Route::post('adqSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@adqSummaryOfShortDramaDataTrends');
  552. # 短剧数据趋势列表
  553. Route::post('mpShortPlayDataTrendList', 'ShortPlayDataTrendController@mpShortPlayDataTrendList');
  554. # 短剧数据趋势曲线(按日汇总)
  555. Route::post('mpShortPlayDataTrendCurve', 'ShortPlayDataTrendController@mpShortPlayDataTrendCurve');
  556. # 短剧数据趋势汇总
  557. Route::post('mpSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@mpSummaryOfShortDramaDataTrends');
  558. # 短剧数据趋势列表
  559. Route::post('shortPlayDataTrendList', 'ShortPlayDataTrendController@shortPlayDataTrendList');
  560. # 短剧数据趋势曲线(按日汇总)
  561. Route::post('shortPlayDataTrendCurve', 'ShortPlayDataTrendController@shortPlayDataTrendCurve');
  562. # 短剧数据趋势汇总
  563. Route::post('summaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrends');
  564. });
  565. Route::group(['prefix' => 'intelligentMassSending'], function(){
  566. Route::post('addAccount', 'IntelligentMassSendingController@addAccount');
  567. Route::post('platformIndex', 'IntelligentMassSendingController@platformIndex');
  568. Route::post('accountIndex', 'IntelligentMassSendingController@accountIndex');
  569. Route::post('editAccount', 'IntelligentMassSendingController@editAccount');
  570. Route::post('addSmallApp', 'IntelligentMassSendingController@addSmallApp');
  571. Route::post('editSmallApp', 'IntelligentMassSendingController@editSmallApp');
  572. Route::post('smallAppIndex', 'IntelligentMassSendingController@smallAppIndex');
  573. Route::post('accountList', 'IntelligentMassSendingController@accountList');
  574. Route::post('smallAppList', 'IntelligentMassSendingController@smallAppList');
  575. Route::post('appList', 'IntelligentMassSendingController@appList');
  576. });
  577. # 个人SOP
  578. Route::group(['prefix' => 'userSop'], function() {
  579. # 配置规则
  580. Route::post('setRule', 'UserSopController@setRule');
  581. # 配置列表
  582. Route::get('ruleList', 'UserSopController@ruleList');
  583. # 配置详情
  584. Route::get('ruleDetail', 'UserSopController@ruleDetail');
  585. # 配置禁用/开启
  586. Route::get('changeStatus', 'UserSopController@changeStatus');
  587. });
  588. });
  589. # h5接口
  590. Route::group(['namespace' => 'Api', 'middleware' => ['h5.verify'], 'prefix'=>'h5'], function () {
  591. #客户详情页
  592. Route::get('portrait/customerDetail', 'PortraitController@h5CustomerDetail');
  593. Route::get('portrait/h5CustomerDynamicList', 'PortraitController@h5CustomerDynamicList');
  594. Route::get('portrait/h5CustomerOrderList', 'PortraitController@h5CustomerOrderList');
  595. Route::post('portrait/h5CustomerTagUpdate', 'PortraitController@h5CustomerTagUpdate');
  596. Route::post('portrait/edit', 'PortraitController@edit');
  597. Route::post('portrait/tagList', 'PortraitController@h5TagList');
  598. #jsapi授权数据
  599. Route::post('auth/commonAuthData', 'AuthController@commonAuthData');
  600. Route::get('radarPage/list', 'RadarController@radarListForH5');
  601. Route::get('radarPage/groupList', 'RadarController@radarGroupListForH5'); //
  602. Route::get('radarPage/getLinkMsgOfRadar', 'RadarController@getLinkMsgOfRadar'); // 发送前替换雷达内部素材
  603. # 快捷话术
  604. Route::group(['prefix' => 'chatMenuPage'], function() {
  605. Route::get('list', 'ChatMenuController@chatMenuListForH5'); // 快捷话术信息列表
  606. Route::get('groupList', 'ChatMenuController@chatMenuGroupListForH5'); // 快捷话术组列表
  607. Route::get('report', 'ChatMenuController@behaviorReport'); // 数据上报
  608. Route::get('customerInfo', 'ChatMenuController@getCustomerInfo'); // 获取客户信息
  609. Route::get('chatMessage', 'ChatMenuController@chatMessage'); // 将消息处理成可发送的数据结构
  610. });
  611. # 客户群活码
  612. Route::group(['prefix' => 'chatGroupQrcode'], function() {
  613. # 获取群活码
  614. Route::get('detail', 'GroupChatJoinWayController@detail');
  615. # 群活码扫码数据上报
  616. Route::get('scan', 'GroupChatJoinWayController@scan');
  617. # 创建临时渠道码
  618. Route::get('contactQrcode', 'GroupChatJoinWayController@contactQrcode');
  619. });
  620. # 个人SOP
  621. Route::group(['prefix' => 'userSop'], function() {
  622. # 规则详情
  623. Route::get('detail', 'UserSopController@detail');
  624. # 获取待跟进客户信息
  625. Route::get('customer', 'UserSopController@customer');
  626. # 数据上报
  627. Route::get('report', 'UserSopController@report');
  628. });
  629. });