\app\api\behaviorBuildResponse

Summary

Methods
Properties
Constants
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
handle()
No private properties found
N/A

Methods

run()

run(  $response) 

返回参数过滤(主要是将返回参数的数据类型给规范)

Parameters

$response

\think\Response

Throws

\think\exception\DbException

handle()

handle(  $data,   $rule,   $prefix = 'data') 

Parameters

$data
$rule
$prefix