Files
fast_response/admin/application/api/controller/Firmemployee.php
2025-03-25 13:47:17 +08:00

43 lines
966 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
* description
* authorwh
* email
* createTime{2025/3/25} {10:00}
*/
namespace app\api\controller;
use think\Controller;
use think\Db;
use wanghua\general_utility_tools_php\Mmodel;
use wanghua\general_utility_tools_php\tool\Tools;
class Firmemployee extends BaseApiAuthController
{
/**
* desc获取工作人员列表
*
* /api/firmemployee/getList
* authorwh
*/
function getList(){
return Mmodel::catchJson(function (){
$firm_sign = input('firm_sign');//企业标识
if(empty($firm_sign)){
return Tools::set_fail('企业标识不能为空');
}
$info = Db::table('fa_admin')
->where('role','firm')
->where('firm_id',$firm_sign)
->select();
return Tools::set_ok('ok',[
'staff_list'=>array_column($info,'rel_wxid')
]);
});
}
}