From 8e3141d3c95e16f199055aae683cf557c735a5c1 Mon Sep 17 00:00:00 2001 From: RichZDS <3388214266@qq.com> Date: Thu, 5 Feb 2026 22:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth-controller/postApiAuthLogin.ts | 10 ------ .../auth-controller/postApiAuthLogout.ts | 10 ------ Frontend/src/api/README.md | 2 +- .../BuMen/deleteApiDepartmentDelete.ts | 1 - .../controller/BuMen/getApiDepartmentList.ts | 1 - .../controller/BuMen/getApiDepartmentView.ts | 1 - .../BuMen/postApiDepartmentCreate.ts | 1 - .../BuMen/putApiDepartmentUpdate.ts | 1 - .../api/controller/DengChu/postApiLogout.ts | 1 - .../src/api/controller/DengLu/postApiLogin.ts | 1 - .../controller/DengLu/postApiLoginEmail.ts | 1 - .../FangJian/deleteApiRoomDelete.ts | 1 - .../api/controller/FangJian/getApiRoomList.ts | 1 - .../api/controller/FangJian/getApiRoomView.ts | 1 - .../controller/FangJian/postApiRoomJoin.ts | 1 - .../controller/FangJian/putApiRoomUpdate.ts | 1 - .../controller/GuiJi/deleteApiTraceReduce.ts | 1 - .../api/controller/GuiJi/getApiTraceList.ts | 1 - .../api/controller/GuiJi/getApiTraceView.ts | 1 - .../api/controller/GuiJi/putApiTraceUpdate.ts | 1 - .../controller/JiaoSe/deleteApiRoleDelete.ts | 1 - .../api/controller/JiaoSe/getApiRoleList.ts | 1 - .../api/controller/JiaoSe/getApiRoleView.ts | 1 - .../controller/JiaoSe/postApiRoleCreate.ts | 1 - .../JiaoSe/postApiRolePermissionCheck.ts | 1 - .../api/controller/JiaoSe/putApiRoleUpdate.ts | 1 - .../deleteApiForumBoardsDelete.ts | 22 ++++++++++++ .../LunTanBanKuai/getApiForumBoardsList.ts | 34 ++++++++++++++++++ .../LunTanBanKuai/getApiForumBoardsView.ts | 22 ++++++++++++ .../src/api/controller/LunTanBanKuai/index.ts | 5 +++ .../LunTanBanKuai/postApiForumBoardsCreate.ts | 11 ++++++ .../LunTanBanKuai/putApiForumBoardsUpdate.ts | 11 ++++++ .../deleteApiForumCommentsDelete.ts | 1 - .../LunTanPingLun/getApiForumCommentsList.ts | 1 - .../LunTanPingLun/getApiForumCommentsView.ts | 1 - .../postApiForumCommentsCreate.ts | 1 - .../putApiForumCommentsUpdate.ts | 1 - .../LunTanTieZi/deleteApiForumPostsDelete.ts | 1 - .../LunTanTieZi/getApiForumPostsList.ts | 10 +++++- .../LunTanTieZi/getApiForumPostsView.ts | 1 - .../LunTanTieZi/postApiForumPostsCreate.ts | 1 - .../LunTanTieZi/putApiForumPostsUpdate.ts | 1 - .../ShouRongKu/deleteApiContainmentDelete.ts | 1 - .../ShouRongKu/getApiContainmentList.ts | 1 - .../ShouRongKu/getApiContainmentView.ts | 1 - .../ShouRongKu/postApiContainmentUpdate.ts | 1 - .../YouXiang/postApiEmailSendCode.ts | 1 - .../api/controller/ZhuCe/postApiRegister.ts | 1 - .../controller/ZhuCe/postApiRegisterEmail.ts | 1 - Frontend/src/api/controller/index.ts | 1 + ...ngleAgentApiForumV1ForumBoardsCreateReq.ts | 16 +++++++++ ...ngleAgentApiForumV1ForumBoardsCreateRes.ts | 4 +++ ...ngleAgentApiForumV1ForumBoardsDeleteReq.ts | 4 +++ ...ngleAgentApiForumV1ForumBoardsDeleteRes.ts | 2 ++ ...rangleAgentApiForumV1ForumBoardsListReq.ts | 11 ++++++ ...rangleAgentApiForumV1ForumBoardsListRes.ts | 9 +++++ ...ngleAgentApiForumV1ForumBoardsUpdateReq.ts | 16 +++++++++ ...ngleAgentApiForumV1ForumBoardsUpdateRes.ts | 4 +++ ...rangleAgentApiForumV1ForumBoardsViewReq.ts | 4 +++ ...rangleAgentApiForumV1ForumBoardsViewRes.ts | 28 +++++++++++++++ ...leAgentApiForumV1ForumCommentsCreateReq.ts | 14 ++++++-- ...ngleAgentApiForumV1ForumCommentsListRes.ts | 4 +-- ...leAgentApiForumV1ForumCommentsUpdateReq.ts | 12 +++++-- ...ngleAgentApiForumV1ForumCommentsViewRes.ts | 4 +-- ...angleAgentApiForumV1ForumPostsCreateReq.ts | 4 +++ ...TrangleAgentApiForumV1ForumPostsListReq.ts | 6 ++++ ...TrangleAgentApiForumV1ForumPostsListRes.ts | 4 +-- ...angleAgentApiForumV1ForumPostsUpdateReq.ts | 22 ++++++++++++ ...TrangleAgentApiForumV1ForumPostsViewRes.ts | 12 +++++++ ...eAgentInternalModelForumBoardViewParams.ts | 28 +++++++++++++++ ...gentInternalModelForumCommentViewParams.ts | 22 ++++++++++++ ...leAgentInternalModelForumPostViewParams.ts | 36 +++++++++++++++++++ Frontend/src/api/interface/index.ts | 17 +++++++-- Frontend/src/api/swagger.config.json | 2 +- 74 files changed, 388 insertions(+), 74 deletions(-) delete mode 100644 Frontend/controller/auth-controller/postApiAuthLogin.ts delete mode 100644 Frontend/controller/auth-controller/postApiAuthLogout.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/deleteApiForumBoardsDelete.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsList.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsView.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/index.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/postApiForumBoardsCreate.ts create mode 100644 Frontend/src/api/controller/LunTanBanKuai/putApiForumBoardsUpdate.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateReq.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateRes.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteReq.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteRes.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListReq.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListRes.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateReq.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateRes.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewReq.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewRes.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumBoardViewParams.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumCommentViewParams.ts create mode 100644 Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumPostViewParams.ts diff --git a/Frontend/controller/auth-controller/postApiAuthLogin.ts b/Frontend/controller/auth-controller/postApiAuthLogin.ts deleted file mode 100644 index 179496b..0000000 --- a/Frontend/controller/auth-controller/postApiAuthLogin.ts +++ /dev/null @@ -1,10 +0,0 @@ -import request from "../../src/api/http.js"; -import { type LoginResponse, type DeepRequired, type LoginRequest } from "../../interface"; -import { type AxiosRequestConfig } from "axios"; - -/** - * /api/auth/login - */ -export function postApiAuthLogin(input: LoginRequest, config?: AxiosRequestConfig) { - return request.post>(`/api/auth/login`, input, config); -} diff --git a/Frontend/controller/auth-controller/postApiAuthLogout.ts b/Frontend/controller/auth-controller/postApiAuthLogout.ts deleted file mode 100644 index 66948bf..0000000 --- a/Frontend/controller/auth-controller/postApiAuthLogout.ts +++ /dev/null @@ -1,10 +0,0 @@ -import request from "../../src/api/http.js"; -import { type ApiResponse, type DeepRequired } from "../../interface"; -import { type AxiosRequestConfig } from "axios"; - -/** - * /api/auth/logout - */ -export function postApiAuthLogout(config?: AxiosRequestConfig) { - return request.post>(`/api/auth/logout`, config); -} diff --git a/Frontend/src/api/README.md b/Frontend/src/api/README.md index 210fc9d..5006bd7 100644 --- a/Frontend/src/api/README.md +++ b/Frontend/src/api/README.md @@ -15,7 +15,7 @@ npm install -g @zeronejs/cli ```json { "docsUrl": "./docs.json", - "axiosInstanceUrl": "./src/api/http.js" + "axiosInstanceUrl": "../../http.js" } ``` diff --git a/Frontend/src/api/controller/BuMen/deleteApiDepartmentDelete.ts b/Frontend/src/api/controller/BuMen/deleteApiDepartmentDelete.ts index 4308f3f..a523039 100644 --- a/Frontend/src/api/controller/BuMen/deleteApiDepartmentDelete.ts +++ b/Frontend/src/api/controller/BuMen/deleteApiDepartmentDelete.ts @@ -19,4 +19,3 @@ export function deleteApiDepartmentDelete(params: DeleteApiDepartmentDeleteParam export interface DeleteApiDepartmentDeleteParams { id: number; } - diff --git a/Frontend/src/api/controller/BuMen/getApiDepartmentList.ts b/Frontend/src/api/controller/BuMen/getApiDepartmentList.ts index 133b137..cb7e971 100644 --- a/Frontend/src/api/controller/BuMen/getApiDepartmentList.ts +++ b/Frontend/src/api/controller/BuMen/getApiDepartmentList.ts @@ -32,4 +32,3 @@ export interface GetApiDepartmentListParams { /** 所属用户ID */ userId?: number; } - diff --git a/Frontend/src/api/controller/BuMen/getApiDepartmentView.ts b/Frontend/src/api/controller/BuMen/getApiDepartmentView.ts index 17abb29..da8bac5 100644 --- a/Frontend/src/api/controller/BuMen/getApiDepartmentView.ts +++ b/Frontend/src/api/controller/BuMen/getApiDepartmentView.ts @@ -19,4 +19,3 @@ export function getApiDepartmentView(params: GetApiDepartmentViewParams, config? export interface GetApiDepartmentViewParams { id: number; } - diff --git a/Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts b/Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts index 556797e..cf26176 100644 --- a/Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts +++ b/Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiDepartmentCreate(input?: TrangleAgentApiDepartmentV1DepartmentCreateReq, config?: AxiosRequestConfig) { return request.post>(`/api/department/create`, input, config); } - diff --git a/Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts b/Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts index 0b0bd0c..8ec8abc 100644 --- a/Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts +++ b/Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiDepartmentUpdate(input?: TrangleAgentApiDepartmentV1DepartmentUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/department/update`, input, config); } - diff --git a/Frontend/src/api/controller/DengChu/postApiLogout.ts b/Frontend/src/api/controller/DengChu/postApiLogout.ts index d9e7d2f..698afb7 100644 --- a/Frontend/src/api/controller/DengChu/postApiLogout.ts +++ b/Frontend/src/api/controller/DengChu/postApiLogout.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiLogout(input?: TrangleAgentApiLoginV1LogoutReq, config?: AxiosRequestConfig) { return request.post>(`/api/logout`, input, config); } - diff --git a/Frontend/src/api/controller/DengLu/postApiLogin.ts b/Frontend/src/api/controller/DengLu/postApiLogin.ts index 54c4841..ab325c4 100644 --- a/Frontend/src/api/controller/DengLu/postApiLogin.ts +++ b/Frontend/src/api/controller/DengLu/postApiLogin.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiLogin(input?: TrangleAgentApiLoginV1LoginReq, config?: AxiosRequestConfig) { return request.post>(`/api/login`, input, config); } - diff --git a/Frontend/src/api/controller/DengLu/postApiLoginEmail.ts b/Frontend/src/api/controller/DengLu/postApiLoginEmail.ts index 62d2e1e..7f95004 100644 --- a/Frontend/src/api/controller/DengLu/postApiLoginEmail.ts +++ b/Frontend/src/api/controller/DengLu/postApiLoginEmail.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiLoginEmail(input?: TrangleAgentApiLoginV1LoginByEmailReq, config?: AxiosRequestConfig) { return request.post>(`/api/login/email`, input, config); } - diff --git a/Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts b/Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts index 8c1bc4a..de558ad 100644 --- a/Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts +++ b/Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts @@ -20,4 +20,3 @@ export interface DeleteApiRoomDeleteParams { /** 房间号 */ room_code?: string; } - diff --git a/Frontend/src/api/controller/FangJian/getApiRoomList.ts b/Frontend/src/api/controller/FangJian/getApiRoomList.ts index 412f2e4..f79720d 100644 --- a/Frontend/src/api/controller/FangJian/getApiRoomList.ts +++ b/Frontend/src/api/controller/FangJian/getApiRoomList.ts @@ -38,4 +38,3 @@ export interface GetApiRoomListParams { /** 规则系统,如COC、DND5E */ system_name?: string; } - diff --git a/Frontend/src/api/controller/FangJian/getApiRoomView.ts b/Frontend/src/api/controller/FangJian/getApiRoomView.ts index 1e79922..0c322cb 100644 --- a/Frontend/src/api/controller/FangJian/getApiRoomView.ts +++ b/Frontend/src/api/controller/FangJian/getApiRoomView.ts @@ -23,4 +23,3 @@ export interface GetApiRoomViewParams { /** 房间号 */ room_code?: string; } - diff --git a/Frontend/src/api/controller/FangJian/postApiRoomJoin.ts b/Frontend/src/api/controller/FangJian/postApiRoomJoin.ts index 95f041b..c72e916 100644 --- a/Frontend/src/api/controller/FangJian/postApiRoomJoin.ts +++ b/Frontend/src/api/controller/FangJian/postApiRoomJoin.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiRoomJoin(input?: TrangleAgentApiRoomV1RoomJoinReq, config?: AxiosRequestConfig) { return request.post>(`/api/room/join`, input, config); } - diff --git a/Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts b/Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts index 5eb2bea..3e9f6d9 100644 --- a/Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts +++ b/Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiRoomUpdate(input?: TrangleAgentApiRoomV1RoomUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/room/update`, input, config); } - diff --git a/Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts b/Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts index 0e10e9c..c00ef54 100644 --- a/Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts +++ b/Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts @@ -29,4 +29,3 @@ export interface DeleteApiTraceReduceParams { /** 蓝轨 */ blueTrace?: number; } - diff --git a/Frontend/src/api/controller/GuiJi/getApiTraceList.ts b/Frontend/src/api/controller/GuiJi/getApiTraceList.ts index cf9a840..1fd0aa3 100644 --- a/Frontend/src/api/controller/GuiJi/getApiTraceList.ts +++ b/Frontend/src/api/controller/GuiJi/getApiTraceList.ts @@ -41,4 +41,3 @@ export interface GetApiTraceListParams { /** 蓝轨 */ blueTrace?: number; } - diff --git a/Frontend/src/api/controller/GuiJi/getApiTraceView.ts b/Frontend/src/api/controller/GuiJi/getApiTraceView.ts index 87c2616..7a19e40 100644 --- a/Frontend/src/api/controller/GuiJi/getApiTraceView.ts +++ b/Frontend/src/api/controller/GuiJi/getApiTraceView.ts @@ -29,4 +29,3 @@ export interface GetApiTraceViewParams { /** 蓝轨 */ blueTrace?: number; } - diff --git a/Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts b/Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts index 8b74b5f..1f857c5 100644 --- a/Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts +++ b/Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiTraceUpdate(input?: TrangleAgentApiUserV1TraceUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/trace/update`, input, config); } - diff --git a/Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts b/Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts index 181639b..5cff135 100644 --- a/Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts +++ b/Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts @@ -20,4 +20,3 @@ export interface DeleteApiRoleDeleteParams { /** 角色ID */ id: number; } - diff --git a/Frontend/src/api/controller/JiaoSe/getApiRoleList.ts b/Frontend/src/api/controller/JiaoSe/getApiRoleList.ts index 3827c60..931e8c9 100644 --- a/Frontend/src/api/controller/JiaoSe/getApiRoleList.ts +++ b/Frontend/src/api/controller/JiaoSe/getApiRoleList.ts @@ -29,4 +29,3 @@ export interface GetApiRoleListParams { /** 部门ID */ departmentId?: number; } - diff --git a/Frontend/src/api/controller/JiaoSe/getApiRoleView.ts b/Frontend/src/api/controller/JiaoSe/getApiRoleView.ts index 64cfc3b..9c6feb7 100644 --- a/Frontend/src/api/controller/JiaoSe/getApiRoleView.ts +++ b/Frontend/src/api/controller/JiaoSe/getApiRoleView.ts @@ -20,4 +20,3 @@ export interface GetApiRoleViewParams { /** 角色ID */ id: number; } - diff --git a/Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts b/Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts index 5ad3d97..569222c 100644 --- a/Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts +++ b/Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiRoleCreate(input?: TrangleAgentApiUserV1RoleCreateReq, config?: AxiosRequestConfig) { return request.post>(`/api/role/create`, input, config); } - diff --git a/Frontend/src/api/controller/JiaoSe/postApiRolePermissionCheck.ts b/Frontend/src/api/controller/JiaoSe/postApiRolePermissionCheck.ts index d8f8d90..ceda4f7 100644 --- a/Frontend/src/api/controller/JiaoSe/postApiRolePermissionCheck.ts +++ b/Frontend/src/api/controller/JiaoSe/postApiRolePermissionCheck.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiRolePermissionCheck(input?: TrangleAgentApiUserV1RolePermissionCheckReq, config?: AxiosRequestConfig) { return request.post>(`/api/role/permission/check`, input, config); } - diff --git a/Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts b/Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts index cd1abfb..5c0e58d 100644 --- a/Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts +++ b/Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiRoleUpdate(input?: TrangleAgentApiUserV1RoleUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/role/update`, input, config); } - diff --git a/Frontend/src/api/controller/LunTanBanKuai/deleteApiForumBoardsDelete.ts b/Frontend/src/api/controller/LunTanBanKuai/deleteApiForumBoardsDelete.ts new file mode 100644 index 0000000..6375487 --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/deleteApiForumBoardsDelete.ts @@ -0,0 +1,22 @@ +import request from "../../http.js"; +import { type TrangleAgentApiForumV1ForumBoardsDeleteRes, type DeepRequired } from "../../interface"; +import { type AxiosRequestConfig } from "axios"; + +/** + * 删除版块 + * /api/forum/boards/delete + */ +export function deleteApiForumBoardsDelete(params: DeleteApiForumBoardsDeleteParams, config?: AxiosRequestConfig) { + const paramsInput = { + id: params.id, + }; + return request.delete>(`/api/forum/boards/delete`, { + params: paramsInput, + ...config, + }); +} + +export interface DeleteApiForumBoardsDeleteParams { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsList.ts b/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsList.ts new file mode 100644 index 0000000..75e1d61 --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsList.ts @@ -0,0 +1,34 @@ +import request from "../../http.js"; +import { type TrangleAgentApiForumV1ForumBoardsListRes, type DeepRequired } from "../../interface"; +import { type AxiosRequestConfig } from "axios"; + +/** + * 版块列表 + * /api/forum/boards/list + */ +export function getApiForumBoardsList(params: GetApiForumBoardsListParams, config?: AxiosRequestConfig) { + const paramsInput = { + page: params.page, + pageSize: params.pageSize, + total: params.total, + sectionId: params.sectionId, + name: params.name, + status: params.status, + }; + return request.get>(`/api/forum/boards/list`, { + params: paramsInput, + ...config, + }); +} + +export interface GetApiForumBoardsListParams { + page?: number; + pageSize?: number; + total?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块状态 */ + status?: string; +} diff --git a/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsView.ts b/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsView.ts new file mode 100644 index 0000000..6b7bc2e --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/getApiForumBoardsView.ts @@ -0,0 +1,22 @@ +import request from "../../http.js"; +import { type TrangleAgentApiForumV1ForumBoardsViewRes, type DeepRequired } from "../../interface"; +import { type AxiosRequestConfig } from "axios"; + +/** + * 查看版块 + * /api/forum/boards/view + */ +export function getApiForumBoardsView(params: GetApiForumBoardsViewParams, config?: AxiosRequestConfig) { + const paramsInput = { + id: params.id, + }; + return request.get>(`/api/forum/boards/view`, { + params: paramsInput, + ...config, + }); +} + +export interface GetApiForumBoardsViewParams { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/controller/LunTanBanKuai/index.ts b/Frontend/src/api/controller/LunTanBanKuai/index.ts new file mode 100644 index 0000000..fb7415f --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/index.ts @@ -0,0 +1,5 @@ +export * from "./postApiForumBoardsCreate"; +export * from "./deleteApiForumBoardsDelete"; +export * from "./getApiForumBoardsList"; +export * from "./putApiForumBoardsUpdate"; +export * from "./getApiForumBoardsView"; diff --git a/Frontend/src/api/controller/LunTanBanKuai/postApiForumBoardsCreate.ts b/Frontend/src/api/controller/LunTanBanKuai/postApiForumBoardsCreate.ts new file mode 100644 index 0000000..6a536c8 --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/postApiForumBoardsCreate.ts @@ -0,0 +1,11 @@ +import request from "../../http.js"; +import { type TrangleAgentApiForumV1ForumBoardsCreateRes, type DeepRequired, type TrangleAgentApiForumV1ForumBoardsCreateReq } from "../../interface"; +import { type AxiosRequestConfig } from "axios"; + +/** + * 创建版块 + * /api/forum/boards/create + */ +export function postApiForumBoardsCreate(input?: TrangleAgentApiForumV1ForumBoardsCreateReq, config?: AxiosRequestConfig) { + return request.post>(`/api/forum/boards/create`, input, config); +} diff --git a/Frontend/src/api/controller/LunTanBanKuai/putApiForumBoardsUpdate.ts b/Frontend/src/api/controller/LunTanBanKuai/putApiForumBoardsUpdate.ts new file mode 100644 index 0000000..a8b3401 --- /dev/null +++ b/Frontend/src/api/controller/LunTanBanKuai/putApiForumBoardsUpdate.ts @@ -0,0 +1,11 @@ +import request from "../../http.js"; +import { type TrangleAgentApiForumV1ForumBoardsUpdateRes, type DeepRequired, type TrangleAgentApiForumV1ForumBoardsUpdateReq } from "../../interface"; +import { type AxiosRequestConfig } from "axios"; + +/** + * 更新版块 + * /api/forum/boards/update + */ +export function putApiForumBoardsUpdate(input?: TrangleAgentApiForumV1ForumBoardsUpdateReq, config?: AxiosRequestConfig) { + return request.put>(`/api/forum/boards/update`, input, config); +} diff --git a/Frontend/src/api/controller/LunTanPingLun/deleteApiForumCommentsDelete.ts b/Frontend/src/api/controller/LunTanPingLun/deleteApiForumCommentsDelete.ts index a82681d..86cdfb3 100644 --- a/Frontend/src/api/controller/LunTanPingLun/deleteApiForumCommentsDelete.ts +++ b/Frontend/src/api/controller/LunTanPingLun/deleteApiForumCommentsDelete.ts @@ -20,4 +20,3 @@ export interface DeleteApiForumCommentsDeleteParams { /** 评论ID */ id?: number; } - diff --git a/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsList.ts b/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsList.ts index a9fe32b..4a284d1 100644 --- a/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsList.ts +++ b/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsList.ts @@ -35,4 +35,3 @@ export interface GetApiForumCommentsListParams { /** 评论状态 */ status?: string; } - diff --git a/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsView.ts b/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsView.ts index 0f5c6bd..d5ea574 100644 --- a/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsView.ts +++ b/Frontend/src/api/controller/LunTanPingLun/getApiForumCommentsView.ts @@ -20,4 +20,3 @@ export interface GetApiForumCommentsViewParams { /** 评论ID */ id?: number; } - diff --git a/Frontend/src/api/controller/LunTanPingLun/postApiForumCommentsCreate.ts b/Frontend/src/api/controller/LunTanPingLun/postApiForumCommentsCreate.ts index 518ea30..57d41d5 100644 --- a/Frontend/src/api/controller/LunTanPingLun/postApiForumCommentsCreate.ts +++ b/Frontend/src/api/controller/LunTanPingLun/postApiForumCommentsCreate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiForumCommentsCreate(input?: TrangleAgentApiForumV1ForumCommentsCreateReq, config?: AxiosRequestConfig) { return request.post>(`/api/forum/comments/create`, input, config); } - diff --git a/Frontend/src/api/controller/LunTanPingLun/putApiForumCommentsUpdate.ts b/Frontend/src/api/controller/LunTanPingLun/putApiForumCommentsUpdate.ts index 93d81c5..eccadfd 100644 --- a/Frontend/src/api/controller/LunTanPingLun/putApiForumCommentsUpdate.ts +++ b/Frontend/src/api/controller/LunTanPingLun/putApiForumCommentsUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiForumCommentsUpdate(input?: TrangleAgentApiForumV1ForumCommentsUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/forum/comments/update`, input, config); } - diff --git a/Frontend/src/api/controller/LunTanTieZi/deleteApiForumPostsDelete.ts b/Frontend/src/api/controller/LunTanTieZi/deleteApiForumPostsDelete.ts index a4fd3e6..22566d1 100644 --- a/Frontend/src/api/controller/LunTanTieZi/deleteApiForumPostsDelete.ts +++ b/Frontend/src/api/controller/LunTanTieZi/deleteApiForumPostsDelete.ts @@ -20,4 +20,3 @@ export interface DeleteApiForumPostsDeleteParams { /** 帖子ID */ id?: number; } - diff --git a/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsList.ts b/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsList.ts index 7f0b83b..77c9110 100644 --- a/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsList.ts +++ b/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsList.ts @@ -11,9 +11,12 @@ export function getApiForumPostsList(params: GetApiForumPostsListParams, config? page: params.page, pageSize: params.pageSize, total: params.total, + boardId: params.boardId, userId: params.userId, title: params.title, status: params.status, + isPinned: params.isPinned, + isEssence: params.isEssence, }; return request.get>(`/api/forum/posts/list`, { params: paramsInput, @@ -25,11 +28,16 @@ export interface GetApiForumPostsListParams { page?: number; pageSize?: number; total?: number; + /** 所属版块ID */ + boardId?: number; /** 发帖用户ID */ userId?: number; /** 帖子标题 */ title?: string; /** 帖子状态 */ status?: string; + /** 是否置顶 */ + isPinned?: number; + /** 是否精华 */ + isEssence?: number; } - diff --git a/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsView.ts b/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsView.ts index c317359..b23163b 100644 --- a/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsView.ts +++ b/Frontend/src/api/controller/LunTanTieZi/getApiForumPostsView.ts @@ -20,4 +20,3 @@ export interface GetApiForumPostsViewParams { /** 帖子ID */ id?: number; } - diff --git a/Frontend/src/api/controller/LunTanTieZi/postApiForumPostsCreate.ts b/Frontend/src/api/controller/LunTanTieZi/postApiForumPostsCreate.ts index 7b31f5c..1186a62 100644 --- a/Frontend/src/api/controller/LunTanTieZi/postApiForumPostsCreate.ts +++ b/Frontend/src/api/controller/LunTanTieZi/postApiForumPostsCreate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiForumPostsCreate(input?: TrangleAgentApiForumV1ForumPostsCreateReq, config?: AxiosRequestConfig) { return request.post>(`/api/forum/posts/create`, input, config); } - diff --git a/Frontend/src/api/controller/LunTanTieZi/putApiForumPostsUpdate.ts b/Frontend/src/api/controller/LunTanTieZi/putApiForumPostsUpdate.ts index 31faadb..d222ac4 100644 --- a/Frontend/src/api/controller/LunTanTieZi/putApiForumPostsUpdate.ts +++ b/Frontend/src/api/controller/LunTanTieZi/putApiForumPostsUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function putApiForumPostsUpdate(input?: TrangleAgentApiForumV1ForumPostsUpdateReq, config?: AxiosRequestConfig) { return request.put>(`/api/forum/posts/update`, input, config); } - diff --git a/Frontend/src/api/controller/ShouRongKu/deleteApiContainmentDelete.ts b/Frontend/src/api/controller/ShouRongKu/deleteApiContainmentDelete.ts index c930263..869fa87 100644 --- a/Frontend/src/api/controller/ShouRongKu/deleteApiContainmentDelete.ts +++ b/Frontend/src/api/controller/ShouRongKu/deleteApiContainmentDelete.ts @@ -20,4 +20,3 @@ export interface DeleteApiContainmentDeleteParams { /** primary key */ id?: number; } - diff --git a/Frontend/src/api/controller/ShouRongKu/getApiContainmentList.ts b/Frontend/src/api/controller/ShouRongKu/getApiContainmentList.ts index 3f73e49..0642461 100644 --- a/Frontend/src/api/controller/ShouRongKu/getApiContainmentList.ts +++ b/Frontend/src/api/controller/ShouRongKu/getApiContainmentList.ts @@ -35,4 +35,3 @@ export interface GetApiContainmentListParams { /** containment repo name */ repoName?: string; } - diff --git a/Frontend/src/api/controller/ShouRongKu/getApiContainmentView.ts b/Frontend/src/api/controller/ShouRongKu/getApiContainmentView.ts index 0e772a8..9fd6fc7 100644 --- a/Frontend/src/api/controller/ShouRongKu/getApiContainmentView.ts +++ b/Frontend/src/api/controller/ShouRongKu/getApiContainmentView.ts @@ -20,4 +20,3 @@ export interface GetApiContainmentViewParams { /** primary key */ id?: number; } - diff --git a/Frontend/src/api/controller/ShouRongKu/postApiContainmentUpdate.ts b/Frontend/src/api/controller/ShouRongKu/postApiContainmentUpdate.ts index 60d85a3..ddf48f6 100644 --- a/Frontend/src/api/controller/ShouRongKu/postApiContainmentUpdate.ts +++ b/Frontend/src/api/controller/ShouRongKu/postApiContainmentUpdate.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiContainmentUpdate(input?: TrangleAgentApiContainmentV1ContainmentRepoUpdateReq, config?: AxiosRequestConfig) { return request.post>(`/api/containment/update`, input, config); } - diff --git a/Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts b/Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts index a69a58c..9d212a9 100644 --- a/Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts +++ b/Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiEmailSendCode(input?: TrangleAgentApiLoginV1SendVerificationCodeReq, config?: AxiosRequestConfig) { return request.post>(`/api/email/send-code`, input, config); } - diff --git a/Frontend/src/api/controller/ZhuCe/postApiRegister.ts b/Frontend/src/api/controller/ZhuCe/postApiRegister.ts index 9003ee5..95d3aa5 100644 --- a/Frontend/src/api/controller/ZhuCe/postApiRegister.ts +++ b/Frontend/src/api/controller/ZhuCe/postApiRegister.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiRegister(input?: TrangleAgentApiLoginV1RegisterReq, config?: AxiosRequestConfig) { return request.post>(`/api/register`, input, config); } - diff --git a/Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts b/Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts index 194d0b6..fd68336 100644 --- a/Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts +++ b/Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts @@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios"; export function postApiRegisterEmail(input?: TrangleAgentApiLoginV1RegisterByEmailReq, config?: AxiosRequestConfig) { return request.post>(`/api/register/email`, input, config); } - diff --git a/Frontend/src/api/controller/index.ts b/Frontend/src/api/controller/index.ts index c3789d6..f578577 100644 --- a/Frontend/src/api/controller/index.ts +++ b/Frontend/src/api/controller/index.ts @@ -1,6 +1,7 @@ export * from "./ShouRongKu"; export * from "./BuMen"; export * from "./YouXiang"; +export * from "./LunTanBanKuai"; export * from "./LunTanPingLun"; export * from "./LunTanTieZi"; export * from "./DengLu"; diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateReq.ts new file mode 100644 index 0000000..76bc846 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateReq.ts @@ -0,0 +1,16 @@ +export interface TrangleAgentApiForumV1ForumBoardsCreateReq { + /** 版块ID */ + id?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块简介 */ + description?: string; + /** 版块封面图URL */ + coverImage?: string; + /** 版块状态 */ + status?: string; + /** 排序值 */ + displayOrder?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateRes.ts new file mode 100644 index 0000000..7a62469 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsCreateRes.ts @@ -0,0 +1,4 @@ +export interface TrangleAgentApiForumV1ForumBoardsCreateRes { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteReq.ts new file mode 100644 index 0000000..b8cf7b0 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteReq.ts @@ -0,0 +1,4 @@ +export interface TrangleAgentApiForumV1ForumBoardsDeleteReq { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteRes.ts new file mode 100644 index 0000000..60e6439 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteRes.ts @@ -0,0 +1,2 @@ +export interface TrangleAgentApiForumV1ForumBoardsDeleteRes { +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListReq.ts new file mode 100644 index 0000000..2d02ef1 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListReq.ts @@ -0,0 +1,11 @@ +export interface TrangleAgentApiForumV1ForumBoardsListReq { + page?: number; + pageSize?: number; + total?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块状态 */ + status?: string; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListRes.ts new file mode 100644 index 0000000..15bcbc9 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsListRes.ts @@ -0,0 +1,9 @@ +import { type TrangleAgentInternalModelForumBoardViewParams } from "../../interface"; + +export interface TrangleAgentApiForumV1ForumBoardsListRes { + page?: number; + pageSize?: number; + total?: number; + /** 版块列表 */ + list?: TrangleAgentInternalModelForumBoardViewParams[]; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateReq.ts new file mode 100644 index 0000000..72b52a9 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateReq.ts @@ -0,0 +1,16 @@ +export interface TrangleAgentApiForumV1ForumBoardsUpdateReq { + /** 版块ID */ + id?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块简介 */ + description?: string; + /** 版块封面图URL */ + coverImage?: string; + /** 版块状态 */ + status?: string; + /** 排序值 */ + displayOrder?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateRes.ts new file mode 100644 index 0000000..c209bc8 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateRes.ts @@ -0,0 +1,4 @@ +export interface TrangleAgentApiForumV1ForumBoardsUpdateRes { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewReq.ts new file mode 100644 index 0000000..fe6deb9 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewReq.ts @@ -0,0 +1,4 @@ +export interface TrangleAgentApiForumV1ForumBoardsViewReq { + /** 版块ID */ + id?: number; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewRes.ts new file mode 100644 index 0000000..0540b59 --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumBoardsViewRes.ts @@ -0,0 +1,28 @@ +export interface TrangleAgentApiForumV1ForumBoardsViewRes { + /** 版块ID */ + id?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块简介 */ + description?: string; + /** 版块封面图URL */ + coverImage?: string; + /** 版块状态 */ + status?: string; + /** 排序值 */ + displayOrder?: number; + /** 帖子总数 */ + postCount?: number; + /** 今日发帖数 */ + todayPostCount?: number; + /** 最后一篇帖子ID */ + lastPostId?: number; + /** 最后发帖时间 */ + lastPostAt?: string; + /** 创建时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsCreateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsCreateReq.ts index 5771582..ce8395b 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsCreateReq.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsCreateReq.ts @@ -1,12 +1,22 @@ export interface TrangleAgentApiForumV1ForumCommentsCreateReq { - /** 评论发布者ID */ - userId?: number; + /** 评论ID */ + id?: number; /** 所属帖子ID */ postId?: number; + /** 评论发布者ID */ + userId?: number; /** 父评论ID */ parentId?: number; + /** 回复的用户ID */ + replyToUserId?: number; /** 评论内容 */ content?: string; /** 评论状态 */ status?: string; + /** 点赞数 */ + likeCount?: number; + /** 创建时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsListRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsListRes.ts index b9b1bb3..fb1b643 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsListRes.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsListRes.ts @@ -1,9 +1,9 @@ -import { type TrangleAgentApiForumV1ForumCommentsViewRes } from "../../interface"; +import { type TrangleAgentInternalModelForumCommentViewParams } from "../../interface"; export interface TrangleAgentApiForumV1ForumCommentsListRes { page?: number; pageSize?: number; total?: number; /** 评论列表 */ - list?: TrangleAgentApiForumV1ForumCommentsViewRes[]; + list?: TrangleAgentInternalModelForumCommentViewParams[]; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateReq.ts index 8eecafd..b422fa5 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateReq.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateReq.ts @@ -1,14 +1,22 @@ export interface TrangleAgentApiForumV1ForumCommentsUpdateReq { /** 评论ID */ id?: number; - /** 评论发布者ID */ - userId?: number; /** 所属帖子ID */ postId?: number; + /** 评论发布者ID */ + userId?: number; /** 父评论ID */ parentId?: number; + /** 回复的用户ID */ + replyToUserId?: number; /** 评论内容 */ content?: string; /** 评论状态 */ status?: string; + /** 点赞数 */ + likeCount?: number; + /** 创建时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes.ts index b559db9..4e58ee8 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes.ts @@ -7,14 +7,14 @@ export interface TrangleAgentApiForumV1ForumCommentsViewRes { postId?: number; /** 父评论ID */ parentId?: number; + /** 回复的用户ID */ + replyToUserId?: number; /** 评论内容 */ content?: string; /** 评论状态 */ status?: string; /** 点赞数 */ likeCount?: number; - /** 回复数 */ - replyCount?: number; /** 评论创建时间 */ createdAt?: string; /** 评论更新时间 */ diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsCreateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsCreateReq.ts index 06391b8..333f3b7 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsCreateReq.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsCreateReq.ts @@ -1,4 +1,8 @@ export interface TrangleAgentApiForumV1ForumPostsCreateReq { + /** 帖子ID */ + id?: number; + /** 所属版块ID */ + boardId?: number; /** 发帖用户ID */ userId?: number; /** 帖子标题 */ diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListReq.ts index 7a68a65..014064b 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListReq.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListReq.ts @@ -2,10 +2,16 @@ export interface TrangleAgentApiForumV1ForumPostsListReq { page?: number; pageSize?: number; total?: number; + /** 所属版块ID */ + boardId?: number; /** 发帖用户ID */ userId?: number; /** 帖子标题 */ title?: string; /** 帖子状态 */ status?: string; + /** 是否置顶 */ + isPinned?: number; + /** 是否精华 */ + isEssence?: number; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListRes.ts index 038c327..53cc1bc 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListRes.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsListRes.ts @@ -1,9 +1,9 @@ -import { type TrangleAgentApiForumV1ForumPostsViewRes } from "../../interface"; +import { type TrangleAgentInternalModelForumPostViewParams } from "../../interface"; export interface TrangleAgentApiForumV1ForumPostsListRes { page?: number; pageSize?: number; total?: number; /** 帖子列表 */ - list?: TrangleAgentApiForumV1ForumPostsViewRes[]; + list?: TrangleAgentInternalModelForumPostViewParams[]; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsUpdateReq.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsUpdateReq.ts index f239ffa..a2e6203 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsUpdateReq.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsUpdateReq.ts @@ -1,6 +1,8 @@ export interface TrangleAgentApiForumV1ForumPostsUpdateReq { /** 帖子ID */ id?: number; + /** 所属版块ID */ + boardId?: number; /** 发帖用户ID */ userId?: number; /** 帖子标题 */ @@ -11,4 +13,24 @@ export interface TrangleAgentApiForumV1ForumPostsUpdateReq { coverImage?: string; /** 帖子状态 */ status?: string; + /** 是否置顶 */ + isPinned?: number; + /** 是否精华 */ + isEssence?: number; + /** 浏览量 */ + viewCount?: number; + /** 点赞数 */ + likeCount?: number; + /** 评论数 */ + commentCount?: number; + /** 收藏数 */ + collectCount?: number; + /** 最后一条评论ID */ + lastCommentId?: number; + /** 最后评论时间 */ + lastCommentAt?: string; + /** 发帖时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; } diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsViewRes.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsViewRes.ts index 102b386..e1091ee 100644 --- a/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsViewRes.ts +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentApiForumV1ForumPostsViewRes.ts @@ -1,6 +1,8 @@ export interface TrangleAgentApiForumV1ForumPostsViewRes { /** 帖子ID */ id?: number; + /** 所属版块ID */ + boardId?: number; /** 发帖用户ID */ userId?: number; /** 帖子标题 */ @@ -11,12 +13,22 @@ export interface TrangleAgentApiForumV1ForumPostsViewRes { coverImage?: string; /** 帖子状态 */ status?: string; + /** 是否置顶 */ + isPinned?: number; + /** 是否精华 */ + isEssence?: number; /** 浏览量 */ viewCount?: number; /** 点赞数 */ likeCount?: number; /** 评论数 */ commentCount?: number; + /** 收藏数 */ + collectCount?: number; + /** 最后一条评论ID */ + lastCommentId?: number; + /** 最后评论时间 */ + lastCommentAt?: string; /** 发帖时间 */ createdAt?: string; /** 更新时间 */ diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumBoardViewParams.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumBoardViewParams.ts new file mode 100644 index 0000000..e2e032d --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumBoardViewParams.ts @@ -0,0 +1,28 @@ +export interface TrangleAgentInternalModelForumBoardViewParams { + /** 版块ID */ + id?: number; + /** 所属频道ID */ + sectionId?: number; + /** 版块名称 */ + name?: string; + /** 版块简介 */ + description?: string; + /** 版块封面图URL */ + coverImage?: string; + /** 版块状态 */ + status?: string; + /** 排序值 */ + displayOrder?: number; + /** 帖子总数 */ + postCount?: number; + /** 今日发帖数 */ + todayPostCount?: number; + /** 最后一篇帖子ID */ + lastPostId?: number; + /** 最后发帖时间 */ + lastPostAt?: string; + /** 创建时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumCommentViewParams.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumCommentViewParams.ts new file mode 100644 index 0000000..91a6a7c --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumCommentViewParams.ts @@ -0,0 +1,22 @@ +export interface TrangleAgentInternalModelForumCommentViewParams { + /** 评论ID */ + id?: number; + /** 评论发布者ID */ + userId?: number; + /** 所属帖子ID */ + postId?: number; + /** 父评论ID */ + parentId?: number; + /** 回复的用户ID */ + replyToUserId?: number; + /** 评论内容 */ + content?: string; + /** 评论状态 */ + status?: string; + /** 点赞数 */ + likeCount?: number; + /** 评论创建时间 */ + createdAt?: string; + /** 评论更新时间 */ + updatedAt?: string; +} diff --git a/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumPostViewParams.ts b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumPostViewParams.ts new file mode 100644 index 0000000..23b2a7d --- /dev/null +++ b/Frontend/src/api/interface/apiTypes/TrangleAgentInternalModelForumPostViewParams.ts @@ -0,0 +1,36 @@ +export interface TrangleAgentInternalModelForumPostViewParams { + /** 帖子ID */ + id?: number; + /** 所属版块ID */ + boardId?: number; + /** 发帖用户ID */ + userId?: number; + /** 帖子标题 */ + title?: string; + /** 帖子正文 */ + content?: string; + /** 帖子封面图URL */ + coverImage?: string; + /** 帖子状态 */ + status?: string; + /** 是否置顶 */ + isPinned?: number; + /** 是否精华 */ + isEssence?: number; + /** 浏览量 */ + viewCount?: number; + /** 点赞数 */ + likeCount?: number; + /** 评论数 */ + commentCount?: number; + /** 收藏数 */ + collectCount?: number; + /** 最后一条评论ID */ + lastCommentId?: number; + /** 最后评论时间 */ + lastCommentAt?: string; + /** 发帖时间 */ + createdAt?: string; + /** 更新时间 */ + updatedAt?: string; +} diff --git a/Frontend/src/api/interface/index.ts b/Frontend/src/api/interface/index.ts index f754024..8e20a94 100644 --- a/Frontend/src/api/interface/index.ts +++ b/Frontend/src/api/interface/index.ts @@ -20,26 +20,39 @@ export * from "./apiTypes/TrangleAgentApiDepartmentV1DepartmentViewReq"; export * from "./apiTypes/TrangleAgentApiDepartmentV1DepartmentViewRes"; export * from "./apiTypes/TrangleAgentApiLoginV1SendVerificationCodeReq"; export * from "./apiTypes/TrangleAgentApiLoginV1SendVerificationCodeRes"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsCreateReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsCreateRes"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsDeleteRes"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsListReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsListRes"; +export * from "./apiTypes/TrangleAgentInternalModelForumBoardViewParams"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsUpdateRes"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsViewReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumBoardsViewRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsCreateReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsCreateRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsDeleteReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsDeleteRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsListReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsListRes"; -export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes"; +export * from "./apiTypes/TrangleAgentInternalModelForumCommentViewParams"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsUpdateRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsViewReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumCommentsViewRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsCreateReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsCreateRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsDeleteReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsDeleteRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsListReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsListRes"; -export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsViewRes"; +export * from "./apiTypes/TrangleAgentInternalModelForumPostViewParams"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsUpdateReq"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsUpdateRes"; export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsViewReq"; +export * from "./apiTypes/TrangleAgentApiForumV1ForumPostsViewRes"; export * from "./apiTypes/TrangleAgentApiLoginV1LoginReq"; export * from "./apiTypes/TrangleAgentApiLoginV1LoginRes"; export * from "./apiTypes/TrangleAgentApiLoginV1LoginByEmailReq"; diff --git a/Frontend/src/api/swagger.config.json b/Frontend/src/api/swagger.config.json index cb3fbe6..1cd7dff 100644 --- a/Frontend/src/api/swagger.config.json +++ b/Frontend/src/api/swagger.config.json @@ -1,4 +1,4 @@ { "docsUrl": "http://localhost:8888/api.json", - "axiosInstanceUrl": "./src/api/http.js" + "axiosInstanceUrl": "../../http.js" }