ADDRESS API

This commit is contained in:
velz 2019-02-27 21:28:39 +05:30
parent d8e08a29b0
commit ac97a11026
2 changed files with 11 additions and 0 deletions

View File

@ -193,6 +193,7 @@ $route['getAllPersonsName'] = 'PD_Controller/getAllPersonsName';
$route['getAssetsWithLoanFromBusiness'] = 'PD_Controller/getAssetsWithLoanFromBusiness';
$route['getListOfCities'] = 'PD_Controller/getListOfCities';
$route['savePDPhotos'] = 'PD_Controller/savePDPhotos';
$route['getPDAddress'] = 'PD_Controller/getPDAddress';
// $route['savePDFormDetailsJSON'] = 'PD_Controller/savePDFormDetailsJSON';
// $route['getPDFormDetailsJSON'] = 'PD_Controller/getPDFormDetailsJSON';

View File

@ -4516,6 +4516,16 @@ class PD_Controller extends REST_Controller {
}
public function getPDAddress_post()
{
$pdid = $this->post('pd_id');
$address = $this->PD_Model->getPDAddress($pdid);
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;
$data['records'] = $address;
$this->response($data,REST_Controller::HTTP_OK);
}
public function getEndUseOfLoan_post()
{