\App\Services\WholesalerProductTuanService

Class ProductService

Summary

Methods
Properties
Constants
__construct()
initialize()
instance()
_query()
_updateInit()
_save()
_delete()
_page()
callback()
simpleResult()
return_error()
validate()
_getInputData()
_form_filter()
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

__construct()

__construct() 

initialize()

initialize() 

2021/4/6--10:43 上午

instance()

instance(mixed  ...$args) : \App\Services\BaseService

2021/3/29--8:22 下午

Parameters

mixed $args variadic

Throws

\Illuminate\Contracts\Container\BindingResolutionException

Returns

\App\Services\BaseService

_query()

_query() : mixed

2021/4/1--10:51 上午

Throws

\Illuminate\Contracts\Container\BindingResolutionException

Returns

mixed

_updateInit()

_updateInit() 

2021/4/1--1:39 下午

Throws

\Illuminate\Contracts\Container\BindingResolutionException

_save()

_save() 

2021/4/1--2:55 下午

Throws

\Illuminate\Contracts\Container\BindingResolutionException

_delete()

_delete() 

2021/4/1--3:30 下午

Throws

\Illuminate\Contracts\Container\BindingResolutionException

_page()

_page() 

2021/4/2--10:17 上午

Throws

\Illuminate\Contracts\Container\BindingResolutionException

callback()

callback(string  $name, mixed  $one = array(), mixed  $two = array()) : boolean

2021/4/1--2:34 下午

Parameters

string $name

回调方法名称

mixed $one

回调引用参数1

mixed $two

回调引用参数2

Returns

boolean

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

validate()

validate(  $filed = 'id',   $exclude_array = array()) 

2021/4/14--11:33 上午

Parameters

$filed
$exclude_array

_getInputData()

_getInputData(  $input) : array

2021/5/15--1:52 下午

Parameters

$input

Returns

array

_form_filter()

_form_filter(  $data) 

2021/4/6--4:44 下午

Parameters

$data

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