修改路由

This commit is contained in:
2026-02-05 22:14:36 +08:00
parent 8fc1f675ff
commit 8e3141d3c9
74 changed files with 388 additions and 74 deletions

View File

@@ -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<DeepRequired<LoginResponse>>(`/api/auth/login`, input, config);
}

View File

@@ -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<DeepRequired<ApiResponse>>(`/api/auth/logout`, config);
}

View File

@@ -15,7 +15,7 @@ npm install -g @zeronejs/cli
```json
{
"docsUrl": "./docs.json",
"axiosInstanceUrl": "./src/api/http.js"
"axiosInstanceUrl": "../../http.js"
}
```

View File

@@ -19,4 +19,3 @@ export function deleteApiDepartmentDelete(params: DeleteApiDepartmentDeleteParam
export interface DeleteApiDepartmentDeleteParams {
id: number;
}

View File

@@ -32,4 +32,3 @@ export interface GetApiDepartmentListParams {
/** 所属用户ID */
userId?: number;
}

View File

@@ -19,4 +19,3 @@ export function getApiDepartmentView(params: GetApiDepartmentViewParams, config?
export interface GetApiDepartmentViewParams {
id: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiDepartmentCreate(input?: TrangleAgentApiDepartmentV1DepartmentCreateReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiDepartmentV1DepartmentCreateRes>>(`/api/department/create`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiDepartmentUpdate(input?: TrangleAgentApiDepartmentV1DepartmentUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiDepartmentV1DepartmentUpdateRes>>(`/api/department/update`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiLogout(input?: TrangleAgentApiLoginV1LogoutReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1LogoutRes>>(`/api/logout`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiLogin(input?: TrangleAgentApiLoginV1LoginReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1LoginRes>>(`/api/login`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiLoginEmail(input?: TrangleAgentApiLoginV1LoginByEmailReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1LoginByEmailRes>>(`/api/login/email`, input, config);
}

View File

@@ -20,4 +20,3 @@ export interface DeleteApiRoomDeleteParams {
/** 房间号 */
room_code?: string;
}

View File

@@ -38,4 +38,3 @@ export interface GetApiRoomListParams {
/** 规则系统如COC、DND5E */
system_name?: string;
}

View File

@@ -23,4 +23,3 @@ export interface GetApiRoomViewParams {
/** 房间号 */
room_code?: string;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiRoomJoin(input?: TrangleAgentApiRoomV1RoomJoinReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiRoomV1RoomJoinRes>>(`/api/room/join`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiRoomUpdate(input?: TrangleAgentApiRoomV1RoomUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiRoomV1RoomUpdateRes>>(`/api/room/update`, input, config);
}

View File

@@ -29,4 +29,3 @@ export interface DeleteApiTraceReduceParams {
/** 蓝轨 */
blueTrace?: number;
}

View File

@@ -41,4 +41,3 @@ export interface GetApiTraceListParams {
/** 蓝轨 */
blueTrace?: number;
}

View File

@@ -29,4 +29,3 @@ export interface GetApiTraceViewParams {
/** 蓝轨 */
blueTrace?: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiTraceUpdate(input?: TrangleAgentApiUserV1TraceUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiUserV1TraceUpdateRes>>(`/api/trace/update`, input, config);
}

View File

@@ -20,4 +20,3 @@ export interface DeleteApiRoleDeleteParams {
/** 角色ID */
id: number;
}

View File

@@ -29,4 +29,3 @@ export interface GetApiRoleListParams {
/** 部门ID */
departmentId?: number;
}

View File

@@ -20,4 +20,3 @@ export interface GetApiRoleViewParams {
/** 角色ID */
id: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiRoleCreate(input?: TrangleAgentApiUserV1RoleCreateReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiUserV1RoleCreateRes>>(`/api/role/create`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiRolePermissionCheck(input?: TrangleAgentApiUserV1RolePermissionCheckReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiUserV1RolePermissionCheckRes>>(`/api/role/permission/check`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiRoleUpdate(input?: TrangleAgentApiUserV1RoleUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiUserV1RoleUpdateRes>>(`/api/role/update`, input, config);
}

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumBoardsDeleteRes>>(`/api/forum/boards/delete`, {
params: paramsInput,
...config,
});
}
export interface DeleteApiForumBoardsDeleteParams {
/** 版块ID */
id?: number;
}

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumBoardsListRes>>(`/api/forum/boards/list`, {
params: paramsInput,
...config,
});
}
export interface GetApiForumBoardsListParams {
page?: number;
pageSize?: number;
total?: number;
/** 所属频道ID */
sectionId?: number;
/** 版块名称 */
name?: string;
/** 版块状态 */
status?: string;
}

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumBoardsViewRes>>(`/api/forum/boards/view`, {
params: paramsInput,
...config,
});
}
export interface GetApiForumBoardsViewParams {
/** 版块ID */
id?: number;
}

View File

@@ -0,0 +1,5 @@
export * from "./postApiForumBoardsCreate";
export * from "./deleteApiForumBoardsDelete";
export * from "./getApiForumBoardsList";
export * from "./putApiForumBoardsUpdate";
export * from "./getApiForumBoardsView";

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumBoardsCreateRes>>(`/api/forum/boards/create`, input, config);
}

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumBoardsUpdateRes>>(`/api/forum/boards/update`, input, config);
}

View File

@@ -20,4 +20,3 @@ export interface DeleteApiForumCommentsDeleteParams {
/** 评论ID */
id?: number;
}

View File

@@ -35,4 +35,3 @@ export interface GetApiForumCommentsListParams {
/** 评论状态 */
status?: string;
}

View File

@@ -20,4 +20,3 @@ export interface GetApiForumCommentsViewParams {
/** 评论ID */
id?: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiForumCommentsCreate(input?: TrangleAgentApiForumV1ForumCommentsCreateReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiForumV1ForumCommentsCreateRes>>(`/api/forum/comments/create`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiForumCommentsUpdate(input?: TrangleAgentApiForumV1ForumCommentsUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiForumV1ForumCommentsUpdateRes>>(`/api/forum/comments/update`, input, config);
}

View File

@@ -20,4 +20,3 @@ export interface DeleteApiForumPostsDeleteParams {
/** 帖子ID */
id?: number;
}

View File

@@ -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<DeepRequired<TrangleAgentApiForumV1ForumPostsListRes>>(`/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;
}

View File

@@ -20,4 +20,3 @@ export interface GetApiForumPostsViewParams {
/** 帖子ID */
id?: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiForumPostsCreate(input?: TrangleAgentApiForumV1ForumPostsCreateReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiForumV1ForumPostsCreateRes>>(`/api/forum/posts/create`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function putApiForumPostsUpdate(input?: TrangleAgentApiForumV1ForumPostsUpdateReq, config?: AxiosRequestConfig) {
return request.put<DeepRequired<TrangleAgentApiForumV1ForumPostsUpdateRes>>(`/api/forum/posts/update`, input, config);
}

View File

@@ -20,4 +20,3 @@ export interface DeleteApiContainmentDeleteParams {
/** primary key */
id?: number;
}

View File

@@ -35,4 +35,3 @@ export interface GetApiContainmentListParams {
/** containment repo name */
repoName?: string;
}

View File

@@ -20,4 +20,3 @@ export interface GetApiContainmentViewParams {
/** primary key */
id?: number;
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiContainmentUpdate(input?: TrangleAgentApiContainmentV1ContainmentRepoUpdateReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiContainmentV1ContainmentRepoUpdateRes>>(`/api/containment/update`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiEmailSendCode(input?: TrangleAgentApiLoginV1SendVerificationCodeReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1SendVerificationCodeRes>>(`/api/email/send-code`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiRegister(input?: TrangleAgentApiLoginV1RegisterReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1RegisterRes>>(`/api/register`, input, config);
}

View File

@@ -9,4 +9,3 @@ import { type AxiosRequestConfig } from "axios";
export function postApiRegisterEmail(input?: TrangleAgentApiLoginV1RegisterByEmailReq, config?: AxiosRequestConfig) {
return request.post<DeepRequired<TrangleAgentApiLoginV1RegisterByEmailRes>>(`/api/register/email`, input, config);
}

View File

@@ -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";

View File

@@ -0,0 +1,16 @@
export interface TrangleAgentApiForumV1ForumBoardsCreateReq {
/** 版块ID */
id?: number;
/** 所属频道ID */
sectionId?: number;
/** 版块名称 */
name?: string;
/** 版块简介 */
description?: string;
/** 版块封面图URL */
coverImage?: string;
/** 版块状态 */
status?: string;
/** 排序值 */
displayOrder?: number;
}

View File

@@ -0,0 +1,4 @@
export interface TrangleAgentApiForumV1ForumBoardsCreateRes {
/** 版块ID */
id?: number;
}

View File

@@ -0,0 +1,4 @@
export interface TrangleAgentApiForumV1ForumBoardsDeleteReq {
/** 版块ID */
id?: number;
}

View File

@@ -0,0 +1,2 @@
export interface TrangleAgentApiForumV1ForumBoardsDeleteRes {
}

View File

@@ -0,0 +1,11 @@
export interface TrangleAgentApiForumV1ForumBoardsListReq {
page?: number;
pageSize?: number;
total?: number;
/** 所属频道ID */
sectionId?: number;
/** 版块名称 */
name?: string;
/** 版块状态 */
status?: string;
}

View File

@@ -0,0 +1,9 @@
import { type TrangleAgentInternalModelForumBoardViewParams } from "../../interface";
export interface TrangleAgentApiForumV1ForumBoardsListRes {
page?: number;
pageSize?: number;
total?: number;
/** 版块列表 */
list?: TrangleAgentInternalModelForumBoardViewParams[];
}

View File

@@ -0,0 +1,16 @@
export interface TrangleAgentApiForumV1ForumBoardsUpdateReq {
/** 版块ID */
id?: number;
/** 所属频道ID */
sectionId?: number;
/** 版块名称 */
name?: string;
/** 版块简介 */
description?: string;
/** 版块封面图URL */
coverImage?: string;
/** 版块状态 */
status?: string;
/** 排序值 */
displayOrder?: number;
}

View File

@@ -0,0 +1,4 @@
export interface TrangleAgentApiForumV1ForumBoardsUpdateRes {
/** 版块ID */
id?: number;
}

View File

@@ -0,0 +1,4 @@
export interface TrangleAgentApiForumV1ForumBoardsViewReq {
/** 版块ID */
id?: number;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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[];
}

View File

@@ -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;
}

View File

@@ -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;
/** 评论更新时间 */

View File

@@ -1,4 +1,8 @@
export interface TrangleAgentApiForumV1ForumPostsCreateReq {
/** 帖子ID */
id?: number;
/** 所属版块ID */
boardId?: number;
/** 发帖用户ID */
userId?: number;
/** 帖子标题 */

View File

@@ -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;
}

View File

@@ -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[];
}

View File

@@ -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;
}

View File

@@ -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;
/** 更新时间 */

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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";

View File

@@ -1,4 +1,4 @@
{
"docsUrl": "http://localhost:8888/api.json",
"axiosInstanceUrl": "./src/api/http.js"
"axiosInstanceUrl": "../../http.js"
}