| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\modules\admin\controllers\agent\front_sorting;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\agent\front_sorting\AgentStaffForm;
- class AgentStaffController extends BaseController
- {
- /**
- * 添加仓库员工
- */
- public function actionAddStaff() {
- $form = new AgentStaffForm();
- $form->attributes = post_params();
- $form->admin_id = get_admin()->id;
- return $this->asJson($form->addStaff());
- }
- /**
- * 仓库员工列表
- */
- public function actionStaffList() {
- $form = new AgentStaffForm();
- $form->attributes = get_params();
- $form->admin_id = get_admin()->id;
- return $this->asJson($form->staffList());
- }
- /**
- * 删除仓库员工
- */
- public function actionSetStaffStatus() {
- $form = new AgentStaffForm();
- $form->attributes =post_params();
- $form->admin_id = get_admin()->id;
- return $this->asJson($form->setStaffStatus());
- }
- /**
- * 获取员工操作日志
- */
- public function actionGetStaffLog(){
- $form = new AgentStaffForm();
- $form->attributes = get_params();
- $form->admin_id = get_admin()->id;
- return $this->asJson($form->getStaffLog());
- }
- }
|