init commit
This commit is contained in:
48
application/api/model/wdsxh/business/Association.php
Normal file
48
application/api/model/wdsxh/business/Association.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
// +----------------------------------------------------------------------
|
||||
/**
|
||||
* Class Association
|
||||
* Desc 商协管理
|
||||
* Create on 2024/3/12 14:21
|
||||
* Create by @小趴菜
|
||||
*/
|
||||
|
||||
namespace app\api\model\wdsxh\business;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class Association extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'wdsxh_business_association';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = true;
|
||||
protected $updateTime = false;
|
||||
|
||||
|
||||
protected function getLogoAttr($value)
|
||||
{
|
||||
return wdsxh_full_url($value);
|
||||
}
|
||||
|
||||
protected function getWananchiQrCodeAttr($value)
|
||||
{
|
||||
return wdsxh_full_url($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user