Initial commit: X-Server Mobile enterprise tool system

- Frontend: React 18 + TypeScript + Vite + Ant Design Mobile
- Backend: PHP 8.5 + Webman 2.x + MySQL + Redis
- i18n support: Chinese, English, Russian, Spanish, French
- Approval workflow engine
- Docker development environment
- Feishu integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-24 17:57:25 +08:00
commit 8d78e18267
121 changed files with 18563 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
<?php
namespace App\Model;
use support\Model;
class Company extends Model
{
protected $table = 'company';
protected $fillable = [
'name',
'feishu_app_id',
'feishu_app_secret',
'feishu_tenant_key',
'status',
];
protected $casts = [
'status' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
protected $hidden = [
'feishu_app_secret',
];
/**
* 获取启用的公司
*/
public function scopeActive($query)
{
return $query->where('status', 1);
}
/**
* 根据飞书租户Key查找
*/
public function scopeByFeishuTenantKey($query, string $tenantKey)
{
return $query->where('feishu_tenant_key', $tenantKey);
}
/**
* 根据飞书AppID查找
*/
public function scopeByFeishuAppId($query, string $appId)
{
return $query->where('feishu_app_id', $appId);
}
}