12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace app\admin\controller\user;
- use app\admin\controller\AuthController;
- use crmeb\services\{FormBuilder as Form, UtilService as Util, JsonService as Json};
- use crmeb\services\JsonService;
- use think\facade\Route as Url;
- use app\admin\model\user\UserNotice as UserNoticeModel;
- use app\admin\model\user\UserNoticeSee as UserNoticeSeeModel;
- use app\admin\model\wechat\WechatUser as UserModel;
- Use app\admin\model\user\UserApply as model;
- /**
- * 用户通知
- * Class UserNotice
- * @package app\admin\controller\user
- */
- class Achievement extends AuthController
- {
- /**
- * 显示资源列表
- *
- * @return \think\Response
- */
- public function index($type)
- {
- return $this->fetch();
- }
- public function indexs($type)
- {
- $this->assign('type', $type);
- return $this->fetch();
- }
- public function list()
- {
- $where = Util::getMore([
- ['status', ''],
- ['page', 1],
- ['limit', 20],
- ['name', ''],
- ['type', ''],
- ['status', ''],
- ]);
- return Json::successlayui(model::list($where));
- }
- /**
- * 删除指定资源
- *
- * @param int $id
- * @return \think\Response
- */
- public function delete($id)
- {
- if (!model::del($id))
- return Json::fail(UserNoticeModel::getErrorInfo('删除失败,请稍候再试!'));
- else
- return Json::successful('删除成功!');
- }
- }
|