mirror of
https://github.com/shuguangnet/Code-Master.git
synced 2025-01-23 07:58:44 +08:00
Your commit message
This commit is contained in:
parent
4db1a5cb7e
commit
cbe9912399
50
README.md
50
README.md
@ -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)
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 => {
|
||||
@ -85,9 +85,9 @@ export class CancelablePromise<T> implements Promise<T> {
|
||||
});
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
|
||||
public then<TResult1 = T, TResult2 = never>(
|
||||
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
||||
@ -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 {
|
||||
|
@ -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',
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -1,27 +1,24 @@
|
||||
/* 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
|
||||
* @param file
|
||||
* @param biz
|
||||
* @param file
|
||||
* @returns BaseResponse_string_ OK
|
||||
* @returns any Created
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static uploadFileUsingPost(
|
||||
biz?: string,
|
||||
file?: Blob,
|
||||
): CancelablePromise<BaseResponse_string_ | any> {
|
||||
biz?: string,
|
||||
file?: Blob,
|
||||
): CancelablePromise<BaseResponse_string_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/file/upload',
|
||||
@ -38,5 +35,4 @@ file?: Blob,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -26,8 +23,8 @@ export class PostControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static addPostUsingPost(
|
||||
postAddRequest: PostAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
postAddRequest: PostAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/add',
|
||||
@ -39,7 +36,6 @@ postAddRequest: PostAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* deletePost
|
||||
* @param deleteRequest deleteRequest
|
||||
@ -48,8 +44,8 @@ postAddRequest: PostAddRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deletePostUsingPost(
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/delete',
|
||||
@ -61,7 +57,6 @@ deleteRequest: DeleteRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* editPost
|
||||
* @param postEditRequest postEditRequest
|
||||
@ -70,8 +65,8 @@ deleteRequest: DeleteRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static editPostUsingPost(
|
||||
postEditRequest: PostEditRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
postEditRequest: PostEditRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/edit',
|
||||
@ -83,7 +78,6 @@ postEditRequest: PostEditRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getPostVOById
|
||||
* @param id id
|
||||
@ -91,8 +85,8 @@ postEditRequest: PostEditRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getPostVoByIdUsingGet(
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_PostVO_> {
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_PostVO_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/post/get/vo',
|
||||
@ -106,7 +100,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listPostVOByPage
|
||||
* @param postQueryRequest postQueryRequest
|
||||
@ -115,8 +108,8 @@ id?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listPostVoByPageUsingPost(
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/list/page/vo',
|
||||
@ -128,7 +121,6 @@ postQueryRequest: PostQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listMyPostVOByPage
|
||||
* @param postQueryRequest postQueryRequest
|
||||
@ -137,8 +129,8 @@ postQueryRequest: PostQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listMyPostVoByPageUsingPost(
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/my/list/page/vo',
|
||||
@ -150,7 +142,6 @@ postQueryRequest: PostQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* searchPostVOByPage
|
||||
* @param postQueryRequest postQueryRequest
|
||||
@ -159,8 +150,8 @@ postQueryRequest: PostQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static searchPostVoByPageUsingPost(
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/search/page/vo',
|
||||
@ -172,7 +163,6 @@ postQueryRequest: PostQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* updatePost
|
||||
* @param postUpdateRequest postUpdateRequest
|
||||
@ -181,8 +171,8 @@ postQueryRequest: PostQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updatePostUsingPost(
|
||||
postUpdateRequest: PostUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
postUpdateRequest: PostUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post/update',
|
||||
@ -194,5 +184,4 @@ postUpdateRequest: PostUpdateRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -22,8 +19,8 @@ export class PostFavourControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static doPostFavourUsingPost(
|
||||
postFavourAddRequest: PostFavourAddRequest,
|
||||
): CancelablePromise<BaseResponse_int_ | any> {
|
||||
postFavourAddRequest: PostFavourAddRequest,
|
||||
): CancelablePromise<BaseResponse_int_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post_favour/',
|
||||
@ -35,7 +32,6 @@ postFavourAddRequest: PostFavourAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listFavourPostByPage
|
||||
* @param postFavourQueryRequest postFavourQueryRequest
|
||||
@ -44,8 +40,8 @@ postFavourAddRequest: PostFavourAddRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listFavourPostByPageUsingPost(
|
||||
postFavourQueryRequest: PostFavourQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
postFavourQueryRequest: PostFavourQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post_favour/list/page',
|
||||
@ -57,7 +53,6 @@ postFavourQueryRequest: PostFavourQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listMyFavourPostByPage
|
||||
* @param postQueryRequest postQueryRequest
|
||||
@ -66,8 +61,8 @@ postFavourQueryRequest: PostFavourQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listMyFavourPostByPageUsingPost(
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
postQueryRequest: PostQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_PostVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post_favour/my/list/page',
|
||||
@ -79,5 +74,4 @@ postQueryRequest: PostQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -19,8 +16,8 @@ export class PostThumbControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static doThumbUsingPost(
|
||||
postThumbAddRequest: PostThumbAddRequest,
|
||||
): CancelablePromise<BaseResponse_int_ | any> {
|
||||
postThumbAddRequest: PostThumbAddRequest,
|
||||
): CancelablePromise<BaseResponse_int_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/post_thumb/',
|
||||
@ -32,5 +29,4 @@ postThumbAddRequest: PostThumbAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -31,8 +28,8 @@ export class QuestionControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static addQuestionUsingPost(
|
||||
questionAddRequest: QuestionAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
questionAddRequest: QuestionAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/add',
|
||||
@ -44,7 +41,6 @@ questionAddRequest: QuestionAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* deleteQuestion
|
||||
* @param deleteRequest deleteRequest
|
||||
@ -53,8 +49,8 @@ questionAddRequest: QuestionAddRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteQuestionUsingPost(
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/delete',
|
||||
@ -66,7 +62,6 @@ deleteRequest: DeleteRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* editQuestion
|
||||
* @param questionEditRequest questionEditRequest
|
||||
@ -75,8 +70,8 @@ deleteRequest: DeleteRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static editQuestionUsingPost(
|
||||
questionEditRequest: QuestionEditRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
questionEditRequest: QuestionEditRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/edit',
|
||||
@ -88,7 +83,6 @@ questionEditRequest: QuestionEditRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getQuestionById
|
||||
* @param id id
|
||||
@ -96,8 +90,8 @@ questionEditRequest: QuestionEditRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getQuestionByIdUsingGet(
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_Question_> {
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_Question_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/question/get',
|
||||
@ -111,7 +105,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getQuestionVOById
|
||||
* @param id id
|
||||
@ -119,8 +112,8 @@ id?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getQuestionVoByIdUsingGet(
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_QuestionVO_> {
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_QuestionVO_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/question/get/vo',
|
||||
@ -134,7 +127,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listQuestionByPage
|
||||
* @param questionQueryRequest questionQueryRequest
|
||||
@ -143,8 +135,8 @@ id?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listQuestionByPageUsingPost(
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_Question_ | any> {
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_Question_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/list/page',
|
||||
@ -156,7 +148,6 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listQuestionVOByPage
|
||||
* @param questionQueryRequest questionQueryRequest
|
||||
@ -165,8 +156,8 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listQuestionVoByPageUsingPost(
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionVO_ | any> {
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/list/page/vo',
|
||||
@ -178,7 +169,6 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listMyQuestionVOByPage
|
||||
* @param questionQueryRequest questionQueryRequest
|
||||
@ -187,8 +177,8 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listMyQuestionVoByPageUsingPost(
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionVO_ | any> {
|
||||
questionQueryRequest: QuestionQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/my/list/page/vo',
|
||||
@ -200,7 +190,6 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* doQuestionSubmit
|
||||
* @param questionSubmitAddRequest questionSubmitAddRequest
|
||||
@ -209,8 +198,8 @@ questionQueryRequest: QuestionQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static doQuestionSubmitUsingPost(
|
||||
questionSubmitAddRequest: QuestionSubmitAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
questionSubmitAddRequest: QuestionSubmitAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/question_submit/do',
|
||||
@ -222,7 +211,6 @@ questionSubmitAddRequest: QuestionSubmitAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listQuestionSubmitByPage
|
||||
* @param questionSubmitQueryRequest questionSubmitQueryRequest
|
||||
@ -231,8 +219,8 @@ questionSubmitAddRequest: QuestionSubmitAddRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listQuestionSubmitByPageUsingPost(
|
||||
questionSubmitQueryRequest: QuestionSubmitQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionSubmitVO_ | any> {
|
||||
questionSubmitQueryRequest: QuestionSubmitQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_QuestionSubmitVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/question_submit/list/page',
|
||||
@ -244,7 +232,6 @@ questionSubmitQueryRequest: QuestionSubmitQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* updateQuestion
|
||||
* @param questionUpdateRequest questionUpdateRequest
|
||||
@ -253,8 +240,8 @@ questionSubmitQueryRequest: QuestionSubmitQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateQuestionUsingPost(
|
||||
questionUpdateRequest: QuestionUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
questionUpdateRequest: QuestionUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/question/update',
|
||||
@ -266,5 +253,4 @@ questionUpdateRequest: QuestionUpdateRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -31,8 +28,8 @@ export class UserControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static addUserUsingPost(
|
||||
userAddRequest: UserAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
userAddRequest: UserAddRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/add',
|
||||
@ -44,7 +41,6 @@ userAddRequest: UserAddRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* deleteUser
|
||||
* @param deleteRequest deleteRequest
|
||||
@ -53,8 +49,8 @@ userAddRequest: UserAddRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteUserUsingPost(
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
deleteRequest: DeleteRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/delete',
|
||||
@ -66,7 +62,6 @@ deleteRequest: DeleteRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getUserById
|
||||
* @param id id
|
||||
@ -74,8 +69,8 @@ deleteRequest: DeleteRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getUserByIdUsingGet(
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_User_> {
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_User_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/user/get',
|
||||
@ -89,7 +84,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getLoginUser
|
||||
* @returns BaseResponse_LoginUserVO_ OK
|
||||
@ -106,7 +100,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* getUserVOById
|
||||
* @param id id
|
||||
@ -114,8 +107,8 @@ id?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getUserVoByIdUsingGet(
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_UserVO_> {
|
||||
id?: number,
|
||||
): CancelablePromise<BaseResponse_UserVO_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/user/get/vo',
|
||||
@ -129,7 +122,6 @@ id?: number,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listUserByPage
|
||||
* @param userQueryRequest userQueryRequest
|
||||
@ -138,8 +130,8 @@ id?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listUserByPageUsingPost(
|
||||
userQueryRequest: UserQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_User_ | any> {
|
||||
userQueryRequest: UserQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_User_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/list/page',
|
||||
@ -151,7 +143,6 @@ userQueryRequest: UserQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* listUserVOByPage
|
||||
* @param userQueryRequest userQueryRequest
|
||||
@ -160,8 +151,8 @@ userQueryRequest: UserQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listUserVoByPageUsingPost(
|
||||
userQueryRequest: UserQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_UserVO_ | any> {
|
||||
userQueryRequest: UserQueryRequest,
|
||||
): CancelablePromise<BaseResponse_Page_UserVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/list/page/vo',
|
||||
@ -173,7 +164,6 @@ userQueryRequest: UserQueryRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* userLogin
|
||||
* @param userLoginRequest userLoginRequest
|
||||
@ -182,8 +172,8 @@ userQueryRequest: UserQueryRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static userLoginUsingPost(
|
||||
userLoginRequest: UserLoginRequest,
|
||||
): CancelablePromise<BaseResponse_LoginUserVO_ | any> {
|
||||
userLoginRequest: UserLoginRequest,
|
||||
): CancelablePromise<BaseResponse_LoginUserVO_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/login',
|
||||
@ -195,7 +185,6 @@ userLoginRequest: UserLoginRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* userLoginByWxOpen
|
||||
* @param code code
|
||||
@ -203,8 +192,8 @@ userLoginRequest: UserLoginRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static userLoginByWxOpenUsingGet(
|
||||
code: string,
|
||||
): CancelablePromise<BaseResponse_LoginUserVO_> {
|
||||
code: string,
|
||||
): CancelablePromise<BaseResponse_LoginUserVO_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/user/login/wx_open',
|
||||
@ -218,7 +207,6 @@ code: string,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* userLogout
|
||||
* @returns BaseResponse_boolean_ OK
|
||||
@ -236,7 +224,6 @@ code: string,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* userRegister
|
||||
* @param userRegisterRequest userRegisterRequest
|
||||
@ -245,8 +232,8 @@ code: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static userRegisterUsingPost(
|
||||
userRegisterRequest: UserRegisterRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
userRegisterRequest: UserRegisterRequest,
|
||||
): CancelablePromise<BaseResponse_long_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/register',
|
||||
@ -258,7 +245,6 @@ userRegisterRequest: UserRegisterRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* updateUser
|
||||
* @param userUpdateRequest userUpdateRequest
|
||||
@ -267,8 +253,8 @@ userRegisterRequest: UserRegisterRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateUserUsingPost(
|
||||
userUpdateRequest: UserUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
userUpdateRequest: UserUpdateRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/update',
|
||||
@ -280,7 +266,6 @@ userUpdateRequest: UserUpdateRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* updateMyUser
|
||||
* @param userUpdateMyRequest userUpdateMyRequest
|
||||
@ -289,8 +274,8 @@ userUpdateRequest: UserUpdateRequest,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateMyUserUsingPost(
|
||||
userUpdateMyRequest: UserUpdateMyRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
userUpdateMyRequest: UserUpdateMyRequest,
|
||||
): CancelablePromise<BaseResponse_boolean_ | any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/user/update/my',
|
||||
@ -302,5 +287,4 @@ userUpdateMyRequest: UserUpdateMyRequest,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
@ -18,11 +16,11 @@ export class WxMpControllerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static checkUsingGet(
|
||||
echostr?: string,
|
||||
nonce?: string,
|
||||
signature?: string,
|
||||
timestamp?: string,
|
||||
): CancelablePromise<string> {
|
||||
echostr?: string,
|
||||
nonce?: string,
|
||||
signature?: string,
|
||||
timestamp?: string,
|
||||
): CancelablePromise<string> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/',
|
||||
@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 */
|
@ -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 */
|
@ -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 */
|
@ -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 => {
|
||||
@ -85,9 +85,9 @@ export class CancelablePromise<T> implements Promise<T> {
|
||||
});
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
|
||||
public then<TResult1 = T, TResult2 = never>(
|
||||
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
||||
@ -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 {
|
@ -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',
|
@ -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
70
generateds/index.ts
Normal 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";
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user