promo actions list

This commit is contained in:
CHIEFSOFT\ameye
2024-11-24 17:22:17 -05:00
parent 9b1769193b
commit 6f83a9829c
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -45,6 +45,8 @@ $routes->post('/en/promoadmin/api/v1/getlist', 'PromoAdmin::promoList');
$routes->post('/en/promoadmin/api/v1/list', 'PromoAdmin::promoAddRef');
$routes->post('/en/promoadmin/api/v1/getmember', 'PromoAdmin::promoGetMember');
$routes->post('/en/promoadmin/api/v1/assigntask', 'PromoAdmin::promoAssignTask');
$routes->post('/en/promoadmin/api/v1/getactions', 'PromoAdmin::promoActionList');
+13
View File
@@ -18,6 +18,19 @@ class PromoAdmin extends BaseController
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function promoActionList(){
log_message('critical', "***** ***** PromoAdmin::promoList ****" );
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out = [];
$in["action"] = WRENCHBOARD_PROMOADMIN_GETLIST;
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function promoAddRef(){
log_message('critical', "***** ***** PromoAdmin::promoAddRef ****" );
// $in = $this->request->getPostGet();