初始化代码
This commit is contained in:
51
app/im/route/route.php
Normal file
51
app/im/route/route.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
use think\facade\Route;
|
||||
/**
|
||||
* @model im
|
||||
* @author yangqi
|
||||
* @create time 2019年11月25日23:09:59
|
||||
*
|
||||
*/
|
||||
|
||||
Route::group('admin' ,function() {
|
||||
|
||||
});
|
||||
|
||||
Route::group('app' ,function() {
|
||||
|
||||
Route::post('listCustomer' , 'im/listCustomer');
|
||||
Route::post('listCustomerV2' , 'im/listCustomerV2');
|
||||
Route::get('listNotReadMessage' , 'im/listNotReadMessage');
|
||||
Route::get('listMessage' , 'im/listMessage');
|
||||
Route::get('listReply' , 'im/listReply');
|
||||
Route::post('addReply' , 'im/addReply');
|
||||
Route::get('delReply' , 'im/delReply');
|
||||
|
||||
//获取IM签名
|
||||
Route::get('getTimUserSig' , 'im/getTimUserSig');
|
||||
//保存发送成功的消息
|
||||
Route::post('sendMessage' , 'im/sendMessage');
|
||||
Route::post('readMessage' , 'im/readMessage');
|
||||
//获取目标客户给我发送的消息数量
|
||||
Route::post('getCustomerUnReadMessageCount' , 'im/getCustomerUnReadMessageCount');
|
||||
//修改消息状态 1都可见 2删除对方可见 撤回都不可见
|
||||
Route::post('updateMsgStatus' , 'im/updateMsgStatus');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Route::any('im/listCustomer' , 'im/listCustomer');
|
||||
Route::any('im/listNotReadMessage' , 'im/listNotReadMessage');
|
||||
Route::any('im/listMessage' , 'im/listMessage');
|
||||
Route::any('im/listReply' , 'im/listReply');
|
||||
Route::any('im/addReply' , 'im/addReply');
|
||||
Route::any('im/delReply' , 'im/delReply');
|
||||
|
||||
|
||||
Route::any('listCustomer' , 'im/listCustomer');
|
||||
Route::any('listNotReadMessage' , 'im/listNotReadMessage');
|
||||
Route::any('listMessage' , 'im/listMessage');
|
||||
Route::any('listReply' , 'im/listReply');
|
||||
Route::any('addReply' , 'im/addReply');
|
||||
Route::any('delReply' , 'im/delReply');
|
||||
Reference in New Issue
Block a user