diff --git a/app/custom/controller/api/Auth.php b/app/custom/controller/api/Auth.php new file mode 100644 index 0000000..85548f9 --- /dev/null +++ b/app/custom/controller/api/Auth.php @@ -0,0 +1,25 @@ +checkUserStatus(false); + } catch (HttpResponseException $exception) { + throw $exception; + } catch (\Exception $exception) { + $this->error($exception->getMessage()); + } + } +} \ No newline at end of file diff --git a/app/custom/controller/api/auth/Message.php b/app/custom/controller/api/auth/Message.php new file mode 100644 index 0000000..c582a40 --- /dev/null +++ b/app/custom/controller/api/auth/Message.php @@ -0,0 +1,22 @@ +where('user_id', $this->usid)->paginate(); + $this->success('获取消息列表', $pageData); + } + + public function read() + { + $id = $this->request->post('id'); + CustomMessage::query()->where('user_id', $this->usid)->where('id', $id)->update(['status' => 1]); + $this->success('已读'); + } +} \ No newline at end of file diff --git a/app/custom/model/CustomMessage.php b/app/custom/model/CustomMessage.php new file mode 100644 index 0000000..6b859be --- /dev/null +++ b/app/custom/model/CustomMessage.php @@ -0,0 +1,10 @@ + '文章分类', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/category/index"], ['name' => '文章列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/article/index"], ['name' => '轮播图列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/banner/index"], + ['name' => '办事指南列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/tutorial/index"], ] ] ]; diff --git a/plugs/think-plugs-cms/src/view/tutorial/form.html b/plugs/think-plugs-cms/src/view/tutorial/form.html index d5998f7..33687af 100644 --- a/plugs/think-plugs-cms/src/view/tutorial/form.html +++ b/plugs/think-plugs-cms/src/view/tutorial/form.html @@ -9,19 +9,19 @@
- +
- +
- +
diff --git a/plugs/think-plugs-ticket/src/controller/api/Type.php b/plugs/think-plugs-ticket/src/controller/api/Type.php new file mode 100644 index 0000000..b76748a --- /dev/null +++ b/plugs/think-plugs-ticket/src/controller/api/Type.php @@ -0,0 +1,13 @@ +success('获取分类列表', TicketType::mk()->scope('active')->order('sort asc,id desc')->select()); + } +} \ No newline at end of file