存客宝应用接口初始化

This commit is contained in:
Ghost
2026-01-05 10:25:32 +08:00
parent fa37227954
commit 02797ba50a
414 changed files with 85530 additions and 75 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class AllotRuleModel extends Model
{
// 设置表名
protected $table = 's2_allot_rule';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class CallRecordingModel extends Model
{
// 设置表名
protected $table = 's2_call_recording';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class CompanyAccountModel extends Model
{
// 设置表名
protected $table = 's2_company_account';
}

View File

@@ -0,0 +1,10 @@
<?php
namespace app\api\model;
use think\Model;
class CompanyModel extends Model {
// 设置表名
protected $table = 's2_department';
}

View File

@@ -0,0 +1,29 @@
<?php
namespace app\api\model;
use think\Model;
class DeviceGroupModel extends Model {
// 设置表名
protected $table = 's2_device_group';
// 设置主键
protected $pk = 'id';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
// 定义时间戳字段名
protected $createTime = 'createTime';
protected $updateTime = 'updateTime';
// 设置字段类型
protected $type = [
'id' => 'integer',
'tenantId' => 'integer',
'count' => 'integer',
'createTime' => 'integer',
'updateTime' => 'integer'
];
}

View File

@@ -0,0 +1,10 @@
<?php
namespace app\api\model;
use think\Model;
class DeviceModel extends Model {
// 设置表名
protected $table = 's2_device';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class FriendTaskModel extends Model
{
// 设置表名
protected $table = 's2_friend_task';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class WechatAccountModel extends Model
{
// 设置表名
protected $table = 's2_wechat_account';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class WechatChatroomMemberModel extends Model
{
// 设置表名
protected $table = 's2_wechat_chatroom_member';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class WechatChatroomModel extends Model
{
// 设置表名
protected $table = 's2_wechat_chatroom';
}

View File

@@ -0,0 +1,16 @@
<?php
namespace app\api\model;
use think\Model;
class WechatFriendModel extends Model
{
// 设置表名
protected $table = 's2_wechat_friend';
protected $pk = 'id';
/*protected $pk = [
'uk_owner_wechat_account' => ['ownerWechatId', 'wechatId','wechatAccountId'] // uk_owner_wechat_account 是数据库中组合唯一键的名称
];*/
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class WechatMessageModel extends Model
{
// 设置表名
protected $table = 's2_wechat_message';
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\api\model;
use think\Model;
class WechatMomentsModel extends Model
{
// 设置表名
protected $table = 's2_wechat_moments';
}