\App\ServicesService

Summary

Methods
Properties
Constants
getError()
getStatus()
setError()
setStatus()
getInstance()
successJson()
errorJson()
setHttpCode()
myAjaxReturn()
No public properties found
No constants found
getSearchMonth()
getLimit()
$error
$status
$instance
$http_code
N/A
No private methods found
No private properties found
N/A

Properties

$error

$error : 

Type

$status

$status : 

Type

$instance

$instance : 

单例

Type

$http_code

$http_code : 

Type

Methods

getError()

getError() 

getStatus()

getStatus() 

setError()

setError(\App\Traits\string  $error, \App\Traits\int  $status) 

Parameters

\App\Traits\string $error
\App\Traits\int $status

setStatus()

setStatus(\App\Traits\int  $status) 

Parameters

\App\Traits\int $status

getInstance()

getInstance(  $args) 

Parameters

$args

successJson()

successJson(  $data = array(),   $msg = 'success',   $other = array()) 

Parameters

$data
$msg
$other

errorJson()

errorJson(  $msg = 'error',   $status,   $data = array(),   $other = array()) 

Parameters

$msg
$status
$data
$other

setHttpCode()

setHttpCode(\App\Traits\int  $http_code) 

Parameters

\App\Traits\int $http_code

myAjaxReturn()

myAjaxReturn(\App\Traits\[type]  $data) 

[myAjaxReturn]

Parameters

\App\Traits\[type] $data

[description]

getSearchMonth()

getSearchMonth() 

getLimit()

getLimit(integer  $limit = 10) : integer

列表页:部分接口需要自定义展示数量,对于数量做一个限制处理

Parameters

integer $limit

Returns

integer