init commit
This commit is contained in:
65
application/api/model/wdsxh/corporate/Card.php
Normal file
65
application/api/model/wdsxh/corporate/Card.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力中小企业发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdadmin.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Wdadmin系统产品软件并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Class Card
|
||||
* Desc 名片Model
|
||||
* Create on 2025/1/21 16:57
|
||||
* Create by wangyafang
|
||||
*/
|
||||
namespace app\api\model\wdsxh\corporate;
|
||||
|
||||
use app\api\model\wdsxh\Base;
|
||||
use app\api\model\wdsxh\business\Association;
|
||||
|
||||
class Card extends Base
|
||||
{
|
||||
|
||||
|
||||
|
||||
// 表名
|
||||
protected $name = 'wdsxh_corporate_card';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = 'integer';
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = 'updatetime';
|
||||
protected $deleteTime = false;
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
'association'
|
||||
];
|
||||
|
||||
public function getAssociationAttr($value)
|
||||
{
|
||||
|
||||
$result = (new Association())->where('id',1)->field('name,logo')->find();
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected function getCardBackgroundImageAttr($value)
|
||||
{
|
||||
return wdsxh_full_url($value);
|
||||
}
|
||||
|
||||
protected function setCardBackgroundImageAttr($value)
|
||||
{
|
||||
$value = remove_wdsxh_full_url($value);
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
43
application/api/model/wdsxh/corporate/CardBackground.php
Normal file
43
application/api/model/wdsxh/corporate/CardBackground.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力中小企业发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdadmin.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Wdadmin系统产品软件并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Class CardBackground
|
||||
* Desc 名片背景Model
|
||||
* Create on 2025/1/21 16:57
|
||||
* Create by wangyafang
|
||||
*/
|
||||
namespace app\api\model\wdsxh\corporate;
|
||||
|
||||
use app\api\model\wdsxh\Base;
|
||||
use traits\model\SoftDelete;
|
||||
|
||||
class CardBackground extends Base
|
||||
{
|
||||
use SoftDelete;
|
||||
|
||||
|
||||
|
||||
// 表名
|
||||
protected $name = 'wdsxh_corporate_card_background';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = 'integer';
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = 'updatetime';
|
||||
protected $deleteTime = 'deletetime';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
39
application/api/model/wdsxh/corporate/Reliable.php
Normal file
39
application/api/model/wdsxh/corporate/Reliable.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
// +----------------------------------------------------------------------
|
||||
/**
|
||||
* Class Reliable
|
||||
* Desc 名片靠谱模型
|
||||
* Create on 2025/1/22 14:22
|
||||
* Create by wangyafang
|
||||
*/
|
||||
|
||||
namespace app\api\model\wdsxh\corporate;
|
||||
|
||||
|
||||
use think\Model;
|
||||
|
||||
class Reliable extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'wdsxh_corporate_card_reliable';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = false;
|
||||
protected $deleteTime = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
39
application/api/model/wdsxh/corporate/Visitor.php
Normal file
39
application/api/model/wdsxh/corporate/Visitor.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
// +----------------------------------------------------------------------
|
||||
/**
|
||||
* Class Visitor
|
||||
* Desc 名片访客模型
|
||||
* Create on 2025/1/22 8:57
|
||||
* Create by wangyafang
|
||||
*/
|
||||
|
||||
namespace app\api\model\wdsxh\corporate;
|
||||
|
||||
|
||||
use think\Model;
|
||||
|
||||
class Visitor extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'wdsxh_corporate_card_visitor';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = false;
|
||||
protected $deleteTime = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user