123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- <?php
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- Route::middleware('auth:api')->get('/user', function (Request $request) {
- return $request->user();
- });
- # 简单的登录
- Route::get('/login', 'Api\SysUserController@login');
- # 客户来源列表
- Route::get('/customer/addWayList', 'Api\CustomerController@addWayList');
- # 测试视图查询
- Route::get('/customer/test', 'Api\TestController@customer');
- Route::get('/radar/traceLinkGet', 'Api\TestController@traceLink');
- Route::get('/customer/getExternalUserid', 'Api\TestController@getExternalUserid');
- # 获取分表信息
- Route::get('/getLabel/{corpid}', 'Api\TestController@getLabel');
- # 获取用户授权信息
- Route::get('/empower', 'Api\AuthController@getAuthorize');
- # 沈松的测试接口
- Route::get('/ss/test', 'Api\TestController@ssTest');
- # 获取jsapi授权相关信息
- Route::get('/jsapi/auth', 'Api\AuthController@authData');
- # 网页授权通过code获取用户信息
- Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
- # 获取客服已分配的客户列表
- Route::get('/task/customerList', 'Api\BatchAddCustomerController@customerList');
- # 添加客户行为数据上报
- Route::get('/addCustomer/dataReporting', 'Api\BatchAddCustomerController@dataReporting');
- # 智能雷达
- Route::group(['prefix' => 'radarPage'], function() {
- Route::get('detail', 'Api\RadarController@radarDetailForH5'); // 获取H5页面需要展示的雷达内容
- Route::get('report', 'Api\RadarController@behaviorReport'); // 数据上报
- });
- # 网页授权通过code获取用户信息
- Route::get('/oauth2/userInfo', 'Api\AuthController@oauth2Authorize');
- # 登录之后才可以访问
- Route::group(['namespace' => 'Api', 'middleware' => ['api.login']], function () {
- # 获取预授权码
- Route::get('/authCode', 'AuthController@getPreAuthCode');
- # 获取企业内用户列表
- Route::get('/sys/userList', 'SysUserController@userList');
- # 群发消息
- Route::group(['prefix'=>'massMsg'],function() {
- Route::post('set', 'MassMsgController@setRule'); // 设置群发规则
- Route::get('lists', 'MassMsgController@ruleLists'); // 群发规则列表
- Route::get('detail', 'MassMsgController@ruleDetail'); // 群发规则详情
- Route::get('customerMatchCount', 'MassMsgController@customerMatchCount'); // 群发规则匹配客户数查询
- Route::get('updateStatus', 'MassMsgController@updateStatus'); // 群发规则状态变更
- Route::get('noticeUser', 'MassMsgController@noticeUser'); // 给员工群发记录未发送成员发送消息提醒
- Route::get('data/overview', 'MassMsgController@overview'); //数据统计纵览
- Route::get('data/sender_list', 'MassMsgController@sender_list'); //发送成员列表
- Route::get('data/sender_list/export', 'MassMsgController@sender_list_export'); //发送成员导出
- Route::get('massSendCustList', 'MassMsgController@massSendCustList'); //发送客户列表
- Route::get('massSendCustList/export', 'MassMsgController@massSendCustListExport'); //发送客户列表
- });
- # 新用户欢迎语
- Route::group(['prefix'=>'welcomeMsg'],function() {
- Route::post('set', 'WelcomeMsgController@setRule'); // 设置新用户欢迎语规则
- Route::get('lists', 'WelcomeMsgController@ruleLists'); // 新用户欢迎语规则列表
- Route::get('detail', 'WelcomeMsgController@ruleDetail'); // 新用户欢迎语规则详情
- Route::get('updateStatus', 'WelcomeMsgController@updateStatus'); // 新用户欢迎语规则状态变更
- Route::post('strLength', 'WelcomeMsgController@strLength'); // 获取欢迎语内容长度
- });
- # 素材管理
- Route::group(['prefix'=>'material'],function() {
- Route::post('upload', 'MaterialController@upload'); // 上传素材
- Route::post('uploadFileToOss', 'MaterialController@uploadFileToOss'); // 上传文件到阿里云oss
- });
- # 充值订单管理
- Route::group(['prefix'=>'order'],function() {
- Route::post('stat', 'OrderController@dataStat'); // 订单数据汇总
- Route::post('lists', 'OrderController@lists'); // 企微订单列表
- });
- # 朋友圈消息
- Route::group(['prefix'=>'momentMsg'],function() {
- Route::post('set', 'MomentController@setRule'); // 设置朋友圈任务规则
- Route::get('lists', 'MomentController@taskList'); // 朋友圈任务规则列表
- Route::get('detail', 'MomentController@taskDetail'); // 朋友圈任务规则详情
- Route::get('customerMatchCount', 'MomentController@customerMatchCount'); // 朋友圈任务匹配客户数查询
- Route::get('changeStatus', 'MomentController@changeStatus'); // 朋友圈任务状态变更
- Route::get('momentInteract', 'MomentController@momentInteract'); // 朋友圈点赞评论详情
- Route::get('momentRecordList', 'MomentController@momentRecordList'); // 朋友圈发送记录列表
- Route::get('noticeUser', 'MomentController@noticeUser'); // 给朋友圈消息未发送成员发送消息提醒
- });
- # 批量加好友
- Route::group(['prefix'=>'BatchAddCustomer'],function() {
- Route::post('editConfig', 'BatchAddCustomerController@setAutomateConfig'); // 配置自动提醒及自动回收
- Route::get('configInfo', 'BatchAddCustomerController@configInfo'); // 获取自动提醒及自动回收配置信息
- Route::post('noticeUser', 'BatchAddCustomerController@noticeUser'); // 手动提醒客服完成加好友任务
- Route::get('dataSummary', 'BatchAddCustomerController@dataSummary'); // 数据概览
- Route::get('statistic', 'BatchAddCustomerController@statistic'); // 好友添加统计列表
- });
- # 更新企业所有信息
- Route::get('/corp/getCorCustomerList', 'CustomerController@getCorCustomerList');
- # 获取标签列表
- Route::get('/tag/tagList', 'TagController@tagList');
- # 检索客服列表
- Route::get('/user/userList', 'UserController@userList');
- # 客户列表
- Route::get('/customer/customerList', 'CustomerController@customerList');
- # 客户详情概览
- Route::get('/customer/customerDetail', 'CustomerController@customerDetail');
- # 批量编辑标签接口
- Route::post('/customer/setCustomerTag', 'TagController@setCustomerTag');
- # 查询批量编辑标签结果
- Route::get('/customer/batchMarkTagResult', 'TagController@batchCustomerTagResult');
- # 客户动态
- Route::get('/customer/customerDynamicList', 'CustomerController@customerDynamicList');
- # 客户详情标签展示(编辑时使用)
- Route::get('/customer/customerDetailTagList', 'CustomerController@customerDetailTagList');
- # 客户详情标签编辑
- Route::post('/customer/customerDetailTagUpdate', 'CustomerController@customerDetailTagUpdate');
- # 流失客户列表
- Route::get('/customer/lossCustomerList', 'CustomerController@lossCustomerList');
- # 客户详情订单列表
- Route::get('/customer/customerOrderList', 'CustomerController@customerOrderList');
- # 客户信息编辑
- Route::post('/customer/customerInfoUpdate', 'CustomerController@customerInfoUpdate');
- # 将客户加入黑名单
- Route::post('/customer/moveCustomerToBlackList', 'CustomerController@moveCustomerToBlackList');
- # 将客户移除黑名单
- Route::post('/customer/removeCustomerFromBlackList', 'CustomerController@removeCustomerFromBlackList');
- # 黑名单列表
- Route::get('/customer/blackList', 'CustomerController@blackListNew');
- // Route::get('/customer/blackListNew', 'CustomerController@blackListNew');
- # 待分配客户列表
- Route::get('/customer/unassignedCustomerList', 'CustomerController@unassignedCustomerList');
- # 客户迁移
- Route::post('/customer/transferCustomer', 'CustomerController@transferCustomerNew');
- # 客户分配列表
- Route::get('/customer/customerAssignmentList', 'CustomerController@customerAssignmentList');
- # 成员管理
- Route::get('/user/users', 'UserController@users');
- Route::get('/user/user_info', 'UserController@user_info');
- Route::get('/user/user_conversation_report', 'UserController@conversation_report');
- Route::get('/user/user_conversation_report_total', 'UserController@conversation_report_total');
- # 部门列表
- Route::get('/user/departments', 'UserController@departments');
- # 添加标签
- Route::post('/tag/addTagGroup', 'TagController@addTagGroup');
- # 添加单个标签
- Route::post('/tag/addSingleTag', 'TagController@addSingleTag');
- # 标签组排序
- Route::post('/tag/updateTagGroupOrder', 'TagController@updateTagGroupOrder');
- # 删除标签组
- Route::post('/tag/deleteTagGroup', 'TagController@deleteTagGroup');
- # 编辑标签组
- Route::post('/tag/updateTagGroup', 'TagController@updateTagGroup');
- # 公众号数据
- Route::get('/statistics/wechatAccountData', 'DataStatisticsController@wechatAccountData');
- Route::get('/statistics/OfficialAccountData', 'DataStatisticsController@OfficialAccountData');
- # 短剧数据
- Route::get('/statistics/playletData', 'DataStatisticsController@playletData');
- # 获取短剧数据去重用户数
- Route::get('/statistics/playletDataUniqueUser', 'DataStatisticsController@playletDataUniqueUser');
- # 获取投手投放数据去重用户数
- // Route::get('/statistics/throwPersonDataUniqueUser', 'DataStatisticsController@throwPersonDataUniqueUser');
- # 获取投手数据去重用户数
- Route::get('/statistics/pitcherDataUniqueUser', 'DataStatisticsController@pitcherDataUniqueUser');
- # 短剧粉丝激活趋势
- Route::get('/statistics/activeFansData', 'DataStatisticsController@activeFansData');
- # 授权企微账号列表
- Route::get('/authorize/corpList', 'CorpController@lists');
- # 管理的账号组列表
- Route::get('/authorize/accountGroupList', 'Admin\AdminController@accountGroupList');
- # 权限列表
- Route::get("/permission/list",'Admin\PermissionController@permission_list');
- # 添加顶级菜单
- Route::any("/permission/l1/add",'Admin\PermissionController@create_permission_l1');
- # 添加次级菜单
- Route::any("/permission/l2/add",'Admin\PermissionController@create_permission_l2');
- # 权限排序
- Route::post("/permission/be_sort","Admin\PermissionController@be_sort");
- # 权限删除
- Route::get("/permission/delete","Admin\PermissionController@permission_del");
- # 编辑顶级权限
- Route::any("/permission/l1/edit",'Admin\PermissionController@edit_permission_l1');
- #编辑非顶级权限
- Route::any("/permission/l2/edit",'Admin\PermissionController@edit_permission_l2');
- #权限树
- Route::get("/permission/tree",'Admin\PermissionController@permission_tree');
- /*
- * 角色管理
- */
- #添加角色
- Route::any("/role/add",'Admin\RoleController@create_role');
- #编辑角色
- Route::any("/role/edit",'Admin\RoleController@edit_role');
- #查看角色
- Route::get("/role/list",'Admin\RoleController@role_list');
- #查看角色详情
- Route::get("/role/info",'Admin\RoleController@role_info');
- #删除角色
- Route::any("/role/del",'Admin\RoleController@del_role');
- # 获取角色类型
- Route::get('/role/type', 'Admin\RoleController@role_type');
- #首页客户数据
- Route::get("/stat/custTotal",'StatisticsController@custTotal');
- Route::get("/stat/custTrends",'StatisticsController@custTrends');
- #推广数据
- Route::get("/stat/playletPopulariz",'StatisticsController@playletPopulariz');
- Route::get("/stat/momentsPopulariz",'StatisticsController@momentsPopulariz');
- Route::get("/stat/popularizAccounts",'StatisticsController@popularizAccounts');
- Route::get("/stat/popularizPlaylets",'StatisticsController@popularizPlaylets');
- Route::get("/stat/popularizCompanys",'StatisticsController@popularizCompanys');
- #运营数据
- Route::get("/stat/operateDayRetrieve",'StatisticsController@operateDayRetrieve');
- #投手数据
- Route::get("/stat/throwPersonData",'StatisticsController@throwPersonData');
- Route::get("/stat/throwPersonList",'StatisticsController@throwPersonList');
- #公众号趋势
- Route::get("/stat/officialTrendTotal",'StatisticsController@officialTrendTotal');
- Route::get("/stat/officialTrendList",'StatisticsController@officialTrendList');
- Route::get("/stat/chargeUserUnique",'StatisticsController@chargeUserUnique');
- Route::get("/stat/firstDayChargeUserUnique",'StatisticsController@firstDayChargeUserUnique');
- #客户汇总数据
- Route::get("/stat/custTotalNew",'StatisticsController@custTotalNew');
- Route::get("/stat/custTrendsNew",'StatisticsController@custTrendsNew');
- Route::get("/stat/custDataList",'StatisticsController@custDataList');
- /***
- * 管理员管理
- */
- #管理员列表
- Route::get("/admin/list","Admin\AdminController@admin_list");
- Route::get("/admin/info","Admin\AdminController@admin_info");
- #列出可选主体
- Route::get("/all_corp/list","Admin\AdminController@corp_list");
- #列出可选角色
- Route::get("/all_role/list","Admin\AdminController@role_list");
- #管理员创建
- Route::any("/admin/create","Admin\AdminController@create_admin");
- #管理员编辑
- Route::any("/admin/edit","Admin\AdminController@edit_admin");
- #管理员删除
- Route::any("/admin/del","Admin\AdminController@delete_admin");
- # 投放账号列表(ADQ+MP)
- Route::get('/pitcher/adAccountList', 'PitcherController@adAccountList');
- # 微信公众号列表
- Route::get('/pitcher/wxAccountList', 'PitcherController@wxAccountList');
- # 剧集列表
- Route::get('/pitcher/dramaList', 'PitcherController@dramaList');
- # 投手列表
- Route::get('/pitcher/pitcherList', 'PitcherController@pitcherList');
- # 绑定投手
- Route::post('/pitcher/bind', 'PitcherController@bind');
- # 投手绑定数据
- Route::get('/pitcher/index', 'PitcherController@index');
- # 投手绑定数据
- Route::post('/pitcher/relaEdit', 'PitcherController@relaEdit');
- # 剧集添加
- Route::post('/pitcher/dramaAdd', 'PitcherController@dramaAdd');
- # 剧集编辑
- Route::post('/pitcher/dramaEdit', 'PitcherController@dramaEdit');
- # 公众号设置回传规则
- Route::post('/pitcher/setReportRule', 'PitcherController@setReportRule');
- Route::get('/pitcher/reportRuleList', 'PitcherController@reportRuleList');
- # 公众号绑定数据源,企微号
- Route::get('/pitcher/getCorpIdList', 'PitcherController@getCorpIdList');
- Route::post('/pitcher/setAccountReportConf', 'PitcherController@setAccountReportConf');
- #用户权限列表
- Route::get("/userPermission/list","Admin\UserPermissionController@index");
- Route::get("/userPermission/userProfile","Admin\UserPermissionController@user_profile");
- # 短剧数据趋势
- Route::get('/statistics/playletDataTrend', 'DataStatisticsController@playletDataTrend');
- # 循环数据报表
- Route::get('/statistics/reg_range_report', 'Report\AdvertiserController@reg_range_report');
- Route::get('/statistics/reg_range_report_new', 'Report\AdvertiserController@reg_range_report_new');
- Route::get('/statistics/dataCycleList', 'DataStatisticsController@dataCycleList');
- # 短剧投放趋势数据
- Route::get('/statistics/playletTrendData', 'DataStatisticsController@playletTrendData');
- # 新客户详情概览
- Route::get('/customer/customerDetails', 'CustomerController@customerDetails');
- # 投手数据
- Route::get("/stat/pitcherData",'StatisticsController@pitcherData');
- ## 预警相关
- # 批量加好友
- Route::group(['prefix'=>'warn'],function() {
- # 预警用户组列表
- Route::get("groupList",'WarnController@groupList');
- # 预警用户组添加
- Route::post("groupAdd",'WarnController@groupAdd');
- # 预警用户组数据详情
- Route::get("groupDetail",'WarnController@groupDetail');
- # 预警用户组编辑
- Route::post("groupEdit",'WarnController@groupEdit');
- # 预警用户组开启和禁用
- Route::post("groupEableOp",'WarnController@groupEableOp');
- # 预警规则配置列表
- Route::get("ruleConfList",'WarnController@ruleConfList');
- # 预警规则配置操作
- Route::post("ruleConfOperate",'WarnController@ruleConfOperate');
- # 预警人员列表
- Route::get("userList",'WarnController@userList');
- # 预警人员操作
- Route::post("userOperate",'WarnController@userOperate');
- # 预警客服列表
- Route::get("djuserList",'WarnController@djuserList');
- });
- # 批量添加客户--导入
- Route::post('/customer/batchAddCustomerImport', 'CustomerController@batchAddCustomerImport');
- # 批量添加客户--二次确认
- Route::post('/customer/batchAddCustomerImportConfirm', 'CustomerController@batchAddCustomerImportConfirm');
- # 客户导入列表
- Route::get('/customer/batchAddCustomerDetailsList', 'CustomerController@batchAddCustomerDetailsList');
- # 客户导入记录列表
- Route::get('/customer/batchAddCustomerRecordList', 'CustomerController@batchAddCustomerRecordList');
- # 客户导入记录详情
- Route::get('/customer/batchAddCustomerRecordDetail', 'CustomerController@batchAddCustomerRecordDetail');
- # 批量分配客户
- Route::post('/customer/batchDistributionCustomer', 'CustomerController@batchDistributionCustomer');
- # 删除导入记录
- Route::post('/customer/deleteRecord', 'CustomerController@deleteRecord');
- # 删除导入客户
- Route::post('/customer/deleteDetail', 'CustomerController@deleteDetail');
- # 批量提醒
- Route::post('/customer/batchRemind', 'CustomerController@batchRemind');
- # 批量添加客户 导入excel
- Route::post('/material/importExcel', 'MaterialController@importExcel');
- # 预警用户组列表
- Route::get("/warn/groupList",'WarnController@groupList');
- # 预警用户组添加
- Route::post("/warn/groupAdd",'WarnController@groupAdd');
- # 预警用户组数据详情
- Route::get("/warn/groupDetail",'WarnController@groupDetail');
- # 预警用户组编辑
- Route::post("/warn/groupEdit",'WarnController@groupEdit');
- # 预警规则配置列表
- Route::get("/warn/ruleConfList",'WarnController@ruleConfList');
- # 预警规则配置操作
- Route::post("/warn/ruleConfOperate",'WarnController@ruleConfOperate');
- # 快捷话术
- Route::group(['prefix' => 'chatMenu'], function () {
- Route::post('createChatMenuGroup', 'ChatMenuController@createChatMenuGroup');# 创建话术分组
- Route::get('chatMenuGroupList', 'ChatMenuController@chatMenuGroupList');# 话术分组列表
- Route::post('updateChatMenuGroup', 'ChatMenuController@updateChatMenuGroup');# 编辑话术分组
- Route::post('deleteChatMenuGroup', 'ChatMenuController@deleteChatMenuGroup');# 删除话术分组
- Route::post('updateChatMenuGroupSortOrder', 'ChatMenuController@updateChatMenuGroupSortOrder');# 话术分组排序
- Route::post('createChatMenuRule', 'ChatMenuController@createChatMenuRule');# 创建话术规则
- Route::get('chatMenuRuleList', 'ChatMenuController@chatMenuRuleList');# 话术规则列表
- Route::post('chatMenuRuleDetail', 'ChatMenuController@chatMenuRuleDetail');# 话术规则详情
- Route::post('updateChatMenuRule', 'ChatMenuController@updateChatMenuRule');# 编辑话术规则
- Route::post('deleteChatMenuRule', 'ChatMenuController@deleteChatMenuRule');# 删除话术规则
- Route::post('updateChatMenuRuleSortOrder', 'ChatMenuController@updateChatMenuRuleSortOrder');# 话术规则排序
- });
- ## 渠道活码
- # 活码分组
- Route::post("/sq/addSqgroup",'SourceQrcodeController@addSqgroup');
- Route::post("/sq/editSqgroup",'SourceQrcodeController@editSqgroup');
- Route::post("/sq/editGroupSort",'SourceQrcodeController@editGroupSort');
- Route::post("/sq/delSqGroup",'SourceQrcodeController@delSqGroup');
- Route::get("/sq/sqGroupList",'SourceQrcodeController@sqGroupList');
- # 渠道活码
- Route::post("/sq/addSourceQrcode",'SourceQrcodeController@addSourceQrcode');
- Route::post("/sq/editSourceQrcode",'SourceQrcodeController@editSourceQrcode');
- Route::get("/sq/sourceQrcodeList",'SourceQrcodeController@sourceQrcodeList');
- Route::post("/sq/delSourceQrcode",'SourceQrcodeController@delSourceQrcode');
- Route::get("/sq/sourceQrcodeDetail",'SourceQrcodeController@sourceQrcodeDetail');
- #推广数据
- Route::get("/populariz/ruleLists",'PopularizController@ruleLists');
- Route::get("/populariz/ruleTotal",'PopularizController@ruleTotal');
- Route::get("/populariz/taskList",'PopularizController@taskList');
- Route::get("/populariz/momentTotal",'PopularizController@momentTotal');
- # 数据分析概览
- Route::get("/sq/dataView",'SourceQrcodeController@dataView');
- # 数据分析趋势
- Route::get("/sq/dataTrend",'SourceQrcodeController@dataTrend');
- # 数据统计
- Route::get("/sq/customerList",'SourceQrcodeController@customerList');
- Route::get("/sq/staffList",'SourceQrcodeController@staffList');
- # 智能雷达
- Route::group(['prefix' => 'radar'], function() {
- # 创建雷达组
- Route::post('radarGroupCreate', 'RadarController@radarGroupCreate');
- # 雷达组列表
- Route::get('radarGroupList', 'RadarController@radarGroupList');
- # 编辑雷达组
- Route::post('radarGroupUpdate', 'RadarController@radarGroupUpdate');
- # 雷达组排序
- Route::post('radarGroupSortUpdate', 'RadarController@radarGroupSortUpdate');
- # 删除雷达组
- Route::post('radarGroupDelete', 'RadarController@radarGroupDelete');
- # 创建雷达
- Route::post('radarCreate', 'RadarController@radarCreate');
- # 雷达列表
- Route::get('radarList', 'RadarController@radarList');
- # 雷达详情
- Route::get('radarDetail', 'RadarController@radarDetail');
- # 雷达编辑
- Route::post('radarUpdate', 'RadarController@radarUpdate');
- # 雷达排序
- Route::post('radarSortUpdate', 'RadarController@radarSortUpdate');
- # 删除雷达
- Route::post('radarDelete', 'RadarController@radarDelete');
- # 数据分析--总概
- Route::get('dataStatisticsTotal', 'RadarController@dataStatisticsTotal');
- # 数据分析--列表
- Route::get('dataStatisticsList', 'RadarController@dataStatisticsList');
- # 渠道列表
- Route::get('channelList', 'RadarController@channelList');
- });
- # 侧边栏-客户画像
- Route::group(['prefix'=>'portrait'],function() {
- # 画像配置列表
- Route::get("confList",'PortraitController@confList');
- # 画像配置操作
- Route::post("confOperate",'PortraitController@confOperate');
- # 画像配置添加属性
- Route::post("confAdd",'PortraitController@confAdd');
- # 画像配置修改属性
- Route::post("confEdit",'PortraitController@confEdit');
- });
- # 客户群群发
- Route::group(['prefix' => 'chatGroupMassMsg'], function() {
- # 设置群发规则
- Route::post('setRule', 'ChatGroupController@setChatGroupMassMsg');
- # 群发规则列表
- Route::get('ruleLists', 'ChatGroupController@ruleLists');
- # 群发规则详情
- Route::get('ruleDetail', 'ChatGroupController@ruleDetail');
- # 群发规则禁用启用
- Route::post('updateStatus', 'ChatGroupController@updateStatus');
- # 群发规则消息提醒
- Route::post('noticeUser', 'ChatGroupController@noticeUser');
- # 群发详情-客户群接收列表
- Route::get('chatGroupReceiveDetail', 'ChatGroupController@chatGroupReceiveDetail');
- });
- # 客户群管理
- Route::group(['prefix' => 'chatGroup'], function() {
- # 群列表
- Route::get('groupList', 'ChatGroupController@groupList');
- # 获取企业所有客户群去重后的客户数
- Route::get('uniqueMemberCount', 'ChatGroupController@uniqueMemberCount');
- # 客户群概况
- Route::get('condition', 'ChatGroupController@condition');
- # 群成员列表
- Route::get('memberList', 'ChatGroupController@memberList');
- # 群主列表
- Route::get('ownerList', 'ChatGroupController@chatGroupOwnerList');
- # 客户群检索列表
- Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
- });
- # 群渠道活码
- Route::group(['prefix' => 'qrcodeChatGroup'], function() {
- # 群活码创建
- Route::post('setRule', 'GroupChatJoinWayController@setRule');
- # 群活码编辑
- Route::post('editRule', 'GroupChatJoinWayController@editRule');
- # 群活码列表
- Route::get('ruleList', 'GroupChatJoinWayController@ruleList');
- # 群活码禁用
- Route::get('delQrcode', 'GroupChatJoinWayController@delQrcode');
- # 群活码详情
- Route::get('ruleDetail', 'GroupChatJoinWayController@ruleDetail');
- # 数据总概
- Route::get('condition', 'GroupChatJoinWayController@condition');
- # 群活码每日数据分析
- Route::get('dailyReport', 'GroupChatJoinWayController@dailyReport');
- # 群活码扫码进群客户列表
- Route::get('customerList', 'GroupChatJoinWayController@customerList');
- # 群活码配置群的数据分析
- Route::get('analysis', 'GroupChatJoinWayController@analysis');
- # 获取群组下的群活码规则数
- Route::get('chatGroupCountOfGroup', 'GroupChatJoinWayController@chatGroupCountOfGroup');
- # 客户群检索列表
- Route::get('chatGroupList', 'ChatGroupController@chatGroupList');
- });
- # 账号数据趋势
- Route::group(['prefix' => 'accountDataTrend'], function() {
- # Adq账号数据
- Route::post('adqAccount', 'AccountDataTrendController@adqAccount');
- # Adq账号总概数据
- Route::post('adqAccountSummary', 'AccountDataTrendController@adqAccountSummary');
- # Adq账号数据汇总曲线
- Route::post('adqAccountCurve', 'AccountDataTrendController@adqAccountCurve');
- # Mp账号数据
- Route::post('mpAccount', 'AccountDataTrendController@mpAccount');
- # Mp账号总概数据
- Route::post('mpAccountSummary', 'AccountDataTrendController@mpAccountSummary');
- # Mp账号数据汇总曲线
- Route::post('mpAccountCurve', 'AccountDataTrendController@mpAccountCurve');
- # 各投放渠道累计账号数据
- Route::post('account', 'AccountDataTrendController@account');
- # 各投放渠道累计账号总概数据
- Route::post('accountSummary', 'AccountDataTrendController@accountSummary');
- # 各投放渠道累计账号数据汇总曲线
- Route::post('accountCurve', 'AccountDataTrendController@accountCurve');
- });
- # 粉丝激活趋势
- Route::group(['prefix' => 'activeFansTrend'], function() {
- # Adq粉丝激活趋势
- Route::post('adqAccount', 'ActiveFansDataController@adqAccount');
- # Adq粉丝激活趋势总概数据
- Route::post('adqAccountSummary', 'ActiveFansDataController@adqAccountSummary');
- # Adq粉丝激活趋势数据汇总曲线
- Route::post('adqAccountCurve', 'ActiveFansDataController@adqAccountCurve');
- # Adq粉丝激活趋势
- Route::post('mpAccount', 'ActiveFansDataController@mpAccount');
- # Adq粉丝激活趋势总概数据
- Route::post('mpAccountSummary', 'ActiveFansDataController@mpAccountSummary');
- # Adq粉丝激活趋势数据汇总曲线
- Route::post('mpAccountCurve', 'ActiveFansDataController@mpAccountCurve');
- });
- # 获取数据看板更新时间
- Route::get('/dataCube/uptime', 'DataStatisticsController@uptime');
- # 客户流失数据趋势
- Route::group(['prefix' => 'customerLossTrend'], function() {
- # 账号客户流失数据趋势
- Route::get('account', 'CustomerLossController@accountLossTrend');
- # 账号客户流失总概数据
- Route::get('summary', 'CustomerLossController@accountLossSummary');
- # 账号客户流失趋势曲线
- Route::get('curve', 'CustomerLossController@accountLossCurve');
- });
- # 第三方平台
- Route::group(['prefix' => 'platform'], function() {
- # 短剧列表
- Route::get('playletList', 'PlatformController@playletList');
- # 自动创建推广链接
- Route::get('createLink', 'PlatformController@createLink');
- });
- # 客服绑定adq投放账号ID
- Route::post('/user/bindUserAdqAccountId', 'UserController@bindUserAdqAccountId');
- # adq投放账号列表
- Route::get('/pitcher/adqAccountList', 'PitcherController@adqAccountList');
- # adq投放账号绑定投手,剧集
- Route::post('/pitcher/adqBindPitcher', 'PitcherController@adqBindPitcher');
- # adq绑定投手,剧集列表
- Route::get('/pitcher/adqPitcherIndex', 'PitcherController@adqPitcherIndex');
- # adq编辑绑定投手 剧集
- Route::post('/pitcher/adqEditPitcher', 'PitcherController@adqEditPitcher');
- # 编辑adq投放账号绑定企微以及数据源ID
- Route::post('/pitcher/adqBindUserActionSetId', 'PitcherController@adqBindUserActionSetId');
- # adq投放账号设置回传规则
- Route::post('/pitcher/setAdqAccountReportRule', 'PitcherController@setAdqAccountReportRule');
- Route::group(['prefix' => 'shortPlayDataTrend'], function() {
- # 短剧数据趋势列表
- Route::post('adqShortPlayDataTrendList', 'ShortPlayDataTrendController@adqShortPlayDataTrendList');
- # 短剧数据趋势曲线(按日汇总)
- Route::post('adqShortPlayDataTrendCurve', 'ShortPlayDataTrendController@adqShortPlayDataTrendCurve');
- # 短剧数据趋势汇总
- Route::post('adqSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@adqSummaryOfShortDramaDataTrends');
- # 短剧数据趋势列表
- Route::post('mpShortPlayDataTrendList', 'ShortPlayDataTrendController@mpShortPlayDataTrendList');
- # 短剧数据趋势曲线(按日汇总)
- Route::post('mpShortPlayDataTrendCurve', 'ShortPlayDataTrendController@mpShortPlayDataTrendCurve');
- # 短剧数据趋势汇总
- Route::post('mpSummaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@mpSummaryOfShortDramaDataTrends');
- # 短剧数据趋势列表
- Route::post('shortPlayDataTrendList', 'ShortPlayDataTrendController@shortPlayDataTrendList');
- # 短剧数据趋势曲线(按日汇总)
- Route::post('shortPlayDataTrendCurve', 'ShortPlayDataTrendController@shortPlayDataTrendCurve');
- # 短剧数据趋势汇总
- Route::post('summaryOfShortDramaDataTrends', 'ShortPlayDataTrendController@summaryOfShortDramaDataTrends');
- });
- Route::group(['prefix' => 'intelligentMassSending'], function(){
- Route::post('addAccount', 'IntelligentMassSendingController@addAccount');
- Route::post('platformIndex', 'IntelligentMassSendingController@platformIndex');
- Route::post('accountIndex', 'IntelligentMassSendingController@accountIndex');
- Route::post('editAccount', 'IntelligentMassSendingController@editAccount');
- Route::post('addSmallApp', 'IntelligentMassSendingController@addSmallApp');
- Route::post('editSmallApp', 'IntelligentMassSendingController@editSmallApp');
- Route::post('smallAppIndex', 'IntelligentMassSendingController@smallAppIndex');
- Route::post('accountList', 'IntelligentMassSendingController@accountList');
- Route::post('smallAppList', 'IntelligentMassSendingController@smallAppList');
- Route::post('appList', 'IntelligentMassSendingController@appList');
- });
- # 个人SOP
- Route::group(['prefix' => 'userSop'], function() {
- # 配置规则
- Route::post('setRule', 'UserSopController@setRule');
- # 配置列表
- Route::get('ruleList', 'UserSopController@ruleList');
- # 配置详情
- Route::get('ruleDetail', 'UserSopController@ruleDetail');
- # 配置禁用/开启
- Route::get('changeStatus', 'UserSopController@changeStatus');
- });
- });
- # h5接口
- Route::group(['namespace' => 'Api', 'middleware' => ['h5.verify'], 'prefix'=>'h5'], function () {
- #客户详情页
- Route::get('portrait/customerDetail', 'PortraitController@h5CustomerDetail');
- Route::get('portrait/h5CustomerDynamicList', 'PortraitController@h5CustomerDynamicList');
- Route::get('portrait/h5CustomerOrderList', 'PortraitController@h5CustomerOrderList');
- Route::post('portrait/h5CustomerTagUpdate', 'PortraitController@h5CustomerTagUpdate');
- Route::post('portrait/edit', 'PortraitController@edit');
- Route::post('portrait/tagList', 'PortraitController@h5TagList');
- #jsapi授权数据
- Route::post('auth/commonAuthData', 'AuthController@commonAuthData');
- Route::get('radarPage/list', 'RadarController@radarListForH5');
- Route::get('radarPage/groupList', 'RadarController@radarGroupListForH5'); //
- Route::get('radarPage/getLinkMsgOfRadar', 'RadarController@getLinkMsgOfRadar'); // 发送前替换雷达内部素材
- # 快捷话术
- Route::group(['prefix' => 'chatMenuPage'], function() {
- Route::get('list', 'ChatMenuController@chatMenuListForH5'); // 快捷话术信息列表
- Route::get('groupList', 'ChatMenuController@chatMenuGroupListForH5'); // 快捷话术组列表
- Route::get('report', 'ChatMenuController@behaviorReport'); // 数据上报
- Route::get('customerInfo', 'ChatMenuController@getCustomerInfo'); // 获取客户信息
- Route::get('chatMessage', 'ChatMenuController@chatMessage'); // 将消息处理成可发送的数据结构
- });
- # 客户群活码
- Route::group(['prefix' => 'chatGroupQrcode'], function() {
- # 获取群活码
- Route::get('detail', 'GroupChatJoinWayController@detail');
- # 群活码扫码数据上报
- Route::get('scan', 'GroupChatJoinWayController@scan');
- # 创建临时渠道码
- Route::get('contactQrcode', 'GroupChatJoinWayController@contactQrcode');
- });
- # 个人SOP
- Route::group(['prefix' => 'userSop'], function() {
- # 规则详情
- Route::get('detail', 'UserSopController@detail');
- # 获取待跟进客户信息
- Route::get('customer', 'UserSopController@customer');
- # 数据上报
- Route::get('report', 'UserSopController@report');
- });
- });
|