Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
3bed3d31
...
3bed3d312bb4d085c5f70d67c008c2cddabcf670
authored
2022-11-29 15:59:24 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
4fc4db04
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
2 deletions
app/Models/Legal/PropertyFileType.php
app/Models/Legal/PropertyTrackFile.php
app/Models/Legal/PropertyTrackFileType.php
app/Services/PropertyTrackService.php
routes/api.php
app/Models/Legal/PropertyFileType.php
View file @
3bed3d3
...
...
@@ -2,6 +2,7 @@
namespace
App\Models\Legal
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\Model
;
class
PropertyFileType
extends
BaseModel
...
...
app/Models/Legal/PropertyTrackFile.php
View file @
3bed3d3
...
...
@@ -10,6 +10,10 @@ class PropertyTrackFile extends BaseModel
{
protected
$guarded
=
[];
public
$hidden
=
[
'deleted_at'
,
'updated_at'
,
'from'
,
'id'
,
'pt_id'
];
/**
* @return BelongsTo
*/
...
...
app/Models/Legal/PropertyTrackFileType.php
View file @
3bed3d3
...
...
@@ -9,6 +9,10 @@ class PropertyTrackFileType extends BaseModel
protected
$updated_at
=
false
;
protected
$guarded
=
[];
protected
$hidden
=
[
'pt_id'
,
'p_file_id'
,
'p_type_id'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
...
...
app/Services/PropertyTrackService.php
View file @
3bed3d3
...
...
@@ -6,6 +6,7 @@ use App\Helper\CosHelper;
use
App\Helper\Response
;
use
App\Models\Legal\Contract
;
use
App\Models\Legal\PropertyTrack
;
use
App\Models\Legal\PropertyTrackFile
;
use
App\Models\Legal\StakeholderContract
;
use
App\Models\Legal\Treaty
;
use
App\Models\Musician\AppCompany
;
...
...
@@ -71,8 +72,11 @@ class PropertyTrackService extends Service
*/
public
function
file
()
{
$trackFiles
=
PropertyTrackFile
::
query
()
->
with
(
'ptfTypes.type:id,type_name,remark'
)
->
where
([
'pt_id'
=>
$this
->
request
->
input
(
'track_id'
)])
->
get
();
echo
$trackFiles
;
exit
();
return
Response
::
success
();
return
Response
::
success
(
$trackFiles
);
}
}
...
...
routes/api.php
View file @
3bed3d3
...
...
@@ -57,7 +57,7 @@ Route::group(["prefix"=>"issue"], function (){
});
//资产
Route
::
group
([
"prefix"
=>
"property"
],
function
(){
Route
::
group
([
"prefix"
=>
"property"
],
function
(){
Route
::
get
(
'/track/list'
,
'PropertyTrackController@list'
);
Route
::
get
(
'/track/show'
,
'PropertyTrackController@show'
);
Route
::
get
(
'/track/pending'
,
'PropertyTrackController@pending'
);
...
...
Please
register
or
sign in
to post a comment