\App\traitsResponseTrait

Summary

Methods
Properties
Constants
simpleResult()
return_error()
No public properties found
No constants found
success()
error()
resultz()
return_success()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

simpleResult()

simpleResult() 

2021/4/25--2:07 下午

return_error()

return_error(  $msg = 'request fail.',   $data = array(), \App\traits\int  $code = 400, array  $header = array()) 

Parameters

$msg
$data
\App\traits\int $code
array $header

success()

success(array  $data = array(), string  $msg = 'request success.', array  $extend = array(), integer  $code = 200, array  $header = array()) 

2021/4/25--2:08 下午

Parameters

array $data
string $msg
array $extend
integer $code
array $header

error()

error(string  $msg = 'request fail.', array  $data = array(), integer  $code = 400, array  $header = array()) 

2021/4/25--2:09 下午

Parameters

string $msg
array $data
integer $code
array $header

resultz()

resultz(  $pager) 

Parameters

$pager

return_success()

return_success(  $data = array(),   $msg = 'request success.',   $extend = array(), \App\traits\int  $code = 200, array  $header = array()) 

Parameters

$data
$msg
$extend
\App\traits\int $code
array $header