23 lines
498 B
PHP
23 lines
498 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace app\common\logic;
|
||
|
|
|
||
|
|
use app\common\traits\crud\CrudLogicTrait;
|
||
|
|
use app\common\model\CorpFeishuApp;
|
||
|
|
|
||
|
|
class CorpFeishuAppLogic
|
||
|
|
{
|
||
|
|
use CrudLogicTrait;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 指定当前要操作的模型
|
||
|
|
*/
|
||
|
|
protected string $modelClass = CorpFeishuApp::class;
|
||
|
|
|
||
|
|
|
||
|
|
public function getFeishuApp($corpId, $systemId)
|
||
|
|
{
|
||
|
|
return CorpFeishuApp::where('corp_id', $corpId)->where('system_id', $systemId)->first(['id', 'corp_id', 'name', 'app_id', 'r_url', 'state']);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|