init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
// +----------------------------------------------------------------------
/**
* Class institution
* Desc 机构Model
* Create on 2025/3/5 10:28
* Create by wangyafang
*/
namespace app\api\model\wdsxh\institution;
use app\api\model\wdsxh\Base;
class Institution extends Base
{
// 表名
protected $name = 'wdsxh_institution';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = false;
protected function getIconAttr($value)
{
return wdsxh_full_url($value);
}
}

View File

@@ -0,0 +1,26 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
// +----------------------------------------------------------------------
namespace app\api\model\wdsxh\institution;
use think\Model;
class InstitutionMemberApply extends Model
{
protected $name = 'wdsxh_institution_member_apply';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = false;
}

View File

@@ -0,0 +1,35 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
// +----------------------------------------------------------------------
/**
* Class Level
* Desc 机构级别
* Create on 2025/3/5 11:20
* Create by wangyafang
*/
namespace app\api\model\wdsxh\institution;
use think\Model;
class Level extends Model
{
protected $name = 'wdsxh_institution_level';
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
}

View File

@@ -0,0 +1,47 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
// +----------------------------------------------------------------------
/**
* Class Member
* Desc 成员Model
* Create on 2025/3/5 10:41
* Create by wangyafang
*/
namespace app\api\model\wdsxh\institution;
use think\Model;
class Member extends Model
{
protected $name = 'wdsxh_institution_member';
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
public function usermember()
{
return $this->belongsTo('app\api\model\wdsxh\member\Member', 'member_id', 'id', [], 'LEFT')
->setEagerlyType(0);
}
public function institutionlevel()
{
return $this->belongsTo('app\api\model\wdsxh\institution\Level', 'level_id', 'id', [], 'LEFT')
->setEagerlyType(0);
}
}