Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
workbiu-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gxx
workbiu-admin
Commits
cb989fdc
Commit
cb989fdc
authored
Dec 12, 2017
by
mengyixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FileService
parent
e3665832
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
363 additions
and
270 deletions
+363
-270
FileServiceContract.php
app/Contracts/FileServiceContract.php
+1
-1
FileController.php
app/Http/Controllers/FileController.php
+6
-0
FileService.php
app/Services/FileService.php
+3
-1
composer.lock
composer.lock
+353
-268
No files found.
app/Contracts/FileServiceContract.php
View file @
cb989fdc
...
...
@@ -14,5 +14,5 @@ interface FileServiceContract
public
function
getAll
();
public
function
get
(
$id
);
public
function
delete
();
public
function
delete
(
$file_id
);
}
\ No newline at end of file
app/Http/Controllers/FileController.php
View file @
cb989fdc
...
...
@@ -19,4 +19,10 @@ class FileController extends Controller
{
$this
->
mFile
->
getAll
();
}
public
function
delete
(
Request
$request
)
{
$file_id
=
$request
;
$this
->
mFile
->
delete
(
$file_id
);
}
}
app/Services/FileService.php
View file @
cb989fdc
...
...
@@ -7,6 +7,7 @@
*/
namespace
App\Services
;
use
App\Models\File
;
use
App\Contracts\FileServiceContract
;
...
...
@@ -24,8 +25,9 @@ class FileService implements FileServiceContract
// TODO: Implement get() method.
}
public
function
delete
()
public
function
delete
(
$file_id
)
{
// TODO: Implement delete() method.
// $file =
}
}
\ No newline at end of file
composer.lock
View file @
cb989fdc
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment