From 38e9a410b07bd78008cddddaae297424a03413bc Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Tue, 30 Apr 2024 15:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E7=A4=BE=E5=8C=BA=E8=BF=90?= =?UTF-8?q?=E7=BB=B4=E8=AE=BA=E5=9D=9B=E8=B4=B4=E5=AD=90=E5=92=8C=E5=8F=91?= =?UTF-8?q?=E8=A1=A8=E5=B8=96=E5=AD=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inspur-service/inspur-community/pom.xml | 32 + inspur-ui/src/api/community/info.js | 52 + inspur-ui/src/components/Emoji/emoji.json | 3 + inspur-ui/src/components/Emoji/index.vue | 68 ++ .../community/comment/InputComponent.vue | 204 ++++ .../src/views/community/comment/Ipcomment.vue | 339 +++++++ .../src/views/community/comment/comments.vue | 369 +++++++ .../views/community/forum/forumDetails.vue | 437 +++++++++ .../src/views/community/forum/forumForm.vue | 306 ++++++ inspur-ui/src/views/community/forum/index.vue | 927 ++++++++++++++++++ 10 files changed, 2737 insertions(+) create mode 100644 inspur-service/inspur-community/pom.xml create mode 100644 inspur-ui/src/api/community/info.js create mode 100644 inspur-ui/src/components/Emoji/emoji.json create mode 100644 inspur-ui/src/components/Emoji/index.vue create mode 100644 inspur-ui/src/views/community/comment/InputComponent.vue create mode 100644 inspur-ui/src/views/community/comment/Ipcomment.vue create mode 100644 inspur-ui/src/views/community/comment/comments.vue create mode 100644 inspur-ui/src/views/community/forum/forumDetails.vue create mode 100644 inspur-ui/src/views/community/forum/forumForm.vue create mode 100644 inspur-ui/src/views/community/forum/index.vue diff --git a/inspur-service/inspur-community/pom.xml b/inspur-service/inspur-community/pom.xml new file mode 100644 index 0000000..9d1285d --- /dev/null +++ b/inspur-service/inspur-community/pom.xml @@ -0,0 +1,32 @@ + + + + inspur + com.inspur + 3.8.7 + + + 4.0.0 + + inspur-community + + 运维社区模块 + + + + com.inspur + inspur-common + + + + com.inspur + inspur-system + + + org.projectlombok + lombok + + + diff --git a/inspur-ui/src/api/community/info.js b/inspur-ui/src/api/community/info.js new file mode 100644 index 0000000..4e42fff --- /dev/null +++ b/inspur-ui/src/api/community/info.js @@ -0,0 +1,52 @@ +import request from "@/utils/request"; + +// 查询社区帖子信息列表 +export function listCommunityInfo(query) { + return request({ + url: "/community/info/list", + method: "get", + params: query, + }); +} + +// 查询社区帖子信息详细 +export function getCommunityInfo(postId) { + return request({ + url: "/community/info/" + postId, + method: "get", + }); +} + +// 新增社区帖子信息 +export function addCommunityInfo(data) { + return request({ + url: "/community/info", + method: "post", + data: data, + }); +} + +// 修改社区帖子信息 +export function updateCommunityInfo(data) { + return request({ + url: "/community/info", + method: "put", + data: data, + }); +} + +//浏览量加一 +export function addViews(postId) { + return request({ + url: "/community/info/addViews/" + postId, + method: "put", + }); +} + +// 删除社区帖子信息 +export function delCommunityInfo(postId) { + return request({ + url: "/community/info/" + postId, + method: "delete", + }); +} diff --git a/inspur-ui/src/components/Emoji/emoji.json b/inspur-ui/src/components/Emoji/emoji.json new file mode 100644 index 0000000..33975b6 --- /dev/null +++ b/inspur-ui/src/components/Emoji/emoji.json @@ -0,0 +1,3 @@ +{ + "data": ["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","💝","💞","💟","❣","💪","👈","👉","☝","👆","👇","✌","✋","👌","👍","👎","✊","👊","👋","👏","👐","✍","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍅","🍆","🌽","🍄","🌰","🍞","🍖","🍗","🍔","🍟","🍕","🍳","🍲","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🍡","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🍫","🍬","🍭","🍮","🍯","🍼","☕","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍴","🌹","🍀","🍎","💰","📱","🌙","🍁","🍂","🍃","🌷","💎","🔪","🔫","🏀","⚽","⚡","👄","👍","🔥","🙈","🙉","🙊","🐵","🐒","🐶","🐕","🐩","🐺","🐱","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🐈","🐯","🐅","🐆","🐴","🐎","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🐭","🐁","🐀","🐹","🐰","🐇","🐻","🐨","🐼","🐾","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🐸","🐊","🐢","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🐙","🐚","🐌","🐛","🐜","🐝","🐞","🦋","😈","👿","👹","👺","💀","☠","👻","👽","👾","💣"] +} \ No newline at end of file diff --git a/inspur-ui/src/components/Emoji/index.vue b/inspur-ui/src/components/Emoji/index.vue new file mode 100644 index 0000000..431e7c6 --- /dev/null +++ b/inspur-ui/src/components/Emoji/index.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/inspur-ui/src/views/community/comment/InputComponent.vue b/inspur-ui/src/views/community/comment/InputComponent.vue new file mode 100644 index 0000000..fcb6852 --- /dev/null +++ b/inspur-ui/src/views/community/comment/InputComponent.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/inspur-ui/src/views/community/comment/Ipcomment.vue b/inspur-ui/src/views/community/comment/Ipcomment.vue new file mode 100644 index 0000000..d217f2b --- /dev/null +++ b/inspur-ui/src/views/community/comment/Ipcomment.vue @@ -0,0 +1,339 @@ + + + + + diff --git a/inspur-ui/src/views/community/comment/comments.vue b/inspur-ui/src/views/community/comment/comments.vue new file mode 100644 index 0000000..9b50ada --- /dev/null +++ b/inspur-ui/src/views/community/comment/comments.vue @@ -0,0 +1,369 @@ + + + + + + diff --git a/inspur-ui/src/views/community/forum/forumDetails.vue b/inspur-ui/src/views/community/forum/forumDetails.vue new file mode 100644 index 0000000..adbdf7c --- /dev/null +++ b/inspur-ui/src/views/community/forum/forumDetails.vue @@ -0,0 +1,437 @@ + + + + + + \ No newline at end of file diff --git a/inspur-ui/src/views/community/forum/forumForm.vue b/inspur-ui/src/views/community/forum/forumForm.vue new file mode 100644 index 0000000..ba78424 --- /dev/null +++ b/inspur-ui/src/views/community/forum/forumForm.vue @@ -0,0 +1,306 @@ + + + diff --git a/inspur-ui/src/views/community/forum/index.vue b/inspur-ui/src/views/community/forum/index.vue new file mode 100644 index 0000000..b4ca6e0 --- /dev/null +++ b/inspur-ui/src/views/community/forum/index.vue @@ -0,0 +1,927 @@ + + + + + + \ No newline at end of file