\App\Modules\Admin\Http\ControllersUploadController

Summary

Methods
Properties
Constants
index()
detail()
createService()
updateService()
delete()
changeFiledStatus()
getSelectLists()
successJson()
errorJson()
setHttpCode()
myAjaxReturn()
file()
No public properties found
No constants found
No protected methods found
$service
$http_code
N/A
addUploadFile()
No private properties found
N/A

Properties

$service

$service : 

Type

$http_code

$http_code : 

Type

Methods

index()

index(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

列表页

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse

detail()

detail(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

详情

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse

createService()

createService(  $request) : \Illuminate\Http\JsonResponse

新增流程

Parameters

$request

Returns

\Illuminate\Http\JsonResponse

updateService()

updateService(  $request) : \Illuminate\Http\JsonResponse

更新流程

Parameters

$request

Returns

\Illuminate\Http\JsonResponse

delete()

delete(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

删除

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse

changeFiledStatus()

changeFiledStatus(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

指定字段变更操作

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse

getSelectLists()

getSelectLists(\Illuminate\Http\Request  $request) : \Illuminate\Http\JsonResponse

下拉筛选列表(可搜索)

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\JsonResponse

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]

file()

file(\Illuminate\Http\Request  $request, string  $file = 'file') : \Illuminate\Http\JsonResponse

文件上传

Parameters

\Illuminate\Http\Request $request
string $file

Returns

\Illuminate\Http\JsonResponse

addUploadFile()

addUploadFile(  $file_name,   $file) : \App\Models\UploadFile

添加文件库上传记录

Parameters

$file_name
$file

Returns

\App\Models\UploadFile