12
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
namespace app\model\Openim;
|
||||
|
||||
use think\Model;
|
||||
/**
|
||||
* @property string $user_id
|
||||
* @property string $group_id
|
||||
* @property int $handle_result
|
||||
* @property string $req_msg
|
||||
* @property string $handled_msg
|
||||
* @property datetime $req_time
|
||||
* @property string $handle_user_id
|
||||
* @property datetime $handled_time
|
||||
* @property int $join_source
|
||||
* @property string $inviter_user_id
|
||||
* @property string $ex
|
||||
* @property string $handle_msg
|
||||
*/
|
||||
class GroupRequest extends \app\model\Base
|
||||
{
|
||||
protected $table = 'group_request';
|
||||
protected $schema = [
|
||||
'user_id' => 'string',
|
||||
'group_id' => 'string',
|
||||
'handle_result' => 'int',
|
||||
'req_msg' => 'string',
|
||||
'handled_msg' => 'string',
|
||||
'req_time' => 'datetime',
|
||||
'handle_user_id' => 'string',
|
||||
'handled_time' => 'datetime',
|
||||
'join_source' => 'int',
|
||||
'inviter_user_id' => 'string',
|
||||
'ex' => 'string',
|
||||
'handle_msg' => 'string',
|
||||
];
|
||||
protected function getOptions(): array{
|
||||
return array_merge(parent::getOptions(),[
|
||||
'connection' => 'immongodb',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user