\app\api\controllerAuth

Summary

Methods
Properties
Constants
__construct()
_empty()
login()
No public properties found
No constants found
success()
error()
result()
validateFailException()
validate()
$request
$param
$token
$needAuth
$uid
$failException
$batchValidate
N/A
No private methods found
No private properties found
N/A

Properties

$request

$request : 

Type

$param

$param : 

Type

$token

$token : 

Type

$needAuth

$needAuth : 

Type

$uid

$uid : 

Type

$failException

$failException : 

Type

$batchValidate

$batchValidate : 

Type

Methods

__construct()

__construct(\think\Request  $request = null) 

Parameters

\think\Request $request

_empty()

_empty() 

login()

login() 

success()

success(  $data = '',   $msg = 'success',   $code = 1,   $type = 'json', array  $header = array()) 

Parameters

$data
$msg
$code
$type
array $header

error()

error(  $msg = 'fail',   $data = '',   $code,   $type = 'json', array  $header = array()) 

Parameters

$msg
$data
$code
$type
array $header

result()

result(  $data,   $code,   $msg = '',   $type = 'json', array  $header = array()) 

Parameters

$data
$code
$msg
$type
array $header

validateFailException()

validateFailException(  $fail = true) 

Parameters

$fail

validate()

validate(  $data,   $validate,   $message = array(),   $batch = false,   $callback = null) 

Parameters

$data
$validate
$message
$batch
$callback