企微短剧业务系统

api.php 58KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  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. Route::get('/customer/customerCountStat', 'CustomerController@customerCountStat');
  248. /*
  249. * 角色管理
  250. */
  251. #添加角色
  252. Route::any("/role/add",'Admin\RoleController@create_role');
  253. #编辑角色
  254. Route::any("/role/edit",'Admin\RoleController@edit_role');
  255. #查看角色
  256. Route::get("/role/list",'Admin\RoleController@role_list');
  257. #查看角色详情
  258. Route::get("/role/info",'Admin\RoleController@role_info');
  259. #删除角色
  260. Route::any("/role/del",'Admin\RoleController@del_role');
  261. # 获取角色类型
  262. Route::get('/role/type', 'Admin\RoleController@role_type');
  263. #首页客户数据
  264. Route::get("/stat/custTotal",'StatisticsController@custTotal');
  265. Route::get("/stat/custTrends",'StatisticsController@custTrends');
  266. #推广数据
  267. Route::get("/stat/playletPopulariz",'StatisticsController@playletPopulariz');
  268. Route::get("/stat/momentsPopulariz",'StatisticsController@momentsPopulariz');
  269. Route::get("/stat/popularizAccounts",'StatisticsController@popularizAccounts');
  270. Route::get("/stat/popularizPlaylets",'StatisticsController@popularizPlaylets');
  271. Route::get("/stat/popularizCompanys",'StatisticsController@popularizCompanys');
  272. #运营数据
  273. Route::get("/stat/operateDayRetrieve",'StatisticsController@operateDayRetrieve');
  274. Route::get('/stat/operateDayRetrieveByAccount', 'StatisticsController@operateDayRetrieveByAccount');
  275. # 运营端数据
  276. Route::group(['prefix'=>'operate'],function() {
  277. Route::get('accountData', 'OperateController@accountData'); // 运营公众号数据
  278. Route::get('accountDataSummary', 'OperateController@accountDataSummary'); // 运营公众号数据汇总
  279. Route::get('data', 'OperateController@data'); // 运营数据
  280. Route::get('dataSummary', 'OperateController@dataSummary'); // 运营数据汇总
  281. });
  282. #投手数据
  283. Route::get("/stat/throwPersonData",'StatisticsController@throwPersonData');
  284. Route::get("/stat/throwPersonList",'StatisticsController@throwPersonList');
  285. #公众号趋势
  286. Route::get("/stat/officialTrendTotal",'StatisticsController@officialTrendTotal');
  287. Route::get("/stat/officialTrendList",'StatisticsController@officialTrendList');
  288. Route::get("/stat/chargeUserUnique",'StatisticsController@chargeUserUnique');
  289. Route::get("/stat/firstDayChargeUserUnique",'StatisticsController@firstDayChargeUserUnique');
  290. #客户汇总数据
  291. Route::get("/stat/custTotalNew",'StatisticsController@custTotalNew');
  292. Route::get("/stat/custTrendsNew",'StatisticsController@custTrendsNew');
  293. Route::get("/stat/custDataList",'StatisticsController@custDataList');
  294. /***
  295. * 管理员管理
  296. */
  297. #管理员列表
  298. Route::get("/admin/list","Admin\AdminController@admin_list");
  299. Route::get("/admin/info","Admin\AdminController@admin_info");
  300. #列出可选主体
  301. Route::get("/all_corp/list","Admin\AdminController@corp_list");
  302. #列出可选角色
  303. Route::get("/all_role/list","Admin\AdminController@role_list");
  304. #管理员创建
  305. Route::any("/admin/create","Admin\AdminController@create_admin");
  306. #管理员编辑
  307. Route::any("/admin/edit","Admin\AdminController@edit_admin");
  308. #管理员删除
  309. Route::any("/admin/del","Admin\AdminController@delete_admin");
  310. # 企微批量分配绑定成员
  311. Route::post('/admin/corpBindMultipleUser', 'Admin\AdminController@corpBindMultipleUser');
  312. # 企微已分配成员列表
  313. Route::get('/admin/getCorpBindUserList', 'Admin\AdminController@getCorpBindUserList');
  314. #用户权限列表
  315. Route::get("/userPermission/list","Admin\UserPermissionController@index");
  316. Route::get("/userPermission/userProfile","Admin\UserPermissionController@user_profile");
  317. # 获取用户是否有导出权限
  318. Route::get("/userPermission/exportAuth","Admin\UserPermissionController@exportAuth");
  319. Route::group(['prefix' => 'statistics'], function() {
  320. # 短剧数据趋势
  321. Route::get('playletDataTrend', 'DataStatisticsController@playletDataTrend');
  322. # 循环数据报表
  323. Route::get('reg_range_report', 'Report\AdvertiserController@reg_range_report');
  324. Route::get('reg_range_report_new', 'Report\AdvertiserController@reg_range_report_new');
  325. Route::get('dataCycleList', 'DataStatisticsController@dataCycleList');
  326. Route::get('dataCycleListByAccount', 'DataStatisticsController@dataCycleListByAccount');
  327. # 花生平台数据循环统计
  328. Route::get('HuaShengDataCycleList', 'DataStatisticsController@HuaShengDataCycleList');
  329. # 花生数据循环统计平台列表
  330. Route::get('HuaShengDataPlatformList', 'DataStatisticsController@HuaShengDataPlatformList');
  331. # 短剧投放趋势数据
  332. Route::get('playletTrendData', 'DataStatisticsController@playletTrendData');
  333. # 列表
  334. Route::get('publicAccountDataList', 'StatisticsController@publicAccountDataList');
  335. # 总概
  336. Route::get('publicAccountDataSummary', 'StatisticsController@publicAccountDataSummary');
  337. # 充值数据
  338. Route::get('cumulativeRecoveryData', 'StatisticsController@cumulativeRecoveryData');
  339. # 客服数据
  340. Route::get('customerServiceData', 'StatisticsController@customerServiceData');
  341. # 客服数据总概
  342. Route::get('customerServiceDataTotal', 'StatisticsController@customerServiceDataTotal');
  343. # 投手ADQ数据汇总
  344. Route::get('pitcherAdqAccountData', 'DataStatisticsController@pitcherAdqAccountData');
  345. });
  346. # 新客户详情概览
  347. Route::get('/customer/customerDetails', 'CustomerController@customerDetails');
  348. # 投手数据
  349. Route::get("/stat/pitcherData",'StatisticsController@pitcherData');
  350. # 编辑客服状态
  351. Route::post('/user/updateUserStatus', 'UserController@updateUserStatus');
  352. ## 预警相关
  353. # 批量加好友
  354. Route::group(['prefix'=>'warn'],function() {
  355. # 预警用户组列表
  356. Route::get("groupList",'WarnController@groupList');
  357. # 预警用户组添加
  358. Route::post("groupAdd",'WarnController@groupAdd');
  359. # 预警用户组数据详情
  360. Route::get("groupDetail",'WarnController@groupDetail');
  361. # 预警用户组编辑
  362. Route::post("groupEdit",'WarnController@groupEdit');
  363. # 预警用户组开启和禁用
  364. Route::post("groupEableOp",'WarnController@groupEableOp');
  365. # 预警规则配置列表
  366. Route::get("ruleConfList",'WarnController@ruleConfList');
  367. # 预警规则配置操作
  368. Route::post("ruleConfOperate",'WarnController@ruleConfOperate');
  369. # 预警人员列表
  370. Route::get("userList",'WarnController@userList');
  371. # 预警人员操作
  372. Route::post("userOperate",'WarnController@userOperate');
  373. # 预警客服列表
  374. Route::get("djuserList",'WarnController@djuserList');
  375. # 企微用户规模阈值列表(废弃)
  376. Route::get('corpUserScaleWarnThresholdList', 'WarnController@corpUserScaleWarnThresholdList');
  377. # 企微用户规模预警设置(废弃)
  378. Route::post('setCorpUserScaleWarnConf', 'WarnController@setCorpUserScaleWarnConf');
  379. # 企微用户规模预警设置(新)
  380. Route::post('setCorpUserScaleWarnConfNew', 'WarnController@setCorpUserScaleWarnConfNew');
  381. # 企微用户规模预警展示
  382. Route::post('getCorpUserScaleWarnConf', 'WarnController@getCorpUserScaleWarnConf');
  383. });
  384. # 账号异常预警
  385. Route::group(['prefix' => 'abnormalAccount'], function() {
  386. # 设置预警规则
  387. Route::post('setConf', 'AbnormalAccountController@setConf');
  388. # 预警规则列表
  389. Route::get('confList', 'AbnormalAccountController@confList');
  390. # 预警规则详情
  391. Route::get('confDetail', 'AbnormalAccountController@confDetail');
  392. # 预警规则开启关闭
  393. Route::post('updateConfStatus', 'AbnormalAccountController@updateConfStatus');
  394. });
  395. # 批量添加客户--导入
  396. Route::post('/customer/batchAddCustomerImport', 'CustomerController@batchAddCustomerImport');
  397. # 批量添加客户--二次确认
  398. Route::post('/customer/batchAddCustomerImportConfirm', 'CustomerController@batchAddCustomerImportConfirm');
  399. # 客户导入列表
  400. Route::get('/customer/batchAddCustomerDetailsList', 'CustomerController@batchAddCustomerDetailsList');
  401. # 客户导入记录列表
  402. Route::get('/customer/batchAddCustomerRecordList', 'CustomerController@batchAddCustomerRecordList');
  403. # 客户导入记录详情
  404. Route::get('/customer/batchAddCustomerRecordDetail', 'CustomerController@batchAddCustomerRecordDetail');
  405. # 批量分配客户
  406. Route::post('/customer/batchDistributionCustomer', 'CustomerController@batchDistributionCustomer');
  407. # 删除导入记录
  408. Route::post('/customer/deleteRecord', 'CustomerController@deleteRecord');
  409. # 删除导入客户
  410. Route::post('/customer/deleteDetail', 'CustomerController@deleteDetail');
  411. # 批量提醒
  412. Route::post('/customer/batchRemind', 'CustomerController@batchRemind');
  413. # 批量添加客户 导入excel
  414. Route::post('/material/importExcel', 'MaterialController@importExcel');
  415. # 预警用户组列表
  416. Route::get("/warn/groupList",'WarnController@groupList');
  417. # 预警用户组添加
  418. Route::post("/warn/groupAdd",'WarnController@groupAdd');
  419. # 预警用户组数据详情
  420. Route::get("/warn/groupDetail",'WarnController@groupDetail');
  421. # 预警用户组编辑
  422. Route::post("/warn/groupEdit",'WarnController@groupEdit');
  423. # 预警规则配置列表
  424. Route::get("/warn/ruleConfList",'WarnController@ruleConfList');
  425. # 预警规则配置操作
  426. Route::post("/warn/ruleConfOperate",'WarnController@ruleConfOperate');
  427. # 快捷话术
  428. Route::group(['prefix' => 'chatMenu'], function () {
  429. Route::post('createChatMenuGroup', 'ChatMenuController@createChatMenuGroup');# 创建话术分组
  430. Route::get('chatMenuGroupList', 'ChatMenuController@chatMenuGroupList');# 话术分组列表
  431. Route::post('updateChatMenuGroup', 'ChatMenuController@updateChatMenuGroup');# 编辑话术分组
  432. Route::post('deleteChatMenuGroup', 'ChatMenuController@deleteChatMenuGroup');# 删除话术分组
  433. Route::post('updateChatMenuGroupSortOrder', 'ChatMenuController@updateChatMenuGroupSortOrder');# 话术分组排序
  434. Route::post('createChatMenuRule', 'ChatMenuController@createChatMenuRule');# 创建话术规则
  435. Route::get('chatMenuRuleList', 'ChatMenuController@chatMenuRuleList');# 话术规则列表
  436. Route::post('chatMenuRuleDetail', 'ChatMenuController@chatMenuRuleDetail');# 话术规则详情
  437. Route::post('updateChatMenuRule', 'ChatMenuController@updateChatMenuRule');# 编辑话术规则
  438. Route::post('deleteChatMenuRule', 'ChatMenuController@deleteChatMenuRule');# 删除话术规则
  439. Route::post('updateChatMenuRuleSortOrder', 'ChatMenuController@updateChatMenuRuleSortOrder');# 话术规则排序
  440. });
  441. ## 渠道活码
  442. # 活码分组
  443. Route::post("/sq/addSqgroup",'SourceQrcodeController@addSqgroup');
  444. Route::post("/sq/editSqgroup",'SourceQrcodeController@editSqgroup');
  445. Route::post("/sq/editGroupSort",'SourceQrcodeController@editGroupSort');
  446. Route::post("/sq/delSqGroup",'SourceQrcodeController@delSqGroup');
  447. Route::get("/sq/sqGroupList",'SourceQrcodeController@sqGroupList');
  448. # 渠道活码
  449. Route::post("/sq/addSourceQrcode",'SourceQrcodeController@addSourceQrcode');
  450. Route::post("/sq/editSourceQrcode",'SourceQrcodeController@editSourceQrcode');
  451. Route::get("/sq/sourceQrcodeList",'SourceQrcodeController@sourceQrcodeList');
  452. Route::post("/sq/delSourceQrcode",'SourceQrcodeController@delSourceQrcode');
  453. Route::get("/sq/sourceQrcodeDetail",'SourceQrcodeController@sourceQrcodeDetail');
  454. #推广数据
  455. Route::get("/populariz/ruleLists",'PopularizController@ruleLists');
  456. Route::get("/populariz/ruleTotal",'PopularizController@ruleTotal');
  457. Route::get("/populariz/taskList",'PopularizController@taskList');
  458. Route::get("/populariz/momentTotal",'PopularizController@momentTotal');
  459. Route::get('/populariz/promotionData', 'PopularizController@promotionData');
  460. # 送达数据
  461. Route::get('/service/massMsg', 'DataStatisticsController@massMsgServiceData');
  462. Route::get('/service/chatGroupMassMsg', 'DataStatisticsController@chatGroupMassMsgServiceData');
  463. Route::get('/service/periodMassMsg', 'DataStatisticsController@periodMassMsgServiceData');
  464. # 数据分析概览
  465. Route::get("/sq/dataView",'SourceQrcodeController@dataView');
  466. # 数据分析趋势
  467. Route::get("/sq/dataTrend",'SourceQrcodeController@dataTrend');
  468. # 数据统计
  469. Route::get("/sq/customerList",'SourceQrcodeController@customerList');
  470. Route::get("/sq/staffList",'SourceQrcodeController@staffList');
  471. # 智能雷达
  472. Route::group(['prefix' => 'radar'], function() {
  473. # 创建雷达组
  474. Route::post('radarGroupCreate', 'RadarController@radarGroupCreate');
  475. # 雷达组列表
  476. Route::get('radarGroupList', 'RadarController@radarGroupList');
  477. # 编辑雷达组
  478. Route::post('radarGroupUpdate', 'RadarController@radarGroupUpdate');
  479. # 雷达组排序
  480. Route::post('radarGroupSortUpdate', 'RadarController@radarGroupSortUpdate');
  481. # 删除雷达组
  482. Route::post('radarGroupDelete', 'RadarController@radarGroupDelete');
  483. # 创建雷达
  484. Route::post('radarCreate', 'RadarController@radarCreate');
  485. # 雷达列表
  486. Route::get('radarList', 'RadarController@radarList');
  487. # 雷达详情
  488. Route::get('radarDetail', 'RadarController@radarDetail');
  489. # 雷达编辑
  490. Route::post('radarUpdate', 'RadarController@radarUpdate');
  491. # 雷达排序
  492. Route::post('radarSortUpdate', 'RadarController@radarSortUpdate');
  493. # 删除雷达
  494. Route::post('radarDelete', 'RadarController@radarDelete');
  495. # 数据分析--总概
  496. Route::get('dataStatisticsTotal', 'RadarController@dataStatisticsTotal');
  497. # 数据分析--列表
  498. Route::get('dataStatisticsList', 'RadarController@dataStatisticsList');
  499. # 渠道列表
  500. Route::get('channelList', 'RadarController@channelList');
  501. });
  502. # 侧边栏-客户画像
  503. Route::group(['prefix'=>'portrait'],function() {
  504. # 画像配置列表
  505. Route::get("confList",'PortraitController@confList');
  506. # 画像配置操作
  507. Route::post("confOperate",'PortraitController@confOperate');
  508. # 画像配置添加属性
  509. Route::post("confAdd",'PortraitController@confAdd');
  510. # 画像配置修改属性
  511. Route::post("confEdit",'PortraitController@confEdit');
  512. });
  513. # 客户群群发
  514. Route::group(['prefix' => 'chatGroupMassMsg'], function() {
  515. # 设置群发规则
  516. Route::post('setRule', 'ChatGroupController@setChatGroupMassMsg');
  517. # 群发规则列表
  518. Route::get('ruleLists', 'ChatGroupController@ruleLists');
  519. # 群发规则详情
  520. Route::get('ruleDetail', 'ChatGroupController@ruleDetail');
  521. # 群发规则禁用启用
  522. Route::post('updateStatus', 'ChatGroupController@updateStatus');
  523. # 群发规则消息提醒
  524. Route::post('noticeUser', 'ChatGroupController@noticeUser');
  525. # 群发详情-客户群接收列表
  526. Route::get('chatGroupReceiveDetail', 'ChatGroupController@chatGroupReceiveDetail');
  527. });
  528. # 客户群管理
  529. Route::group(['prefix' => 'chatGroup'], function() {
  530. # 群列表
  531. Route::get('groupList', 'ChatGroupController@groupList');
  532. # 获取企业所有客户群去重后的客户数
  533. Route::get('uniqueMemberCount', 'ChatGroupController@uniqueMemberCount');
  534. # 客户群概况
  535. Route::get('condition', 'ChatGroupController@condition');
  536. # 群成员列表
  537. Route::get('memberList', 'ChatGroupController@memberList');
  538. # 群主列表
  539. Route::get('ownerList', 'ChatGroupController@chatGroupOwnerList');
  540. # 获取账号下各企微的群主列表
  541. Route::get('ownerListOfCompany', 'ChatGroupController@OwnerListOfCompany');
  542. # 客户群检索列表
  543. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  544. # 简版群主列表
  545. Route::get('chatGroupOwnerIndex', 'ChatGroupController@chatGroupOwnerIndex');
  546. # 邀请入群规则配置
  547. Route::post('setInviteRule', 'ChatGroupController@setInviteRule');
  548. # 邀请入群规则列表
  549. Route::get('inviteRuleList', 'ChatGroupController@inviteRuleList');
  550. # 邀请入群规则详情
  551. Route::get('inviteRuleDetail', 'ChatGroupController@inviteRuleDetail');
  552. # 删除邀请入群规则
  553. Route::get('inviteRuleDel', 'ChatGroupController@inviteRuleDel');
  554. # 修改邀请入群规则状态
  555. Route::get('inviteRuleStatusChange', 'ChatGroupController@inviteRuleStatusChange');
  556. # 客户群数据
  557. Route::post('chatGroupStatistic', 'ChatGroupController@chatGroupStatistic');
  558. # 客户群数据概览
  559. Route::post('chatGroupCondition', 'ChatGroupController@chatGroupCondition');
  560. # 手动同步企微客户群列表
  561. Route::get('syncCorpChatGroup', 'ChatGroupController@syncCorpChatGroup');
  562. # 添加客户群欢迎语素材
  563. Route::post('setWelcomeTemplate', 'ChatGroupController@setWelcomeTemplate');
  564. # 客户群欢迎语素材列表
  565. Route::get('welcomeTemplateList', 'ChatGroupController@welcomeTemplateList');
  566. # 客户群欢迎语素材详情
  567. Route::get('welcomeTemplateDetail', 'ChatGroupController@welcomeTemplateDetail');
  568. # 删除客户群欢迎语素材
  569. Route::post('delWelcomeTemplate', 'ChatGroupController@delWelcomeTemplate');
  570. # 重置退群客户重新邀请入群时间点游标
  571. Route::get('resetSupplementaryInviteTime', 'ChatGroupController@resetSupplementaryInviteTime');
  572. });
  573. # 群渠道活码
  574. Route::group(['prefix' => 'qrcodeChatGroup'], function() {
  575. # 群活码创建
  576. Route::post('setRule', 'GroupChatJoinWayController@setRule');
  577. # 群活码编辑
  578. Route::post('editRule', 'GroupChatJoinWayController@editRule');
  579. # 群活码列表
  580. Route::get('ruleList', 'GroupChatJoinWayController@ruleList');
  581. # 群活码禁用
  582. Route::get('delQrcode', 'GroupChatJoinWayController@delQrcode');
  583. # 群活码详情
  584. Route::get('ruleDetail', 'GroupChatJoinWayController@ruleDetail');
  585. # 数据总概
  586. Route::get('condition', 'GroupChatJoinWayController@condition');
  587. # 群活码每日数据分析
  588. Route::get('dailyReport', 'GroupChatJoinWayController@dailyReport');
  589. # 群活码扫码进群客户列表
  590. Route::get('customerList', 'GroupChatJoinWayController@customerList');
  591. # 群活码配置群的数据分析
  592. Route::get('analysis', 'GroupChatJoinWayController@analysis');
  593. # 获取群组下的群活码规则数
  594. Route::get('chatGroupCountOfGroup', 'GroupChatJoinWayController@chatGroupCountOfGroup');
  595. # 客户群检索列表
  596. Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
  597. });
  598. # 账号数据趋势
  599. Route::group(['prefix' => 'accountDataTrend'], function() {
  600. # Adq账号数据
  601. Route::post('adqAccount', 'AccountDataTrendController@adqAccount');
  602. # Adq账号总概数据
  603. Route::post('adqAccountSummary', 'AccountDataTrendController@adqAccountSummary');
  604. # Adq账号数据汇总曲线
  605. Route::post('adqAccountCurve', 'AccountDataTrendController@adqAccountCurve');
  606. # Mp账号数据
  607. Route::post('mpAccount', 'AccountDataTrendController@mpAccount');
  608. # Mp账号总概数据
  609. Route::post('mpAccountSummary', 'AccountDataTrendController@mpAccountSummary');
  610. # Mp账号数据汇总曲线
  611. Route::post('mpAccountCurve', 'AccountDataTrendController@mpAccountCurve');
  612. # 各投放渠道累计账号数据
  613. Route::post('account', 'AccountDataTrendController@account');
  614. # 各投放渠道累计账号总概数据
  615. Route::post('accountSummary', 'AccountDataTrendController@accountSummary');
  616. # 各投放渠道累计账号数据汇总曲线
  617. Route::post('accountCurve', 'AccountDataTrendController@accountCurve');
  618. });
  619. # 粉丝激活趋势
  620. Route::group(['prefix' => 'activeFansTrend'], function() {
  621. # Adq粉丝激活趋势
  622. Route::post('adqAccount', 'ActiveFansDataController@adqAccount');
  623. # Adq粉丝激活趋势总概数据
  624. Route::post('adqAccountSummary', 'ActiveFansDataController@adqAccountSummary');
  625. # Adq粉丝激活趋势数据汇总曲线
  626. Route::post('adqAccountCurve', 'ActiveFansDataController@adqAccountCurve');
  627. # mp粉丝激活趋势
  628. Route::post('mpAccount', 'ActiveFansDataController@mpAccount');
  629. # mp粉丝激活趋势总概数据
  630. Route::post('mpAccountSummary', 'ActiveFansDataController@mpAccountSummary');
  631. # mp粉丝激活趋势数据汇总曲线
  632. Route::post('mpAccountCurve', 'ActiveFansDataController@mpAccountCurve');
  633. # 各投放渠道累计账号数据
  634. Route::post('account', 'ActiveFansDataController@account');
  635. # 各投放渠道累计账号总概数据
  636. Route::post('accountSummary', 'ActiveFansDataController@accountSummary');
  637. # 各投放渠道累计账号数据汇总曲线
  638. Route::post('accountCurve', 'ActiveFansDataController@accountCurve');
  639. });
  640. # 获取数据看板更新时间
  641. Route::get('/dataCube/uptime', 'DataStatisticsController@uptime');
  642. # 客户流失数据趋势
  643. Route::group(['prefix' => 'customerLossTrend'], function() {
  644. # 账号客户流失数据趋势
  645. Route::get('account', 'CustomerLossController@accountLossTrend');
  646. # 账号客户流失总概数据
  647. Route::get('summary', 'CustomerLossController@accountLossSummary');
  648. # 账号客户流失趋势曲线
  649. Route::get('curve', 'CustomerLossController@accountLossCurve');
  650. });
  651. # 第三方平台
  652. Route::group(['prefix' => 'platform'], function() {
  653. # 短剧列表
  654. Route::get('playletList', 'PlatformController@playletList');
  655. # 自动创建推广链接
  656. Route::get('createLink', 'PlatformController@createLink');
  657. # 创建编辑短剧组
  658. Route::post('setPlayletGroup', 'PlatformController@setPlayletGroup');
  659. # 短剧组列表
  660. Route::get('playletGroupList', 'PlatformController@playletGroupList');
  661. # 添加短剧人短剧组
  662. Route::get('addPlayletToGroup', 'PlatformController@addPlayletToGroup');
  663. # 短剧组详情
  664. Route::get('playletGroupDetail', 'PlatformController@playletGroupDetail');
  665. # 创建短剧组链接
  666. Route::get('createPlayletGroupLink', 'PlatformController@createPlayletGroupLink');
  667. # 添加剧集到剧集组参数校验
  668. Route::get('paramsValidate', 'PlatformController@paramsValidate');
  669. # 批量创建推广链接
  670. Route::post('batchCreateLink', 'PlatformController@batchCreateLink');
  671. });
  672. # 客服绑定adq投放账号ID
  673. Route::post('/user/bindUserAdqAccountId', 'UserController@bindUserAdqAccountId');
  674. Route::group(['prefix' => 'pitcher'], function() {
  675. # adq投放账号列表
  676. Route::get('adqAccountList', 'PitcherController@adqAccountList');
  677. # adq投放账号绑定投手,剧集
  678. Route::post('adqBindPitcher', 'PitcherController@adqBindPitcher');
  679. # adq绑定投手,剧集列表
  680. Route::get('adqPitcherIndex', 'PitcherController@adqPitcherIndex');
  681. # adq编辑绑定投手 剧集
  682. Route::post('adqEditPitcher', 'PitcherController@adqEditPitcher');
  683. # 编辑adq投放账号绑定企微以及数据源ID
  684. Route::post('adqBindUserActionSetId', 'PitcherController@adqBindUserActionSetId');
  685. # adq投放账号设置回传规则
  686. Route::post('setAdqAccountReportRule', 'PitcherController@setAdqAccountReportRule');
  687. # 投放账号列表(ADQ+MP)
  688. Route::get('adAccountList', 'PitcherController@adAccountList');
  689. # mp投放账号列表
  690. Route::get('wxAccountList', 'PitcherController@wxAccountList');
  691. # 公众号列表
  692. Route::get('officialAccountsList', 'PitcherController@officialAccountsList');
  693. # 剧集列表
  694. Route::get('dramaList', 'PitcherController@dramaList');
  695. # 投手列表
  696. Route::get('pitcherList', 'PitcherController@pitcherList');
  697. # 绑定投手
  698. Route::post('bind', 'PitcherController@bind');
  699. # 投手绑定数据
  700. Route::get('index', 'PitcherController@index');
  701. # 投手绑定数据
  702. Route::post('relaEdit', 'PitcherController@relaEdit');
  703. # 剧集添加
  704. Route::post('dramaAdd', 'PitcherController@dramaAdd');
  705. # 剧集编辑
  706. Route::post('dramaEdit', 'PitcherController@dramaEdit');
  707. # 公众号设置回传规则
  708. Route::post('setReportRule', 'PitcherController@setReportRule');
  709. Route::get('reportRuleList', 'PitcherController@reportRuleList');
  710. # 公众号绑定数据源,企微号
  711. Route::get('getCorpIdList', 'PitcherController@getCorpIdList');
  712. Route::post('setAccountReportConf', 'PitcherController@setAccountReportConf');
  713. # 绑定客服
  714. Route::post('adqAccountBindUserAction', 'PitcherController@adqAccountBindUserAction');
  715. # 已绑定客服列表
  716. Route::get('adqAccountBindUserList', 'PitcherController@adqAccountBindUserList');
  717. # 删除绑定关系
  718. Route::post('adqAccountBindUserDelete', 'PitcherController@adqAccountBindUserDelete');
  719. # 绑定公众号
  720. Route::post('adqAccountBindAppId', 'PitcherController@adqAccountBindAppId');
  721. });
  722. # 临时统计账号相关接口
  723. Route::group(['prefix' => 'provisionalStat'], function() {
  724. # 微信公众号列表
  725. Route::get('wxAccountList', 'ProvisionalStatController@wxAccountList');
  726. # adq投放账号列表
  727. Route::get('adqAccountList', 'ProvisionalStatController@adqAccountList');
  728. # adq账号绑定公众号
  729. Route::post('bind', 'ProvisionalStatController@bind');
  730. });
  731. # 好友共享配置
  732. Route::group(['prefix' => 'customerShare'], function() {
  733. Route::post('setConfig', 'AndroidToolController@takeoverUserBind'); // 好友共享配置绑定
  734. Route::get('configList', 'AndroidToolController@shareConfigList'); // 共享好友配置列表
  735. Route::get('changeStatus', 'AndroidToolController@shareConfigStatusChange'); // 修改配置状态
  736. });
  737. Route::group(['prefix' => 'shortPlayDataTrend'], function() {
  738. # 短剧数据趋势列表
  739. Route::post('adqShortPlayDataTrendList', 'ShortPlayDataTrendController@adqShortPlayDataTrendList');
  740. # 短剧数据趋势曲线(按日汇总)
  741. Route::post('adqShortPlayDataTrendCurve', 'ShortPlayDataTrendController@adqShortPlayDataTrendCurve');
  742. # 短剧数据趋势汇总
  743. Route::post('adqSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@adqSummaryOfShortDramaDataTrends');
  744. # 短剧数据趋势列表
  745. Route::post('mpShortPlayDataTrendList', 'ShortPlayDataTrendController@mpShortPlayDataTrendList');
  746. # 短剧数据趋势曲线(按日汇总)
  747. Route::post('mpShortPlayDataTrendCurve', 'ShortPlayDataTrendController@mpShortPlayDataTrendCurve');
  748. # 短剧数据趋势汇总
  749. Route::post('mpSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@mpSummaryOfShortDramaDataTrends');
  750. # 短剧数据趋势列表
  751. Route::post('shortPlayDataTrendList', 'ShortPlayDataTrendController@shortPlayDataTrendList');
  752. # 短剧数据趋势曲线(按日汇总)
  753. Route::post('shortPlayDataTrendCurve', 'ShortPlayDataTrendController@shortPlayDataTrendCurve');
  754. # 短剧数据趋势汇总
  755. Route::post('summaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrends');
  756. # 短剧数据趋势列表
  757. Route::post('shortPlayDataTrendListByAccount', 'ShortPlayDataTrendController@shortPlayDataTrendListByAccount');
  758. # 短剧数据趋势曲线(按日汇总)
  759. Route::post('shortPlayDataTrendCurveByAccount', 'ShortPlayDataTrendController@shortPlayDataTrendCurveByAccount');
  760. # 短剧数据趋势汇总
  761. Route::post('summaryOfShortDramaDataTrendsByAccount', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrendsByAccount');
  762. });
  763. Route::group(['prefix' => 'intelligentMassSending'], function(){
  764. Route::post('addAccount', 'IntelligentMassSendingController@addAccount');
  765. Route::post('platformIndex', 'IntelligentMassSendingController@platformIndex');
  766. Route::post('accountIndex', 'IntelligentMassSendingController@accountIndex');
  767. Route::post('editAccount', 'IntelligentMassSendingController@editAccount');
  768. Route::post('addSmallApp', 'IntelligentMassSendingController@addSmallApp');
  769. Route::post('editSmallApp', 'IntelligentMassSendingController@editSmallApp');
  770. Route::post('smallAppIndex', 'IntelligentMassSendingController@smallAppIndex');
  771. Route::post('accountList', 'IntelligentMassSendingController@accountList');
  772. Route::post('smallAppList', 'IntelligentMassSendingController@smallAppList');
  773. Route::post('appList', 'IntelligentMassSendingController@appList');
  774. });
  775. # 个人SOP
  776. Route::group(['prefix' => 'userSop'], function() {
  777. # 配置规则
  778. Route::post('setRule', 'UserSopController@setRule');
  779. # 配置列表
  780. Route::get('ruleList', 'UserSopController@ruleList');
  781. # 配置详情
  782. Route::get('ruleDetail', 'UserSopController@ruleDetail');
  783. # 配置禁用/开启
  784. Route::get('changeStatus', 'UserSopController@changeStatus');
  785. });
  786. # 智能群发(新用户延迟运营)
  787. Route::group(['prefix' => 'CircleMassMsg'], function() {
  788. Route::post('set', 'CircleMassMsgController@setRule'); // 设置智能群发规则
  789. Route::get('lists', 'CircleMassMsgController@ruleLists'); // 群发智能规则列表
  790. Route::get('detail', 'CircleMassMsgController@ruleDetail'); // 智能群发规则详情
  791. Route::get('updateStatus', 'CircleMassMsgController@updateStatus'); // 智能群发规则状态变更
  792. Route::get('recordLists', 'CircleMassMsgController@recordLists'); // 发送记录列表
  793. Route::get('recordDetail', 'CircleMassMsgController@recordDetail'); // 发送记录详情
  794. Route::get('overview', 'CircleMassMsgController@overview'); // 发送记录统计数据
  795. Route::get('senderList', 'CircleMassMsgController@senderList');// 发送记录客服列表
  796. Route::get('senderListExport', 'CircleMassMsgController@senderListExport'); // 发送记录客服导出
  797. Route::get('massSendCustList', 'CircleMassMsgController@massSendCustList'); // 发送记录客服发送的客户列表
  798. Route::get('massSendCustListExport', 'CircleMassMsgController@massSendCustListExport'); //发送记录客服发送的客户列表数据导出
  799. });
  800. # 智能群发V2(新用户按添加自然日进行周期运营)
  801. Route::group(['prefix' => 'PeriodMassMsg'], function() {
  802. Route::post('editTempGroup', 'PeriodMassMsgController@editTempGroup'); // 新建/编辑模板分组
  803. Route::post('tempGroupList', 'PeriodMassMsgController@tempGroupList'); // 模板分组列表
  804. Route::get('changeTempGroupStatus', 'PeriodMassMsgController@changeTempGroupStatus'); // 变更模板分组状态
  805. Route::get('delTempGroup', 'PeriodMassMsgController@delTempGroup'); // 删除模板分组
  806. Route::post('changeTempGroupBatch', 'PeriodMassMsgController@changeTempGroupBatch'); // 批量移动模板分组
  807. Route::post('setTemplate', 'PeriodMassMsgController@setTemplate'); // 设置智能群发模板
  808. Route::get('templateList', 'PeriodMassMsgController@templateList'); // 智能群发模板列表
  809. Route::get('templateDetail', 'PeriodMassMsgController@templateDetail'); // 智能群发模板详情
  810. Route::get('changeStatus', 'PeriodMassMsgController@changeStatus'); // 智能群发模板状态变更
  811. Route::get('delTemplate', 'PeriodMassMsgController@delTemplate'); // 批量删除智能群发模板
  812. Route::post('editGroup', 'PeriodMassMsgController@editGroup'); // 新建/编辑智能群发分组
  813. Route::post('groupList', 'PeriodMassMsgController@groupList'); // 智能群发分组列表
  814. Route::get('groupDetail', 'PeriodMassMsgController@groupDetail'); // 智能群发分组详情
  815. Route::get('changeGroupStatus', 'PeriodMassMsgController@changeGroupStatus'); // 变更智能群发分组状态
  816. Route::get('delGroup', 'PeriodMassMsgController@delGroup'); // 删除智能群发分组
  817. Route::post('changeGroupBatch', 'PeriodMassMsgController@changeGroupBatch'); // 批量移动智能群发规则分组
  818. Route::post('set', 'PeriodMassMsgController@setRule'); // 设置智能群发规则
  819. Route::get('lists', 'PeriodMassMsgController@ruleLists'); // 群发智能规则列表
  820. Route::get('detail', 'PeriodMassMsgController@ruleDetail'); // 智能群发规则详情
  821. Route::get('updateStatus', 'PeriodMassMsgController@updateStatus'); // 智能群发规则状态变更
  822. Route::get('recordLists', 'PeriodMassMsgController@recordLists'); // 发送记录列表
  823. Route::get('recordDetail', 'PeriodMassMsgController@recordDetail'); // 发送记录详情
  824. Route::get('overview', 'PeriodMassMsgController@overview'); // 发送记录统计数据
  825. Route::get('senderList', 'PeriodMassMsgController@senderList');// 发送记录客服列表
  826. Route::get('senderListExport', 'PeriodMassMsgController@senderListExport'); // 发送记录客服导出
  827. Route::get('massSendCustList', 'PeriodMassMsgController@massSendCustList'); // 发送记录客服发送的客户列表
  828. Route::get('massSendCustListExport', 'PeriodMassMsgController@massSendCustListExport'); //发送记录客服发送的客户列表数据导出
  829. Route::get('deleteRule', 'PeriodMassMsgController@deleteRule');
  830. });
  831. # 客户阶段
  832. Route::group(['prefix' => 'CustomerStage'], function() {
  833. Route::post('setStageRule', 'CustomerStageController@setStageRule'); # 设置阶段规则
  834. Route::get('stageRuleList', 'CustomerStageController@stageRuleList'); # 阶段规则列表
  835. Route::post('stageRuleDel', 'CustomerStageController@stageRuleDel'); # 阶段规则删除
  836. Route::post('stageRuleSort', 'CustomerStageController@stageRuleSort'); # 阶段规则排序
  837. Route::get('confirmSet', 'CustomerStageController@confirmSet'); # 排序后确认阶段配置
  838. Route::get('basicDataAnalysis', 'CustomerStageController@basicDataAnalysis'); # 基础数据分析
  839. Route::get('tagRankList', 'CustomerStageController@tagRankList'); # 标签排行
  840. Route::get('analysis', 'CustomerStageController@analysis');// 客户阶段分析-总该
  841. Route::get('trend', 'CustomerStageController@trend'); # 客户阶段分析-趋势
  842. Route::get('situation', 'CustomerStageController@situation'); # 客户阶段分析-流转情况
  843. });
  844. # 运营组
  845. Route::group(['prefix' => 'OperationGroup'], function() {
  846. Route::post('setConfig', 'OperationGroupController@setConfig'); # 配置运营组信息
  847. Route::get('groupList', 'OperationGroupController@groupList'); # 运营组信息列表
  848. Route::get('groupDetail', 'OperationGroupController@groupDetail'); # 运营组详情
  849. Route::get('changeStatus', 'OperationGroupController@groupStatusChange'); # 运营组状态调整
  850. });
  851. # 素材库
  852. Route::group(['prefix' => 'media'], function() {
  853. Route::post('editGroup', 'MediaController@editGroup'); # 创建/编辑 素材组
  854. Route::get('delGroup', 'MediaController@delGroup'); # 删除素材组
  855. Route::get('groupList', 'MediaController@groupList'); # 素材组列表
  856. Route::post('upload', 'MaterialController@uploadFileToOss'); # 上传素材
  857. Route::post('editMedia', 'MediaController@editMedia'); # 批量新增/编辑素材到素材库
  858. Route::get('mediaList', 'MediaController@mediaList'); # 素材列表
  859. Route::post('changeGroup', 'MediaController@changeGroup'); # 批量移动素材至指定分组
  860. Route::post('delMedia', 'MediaController@delMedia'); # 批量删除素材
  861. Route::get('mediaSel', 'MediaController@mediaSel'); # 选择素材
  862. });
  863. # 安卓模拟点击工具相关
  864. Route::group(['prefix' => 'androidTool'], function() {
  865. Route::post('editCorpBind', 'AndroidToolController@editCorpBind'); # 安卓设备与企微、客服信息绑定关系设置
  866. Route::get('bindDetail', 'AndroidToolController@bindDetail'); # 安卓设备绑定详情
  867. Route::post('deviceList', 'AndroidToolController@deviceList'); # 安卓设备列表
  868. Route::get('forwardMsgRecord', 'AndroidToolController@forwardMsgRecord'); # 消息转发记录列表
  869. });
  870. # 投放账号绑定推广计划(直投)
  871. Route::group(['prefix' => 'accountConf'], function() {
  872. Route::post('bindPid', 'AccountConfController@bindPid'); # 绑定pid
  873. Route::get('bindPidList', 'AccountConfController@bindPidList'); # 获取绑定pid列表
  874. Route::post('editStatus', 'AccountConfController@editStatus'); # 修改绑定关系状态
  875. Route::get('checkBindType', 'AccountConfController@checkBindType'); # 检测是否绑定了其他投放关系
  876. });
  877. # 客户群分配
  878. Route::group(['prefix' => 'chatGroupTransfer'], function() {
  879. Route::post('editConfig', 'ChatGroupTransferController@editConfig'); # 编辑分配客户群配置
  880. Route::get('configList', 'ChatGroupTransferController@configList'); # 分配客户群配置列表
  881. Route::get('configDetail', 'ChatGroupTransferController@configDetail'); # 分配客户群配置详情
  882. Route::get('changeStatus', 'ChatGroupTransferController@changeStatus'); # 修改配置状态
  883. Route::get('record', 'ChatGroupTransferController@record'); # 获取客户群分配分配记录
  884. });
  885. # 转发消息客户群创建配置
  886. Route::group(['prefix' => 'forwardChatGroup'], function() {
  887. Route::get('forwardMemberList', 'ChatGroupController@forwardMemberList'); # 开启转发消息状态客服列表(转发人列表)
  888. Route::post('setRule', 'ChatGroupController@setForwardChatGroupCreateRule'); # 创建群规则配置
  889. Route::get('ruleList', 'ChatGroupController@forwardChatGroupCreateRuleList'); # 规则列表
  890. Route::get('ruleDetail', 'ChatGroupController@forwardChatGroupCreateRuleDetail'); # 规则详情
  891. Route::post('changeStatus', 'ChatGroupController@forwardChatGroupCreateRuleChangeStatus'); # 规则开启关闭
  892. Route::post('delRule', 'ChatGroupController@forwardChatGroupCreateRuleDelete'); # 删除规则
  893. });
  894. });
  895. # h5接口
  896. Route::group(['namespace' => 'Api', 'middleware' => ['h5.verify'], 'prefix'=>'h5'], function () {
  897. #客户详情页
  898. Route::get('portrait/customerDetail', 'PortraitController@h5CustomerDetail');
  899. Route::get('portrait/h5CustomerDynamicList', 'PortraitController@h5CustomerDynamicList');
  900. Route::get('portrait/h5CustomerOrderList', 'PortraitController@h5CustomerOrderList');
  901. Route::post('portrait/h5CustomerTagUpdate', 'PortraitController@h5CustomerTagUpdate');
  902. Route::post('portrait/edit', 'PortraitController@edit');
  903. Route::post('portrait/tagList', 'PortraitController@h5TagList');
  904. #jsapi授权数据
  905. Route::post('auth/commonAuthData', 'AuthController@commonAuthData');
  906. Route::get('radarPage/list', 'RadarController@radarListForH5');
  907. Route::get('radarPage/groupList', 'RadarController@radarGroupListForH5'); //
  908. Route::get('radarPage/getLinkMsgOfRadar', 'Radarcd Controller@getLinkMsgOfRadar'); // 发送前替换雷达内部素材
  909. # 快捷话术
  910. Route::group(['prefix' => 'chatMenuPage'], function() {
  911. Route::get('list', 'ChatMenuController@chatMenuListForH5'); // 快捷话术信息列表
  912. Route::get('groupList', 'ChatMenuController@chatMenuGroupListForH5'); // 快捷话术组列表
  913. Route::get('report', 'ChatMenuController@behaviorReport'); // 数据上报
  914. Route::get('customerInfo', 'ChatMenuController@getCustomerInfo'); // 获取客户信息
  915. Route::get('chatMessage', 'ChatMenuController@chatMessage'); // 将消息处理成可发送的数据结构
  916. });
  917. # 客户群活码
  918. Route::group(['prefix' => 'chatGroupQrcode'], function() {
  919. # 获取群活码
  920. Route::get('detail', 'GroupChatJoinWayController@detail');
  921. # 群活码扫码数据上报
  922. Route::get('scan', 'GroupChatJoinWayController@scan');
  923. # 创建临时渠道码
  924. Route::get('contactQrcode', 'GroupChatJoinWayController@contactQrcode');
  925. });
  926. # 个人SOP
  927. Route::group(['prefix' => 'userSop'], function() {
  928. # 规则详情
  929. Route::get('detail', 'UserSopController@detail');
  930. # 获取待跟进客户信息
  931. Route::get('customer', 'UserSopController@customer');
  932. # 数据上报
  933. Route::get('report', 'UserSopController@report');
  934. });
  935. # 客户群群发
  936. Route::group(['prefix' => 'chatGroupMag'], function(){
  937. # 获取群发内容
  938. Route::get('getMessage', 'ChatGroupMsgController@getMessage');
  939. # 发送数据上报
  940. Route::get('report', 'ChatGroupMsgController@report');
  941. });
  942. Route::get('platform/playletGroupH5Detail', 'PlatformController@playletGroupH5Detail');
  943. # 安卓客户端获取待确认的消息
  944. Route::get('massMsg/senderConfirm', 'MassMsgController@senderConfirmList');
  945. # 安卓客户端获取待邀请入群的客户信息
  946. Route::post('customer/waitInvite', 'CustomerController@waitInvite');
  947. # 安卓客户端获取待邀请入群的补充客户信息-按群模板随机补拉
  948. Route::post('customer/waitSupplementaryInvite', 'CustomerController@waitSupplementaryInvite');
  949. # 安卓客户端获取待邀请入群的补充客户信息-将用户拉回指定群
  950. Route::post('customer/waitInviteTargetGroup', 'CustomerController@waitInviteTargetGroup');
  951. # 安卓客户端获取待邀请入群的客户信息-新用户邀请入群
  952. Route::post('customer/inviteNewUser', 'CustomerController@inviteNewUser');
  953. # 安卓客户端获取待共享的客户信息
  954. Route::post('customer/waitShare', 'CustomerController@waitShare');
  955. # 安卓客户端获取待确认发送的朋友圈信息
  956. Route::get('momentMsg/senderConfirm', 'MomentController@senderConfirmList');
  957. # 安卓客户端获取单向好友开关状态
  958. Route::get('customer/getHistoryDataAndStatus', 'AndroidToolController@getHistoryDataAndStatus');
  959. # 安卓客户端获取单向好友
  960. Route::post('customer/receiveUploadData', 'AndroidToolController@receiveUploadData');
  961. # 接收创建群聊任务消息
  962. Route::post('chatGroup/receiveCreateChatGroupData', 'ChatGroupController@receiveCreateChatGroupData');
  963. # 创建群聊任务下发
  964. Route::post('chatGroup/getCreateGroupTask', 'ChatGroupController@getCreateGroupTask');
  965. # 获取待邀请入群的转发客服信息
  966. Route::post('chatGroup/waitCreate', 'AndroidToolController@waitCreate');
  967. # 获取模拟点击工具转发消息记录
  968. Route::post('forwardMessageRecord', 'AndroidToolController@forwardMessageRecord');
  969. });