GWM : master api
This commit is contained in:
parent
24424c5be3
commit
3765f45ed5
@ -27,20 +27,24 @@ $routes->group('api', ['filter' => 'appSignature'], function ($routes) {
|
|||||||
//api's with token
|
//api's with token
|
||||||
$routes->group('api', ['filter' => ["jwtAuth","appSignature"] ], function ($routes) {
|
$routes->group('api', ['filter' => ["jwtAuth","appSignature"] ], function ($routes) {
|
||||||
|
|
||||||
//Agent
|
|
||||||
$routes->get('agentList', 'AgentController::agentList');
|
|
||||||
$routes->get('findAgent', 'AgentController::findAgent');
|
|
||||||
$routes->post('createAgent', 'AgentController::createAgent');
|
|
||||||
$routes->post('updateAgent', 'AgentController::updateAgent');
|
|
||||||
$routes->post('updateAgent', 'AgentController::updateAgent');
|
|
||||||
|
|
||||||
|
//Master
|
||||||
|
$routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
|
||||||
|
|
||||||
//Agent
|
//Agent
|
||||||
$routes->get('staffList', 'StaffController::staffList');
|
$routes->get('agent/agentList', 'AgentController::agentList');
|
||||||
$routes->get('findStaff', 'StaffController::findStaff');
|
$routes->get('agent/findAgent', 'AgentController::findAgent');
|
||||||
$routes->post('createStaff', 'StaffController::createStaff');
|
$routes->post('agent/createAgent', 'AgentController::createAgent');
|
||||||
$routes->post('updateStaff', 'StaffController::updateStaff');
|
$routes->post('agent/updateAgent', 'AgentController::updateAgent');
|
||||||
$routes->post('changeStaffStatus', 'StaffController::changeStaffStatus');
|
$routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
|
||||||
|
|
||||||
|
|
||||||
|
//Staff
|
||||||
|
$routes->get('staff/staffList', 'StaffController::staffList');
|
||||||
|
$routes->get('staff/findStaff', 'StaffController::findStaff');
|
||||||
|
$routes->post('staff/createStaff', 'StaffController::createStaff');
|
||||||
|
$routes->post('staff/updateStaff', 'StaffController::updateStaff');
|
||||||
|
$routes->post('staff/changeStaffStatus', 'StaffController::changeStaffStatus');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
21
app/Models/RoleMasterModel.php
Normal file
21
app/Models/RoleMasterModel.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
|
class RoleMasterModel extends Model
|
||||||
|
{
|
||||||
|
protected $table = 'partner_role_master';
|
||||||
|
protected $primaryKey = 'id';
|
||||||
|
protected $allowedFields = [
|
||||||
|
'role',
|
||||||
|
'is_active',
|
||||||
|
'created_by',
|
||||||
|
'created_on',
|
||||||
|
'updated_by',
|
||||||
|
'updated_on'
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $useTimestamps = false; // we handle timestamps manually
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user