This commit is contained in:
commie
2026-02-27 13:53:53 +08:00
parent c9c8a120ab
commit d75fea32f7
25 changed files with 847 additions and 359 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $from_user_id
* @property string $to_user_id
* @property int $handle_result
* @property string $req_msg
* @property datetime $create_time
* @property string $handler_user_id
* @property string $handle_msg
* @property datetime $handle_time
* @property string $ex
*/
class FriendRequest extends \app\model\Base
{
protected $table = 'friend_request';
protected $schema = [
'from_user_id' => 'string',
'to_user_id' => 'string',
'handle_result' => 'int',
'req_msg' => 'string',
'create_time' => 'datetime',
'handler_user_id' => 'string',
'handle_msg' => 'string',
'handle_time' => 'datetime',
'ex' => 'string',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}