GWM : master api

This commit is contained in:
Gowtham M 2025-09-02 10:39:17 +05:30
parent 24424c5be3
commit 3765f45ed5
3 changed files with 661 additions and 689 deletions

View File

@ -27,20 +27,24 @@ $routes->group('api', ['filter' => 'appSignature'], function ($routes) {
//api's with token
$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
$routes->get('staffList', 'StaffController::staffList');
$routes->get('findStaff', 'StaffController::findStaff');
$routes->post('createStaff', 'StaffController::createStaff');
$routes->post('updateStaff', 'StaffController::updateStaff');
$routes->post('changeStaffStatus', 'StaffController::changeStaffStatus');
$routes->get('agent/agentList', 'AgentController::agentList');
$routes->get('agent/findAgent', 'AgentController::findAgent');
$routes->post('agent/createAgent', 'AgentController::createAgent');
$routes->post('agent/updateAgent', 'AgentController::updateAgent');
$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

View 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
}