| 1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * User: admin
- * Date Time: 2021/1/13 23:04
- */
- namespace ghs\controllers;
- use bizGhs\itemClass\services\ItemClassService;
- use common\components\util;
- use Yii;
- class ItemClassController extends BaseController
- {
- public function actionList()
- {
- $where = ['ghsId' => $this->ghsId];
- $list = ItemClassService::getGhsItemClassList($where);
- util::success($list);
- }
- public function actionAdd()
- {
- $get = Yii::$app->request->get();
- $res = ItemClassService::addGhsItemClass($this->ghsId,$get);
- util::complete('添加成功');
- }
- }
|