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
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $owner_user_id
* @property string $block_user_id
* @property datetime $create_time
* @property int $add_source
* @property string $operator_user_id
* @property string $ex
*/
class Black extends \app\model\Base
{
protected $table = 'black';
protected $schema = [
'owner_user_id' => 'string',
'block_user_id' => 'string',
'create_time' => 'datetime',
'add_source' => 'int',
'operator_user_id' => 'string',
'ex' => 'string',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $key
* @property string $value
* @property string $description
* @property datetime $create_time
* @property datetime $update_time
*/
class Config extends \app\model\Base
{
protected $table = 'config';
protected $schema = [
'key' => 'string',
'value' => 'string',
'description' => 'string',
'create_time' => 'datetime',
'update_time' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+53
View File
@@ -0,0 +1,53 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $owner_user_id
* @property string $conversation_id
* @property int $conversation_type
* @property string $user_id
* @property string $group_id
* @property int $recv_msg_opt
* @property bool $is_pinned
* @property bool $is_private_chat
* @property int $burn_duration
* @property int $group_at_type
* @property string $attached_info
* @property string $ex
* @property int $max_seq
* @property int $min_seq
* @property datetime $create_time
* @property bool $is_msg_destruct
* @property int $msg_destruct_time
* @property datetime $latest_msg_destruct_time
*/
class Conversation extends \app\model\Base
{
protected $table = 'conversation';
protected $schema = [
'owner_user_id' => 'string',
'conversation_id' => 'string',
'conversation_type' => 'int',
'user_id' => 'string',
'group_id' => 'string',
'recv_msg_opt' => 'int',
'is_pinned' => 'bool',
'is_private_chat' => 'bool',
'burn_duration' => 'int',
'group_at_type' => 'int',
'attached_info' => 'string',
'ex' => 'string',
'max_seq' => 'int',
'min_seq' => 'int',
'create_time' => 'datetime',
'is_msg_destruct' => 'bool',
'msg_destruct_time' => 'int',
'latest_msg_destruct_time' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $d_id
* @property array $logs
* @property int $version
* @property bool $deleted
* @property datetime $last_update
*/
class ConversationVersion extends \app\model\Base
{
protected $table = 'conversation_version';
protected $schema = [
'd_id' => 'string',
'logs' => 'array',
'version' => 'int',
'deleted' => 'bool',
'last_update' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $key
* @property string $value
*/
class DataVersion extends \app\model\Base
{
protected $table = 'data_version';
protected $schema = [
'key' => 'string',
'value' => 'string',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $friend_id
* @property string $owner_user_id
* @property string $friend_user_id
* @property string $remark
* @property datetime $create_time
* @property int $add_source
* @property string $operator_user_id
* @property string $ex
* @property bool $is_pinned
*/
class Friend extends \app\model\Base
{
protected $table = 'friend';
protected $schema = [
'owner_user_id' => 'string',
'friend_user_id' => 'string',
'remark' => 'string',
'create_time' => 'datetime',
'add_source' => 'int',
'operator_user_id' => 'string',
'ex' => 'string',
'is_pinned' => 'bool',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+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',
]);
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $d_id
* @property array $logs
* @property int $version
* @property bool $deleted
* @property datetime $last_update
*/
class FriendVersion extends \app\model\Base
{
protected $table = 'friend_version';
protected $schema = [
'd_id' => 'string',
'logs' => 'array',
'version' => 'int',
'deleted' => 'bool',
'last_update' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $group_id
* @property string $group_name
* @property string $notification
* @property string $introduction
* @property string $face_url
* @property datetime $create_time
* @property string $ex
* @property int $status
* @property string $creator_user_id
* @property int $group_type
* @property int $need_verification
* @property int $look_member_info
* @property int $apply_member_friend
* @property datetime $notification_update_time
* @property string $notification_user_id
*/
class Group extends \app\model\Base
{
protected $table = 'group';
protected $schema = [
'group_id' => 'string',
'group_name' => 'string',
'notification' => 'string',
'introduction' => 'string',
'face_url' => 'string',
'create_time' => 'datetime',
'ex' => 'string',
'status' => 'int',
'creator_user_id' => 'string',
'group_type' => 'int',
'need_verification' => 'int',
'look_member_info' => 'int',
'apply_member_friend' => 'int',
'notification_update_time' => 'datetime',
'notification_user_id' => 'string',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $d_id
* @property array $logs
* @property int $version
* @property bool $deleted
* @property datetime $last_update
*/
class GroupJoinVersion extends \app\model\Base
{
protected $table = 'group_join_version';
protected $schema = [
'd_id' => 'string',
'logs' => 'array',
'version' => 'int',
'deleted' => 'bool',
'last_update' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $group_id
* @property string $user_id
* @property string $nickname
* @property string $face_url
* @property int $role_level
* @property datetime $join_time
* @property int $join_source
* @property string $inviter_user_id
* @property string $operator_user_id
* @property datetime $mute_end_time
* @property string $ex
*/
class GroupMember extends \app\model\Base
{
protected $table = 'group_member';
protected $schema = [
'group_id' => 'string',
'user_id' => 'string',
'nickname' => 'string',
'face_url' => 'string',
'role_level' => 'int',
'join_time' => 'datetime',
'join_source' => 'int',
'inviter_user_id' => 'string',
'operator_user_id' => 'string',
'mute_end_time' => 'datetime',
'ex' => 'string',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $d_id
* @property array $logs
* @property int $version
* @property bool $deleted
* @property datetime $last_update
*/
class GroupMemberVersion extends \app\model\Base
{
protected $table = 'group_member_version';
protected $schema = [
'd_id' => 'string',
'logs' => 'array',
'version' => 'int',
'deleted' => 'bool',
'last_update' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+41
View File
@@ -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',
]);
}
}
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $level
* @property string $message
* @property array $context
* @property array $extra
* @property datetime $timestamp
*/
class Log extends \app\model\Base
{
protected $table = 'log';
protected $schema = [
'level' => 'string',
'message' => 'string',
'context' => 'array',
'extra' => 'array',
'timestamp' => 'datetime',
];
protected function getOptions(): array
{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $doc_id
* @property array $msgs
*/
class Msg extends \app\model\Base
{
protected $table = 'msg';
protected $schema = [
'doc_id' => 'string',
'msgs' => 'array',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $engine
* @property string $name
* @property string $content_type
* @property datetime $create_time
* @property string $group
* @property string $key
* @property int $size
*/
class S3 extends \app\model\Base
{
protected $table = 's3';
protected $schema = [
'engine' => 'string',
'name' => 'string',
'content_type' => 'string',
'create_time' => 'datetime',
'group' => 'string',
'key' => 'string',
'size' => 'int',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $conversation_id
* @property int $max_seq
* @property int $min_seq
*/
class Seq extends \app\model\Base
{
protected $table = 'seq';
protected $schema = [
'conversation_id' => 'string',
'max_seq' => 'int',
'min_seq' => 'int',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $conversation_id
* @property string $user_id
* @property int $max_seq
* @property int $min_seq
* @property int $read_seq
*/
class SeqUser extends \app\model\Base
{
protected $table = 'seq_user';
protected $schema = [
'conversation_id' => 'string',
'user_id' => 'string',
'max_seq' => 'int',
'min_seq' => 'int',
'read_seq' => 'int',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $user_id
* @property string $nickname
* @property string $face_url
* @property string $ex
* @property int $app_manger_level
* @property int $global_recv_msg_opt
* @property datetime $create_time
*/
class User extends \app\model\Base
{
protected $table = 'user';
protected $schema = [
'user_id' => 'string',
'nickname' => 'string',
'face_url' => 'string',
'ex' => 'string',
'app_manger_level' => 'int',
'global_recv_msg_opt' => 'int',
'create_time' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}