Your commit message

This commit is contained in:
曙光 2024-09-01 21:31:38 +08:00
parent 4db1a5cb7e
commit cbe9912399
136 changed files with 673 additions and 661 deletions

View File

@ -1,24 +1,36 @@
# shuguangpanti
# Code Master代码大师
## Project setup
```
npm install
```
基于 SpringBoot+Spring Cloud 微服务+Docker(+Vue3+ArcoDesign)的编程题目在线评测系统。
管理员可以创建、管理题目;用户可以自由搜索题目、阅读题目、编写并提交代码。在系统前台,在系统后端,
能够根据管理员设定的题目测试用例在 自主实现的代码沙箱 中对代码进行编译、运行、判断输出是否正确。
其中,代码沙箱可以作为独立服务,提供给其他开发者使用
### Compiles and hot-reloads for development
```
npm run serve
```
## 前端
### Compiles and minifies for production
```
npm run build
```
1.基于 Vue3 + Arco Design 组件库,自主实现了在线做题、题目检索和管理、提交列表、用户登录等页面。
### Lints and fixes files
```
npm run lint
```
2.使用 Vue-CL 脚手架初始化项目,并自行开发了全局页面布局和通用前端项目模板,便于后续复用。
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
3.使用 Typescript + ESlint +pretier + Husky保证项目编码和提交规范提高项目的质量。(虽然是由脚手架自动帮你整合了,但你要知道这些技术各自的作用)
4.全局导航生成:基于 Vue Router的路中配置文件自动生成导航菜单并通过给路由的 meta 属件增加 hidden 字段实现集中控制页面的显隐。
5.全局权眼管理:通过给 wve Router路由的 mela 属件增加 acess 字段来定义页面权眼,然后通过 beforeach 全局路由守卫集中校验用户进入页面的权限,并进一步将权
限管理相关代码统一封装为 access.ts 模块,简化用户使用。
6.全局状态管理:基于 Vuex 定义 User Module 实现了对登录用户的状态存储,并通过组合式 AP(usestore)在页面中访问用户信息
7.前后端联调:使用 openapitypescript-codegen 工具根据后端 Swagger 接口文档自动生成请求后端的代码,大幅提高开发效率,.
8.为提高前端开发效率,使用 IDEA 的 Live Templates 功能自定义了一套基础前端代码模板,能够通过快捷键高效生成代码。
9.选用 ByteMD 开源 Markdown 文本编辑器组件,引入 gfm 插件(支持表格语法)并进一步自行封装了可复用的 Editor和 Viewer实现了题目内容及答案的编辑功能。
10.基于 Webpack整合了 Monaco Editor开源代码编辑器组件并进一步基于ref自行封装了可复用的 Editor和 Viewer实现了用户编写代码功能支持多种语言的高亮.
11.使用 Arco Design 的 Table 组件实现了题目检索页面并通过自定义插槽将后端返回的JSON 数据解析为美观的格式。
[![微信截图_20240901201643.png](https://minio-img.933999.xyz/test1/2024/09/01/66d4655e4ea1d.png)](https://minio-img.933999.xyz/test1/2024/09/01/66d4655e4ea1d.png)
[![微信截图_20240901204915.png](https://minio-img.933999.xyz/test1/2024/09/01/66d4655deedf8.png)](https://minio-img.933999.xyz/test1/2024/09/01/66d4655deedf8.png)
[![微信截图_20240901204930.png](https://minio-img.933999.xyz/test1/2024/09/01/66d4655fd1195.png)](https://minio-img.933999.xyz/test1/2024/09/01/66d4655fd1195.png)
[![微信截图_20240901204945.png](https://minio-img.933999.xyz/test1/2024/09/01/66d46560a958b.png)](https://minio-img.933999.xyz/test1/2024/09/01/66d46560a958b.png)

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -51,7 +51,7 @@ export class CancelablePromise<T> implements Promise<T> {
return;
}
this.#isResolved = true;
this.#resolve?.(value);
if (this.#resolve) this.#resolve(value);
};
const onReject = (reason?: any): void => {
@ -59,7 +59,7 @@ export class CancelablePromise<T> implements Promise<T> {
return;
}
this.#isRejected = true;
this.#reject?.(reason);
if (this.#reject) this.#reject(reason);
};
const onCancel = (cancelHandler: () => void): void => {
@ -122,7 +122,7 @@ export class CancelablePromise<T> implements Promise<T> {
}
}
this.#cancelHandlers.length = 0;
this.#reject?.(new CancelError('Request aborted'));
if (this.#reject) this.#reject(new CancelError('Request aborted'));
}
public get isCancelled(): boolean {

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -20,7 +20,7 @@ export type OpenAPIConfig = {
};
export const OpenAPI: OpenAPIConfig = {
BASE: 'http://localhost:8101',
BASE: 'http://127.0.0.1:8101',
VERSION: '1.0',
WITH_CREDENTIALS: true,
CREDENTIALS: 'include',

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -145,10 +145,13 @@ export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Reso
};
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
const token = await resolve(options, config.TOKEN);
const username = await resolve(options, config.USERNAME);
const password = await resolve(options, config.PASSWORD);
const additionalHeaders = await resolve(options, config.HEADERS);
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),
resolve(options, config.HEADERS),
]);
const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
const headers = Object.entries({
@ -172,7 +175,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
headers['Authorization'] = `Basic ${credentials}`;
}
if (options.body) {
if (options.body !== undefined) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
@ -212,6 +215,7 @@ export const sendRequest = async <T>(
data: body ?? formData,
method: options.method,
withCredentials: config.WITH_CREDENTIALS,
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
cancelToken: source.token,
};

View File

@ -1,70 +1,70 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export { ApiError } from "./core/ApiError";
export { CancelablePromise, CancelError } from "./core/CancelablePromise";
export { OpenAPI } from "./core/OpenAPI";
export type { OpenAPIConfig } from "./core/OpenAPI";
export { ApiError } from './core/ApiError';
export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';
export type { BaseResponse_boolean_ } from "./models/BaseResponse_boolean_";
export type { BaseResponse_int_ } from "./models/BaseResponse_int_";
export type { BaseResponse_LoginUserVO_ } from "./models/BaseResponse_LoginUserVO_";
export type { BaseResponse_long_ } from "./models/BaseResponse_long_";
export type { BaseResponse_Page_PostVO_ } from "./models/BaseResponse_Page_PostVO_";
export type { BaseResponse_Page_Question_ } from "./models/BaseResponse_Page_Question_";
export type { BaseResponse_Page_QuestionSubmitVO_ } from "./models/BaseResponse_Page_QuestionSubmitVO_";
export type { BaseResponse_Page_QuestionVO_ } from "./models/BaseResponse_Page_QuestionVO_";
export type { BaseResponse_Page_User_ } from "./models/BaseResponse_Page_User_";
export type { BaseResponse_Page_UserVO_ } from "./models/BaseResponse_Page_UserVO_";
export type { BaseResponse_PostVO_ } from "./models/BaseResponse_PostVO_";
export type { BaseResponse_Question_ } from "./models/BaseResponse_Question_";
export type { BaseResponse_QuestionVO_ } from "./models/BaseResponse_QuestionVO_";
export type { BaseResponse_string_ } from "./models/BaseResponse_string_";
export type { BaseResponse_User_ } from "./models/BaseResponse_User_";
export type { BaseResponse_UserVO_ } from "./models/BaseResponse_UserVO_";
export type { DeleteRequest } from "./models/DeleteRequest";
export type { JudgeCase } from "./models/JudgeCase";
export type { JudgeConfig } from "./models/JudgeConfig";
export type { JudgeInfo } from "./models/JudgeInfo";
export type { LoginUserVO } from "./models/LoginUserVO";
export type { OrderItem } from "./models/OrderItem";
export type { Page_PostVO_ } from "./models/Page_PostVO_";
export type { Page_Question_ } from "./models/Page_Question_";
export type { Page_QuestionSubmitVO_ } from "./models/Page_QuestionSubmitVO_";
export type { Page_QuestionVO_ } from "./models/Page_QuestionVO_";
export type { Page_User_ } from "./models/Page_User_";
export type { Page_UserVO_ } from "./models/Page_UserVO_";
export type { PostAddRequest } from "./models/PostAddRequest";
export type { PostEditRequest } from "./models/PostEditRequest";
export type { PostFavourAddRequest } from "./models/PostFavourAddRequest";
export type { PostFavourQueryRequest } from "./models/PostFavourQueryRequest";
export type { PostQueryRequest } from "./models/PostQueryRequest";
export type { PostThumbAddRequest } from "./models/PostThumbAddRequest";
export type { PostUpdateRequest } from "./models/PostUpdateRequest";
export type { PostVO } from "./models/PostVO";
export type { Question } from "./models/Question";
export type { QuestionAddRequest } from "./models/QuestionAddRequest";
export type { QuestionEditRequest } from "./models/QuestionEditRequest";
export type { QuestionQueryRequest } from "./models/QuestionQueryRequest";
export type { QuestionSubmitAddRequest } from "./models/QuestionSubmitAddRequest";
export type { QuestionSubmitQueryRequest } from "./models/QuestionSubmitQueryRequest";
export type { QuestionSubmitVO } from "./models/QuestionSubmitVO";
export type { QuestionUpdateRequest } from "./models/QuestionUpdateRequest";
export type { QuestionVO } from "./models/QuestionVO";
export type { User } from "./models/User";
export type { UserAddRequest } from "./models/UserAddRequest";
export type { UserLoginRequest } from "./models/UserLoginRequest";
export type { UserQueryRequest } from "./models/UserQueryRequest";
export type { UserRegisterRequest } from "./models/UserRegisterRequest";
export type { UserUpdateMyRequest } from "./models/UserUpdateMyRequest";
export type { UserUpdateRequest } from "./models/UserUpdateRequest";
export type { UserVO } from "./models/UserVO";
export type { BaseResponse_boolean_ } from './models/BaseResponse_boolean_';
export type { BaseResponse_int_ } from './models/BaseResponse_int_';
export type { BaseResponse_LoginUserVO_ } from './models/BaseResponse_LoginUserVO_';
export type { BaseResponse_long_ } from './models/BaseResponse_long_';
export type { BaseResponse_Page_PostVO_ } from './models/BaseResponse_Page_PostVO_';
export type { BaseResponse_Page_Question_ } from './models/BaseResponse_Page_Question_';
export type { BaseResponse_Page_QuestionSubmitVO_ } from './models/BaseResponse_Page_QuestionSubmitVO_';
export type { BaseResponse_Page_QuestionVO_ } from './models/BaseResponse_Page_QuestionVO_';
export type { BaseResponse_Page_User_ } from './models/BaseResponse_Page_User_';
export type { BaseResponse_Page_UserVO_ } from './models/BaseResponse_Page_UserVO_';
export type { BaseResponse_PostVO_ } from './models/BaseResponse_PostVO_';
export type { BaseResponse_Question_ } from './models/BaseResponse_Question_';
export type { BaseResponse_QuestionVO_ } from './models/BaseResponse_QuestionVO_';
export type { BaseResponse_string_ } from './models/BaseResponse_string_';
export type { BaseResponse_User_ } from './models/BaseResponse_User_';
export type { BaseResponse_UserVO_ } from './models/BaseResponse_UserVO_';
export type { DeleteRequest } from './models/DeleteRequest';
export type { JudgeCase } from './models/JudgeCase';
export type { JudgeConfig } from './models/JudgeConfig';
export type { JudgeInfo } from './models/JudgeInfo';
export type { LoginUserVO } from './models/LoginUserVO';
export type { OrderItem } from './models/OrderItem';
export type { Page_PostVO_ } from './models/Page_PostVO_';
export type { Page_Question_ } from './models/Page_Question_';
export type { Page_QuestionSubmitVO_ } from './models/Page_QuestionSubmitVO_';
export type { Page_QuestionVO_ } from './models/Page_QuestionVO_';
export type { Page_User_ } from './models/Page_User_';
export type { Page_UserVO_ } from './models/Page_UserVO_';
export type { PostAddRequest } from './models/PostAddRequest';
export type { PostEditRequest } from './models/PostEditRequest';
export type { PostFavourAddRequest } from './models/PostFavourAddRequest';
export type { PostFavourQueryRequest } from './models/PostFavourQueryRequest';
export type { PostQueryRequest } from './models/PostQueryRequest';
export type { PostThumbAddRequest } from './models/PostThumbAddRequest';
export type { PostUpdateRequest } from './models/PostUpdateRequest';
export type { PostVO } from './models/PostVO';
export type { Question } from './models/Question';
export type { QuestionAddRequest } from './models/QuestionAddRequest';
export type { QuestionEditRequest } from './models/QuestionEditRequest';
export type { QuestionQueryRequest } from './models/QuestionQueryRequest';
export type { QuestionSubmitAddRequest } from './models/QuestionSubmitAddRequest';
export type { QuestionSubmitQueryRequest } from './models/QuestionSubmitQueryRequest';
export type { QuestionSubmitVO } from './models/QuestionSubmitVO';
export type { QuestionUpdateRequest } from './models/QuestionUpdateRequest';
export type { QuestionVO } from './models/QuestionVO';
export type { User } from './models/User';
export type { UserAddRequest } from './models/UserAddRequest';
export type { UserLoginRequest } from './models/UserLoginRequest';
export type { UserQueryRequest } from './models/UserQueryRequest';
export type { UserRegisterRequest } from './models/UserRegisterRequest';
export type { UserUpdateMyRequest } from './models/UserUpdateMyRequest';
export type { UserUpdateRequest } from './models/UserUpdateRequest';
export type { UserVO } from './models/UserVO';
export { FileControllerService } from "./services/FileControllerService";
export { PostControllerService } from "./services/PostControllerService";
export { PostFavourControllerService } from "./services/PostFavourControllerService";
export { PostThumbControllerService } from "./services/PostThumbControllerService";
export { QuestionControllerService } from "./services/QuestionControllerService";
export { UserControllerService } from "./services/UserControllerService";
export { WxMpControllerService } from "./services/WxMpControllerService";
export { FileControllerService } from './services/FileControllerService';
export { PostControllerService } from './services/PostControllerService';
export { PostFavourControllerService } from './services/PostFavourControllerService';
export { PostThumbControllerService } from './services/PostThumbControllerService';
export { QuestionControllerService } from './services/QuestionControllerService';
export { UserControllerService } from './services/UserControllerService';
export { WxMpControllerService } from './services/WxMpControllerService';

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LoginUserVO } from './LoginUserVO';
export type BaseResponse_LoginUserVO_ = {
code?: number;
data?: LoginUserVO;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_PostVO_ } from './Page_PostVO_';
export type BaseResponse_Page_PostVO_ = {
code?: number;
data?: Page_PostVO_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_QuestionSubmitVO_ } from './Page_QuestionSubmitVO_';
export type BaseResponse_Page_QuestionSubmitVO_ = {
code?: number;
data?: Page_QuestionSubmitVO_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_QuestionVO_ } from './Page_QuestionVO_';
export type BaseResponse_Page_QuestionVO_ = {
code?: number;
data?: Page_QuestionVO_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_Question_ } from './Page_Question_';
export type BaseResponse_Page_Question_ = {
code?: number;
data?: Page_Question_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_UserVO_ } from './Page_UserVO_';
export type BaseResponse_Page_UserVO_ = {
code?: number;
data?: Page_UserVO_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_User_ } from './Page_User_';
export type BaseResponse_Page_User_ = {
code?: number;
data?: Page_User_;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PostVO } from './PostVO';
export type BaseResponse_PostVO_ = {
code?: number;
data?: PostVO;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { QuestionVO } from './QuestionVO';
export type BaseResponse_QuestionVO_ = {
code?: number;
data?: QuestionVO;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Question } from './Question';
export type BaseResponse_Question_ = {
code?: number;
data?: Question;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserVO } from './UserVO';
export type BaseResponse_UserVO_ = {
code?: number;
data?: UserVO;
message?: string;
};

View File

@ -1,12 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { User } from './User';
export type BaseResponse_User_ = {
code?: number;
data?: User;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_boolean_ = {
code?: number;
data?: boolean;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_int_ = {
code?: number;
data?: number;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_long_ = {
code?: number;
data?: number;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_string_ = {
code?: number;
data?: string;
message?: string;
};

View File

@ -1,8 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeleteRequest = {
id?: number;
};

View File

@ -1,9 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeCase = {
input?: string;
output?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeConfig = {
memoryLimit?: number;
stackLimit?: number;
timeLimit?: number;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeInfo = {
memory?: number;
message?: string;
time?: number;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type LoginUserVO = {
createTime?: string;
id?: number;
@ -12,3 +11,4 @@ export type LoginUserVO = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,9 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type OrderItem = {
asc?: boolean;
column?: string;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { PostVO } from './PostVO';
export type Page_PostVO_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_PostVO_ = {
size?: number;
total?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { QuestionSubmitVO } from './QuestionSubmitVO';
export type Page_QuestionSubmitVO_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_QuestionSubmitVO_ = {
size?: number;
total?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { QuestionVO } from './QuestionVO';
export type Page_QuestionVO_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_QuestionVO_ = {
size?: number;
total?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { Question } from './Question';
export type Page_Question_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_Question_ = {
size?: number;
total?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { UserVO } from './UserVO';
export type Page_UserVO_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_UserVO_ = {
size?: number;
total?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { User } from './User';
export type Page_User_ = {
countId?: string;
current?: number;
@ -18,3 +16,4 @@ export type Page_User_ = {
size?: number;
total?: number;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostAddRequest = {
content?: string;
tags?: Array<string>;
title?: string;
};

View File

@ -1,11 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostEditRequest = {
content?: string;
id?: number;
tags?: Array<string>;
title?: string;
};

View File

@ -1,8 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostFavourAddRequest = {
postId?: number;
};

View File

@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PostQueryRequest } from './PostQueryRequest';
export type PostFavourQueryRequest = {
current?: number;
pageSize?: number;
@ -13,3 +11,4 @@ export type PostFavourQueryRequest = {
sortOrder?: string;
userId?: number;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostQueryRequest = {
content?: string;
current?: number;
@ -18,3 +17,4 @@ export type PostQueryRequest = {
title?: string;
userId?: number;
};

View File

@ -1,8 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostThumbAddRequest = {
postId?: number;
};

View File

@ -1,11 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PostUpdateRequest = {
content?: string;
id?: number;
tags?: Array<string>;
title?: string;
};

View File

@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserVO } from './UserVO';
export type PostVO = {
content?: string;
createTime?: string;
@ -19,3 +17,4 @@ export type PostVO = {
user?: UserVO;
userId?: number;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Question = {
acceptedNum?: number;
answer?: string;
@ -20,3 +19,4 @@ export type Question = {
updateTime?: string;
userId?: number;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { JudgeCase } from './JudgeCase';
import type { JudgeConfig } from './JudgeConfig';
export type QuestionAddRequest = {
answer?: string;
content?: string;
@ -14,3 +12,4 @@ export type QuestionAddRequest = {
tags?: Array<string>;
title?: string;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { JudgeCase } from './JudgeCase';
import type { JudgeConfig } from './JudgeConfig';
export type QuestionEditRequest = {
answer?: string;
content?: string;
@ -15,3 +13,4 @@ export type QuestionEditRequest = {
tags?: Array<string>;
title?: string;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type QuestionQueryRequest = {
answer?: string;
content?: string;
@ -15,3 +14,4 @@ export type QuestionQueryRequest = {
title?: string;
userId?: number;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type QuestionSubmitAddRequest = {
code?: string;
language?: string;
questionId?: number;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type QuestionSubmitQueryRequest = {
current?: number;
language?: string;
@ -13,3 +12,4 @@ export type QuestionSubmitQueryRequest = {
status?: number;
userId?: number;
};

View File

@ -1,12 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { JudgeInfo } from './JudgeInfo';
import type { QuestionVO } from './QuestionVO';
import type { UserVO } from './UserVO';
export type QuestionSubmitVO = {
code?: string;
createTime?: string;
@ -20,3 +18,4 @@ export type QuestionSubmitVO = {
userId?: number;
userVO?: UserVO;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { JudgeCase } from './JudgeCase';
import type { JudgeConfig } from './JudgeConfig';
export type QuestionUpdateRequest = {
answer?: string;
content?: string;
@ -15,3 +13,4 @@ export type QuestionUpdateRequest = {
tags?: Array<string>;
title?: string;
};

View File

@ -1,11 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { JudgeConfig } from './JudgeConfig';
import type { UserVO } from './UserVO';
export type QuestionVO = {
acceptedNum?: number;
content?: string;
@ -21,3 +19,4 @@ export type QuestionVO = {
userId?: number;
userVO?: UserVO;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type User = {
createTime?: string;
id?: number;
@ -17,3 +16,4 @@ export type User = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,11 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserAddRequest = {
userAccount?: string;
userAvatar?: string;
userName?: string;
userRole?: string;
};

View File

@ -1,9 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserLoginRequest = {
userAccount?: string;
userPassword?: string;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserQueryRequest = {
current?: number;
id?: number;
@ -15,3 +14,4 @@ export type UserQueryRequest = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserRegisterRequest = {
checkPassword?: string;
userAccount?: string;
userPassword?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserUpdateMyRequest = {
userAvatar?: string;
userName?: string;
userProfile?: string;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserUpdateRequest = {
id?: number;
userAvatar?: string;
@ -10,3 +9,4 @@ export type UserUpdateRequest = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserVO = {
createTime?: string;
id?: number;
@ -11,3 +10,4 @@ export type UserVO = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,15 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class FileControllerService {
/**
* uploadFile
* @param biz
@ -38,5 +35,4 @@ file?: Blob,
},
});
}
}

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -11,13 +11,10 @@ import type { PostAddRequest } from '../models/PostAddRequest';
import type { PostEditRequest } from '../models/PostEditRequest';
import type { PostQueryRequest } from '../models/PostQueryRequest';
import type { PostUpdateRequest } from '../models/PostUpdateRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class PostControllerService {
/**
* addPost
* @param postAddRequest postAddRequest
@ -39,7 +36,6 @@ postAddRequest: PostAddRequest,
},
});
}
/**
* deletePost
* @param deleteRequest deleteRequest
@ -61,7 +57,6 @@ deleteRequest: DeleteRequest,
},
});
}
/**
* editPost
* @param postEditRequest postEditRequest
@ -83,7 +78,6 @@ postEditRequest: PostEditRequest,
},
});
}
/**
* getPostVOById
* @param id id
@ -106,7 +100,6 @@ id?: number,
},
});
}
/**
* listPostVOByPage
* @param postQueryRequest postQueryRequest
@ -128,7 +121,6 @@ postQueryRequest: PostQueryRequest,
},
});
}
/**
* listMyPostVOByPage
* @param postQueryRequest postQueryRequest
@ -150,7 +142,6 @@ postQueryRequest: PostQueryRequest,
},
});
}
/**
* searchPostVOByPage
* @param postQueryRequest postQueryRequest
@ -172,7 +163,6 @@ postQueryRequest: PostQueryRequest,
},
});
}
/**
* updatePost
* @param postUpdateRequest postUpdateRequest
@ -194,5 +184,4 @@ postUpdateRequest: PostUpdateRequest,
},
});
}
}

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -7,13 +7,10 @@ import type { BaseResponse_Page_PostVO_ } from '../models/BaseResponse_Page_Post
import type { PostFavourAddRequest } from '../models/PostFavourAddRequest';
import type { PostFavourQueryRequest } from '../models/PostFavourQueryRequest';
import type { PostQueryRequest } from '../models/PostQueryRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class PostFavourControllerService {
/**
* doPostFavour
* @param postFavourAddRequest postFavourAddRequest
@ -35,7 +32,6 @@ postFavourAddRequest: PostFavourAddRequest,
},
});
}
/**
* listFavourPostByPage
* @param postFavourQueryRequest postFavourQueryRequest
@ -57,7 +53,6 @@ postFavourQueryRequest: PostFavourQueryRequest,
},
});
}
/**
* listMyFavourPostByPage
* @param postQueryRequest postQueryRequest
@ -79,5 +74,4 @@ postQueryRequest: PostQueryRequest,
},
});
}
}

View File

@ -1,16 +1,13 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_int_ } from '../models/BaseResponse_int_';
import type { PostThumbAddRequest } from '../models/PostThumbAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class PostThumbControllerService {
/**
* doThumb
* @param postThumbAddRequest postThumbAddRequest
@ -32,5 +29,4 @@ postThumbAddRequest: PostThumbAddRequest,
},
});
}
}

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -16,13 +16,10 @@ import type { QuestionQueryRequest } from '../models/QuestionQueryRequest';
import type { QuestionSubmitAddRequest } from '../models/QuestionSubmitAddRequest';
import type { QuestionSubmitQueryRequest } from '../models/QuestionSubmitQueryRequest';
import type { QuestionUpdateRequest } from '../models/QuestionUpdateRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class QuestionControllerService {
/**
* addQuestion
* @param questionAddRequest questionAddRequest
@ -44,7 +41,6 @@ questionAddRequest: QuestionAddRequest,
},
});
}
/**
* deleteQuestion
* @param deleteRequest deleteRequest
@ -66,7 +62,6 @@ deleteRequest: DeleteRequest,
},
});
}
/**
* editQuestion
* @param questionEditRequest questionEditRequest
@ -88,7 +83,6 @@ questionEditRequest: QuestionEditRequest,
},
});
}
/**
* getQuestionById
* @param id id
@ -111,7 +105,6 @@ id?: number,
},
});
}
/**
* getQuestionVOById
* @param id id
@ -134,7 +127,6 @@ id?: number,
},
});
}
/**
* listQuestionByPage
* @param questionQueryRequest questionQueryRequest
@ -156,7 +148,6 @@ questionQueryRequest: QuestionQueryRequest,
},
});
}
/**
* listQuestionVOByPage
* @param questionQueryRequest questionQueryRequest
@ -178,7 +169,6 @@ questionQueryRequest: QuestionQueryRequest,
},
});
}
/**
* listMyQuestionVOByPage
* @param questionQueryRequest questionQueryRequest
@ -200,7 +190,6 @@ questionQueryRequest: QuestionQueryRequest,
},
});
}
/**
* doQuestionSubmit
* @param questionSubmitAddRequest questionSubmitAddRequest
@ -222,7 +211,6 @@ questionSubmitAddRequest: QuestionSubmitAddRequest,
},
});
}
/**
* listQuestionSubmitByPage
* @param questionSubmitQueryRequest questionSubmitQueryRequest
@ -244,7 +232,6 @@ questionSubmitQueryRequest: QuestionSubmitQueryRequest,
},
});
}
/**
* updateQuestion
* @param questionUpdateRequest questionUpdateRequest
@ -266,5 +253,4 @@ questionUpdateRequest: QuestionUpdateRequest,
},
});
}
}

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -16,13 +16,10 @@ import type { UserQueryRequest } from '../models/UserQueryRequest';
import type { UserRegisterRequest } from '../models/UserRegisterRequest';
import type { UserUpdateMyRequest } from '../models/UserUpdateMyRequest';
import type { UserUpdateRequest } from '../models/UserUpdateRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class UserControllerService {
/**
* addUser
* @param userAddRequest userAddRequest
@ -44,7 +41,6 @@ userAddRequest: UserAddRequest,
},
});
}
/**
* deleteUser
* @param deleteRequest deleteRequest
@ -66,7 +62,6 @@ deleteRequest: DeleteRequest,
},
});
}
/**
* getUserById
* @param id id
@ -89,7 +84,6 @@ id?: number,
},
});
}
/**
* getLoginUser
* @returns BaseResponse_LoginUserVO_ OK
@ -106,7 +100,6 @@ id?: number,
},
});
}
/**
* getUserVOById
* @param id id
@ -129,7 +122,6 @@ id?: number,
},
});
}
/**
* listUserByPage
* @param userQueryRequest userQueryRequest
@ -151,7 +143,6 @@ userQueryRequest: UserQueryRequest,
},
});
}
/**
* listUserVOByPage
* @param userQueryRequest userQueryRequest
@ -173,7 +164,6 @@ userQueryRequest: UserQueryRequest,
},
});
}
/**
* userLogin
* @param userLoginRequest userLoginRequest
@ -195,7 +185,6 @@ userLoginRequest: UserLoginRequest,
},
});
}
/**
* userLoginByWxOpen
* @param code code
@ -218,7 +207,6 @@ code: string,
},
});
}
/**
* userLogout
* @returns BaseResponse_boolean_ OK
@ -236,7 +224,6 @@ code: string,
},
});
}
/**
* userRegister
* @param userRegisterRequest userRegisterRequest
@ -258,7 +245,6 @@ userRegisterRequest: UserRegisterRequest,
},
});
}
/**
* updateUser
* @param userUpdateRequest userUpdateRequest
@ -280,7 +266,6 @@ userUpdateRequest: UserUpdateRequest,
},
});
}
/**
* updateMyUser
* @param userUpdateMyRequest userUpdateMyRequest
@ -302,5 +287,4 @@ userUpdateMyRequest: UserUpdateMyRequest,
},
});
}
}

View File

@ -1,13 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class WxMpControllerService {
/**
* check
* @param echostr echostr
@ -39,7 +37,6 @@ timestamp?: string,
},
});
}
/**
* receiveMessage
* @returns any OK
@ -56,7 +53,6 @@ timestamp?: string,
},
});
}
/**
* setMenu
* @returns string OK
@ -73,5 +69,4 @@ timestamp?: string,
},
});
}
}

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -51,7 +51,7 @@ export class CancelablePromise<T> implements Promise<T> {
return;
}
this.#isResolved = true;
if (this.#resolve) this.#resolve(value);
this.#resolve?.(value);
};
const onReject = (reason?: any): void => {
@ -59,7 +59,7 @@ export class CancelablePromise<T> implements Promise<T> {
return;
}
this.#isRejected = true;
if (this.#reject) this.#reject(reason);
this.#reject?.(reason);
};
const onCancel = (cancelHandler: () => void): void => {
@ -122,7 +122,7 @@ export class CancelablePromise<T> implements Promise<T> {
}
}
this.#cancelHandlers.length = 0;
if (this.#reject) this.#reject(new CancelError('Request aborted'));
this.#reject?.(new CancelError('Request aborted'));
}
public get isCancelled(): boolean {

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -20,7 +20,7 @@ export type OpenAPIConfig = {
};
export const OpenAPI: OpenAPIConfig = {
BASE: 'http://127.0.0.1:8101',
BASE: 'http://localhost:8101',
VERSION: '1.0',
WITH_CREDENTIALS: true,
CREDENTIALS: 'include',

View File

@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
@ -145,13 +145,10 @@ export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Reso
};
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),
resolve(options, config.HEADERS),
]);
const token = await resolve(options, config.TOKEN);
const username = await resolve(options, config.USERNAME);
const password = await resolve(options, config.PASSWORD);
const additionalHeaders = await resolve(options, config.HEADERS);
const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
const headers = Object.entries({
@ -175,7 +172,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
headers['Authorization'] = `Basic ${credentials}`;
}
if (options.body !== undefined) {
if (options.body) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
@ -215,7 +212,6 @@ export const sendRequest = async <T>(
data: body ?? formData,
method: options.method,
withCredentials: config.WITH_CREDENTIALS,
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
cancelToken: source.token,
};

70
generateds/index.ts Normal file
View File

@ -0,0 +1,70 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export { ApiError } from "./core/ApiError";
export { CancelablePromise, CancelError } from "./core/CancelablePromise";
export { OpenAPI } from "./core/OpenAPI";
export type { OpenAPIConfig } from "./core/OpenAPI";
export type { BaseResponse_boolean_ } from "./models/BaseResponse_boolean_";
export type { BaseResponse_int_ } from "./models/BaseResponse_int_";
export type { BaseResponse_LoginUserVO_ } from "./models/BaseResponse_LoginUserVO_";
export type { BaseResponse_long_ } from "./models/BaseResponse_long_";
export type { BaseResponse_Page_PostVO_ } from "./models/BaseResponse_Page_PostVO_";
export type { BaseResponse_Page_Question_ } from "./models/BaseResponse_Page_Question_";
export type { BaseResponse_Page_QuestionSubmitVO_ } from "./models/BaseResponse_Page_QuestionSubmitVO_";
export type { BaseResponse_Page_QuestionVO_ } from "./models/BaseResponse_Page_QuestionVO_";
export type { BaseResponse_Page_User_ } from "./models/BaseResponse_Page_User_";
export type { BaseResponse_Page_UserVO_ } from "./models/BaseResponse_Page_UserVO_";
export type { BaseResponse_PostVO_ } from "./models/BaseResponse_PostVO_";
export type { BaseResponse_Question_ } from "./models/BaseResponse_Question_";
export type { BaseResponse_QuestionVO_ } from "./models/BaseResponse_QuestionVO_";
export type { BaseResponse_string_ } from "./models/BaseResponse_string_";
export type { BaseResponse_User_ } from "./models/BaseResponse_User_";
export type { BaseResponse_UserVO_ } from "./models/BaseResponse_UserVO_";
export type { DeleteRequest } from "./models/DeleteRequest";
export type { JudgeCase } from "./models/JudgeCase";
export type { JudgeConfig } from "./models/JudgeConfig";
export type { JudgeInfo } from "./models/JudgeInfo";
export type { LoginUserVO } from "./models/LoginUserVO";
export type { OrderItem } from "./models/OrderItem";
export type { Page_PostVO_ } from "./models/Page_PostVO_";
export type { Page_Question_ } from "./models/Page_Question_";
export type { Page_QuestionSubmitVO_ } from "./models/Page_QuestionSubmitVO_";
export type { Page_QuestionVO_ } from "./models/Page_QuestionVO_";
export type { Page_User_ } from "./models/Page_User_";
export type { Page_UserVO_ } from "./models/Page_UserVO_";
export type { PostAddRequest } from "./models/PostAddRequest";
export type { PostEditRequest } from "./models/PostEditRequest";
export type { PostFavourAddRequest } from "./models/PostFavourAddRequest";
export type { PostFavourQueryRequest } from "./models/PostFavourQueryRequest";
export type { PostQueryRequest } from "./models/PostQueryRequest";
export type { PostThumbAddRequest } from "./models/PostThumbAddRequest";
export type { PostUpdateRequest } from "./models/PostUpdateRequest";
export type { PostVO } from "./models/PostVO";
export type { Question } from "./models/Question";
export type { QuestionAddRequest } from "./models/QuestionAddRequest";
export type { QuestionEditRequest } from "./models/QuestionEditRequest";
export type { QuestionQueryRequest } from "./models/QuestionQueryRequest";
export type { QuestionSubmitAddRequest } from "./models/QuestionSubmitAddRequest";
export type { QuestionSubmitQueryRequest } from "./models/QuestionSubmitQueryRequest";
export type { QuestionSubmitVO } from "./models/QuestionSubmitVO";
export type { QuestionUpdateRequest } from "./models/QuestionUpdateRequest";
export type { QuestionVO } from "./models/QuestionVO";
export type { User } from "./models/User";
export type { UserAddRequest } from "./models/UserAddRequest";
export type { UserLoginRequest } from "./models/UserLoginRequest";
export type { UserQueryRequest } from "./models/UserQueryRequest";
export type { UserRegisterRequest } from "./models/UserRegisterRequest";
export type { UserUpdateMyRequest } from "./models/UserUpdateMyRequest";
export type { UserUpdateRequest } from "./models/UserUpdateRequest";
export type { UserVO } from "./models/UserVO";
export { FileControllerService } from "./services/FileControllerService";
export { PostControllerService } from "./services/PostControllerService";
export { PostFavourControllerService } from "./services/PostFavourControllerService";
export { PostThumbControllerService } from "./services/PostThumbControllerService";
export { QuestionControllerService } from "./services/QuestionControllerService";
export { UserControllerService } from "./services/UserControllerService";
export { WxMpControllerService } from "./services/WxMpControllerService";

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LoginUserVO } from './LoginUserVO';
export type BaseResponse_LoginUserVO_ = {
code?: number;
data?: LoginUserVO;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_PostVO_ } from './Page_PostVO_';
export type BaseResponse_Page_PostVO_ = {
code?: number;
data?: Page_PostVO_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_QuestionSubmitVO_ } from './Page_QuestionSubmitVO_';
export type BaseResponse_Page_QuestionSubmitVO_ = {
code?: number;
data?: Page_QuestionSubmitVO_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_QuestionVO_ } from './Page_QuestionVO_';
export type BaseResponse_Page_QuestionVO_ = {
code?: number;
data?: Page_QuestionVO_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_Question_ } from './Page_Question_';
export type BaseResponse_Page_Question_ = {
code?: number;
data?: Page_Question_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_UserVO_ } from './Page_UserVO_';
export type BaseResponse_Page_UserVO_ = {
code?: number;
data?: Page_UserVO_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_User_ } from './Page_User_';
export type BaseResponse_Page_User_ = {
code?: number;
data?: Page_User_;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PostVO } from './PostVO';
export type BaseResponse_PostVO_ = {
code?: number;
data?: PostVO;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { QuestionVO } from './QuestionVO';
export type BaseResponse_QuestionVO_ = {
code?: number;
data?: QuestionVO;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Question } from './Question';
export type BaseResponse_Question_ = {
code?: number;
data?: Question;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserVO } from './UserVO';
export type BaseResponse_UserVO_ = {
code?: number;
data?: UserVO;
message?: string;
};

View File

@ -1,11 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { User } from './User';
export type BaseResponse_User_ = {
code?: number;
data?: User;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_boolean_ = {
code?: number;
data?: boolean;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_int_ = {
code?: number;
data?: number;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_long_ = {
code?: number;
data?: number;
message?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_string_ = {
code?: number;
data?: string;
message?: string;
};

View File

@ -1,8 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeleteRequest = {
id?: number;
};

View File

@ -1,9 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeCase = {
input?: string;
output?: string;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeConfig = {
memoryLimit?: number;
stackLimit?: number;
timeLimit?: number;
};

View File

@ -1,10 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type JudgeInfo = {
memory?: number;
message?: string;
time?: number;
};

View File

@ -1,7 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type LoginUserVO = {
createTime?: string;
id?: number;
@ -11,4 +12,3 @@ export type LoginUserVO = {
userProfile?: string;
userRole?: string;
};

View File

@ -1,9 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type OrderItem = {
asc?: boolean;
column?: string;
};

View File

@ -1,9 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { PostVO } from './PostVO';
export type Page_PostVO_ = {
countId?: string;
current?: number;
@ -16,4 +18,3 @@ export type Page_PostVO_ = {
size?: number;
total?: number;
};

View File

@ -1,9 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { QuestionSubmitVO } from './QuestionSubmitVO';
export type Page_QuestionSubmitVO_ = {
countId?: string;
current?: number;
@ -16,4 +18,3 @@ export type Page_QuestionSubmitVO_ = {
size?: number;
total?: number;
};

View File

@ -1,9 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { QuestionVO } from './QuestionVO';
export type Page_QuestionVO_ = {
countId?: string;
current?: number;
@ -16,4 +18,3 @@ export type Page_QuestionVO_ = {
size?: number;
total?: number;
};

Some files were not shown because too many files have changed in this diff Show More