34 lines
707 B
PHP
34 lines
707 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace app\common\service;
|
||
|
|
||
|
use app\common\model\ServiceStandard;
|
||
|
use app\constant\ResponseCode;
|
||
|
use think\Exception;
|
||
|
|
||
|
class ServiceStandardService
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @desc 服务标准
|
||
|
* @param $request
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getStandard($request)
|
||
|
{
|
||
|
try {
|
||
|
$standard = ServiceStandard::order('sort desc, id desc')->field('standard_name')->select();
|
||
|
|
||
|
return [
|
||
|
'code' => ResponseCode::SUCCESS,
|
||
|
'data'=> $standard
|
||
|
];
|
||
|
}catch (Exception $e){
|
||
|
return [
|
||
|
'code' => ResponseCode::FAIL,
|
||
|
'msg' => $e->getMessage()
|
||
|
];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|