存客宝应用接口初始化
This commit is contained in:
23
application/common/model/Attachment.php
Normal file
23
application/common/model/Attachment.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class Attachment extends Model
|
||||
{
|
||||
// 设置表名
|
||||
protected $name = 'attachments';
|
||||
|
||||
// 自动写入时间戳
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $createTime = 'createTime';
|
||||
protected $updateTime = 'updateTime';
|
||||
protected $defaultSoftDelete = 0;
|
||||
|
||||
|
||||
public static function addAttachment($attachmentData)
|
||||
{
|
||||
return self::create($attachmentData);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user