contract entity api

This commit is contained in:
glovetleong
2021-07-26 11:42:32 +08:00
parent 3b23ac84df
commit 247b21010e
15 changed files with 397 additions and 16 deletions
+46 -1
View File
@@ -278,7 +278,6 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
);
});
// Contract
Route::prefix('contract')->group(function () {
Route::get('list',
@@ -302,6 +301,13 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
'middleware' => ['permission:add contract']
]
);
Route::put('assign-entity/{hash_id}',
[
'as' => 'api.contract.assign-entity',
'uses' => 'ContractController@assignEntity',
'middleware' => ['permission:edit contract']
]
);
Route::post('valid-check/{hash_id?}',
[
'as' => 'api.contract.valid-check',
@@ -311,6 +317,45 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
);
});
// Contract Entit
Route::prefix('contract-entity')->group(function () {
Route::get('list',
[
'as' => 'api.contract-entity.list',
'uses' => 'ContractEntityController@list',
'middleware' => ['permission:view contract_entity']
]
);
Route::get('show/{hash_id}',
[
'as' => 'api.contract-entity.show',
'uses' => 'ContractEntityController@show',
'middleware' => ['permission:view contract_entity']
]
);
Route::post('store',
[
'as' => 'api.contract-entity.store',
'uses' => 'ContractEntityController@store',
'middleware' => ['permission:add contract_entity']
]
);
Route::put('update/{hash_id}',
[
'as' => 'api.contract-entity.update',
'uses' => 'ContractEntityController@update',
'middleware' => ['permission:edit contract_entity']
]
);
Route::delete('delete/{hash_id}',
[
'as' => 'api.contract-entity.delete',
'uses' => 'ContractEntityController@delete',
'middleware' => ['permission:delete contract_entity']
]
);
});
// contract generate
// contract assign entity
// contract active