歌曲文件
Showing
8 changed files
with
199 additions
and
2 deletions
1 | <?php | ||
2 | |||
3 | namespace App\Http\Controllers\Musician; | ||
4 | |||
5 | use App\Http\Controllers\Controller; | ||
6 | use App\Http\Requests\Musician\MusicianWithdrawBillConfirmRequest; | ||
7 | use App\Http\Requests\Musician\MusicianWithdrawReceiptByNameRequest; | ||
8 | use App\Http\Requests\Musician\MusicianWithdrawReceiptByNoRequest; | ||
9 | use App\Http\Requests\Musician\MusicianWithdrawReceiptRequest; | ||
10 | use App\Http\Requests\Musician\MusicianWithdrawStatusRequest; | ||
11 | use App\Services\MusicianWithdrawService; | ||
12 | use App\Services\PropertyTrackService; | ||
13 | use App\Services\WithdrawService; | ||
14 | |||
15 | /** | ||
16 | * Class PropertyTrackController | ||
17 | * @package App\Http\Controllers\Musician | ||
18 | */ | ||
19 | class PropertyTrackController extends Controller | ||
20 | { | ||
21 | /** | ||
22 | * @var PropertyTrackService | ||
23 | */ | ||
24 | protected $propertyTrackService; | ||
25 | |||
26 | /** | ||
27 | * @param PropertyTrackService $propertyTrackService | ||
28 | */ | ||
29 | public function __construct(PropertyTrackService $propertyTrackService) | ||
30 | { | ||
31 | $this->propertyTrackService = $propertyTrackService; | ||
32 | } | ||
33 | |||
34 | /** | ||
35 | * @param $method | ||
36 | * @param $parameters | ||
37 | * @return false|mixed | ||
38 | */ | ||
39 | public function __call($method, $parameters) | ||
40 | { | ||
41 | return call_user_func([$this->propertyTrackService, $method]); | ||
42 | } | ||
43 | |||
44 | } |
app/Models/Legal/PropertyFileType.php
0 → 100644
app/Models/Legal/PropertyTrack.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Models\Legal; | ||
4 | |||
5 | use App\Models\BaseModel; | ||
6 | use Illuminate\Database\Eloquent\SoftDeletes; | ||
7 | |||
8 | class PropertyTrack extends BaseModel | ||
9 | { | ||
10 | use SoftDeletes; | ||
11 | |||
12 | public $guarded = []; | ||
13 | |||
14 | /** | ||
15 | * @return \Illuminate\Database\Eloquent\Relations\HasMany | ||
16 | */ | ||
17 | public function trackFiles() | ||
18 | { | ||
19 | return $this->hasMany(PropertyTrackFile::class, 'pt_id'); | ||
20 | } | ||
21 | |||
22 | /** | ||
23 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||
24 | */ | ||
25 | public function project() | ||
26 | { | ||
27 | return $this->belongsTo(Project::class, 'project_id'); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * @return string | ||
32 | */ | ||
33 | public function getStatusNameAttribute() | ||
34 | { | ||
35 | return $this->status ? '已上传' : '未上传'; | ||
36 | } | ||
37 | } |
app/Models/Legal/PropertyTrackFile.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Models\Legal; | ||
4 | |||
5 | use App\Models\BaseModel; | ||
6 | use Illuminate\Database\Eloquent\Relations\BelongsTo; | ||
7 | use Illuminate\Database\Eloquent\Relations\HasMany; | ||
8 | |||
9 | class PropertyTrackFile extends BaseModel | ||
10 | { | ||
11 | protected $guarded = []; | ||
12 | |||
13 | /** | ||
14 | * @return BelongsTo | ||
15 | */ | ||
16 | public function songsTrack(): BelongsTo | ||
17 | { | ||
18 | return $this->belongsTo(PropertyTrack::class, 'id', 'pft_id'); | ||
19 | } | ||
20 | |||
21 | public function ptfTypes(): HasMany | ||
22 | { | ||
23 | return $this->hasMany(PropertyTrackFileType::class, 'p_file_id', 'id'); | ||
24 | } | ||
25 | } |
app/Models/Legal/PropertyTrackFileType.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Models\Legal; | ||
4 | |||
5 | use App\Models\BaseModel; | ||
6 | |||
7 | class PropertyTrackFileType extends BaseModel | ||
8 | { | ||
9 | protected $updated_at = false; | ||
10 | protected $guarded = []; | ||
11 | |||
12 | /** | ||
13 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||
14 | */ | ||
15 | public function type() | ||
16 | { | ||
17 | return $this->belongsTo(PropertyFileType::class,'p_type_id'); | ||
18 | } | ||
19 | |||
20 | } |
... | @@ -32,8 +32,8 @@ class IssueService extends Service | ... | @@ -32,8 +32,8 @@ class IssueService extends Service |
32 | 32 | ||
33 | $params['data'] = $this->request->all(); | 33 | $params['data'] = $this->request->all(); |
34 | $params['ext'] = [ | 34 | $params['ext'] = [ |
35 | 'user_id' => $this->identifier->company_id, | 35 | 'user_id' => $this->identifier->company_id, //机构id |
36 | 'operator' => $this->identifier->user_id, | 36 | 'operator' => $this->identifier->user_id, //操作人id |
37 | 'stakeholder_ids' => $this->stakeholder_ids, | 37 | 'stakeholder_ids' => $this->stakeholder_ids, |
38 | ]; | 38 | ]; |
39 | 39 | ... | ... |
app/Services/PropertyTrackService.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Services; | ||
4 | |||
5 | use App\Helper\CosHelper; | ||
6 | use App\Helper\Response; | ||
7 | use App\Models\Legal\Contract; | ||
8 | use App\Models\Legal\StakeholderContract; | ||
9 | use App\Models\Legal\Treaty; | ||
10 | use Qcloud\Cos\Client; | ||
11 | |||
12 | /** | ||
13 | * Class PropertyTrackService | ||
14 | * @package App\Services | ||
15 | */ | ||
16 | class PropertyTrackService extends Service | ||
17 | { | ||
18 | /** | ||
19 | * 歌曲文件列表 | ||
20 | * @return \Illuminate\Http\JsonResponse | ||
21 | */ | ||
22 | public function list() | ||
23 | { | ||
24 | |||
25 | |||
26 | return Response::success(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * 歌曲文件详情 | ||
31 | * @return \Illuminate\Http\JsonResponse | ||
32 | */ | ||
33 | public function show() | ||
34 | { | ||
35 | return Response::success(); | ||
36 | } | ||
37 | |||
38 | /** | ||
39 | * 待上传数据 | ||
40 | * @return \Illuminate\Http\JsonResponse | ||
41 | */ | ||
42 | public function pending() | ||
43 | { | ||
44 | return Response::success(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * 歌曲上传文件列表 | ||
49 | * @return \Illuminate\Http\JsonResponse | ||
50 | */ | ||
51 | public function file() | ||
52 | { | ||
53 | return Response::success(); | ||
54 | } | ||
55 | } |
... | @@ -56,6 +56,13 @@ Route::group(["prefix"=>"issue"], function (){ | ... | @@ -56,6 +56,13 @@ Route::group(["prefix"=>"issue"], function (){ |
56 | Route::post('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); | 56 | Route::post('{uri}', 'IssueController@index')->where(['uri'=>'.*+']); |
57 | }); | 57 | }); |
58 | 58 | ||
59 | //资产 | ||
60 | Route::group(["prefix"=>"property"], function (){ | ||
61 | Route::get('/track/list', 'PropertyTrackController@list'); | ||
62 | Route::get('/track/show', 'PropertyTrackController@show'); | ||
63 | Route::get('/track/pending', 'PropertyTrackController@pending'); | ||
64 | Route::get('/track/file', 'PropertyTrackController@file'); | ||
65 | }); | ||
59 | 66 | ||
60 | //api-v2 | 67 | //api-v2 |
61 | Route::group(["prefix"=>"v2", "namespace"=>"V2"], function (){ | 68 | Route::group(["prefix"=>"v2", "namespace"=>"V2"], function (){ | ... | ... |
-
Please register or sign in to post a comment