From 639e46094d89753170e9b5c8aaeb8e8d11aa4528 Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Sat, 10 May 2025 03:30:34 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=20=E6=96=B0=E5=A2=9E=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/notice/notice.js | 110 +++++++ src/api/user/index.js | 2 +- src/view/notice/notice/notice.vue | 436 ++++++++++++++++++++++++++ src/view/notice/notice/noticeForm.vue | 122 +++++++ 4 files changed, 669 insertions(+), 1 deletion(-) create mode 100644 src/api/notice/notice.js create mode 100644 src/view/notice/notice/notice.vue create mode 100644 src/view/notice/notice/noticeForm.vue diff --git a/src/api/notice/notice.js b/src/api/notice/notice.js new file mode 100644 index 0000000..f5b2026 --- /dev/null +++ b/src/api/notice/notice.js @@ -0,0 +1,110 @@ +import service from '@/utils/request' +// @Tags Notice +// @Summary 创建通知 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data body model.Notice true "创建通知" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" +// @Router /not/createNotice [post] +export const createNotice = (data) => { + return service({ + url: '/not/createNotice', + method: 'post', + data + }) +} + +// @Tags Notice +// @Summary 删除通知 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data body model.Notice true "删除通知" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" +// @Router /not/deleteNotice [delete] +export const deleteNotice = (params) => { + return service({ + url: '/not/deleteNotice', + method: 'delete', + params + }) +} + +// @Tags Notice +// @Summary 批量删除通知 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data body request.IdsReq true "批量删除通知" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" +// @Router /not/deleteNotice [delete] +export const deleteNoticeByIds = (params) => { + return service({ + url: '/not/deleteNoticeByIds', + method: 'delete', + params + }) +} + +// @Tags Notice +// @Summary 更新通知 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data body model.Notice true "更新通知" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" +// @Router /not/updateNotice [put] +export const updateNotice = (data) => { + return service({ + url: '/not/updateNotice', + method: 'put', + data + }) +} + +// @Tags Notice +// @Summary 用id查询通知 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data query model.Notice true "用id查询通知" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" +// @Router /not/findNotice [get] +export const findNotice = (params) => { + return service({ + url: '/not/findNotice', + method: 'get', + params + }) +} + +// @Tags Notice +// @Summary 分页获取通知列表 +// @Security ApiKeyAuth +// @Accept application/json +// @Produce application/json +// @Param data query request.PageInfo true "分页获取通知列表" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" +// @Router /not/getNoticeList [get] +export const getNoticeList = (params) => { + return service({ + url: '/not/getNoticeList', + method: 'get', + params + }) +} + +// @Tags Notice +// @Summary 不需要鉴权的通知接口 +// @Accept application/json +// @Produce application/json +// @Param data query noticeReq.NoticeSearch true "分页获取通知列表" +// @Success 200 {object} response.Response{data=object,msg=string} "获取成功" +// @Router /not/getNoticePublic [get] +export const getNoticePublic = () => { + return service({ + url: '/not/getNoticePublic', + method: 'get', + }) +} diff --git a/src/api/user/index.js b/src/api/user/index.js index 204642c..6a797e7 100644 --- a/src/api/user/index.js +++ b/src/api/user/index.js @@ -7,7 +7,7 @@ import service from '@/utils/request' // @router get /user/list export const list = (params) => { return service({ - url: '/user/list', + url: '/app_user/list', method: 'get', params }) diff --git a/src/view/notice/notice/notice.vue b/src/view/notice/notice/notice.vue new file mode 100644 index 0000000..3730c85 --- /dev/null +++ b/src/view/notice/notice/notice.vue @@ -0,0 +1,436 @@ + + + + + + diff --git a/src/view/notice/notice/noticeForm.vue b/src/view/notice/notice/noticeForm.vue new file mode 100644 index 0000000..decf520 --- /dev/null +++ b/src/view/notice/notice/noticeForm.vue @@ -0,0 +1,122 @@ + + + + + +