diff --git a/README.md b/README.md index 28012f4..3b16427 100644 --- a/README.md +++ b/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) diff --git a/generated/core/ApiError.ts b/generated/core/ApiError.ts index d6b8fcc..ec7b16a 100644 --- a/generated/core/ApiError.ts +++ b/generated/core/ApiError.ts @@ -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 */ diff --git a/generated/core/ApiRequestOptions.ts b/generated/core/ApiRequestOptions.ts index c19adcc..93143c3 100644 --- a/generated/core/ApiRequestOptions.ts +++ b/generated/core/ApiRequestOptions.ts @@ -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 */ diff --git a/generated/core/ApiResult.ts b/generated/core/ApiResult.ts index ad8fef2..ee1126e 100644 --- a/generated/core/ApiResult.ts +++ b/generated/core/ApiResult.ts @@ -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 */ diff --git a/generated/core/CancelablePromise.ts b/generated/core/CancelablePromise.ts index 55fef85..d70de92 100644 --- a/generated/core/CancelablePromise.ts +++ b/generated/core/CancelablePromise.ts @@ -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 implements Promise { 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 implements Promise { 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 implements Promise { }); } - get [Symbol.toStringTag]() { - return "Cancellable Promise"; - } + get [Symbol.toStringTag]() { + return "Cancellable Promise"; + } public then( onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, @@ -122,7 +122,7 @@ export class CancelablePromise implements Promise { } } this.#cancelHandlers.length = 0; - this.#reject?.(new CancelError('Request aborted')); + if (this.#reject) this.#reject(new CancelError('Request aborted')); } public get isCancelled(): boolean { diff --git a/generated/core/OpenAPI.ts b/generated/core/OpenAPI.ts index ab35ce4..9f5965d 100644 --- a/generated/core/OpenAPI.ts +++ b/generated/core/OpenAPI.ts @@ -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', diff --git a/generated/core/request.ts b/generated/core/request.ts index 1142d43..1dc6fef 100644 --- a/generated/core/request.ts +++ b/generated/core/request.ts @@ -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 (options: ApiRequestOptions, resolver?: T | Reso }; export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise> => { - 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 ( data: body ?? formData, method: options.method, withCredentials: config.WITH_CREDENTIALS, + withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false, cancelToken: source.token, }; diff --git a/generated/index.ts b/generated/index.ts index 916fb12..3766667 100644 --- a/generated/index.ts +++ b/generated/index.ts @@ -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'; diff --git a/generated/models/BaseResponse_LoginUserVO_.ts b/generated/models/BaseResponse_LoginUserVO_.ts index 9659d63..393cb83 100644 --- a/generated/models/BaseResponse_LoginUserVO_.ts +++ b/generated/models/BaseResponse_LoginUserVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_PostVO_.ts b/generated/models/BaseResponse_Page_PostVO_.ts index 658e9e7..7dc4f62 100644 --- a/generated/models/BaseResponse_Page_PostVO_.ts +++ b/generated/models/BaseResponse_Page_PostVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_QuestionSubmitVO_.ts b/generated/models/BaseResponse_Page_QuestionSubmitVO_.ts index 6c3b7f0..7154567 100644 --- a/generated/models/BaseResponse_Page_QuestionSubmitVO_.ts +++ b/generated/models/BaseResponse_Page_QuestionSubmitVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_QuestionVO_.ts b/generated/models/BaseResponse_Page_QuestionVO_.ts index 156e0f5..4d83de1 100644 --- a/generated/models/BaseResponse_Page_QuestionVO_.ts +++ b/generated/models/BaseResponse_Page_QuestionVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_Question_.ts b/generated/models/BaseResponse_Page_Question_.ts index 5dcc697..f812d74 100644 --- a/generated/models/BaseResponse_Page_Question_.ts +++ b/generated/models/BaseResponse_Page_Question_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_UserVO_.ts b/generated/models/BaseResponse_Page_UserVO_.ts index a6b562c..5bb7578 100644 --- a/generated/models/BaseResponse_Page_UserVO_.ts +++ b/generated/models/BaseResponse_Page_UserVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Page_User_.ts b/generated/models/BaseResponse_Page_User_.ts index e42254d..16e38fe 100644 --- a/generated/models/BaseResponse_Page_User_.ts +++ b/generated/models/BaseResponse_Page_User_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_PostVO_.ts b/generated/models/BaseResponse_PostVO_.ts index 2995ba6..36e9dba 100644 --- a/generated/models/BaseResponse_PostVO_.ts +++ b/generated/models/BaseResponse_PostVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_QuestionVO_.ts b/generated/models/BaseResponse_QuestionVO_.ts index 69557c8..64e38e6 100644 --- a/generated/models/BaseResponse_QuestionVO_.ts +++ b/generated/models/BaseResponse_QuestionVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_Question_.ts b/generated/models/BaseResponse_Question_.ts index 2d9c648..af2e30a 100644 --- a/generated/models/BaseResponse_Question_.ts +++ b/generated/models/BaseResponse_Question_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_UserVO_.ts b/generated/models/BaseResponse_UserVO_.ts index 620441c..9bd3538 100644 --- a/generated/models/BaseResponse_UserVO_.ts +++ b/generated/models/BaseResponse_UserVO_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_User_.ts b/generated/models/BaseResponse_User_.ts index 32b2eea..863b732 100644 --- a/generated/models/BaseResponse_User_.ts +++ b/generated/models/BaseResponse_User_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_boolean_.ts b/generated/models/BaseResponse_boolean_.ts index e677370..bef369a 100644 --- a/generated/models/BaseResponse_boolean_.ts +++ b/generated/models/BaseResponse_boolean_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_int_.ts b/generated/models/BaseResponse_int_.ts index 1dfc63a..1ccee88 100644 --- a/generated/models/BaseResponse_int_.ts +++ b/generated/models/BaseResponse_int_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_long_.ts b/generated/models/BaseResponse_long_.ts index 34936c2..651159a 100644 --- a/generated/models/BaseResponse_long_.ts +++ b/generated/models/BaseResponse_long_.ts @@ -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; }; + diff --git a/generated/models/BaseResponse_string_.ts b/generated/models/BaseResponse_string_.ts index b89c298..57b9800 100644 --- a/generated/models/BaseResponse_string_.ts +++ b/generated/models/BaseResponse_string_.ts @@ -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; }; + diff --git a/generated/models/DeleteRequest.ts b/generated/models/DeleteRequest.ts index e0c3668..f038f29 100644 --- a/generated/models/DeleteRequest.ts +++ b/generated/models/DeleteRequest.ts @@ -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; }; + diff --git a/generated/models/JudgeCase.ts b/generated/models/JudgeCase.ts index 582a707..add55e1 100644 --- a/generated/models/JudgeCase.ts +++ b/generated/models/JudgeCase.ts @@ -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; }; + diff --git a/generated/models/JudgeConfig.ts b/generated/models/JudgeConfig.ts index ff97610..5010feb 100644 --- a/generated/models/JudgeConfig.ts +++ b/generated/models/JudgeConfig.ts @@ -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; }; + diff --git a/generated/models/JudgeInfo.ts b/generated/models/JudgeInfo.ts index 4759598..9bbb39c 100644 --- a/generated/models/JudgeInfo.ts +++ b/generated/models/JudgeInfo.ts @@ -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; }; + diff --git a/generated/models/LoginUserVO.ts b/generated/models/LoginUserVO.ts index da9305c..9ecdf8c 100644 --- a/generated/models/LoginUserVO.ts +++ b/generated/models/LoginUserVO.ts @@ -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; }; + diff --git a/generated/models/OrderItem.ts b/generated/models/OrderItem.ts index 464c997..5132aba 100644 --- a/generated/models/OrderItem.ts +++ b/generated/models/OrderItem.ts @@ -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; }; + diff --git a/generated/models/Page_PostVO_.ts b/generated/models/Page_PostVO_.ts index a0abdfa..31b93e9 100644 --- a/generated/models/Page_PostVO_.ts +++ b/generated/models/Page_PostVO_.ts @@ -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; }; + diff --git a/generated/models/Page_QuestionSubmitVO_.ts b/generated/models/Page_QuestionSubmitVO_.ts index 8998b60..182d511 100644 --- a/generated/models/Page_QuestionSubmitVO_.ts +++ b/generated/models/Page_QuestionSubmitVO_.ts @@ -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; }; + diff --git a/generated/models/Page_QuestionVO_.ts b/generated/models/Page_QuestionVO_.ts index 9e25a0a..78b645f 100644 --- a/generated/models/Page_QuestionVO_.ts +++ b/generated/models/Page_QuestionVO_.ts @@ -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; }; + diff --git a/generated/models/Page_Question_.ts b/generated/models/Page_Question_.ts index 97a8849..1b06cba 100644 --- a/generated/models/Page_Question_.ts +++ b/generated/models/Page_Question_.ts @@ -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; }; + diff --git a/generated/models/Page_UserVO_.ts b/generated/models/Page_UserVO_.ts index fad19ee..84732e0 100644 --- a/generated/models/Page_UserVO_.ts +++ b/generated/models/Page_UserVO_.ts @@ -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; }; + diff --git a/generated/models/Page_User_.ts b/generated/models/Page_User_.ts index 9e6e0f5..6f8a593 100644 --- a/generated/models/Page_User_.ts +++ b/generated/models/Page_User_.ts @@ -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; }; + diff --git a/generated/models/PostAddRequest.ts b/generated/models/PostAddRequest.ts index 509da50..85f6844 100644 --- a/generated/models/PostAddRequest.ts +++ b/generated/models/PostAddRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/PostEditRequest.ts b/generated/models/PostEditRequest.ts index 873934f..0f26b25 100644 --- a/generated/models/PostEditRequest.ts +++ b/generated/models/PostEditRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/PostFavourAddRequest.ts b/generated/models/PostFavourAddRequest.ts index fbe3b93..bd750e3 100644 --- a/generated/models/PostFavourAddRequest.ts +++ b/generated/models/PostFavourAddRequest.ts @@ -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; }; + diff --git a/generated/models/PostFavourQueryRequest.ts b/generated/models/PostFavourQueryRequest.ts index 3f66929..793031d 100644 --- a/generated/models/PostFavourQueryRequest.ts +++ b/generated/models/PostFavourQueryRequest.ts @@ -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; }; + diff --git a/generated/models/PostQueryRequest.ts b/generated/models/PostQueryRequest.ts index a379f91..dcbf426 100644 --- a/generated/models/PostQueryRequest.ts +++ b/generated/models/PostQueryRequest.ts @@ -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; }; + diff --git a/generated/models/PostThumbAddRequest.ts b/generated/models/PostThumbAddRequest.ts index 4221e2f..f3d2fb8 100644 --- a/generated/models/PostThumbAddRequest.ts +++ b/generated/models/PostThumbAddRequest.ts @@ -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; }; + diff --git a/generated/models/PostUpdateRequest.ts b/generated/models/PostUpdateRequest.ts index 328589e..745e554 100644 --- a/generated/models/PostUpdateRequest.ts +++ b/generated/models/PostUpdateRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/PostVO.ts b/generated/models/PostVO.ts index 839ca42..88768cc 100644 --- a/generated/models/PostVO.ts +++ b/generated/models/PostVO.ts @@ -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; }; + diff --git a/generated/models/Question.ts b/generated/models/Question.ts index 91cff57..9e86dd2 100644 --- a/generated/models/Question.ts +++ b/generated/models/Question.ts @@ -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; }; + diff --git a/generated/models/QuestionAddRequest.ts b/generated/models/QuestionAddRequest.ts index 315f9b8..116be29 100644 --- a/generated/models/QuestionAddRequest.ts +++ b/generated/models/QuestionAddRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/QuestionEditRequest.ts b/generated/models/QuestionEditRequest.ts index 7dd61f1..0802adc 100644 --- a/generated/models/QuestionEditRequest.ts +++ b/generated/models/QuestionEditRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/QuestionQueryRequest.ts b/generated/models/QuestionQueryRequest.ts index e4bfa7f..1d1db3f 100644 --- a/generated/models/QuestionQueryRequest.ts +++ b/generated/models/QuestionQueryRequest.ts @@ -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; }; + diff --git a/generated/models/QuestionSubmitAddRequest.ts b/generated/models/QuestionSubmitAddRequest.ts index f7e5f03..d049842 100644 --- a/generated/models/QuestionSubmitAddRequest.ts +++ b/generated/models/QuestionSubmitAddRequest.ts @@ -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; }; + diff --git a/generated/models/QuestionSubmitQueryRequest.ts b/generated/models/QuestionSubmitQueryRequest.ts index 6d55ccb..3746a83 100644 --- a/generated/models/QuestionSubmitQueryRequest.ts +++ b/generated/models/QuestionSubmitQueryRequest.ts @@ -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; }; + diff --git a/generated/models/QuestionSubmitVO.ts b/generated/models/QuestionSubmitVO.ts index 4d74604..76d2274 100644 --- a/generated/models/QuestionSubmitVO.ts +++ b/generated/models/QuestionSubmitVO.ts @@ -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; }; + diff --git a/generated/models/QuestionUpdateRequest.ts b/generated/models/QuestionUpdateRequest.ts index b26a6a5..af8b9ce 100644 --- a/generated/models/QuestionUpdateRequest.ts +++ b/generated/models/QuestionUpdateRequest.ts @@ -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; title?: string; }; + diff --git a/generated/models/QuestionVO.ts b/generated/models/QuestionVO.ts index 95f9871..f4e256c 100644 --- a/generated/models/QuestionVO.ts +++ b/generated/models/QuestionVO.ts @@ -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; }; + diff --git a/generated/models/User.ts b/generated/models/User.ts index 6c4355e..c083945 100644 --- a/generated/models/User.ts +++ b/generated/models/User.ts @@ -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; }; + diff --git a/generated/models/UserAddRequest.ts b/generated/models/UserAddRequest.ts index 274913a..169e4d1 100644 --- a/generated/models/UserAddRequest.ts +++ b/generated/models/UserAddRequest.ts @@ -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; }; + diff --git a/generated/models/UserLoginRequest.ts b/generated/models/UserLoginRequest.ts index 188224b..8053088 100644 --- a/generated/models/UserLoginRequest.ts +++ b/generated/models/UserLoginRequest.ts @@ -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; }; + diff --git a/generated/models/UserQueryRequest.ts b/generated/models/UserQueryRequest.ts index cb28f54..1fd64a5 100644 --- a/generated/models/UserQueryRequest.ts +++ b/generated/models/UserQueryRequest.ts @@ -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; }; + diff --git a/generated/models/UserRegisterRequest.ts b/generated/models/UserRegisterRequest.ts index 1e1cb38..81e5752 100644 --- a/generated/models/UserRegisterRequest.ts +++ b/generated/models/UserRegisterRequest.ts @@ -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; }; + diff --git a/generated/models/UserUpdateMyRequest.ts b/generated/models/UserUpdateMyRequest.ts index ddce74c..ea8f337 100644 --- a/generated/models/UserUpdateMyRequest.ts +++ b/generated/models/UserUpdateMyRequest.ts @@ -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; }; + diff --git a/generated/models/UserUpdateRequest.ts b/generated/models/UserUpdateRequest.ts index f1bc51b..2163ba4 100644 --- a/generated/models/UserUpdateRequest.ts +++ b/generated/models/UserUpdateRequest.ts @@ -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; }; + diff --git a/generated/models/UserVO.ts b/generated/models/UserVO.ts index 3c76ac0..502b10a 100644 --- a/generated/models/UserVO.ts +++ b/generated/models/UserVO.ts @@ -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; }; + diff --git a/generated/services/FileControllerService.ts b/generated/services/FileControllerService.ts index 200b463..6fffb0c 100644 --- a/generated/services/FileControllerService.ts +++ b/generated/services/FileControllerService.ts @@ -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 { + biz?: string, + file?: Blob, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/file/upload', @@ -38,5 +35,4 @@ file?: Blob, }, }); } - } diff --git a/generated/services/PostControllerService.ts b/generated/services/PostControllerService.ts index 1e75afa..dec5c8b 100644 --- a/generated/services/PostControllerService.ts +++ b/generated/services/PostControllerService.ts @@ -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 { + postAddRequest: PostAddRequest, + ): CancelablePromise { 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 { + deleteRequest: DeleteRequest, + ): CancelablePromise { 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 { + postEditRequest: PostEditRequest, + ): CancelablePromise { 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 { + id?: number, + ): CancelablePromise { 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 { + postQueryRequest: PostQueryRequest, + ): CancelablePromise { 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 { + postQueryRequest: PostQueryRequest, + ): CancelablePromise { 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 { + postQueryRequest: PostQueryRequest, + ): CancelablePromise { 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 { + postUpdateRequest: PostUpdateRequest, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/update', @@ -194,5 +184,4 @@ postUpdateRequest: PostUpdateRequest, }, }); } - } diff --git a/generated/services/PostFavourControllerService.ts b/generated/services/PostFavourControllerService.ts index 2a6ba12..9ed981d 100644 --- a/generated/services/PostFavourControllerService.ts +++ b/generated/services/PostFavourControllerService.ts @@ -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 { + postFavourAddRequest: PostFavourAddRequest, + ): CancelablePromise { 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 { + postFavourQueryRequest: PostFavourQueryRequest, + ): CancelablePromise { 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 { + postQueryRequest: PostQueryRequest, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_favour/my/list/page', @@ -79,5 +74,4 @@ postQueryRequest: PostQueryRequest, }, }); } - } diff --git a/generated/services/PostThumbControllerService.ts b/generated/services/PostThumbControllerService.ts index c2f5515..54bbee2 100644 --- a/generated/services/PostThumbControllerService.ts +++ b/generated/services/PostThumbControllerService.ts @@ -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 { + postThumbAddRequest: PostThumbAddRequest, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_thumb/', @@ -32,5 +29,4 @@ postThumbAddRequest: PostThumbAddRequest, }, }); } - } diff --git a/generated/services/QuestionControllerService.ts b/generated/services/QuestionControllerService.ts index e52857c..5c8957c 100644 --- a/generated/services/QuestionControllerService.ts +++ b/generated/services/QuestionControllerService.ts @@ -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 { + questionAddRequest: QuestionAddRequest, + ): CancelablePromise { 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 { + deleteRequest: DeleteRequest, + ): CancelablePromise { 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 { + questionEditRequest: QuestionEditRequest, + ): CancelablePromise { 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 { + id?: number, + ): CancelablePromise { 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 { + id?: number, + ): CancelablePromise { 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 { + questionQueryRequest: QuestionQueryRequest, + ): CancelablePromise { 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 { + questionQueryRequest: QuestionQueryRequest, + ): CancelablePromise { 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 { + questionQueryRequest: QuestionQueryRequest, + ): CancelablePromise { 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 { + questionSubmitAddRequest: QuestionSubmitAddRequest, + ): CancelablePromise { 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 { + questionSubmitQueryRequest: QuestionSubmitQueryRequest, + ): CancelablePromise { 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 { + questionUpdateRequest: QuestionUpdateRequest, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/update', @@ -266,5 +253,4 @@ questionUpdateRequest: QuestionUpdateRequest, }, }); } - } diff --git a/generated/services/UserControllerService.ts b/generated/services/UserControllerService.ts index 74c3056..44103f0 100644 --- a/generated/services/UserControllerService.ts +++ b/generated/services/UserControllerService.ts @@ -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 { + userAddRequest: UserAddRequest, + ): CancelablePromise { 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 { + deleteRequest: DeleteRequest, + ): CancelablePromise { 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 { + id?: number, + ): CancelablePromise { 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 { + id?: number, + ): CancelablePromise { 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 { + userQueryRequest: UserQueryRequest, + ): CancelablePromise { 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 { + userQueryRequest: UserQueryRequest, + ): CancelablePromise { 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 { + userLoginRequest: UserLoginRequest, + ): CancelablePromise { 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 { + code: string, + ): CancelablePromise { 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 { + userRegisterRequest: UserRegisterRequest, + ): CancelablePromise { 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 { + userUpdateRequest: UserUpdateRequest, + ): CancelablePromise { 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 { + userUpdateMyRequest: UserUpdateMyRequest, + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/update/my', @@ -302,5 +287,4 @@ userUpdateMyRequest: UserUpdateMyRequest, }, }); } - } diff --git a/generated/services/WxMpControllerService.ts b/generated/services/WxMpControllerService.ts index 3725566..c06e790 100644 --- a/generated/services/WxMpControllerService.ts +++ b/generated/services/WxMpControllerService.ts @@ -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 { + echostr?: string, + nonce?: string, + signature?: string, + timestamp?: string, + ): CancelablePromise { 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, }, }); } - } diff --git a/generatedss/core/ApiError.ts b/generateds/core/ApiError.ts similarity index 92% rename from generatedss/core/ApiError.ts rename to generateds/core/ApiError.ts index ec7b16a..d6b8fcc 100644 --- a/generatedss/core/ApiError.ts +++ b/generateds/core/ApiError.ts @@ -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 */ diff --git a/generatedss/core/ApiRequestOptions.ts b/generateds/core/ApiRequestOptions.ts similarity index 90% rename from generatedss/core/ApiRequestOptions.ts rename to generateds/core/ApiRequestOptions.ts index 93143c3..c19adcc 100644 --- a/generatedss/core/ApiRequestOptions.ts +++ b/generateds/core/ApiRequestOptions.ts @@ -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 */ diff --git a/generatedss/core/ApiResult.ts b/generateds/core/ApiResult.ts similarity index 78% rename from generatedss/core/ApiResult.ts rename to generateds/core/ApiResult.ts index ee1126e..ad8fef2 100644 --- a/generatedss/core/ApiResult.ts +++ b/generateds/core/ApiResult.ts @@ -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 */ diff --git a/generatedss/core/CancelablePromise.ts b/generateds/core/CancelablePromise.ts similarity index 91% rename from generatedss/core/CancelablePromise.ts rename to generateds/core/CancelablePromise.ts index d70de92..55fef85 100644 --- a/generatedss/core/CancelablePromise.ts +++ b/generateds/core/CancelablePromise.ts @@ -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 implements Promise { 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 implements Promise { 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 implements Promise { }); } - get [Symbol.toStringTag]() { - return "Cancellable Promise"; - } + get [Symbol.toStringTag]() { + return "Cancellable Promise"; + } public then( onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, @@ -122,7 +122,7 @@ export class CancelablePromise implements Promise { } } this.#cancelHandlers.length = 0; - if (this.#reject) this.#reject(new CancelError('Request aborted')); + this.#reject?.(new CancelError('Request aborted')); } public get isCancelled(): boolean { diff --git a/generatedss/core/OpenAPI.ts b/generateds/core/OpenAPI.ts similarity index 90% rename from generatedss/core/OpenAPI.ts rename to generateds/core/OpenAPI.ts index 9f5965d..ab35ce4 100644 --- a/generatedss/core/OpenAPI.ts +++ b/generateds/core/OpenAPI.ts @@ -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', diff --git a/generatedss/core/request.ts b/generateds/core/request.ts similarity index 95% rename from generatedss/core/request.ts rename to generateds/core/request.ts index 1dc6fef..1142d43 100644 --- a/generatedss/core/request.ts +++ b/generateds/core/request.ts @@ -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 (options: ApiRequestOptions, resolver?: T | Reso }; export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise> => { - 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 ( data: body ?? formData, method: options.method, withCredentials: config.WITH_CREDENTIALS, - withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false, cancelToken: source.token, }; diff --git a/generateds/index.ts b/generateds/index.ts new file mode 100644 index 0000000..916fb12 --- /dev/null +++ b/generateds/index.ts @@ -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"; diff --git a/generatedss/models/BaseResponse_LoginUserVO_.ts b/generateds/models/BaseResponse_LoginUserVO_.ts similarity index 78% rename from generatedss/models/BaseResponse_LoginUserVO_.ts rename to generateds/models/BaseResponse_LoginUserVO_.ts index 393cb83..9659d63 100644 --- a/generatedss/models/BaseResponse_LoginUserVO_.ts +++ b/generateds/models/BaseResponse_LoginUserVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_PostVO_.ts b/generateds/models/BaseResponse_Page_PostVO_.ts similarity index 78% rename from generatedss/models/BaseResponse_Page_PostVO_.ts rename to generateds/models/BaseResponse_Page_PostVO_.ts index 7dc4f62..658e9e7 100644 --- a/generatedss/models/BaseResponse_Page_PostVO_.ts +++ b/generateds/models/BaseResponse_Page_PostVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_QuestionSubmitVO_.ts b/generateds/models/BaseResponse_Page_QuestionSubmitVO_.ts similarity index 81% rename from generatedss/models/BaseResponse_Page_QuestionSubmitVO_.ts rename to generateds/models/BaseResponse_Page_QuestionSubmitVO_.ts index 7154567..6c3b7f0 100644 --- a/generatedss/models/BaseResponse_Page_QuestionSubmitVO_.ts +++ b/generateds/models/BaseResponse_Page_QuestionSubmitVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_QuestionVO_.ts b/generateds/models/BaseResponse_Page_QuestionVO_.ts similarity index 79% rename from generatedss/models/BaseResponse_Page_QuestionVO_.ts rename to generateds/models/BaseResponse_Page_QuestionVO_.ts index 4d83de1..156e0f5 100644 --- a/generatedss/models/BaseResponse_Page_QuestionVO_.ts +++ b/generateds/models/BaseResponse_Page_QuestionVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_Question_.ts b/generateds/models/BaseResponse_Page_Question_.ts similarity index 79% rename from generatedss/models/BaseResponse_Page_Question_.ts rename to generateds/models/BaseResponse_Page_Question_.ts index f812d74..5dcc697 100644 --- a/generatedss/models/BaseResponse_Page_Question_.ts +++ b/generateds/models/BaseResponse_Page_Question_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_UserVO_.ts b/generateds/models/BaseResponse_Page_UserVO_.ts similarity index 78% rename from generatedss/models/BaseResponse_Page_UserVO_.ts rename to generateds/models/BaseResponse_Page_UserVO_.ts index 5bb7578..a6b562c 100644 --- a/generatedss/models/BaseResponse_Page_UserVO_.ts +++ b/generateds/models/BaseResponse_Page_UserVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Page_User_.ts b/generateds/models/BaseResponse_Page_User_.ts similarity index 77% rename from generatedss/models/BaseResponse_Page_User_.ts rename to generateds/models/BaseResponse_Page_User_.ts index 16e38fe..e42254d 100644 --- a/generatedss/models/BaseResponse_Page_User_.ts +++ b/generateds/models/BaseResponse_Page_User_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_PostVO_.ts b/generateds/models/BaseResponse_PostVO_.ts similarity index 76% rename from generatedss/models/BaseResponse_PostVO_.ts rename to generateds/models/BaseResponse_PostVO_.ts index 36e9dba..2995ba6 100644 --- a/generatedss/models/BaseResponse_PostVO_.ts +++ b/generateds/models/BaseResponse_PostVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_QuestionVO_.ts b/generateds/models/BaseResponse_QuestionVO_.ts similarity index 77% rename from generatedss/models/BaseResponse_QuestionVO_.ts rename to generateds/models/BaseResponse_QuestionVO_.ts index 64e38e6..69557c8 100644 --- a/generatedss/models/BaseResponse_QuestionVO_.ts +++ b/generateds/models/BaseResponse_QuestionVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_Question_.ts b/generateds/models/BaseResponse_Question_.ts similarity index 77% rename from generatedss/models/BaseResponse_Question_.ts rename to generateds/models/BaseResponse_Question_.ts index af2e30a..2d9c648 100644 --- a/generatedss/models/BaseResponse_Question_.ts +++ b/generateds/models/BaseResponse_Question_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_UserVO_.ts b/generateds/models/BaseResponse_UserVO_.ts similarity index 76% rename from generatedss/models/BaseResponse_UserVO_.ts rename to generateds/models/BaseResponse_UserVO_.ts index 9bd3538..620441c 100644 --- a/generatedss/models/BaseResponse_UserVO_.ts +++ b/generateds/models/BaseResponse_UserVO_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_User_.ts b/generateds/models/BaseResponse_User_.ts similarity index 75% rename from generatedss/models/BaseResponse_User_.ts rename to generateds/models/BaseResponse_User_.ts index 863b732..32b2eea 100644 --- a/generatedss/models/BaseResponse_User_.ts +++ b/generateds/models/BaseResponse_User_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_boolean_.ts b/generateds/models/BaseResponse_boolean_.ts similarity index 72% rename from generatedss/models/BaseResponse_boolean_.ts rename to generateds/models/BaseResponse_boolean_.ts index bef369a..e677370 100644 --- a/generatedss/models/BaseResponse_boolean_.ts +++ b/generateds/models/BaseResponse_boolean_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_int_.ts b/generateds/models/BaseResponse_int_.ts similarity index 72% rename from generatedss/models/BaseResponse_int_.ts rename to generateds/models/BaseResponse_int_.ts index 1ccee88..1dfc63a 100644 --- a/generatedss/models/BaseResponse_int_.ts +++ b/generateds/models/BaseResponse_int_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_long_.ts b/generateds/models/BaseResponse_long_.ts similarity index 72% rename from generatedss/models/BaseResponse_long_.ts rename to generateds/models/BaseResponse_long_.ts index 651159a..34936c2 100644 --- a/generatedss/models/BaseResponse_long_.ts +++ b/generateds/models/BaseResponse_long_.ts @@ -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; }; - diff --git a/generatedss/models/BaseResponse_string_.ts b/generateds/models/BaseResponse_string_.ts similarity index 72% rename from generatedss/models/BaseResponse_string_.ts rename to generateds/models/BaseResponse_string_.ts index 57b9800..b89c298 100644 --- a/generatedss/models/BaseResponse_string_.ts +++ b/generateds/models/BaseResponse_string_.ts @@ -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; }; - diff --git a/generatedss/models/DeleteRequest.ts b/generateds/models/DeleteRequest.ts similarity index 65% rename from generatedss/models/DeleteRequest.ts rename to generateds/models/DeleteRequest.ts index f038f29..e0c3668 100644 --- a/generatedss/models/DeleteRequest.ts +++ b/generateds/models/DeleteRequest.ts @@ -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; }; - diff --git a/generatedss/models/JudgeCase.ts b/generateds/models/JudgeCase.ts similarity index 68% rename from generatedss/models/JudgeCase.ts rename to generateds/models/JudgeCase.ts index add55e1..582a707 100644 --- a/generatedss/models/JudgeCase.ts +++ b/generateds/models/JudgeCase.ts @@ -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; }; - diff --git a/generatedss/models/JudgeConfig.ts b/generateds/models/JudgeConfig.ts similarity index 73% rename from generatedss/models/JudgeConfig.ts rename to generateds/models/JudgeConfig.ts index 5010feb..ff97610 100644 --- a/generatedss/models/JudgeConfig.ts +++ b/generateds/models/JudgeConfig.ts @@ -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; }; - diff --git a/generatedss/models/JudgeInfo.ts b/generateds/models/JudgeInfo.ts similarity index 71% rename from generatedss/models/JudgeInfo.ts rename to generateds/models/JudgeInfo.ts index 9bbb39c..4759598 100644 --- a/generatedss/models/JudgeInfo.ts +++ b/generateds/models/JudgeInfo.ts @@ -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; }; - diff --git a/generatedss/models/LoginUserVO.ts b/generateds/models/LoginUserVO.ts similarity index 80% rename from generatedss/models/LoginUserVO.ts rename to generateds/models/LoginUserVO.ts index 9ecdf8c..da9305c 100644 --- a/generatedss/models/LoginUserVO.ts +++ b/generateds/models/LoginUserVO.ts @@ -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; }; - diff --git a/generatedss/models/OrderItem.ts b/generateds/models/OrderItem.ts similarity index 68% rename from generatedss/models/OrderItem.ts rename to generateds/models/OrderItem.ts index 5132aba..464c997 100644 --- a/generatedss/models/OrderItem.ts +++ b/generateds/models/OrderItem.ts @@ -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; }; - diff --git a/generatedss/models/Page_PostVO_.ts b/generateds/models/Page_PostVO_.ts similarity index 87% rename from generatedss/models/Page_PostVO_.ts rename to generateds/models/Page_PostVO_.ts index 31b93e9..a0abdfa 100644 --- a/generatedss/models/Page_PostVO_.ts +++ b/generateds/models/Page_PostVO_.ts @@ -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; }; - diff --git a/generatedss/models/Page_QuestionSubmitVO_.ts b/generateds/models/Page_QuestionSubmitVO_.ts similarity index 88% rename from generatedss/models/Page_QuestionSubmitVO_.ts rename to generateds/models/Page_QuestionSubmitVO_.ts index 182d511..8998b60 100644 --- a/generatedss/models/Page_QuestionSubmitVO_.ts +++ b/generateds/models/Page_QuestionSubmitVO_.ts @@ -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; }; - diff --git a/generatedss/models/Page_QuestionVO_.ts b/generateds/models/Page_QuestionVO_.ts similarity index 87% rename from generatedss/models/Page_QuestionVO_.ts rename to generateds/models/Page_QuestionVO_.ts index 78b645f..9e25a0a 100644 --- a/generatedss/models/Page_QuestionVO_.ts +++ b/generateds/models/Page_QuestionVO_.ts @@ -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; }; - diff --git a/generatedss/models/Page_Question_.ts b/generateds/models/Page_Question_.ts similarity index 87% rename from generatedss/models/Page_Question_.ts rename to generateds/models/Page_Question_.ts index 1b06cba..97a8849 100644 --- a/generatedss/models/Page_Question_.ts +++ b/generateds/models/Page_Question_.ts @@ -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 { Question } from './Question'; + export type Page_Question_ = { countId?: string; current?: number; @@ -16,4 +18,3 @@ export type Page_Question_ = { size?: number; total?: number; }; - diff --git a/generatedss/models/Page_UserVO_.ts b/generateds/models/Page_UserVO_.ts similarity index 87% rename from generatedss/models/Page_UserVO_.ts rename to generateds/models/Page_UserVO_.ts index 84732e0..fad19ee 100644 --- a/generatedss/models/Page_UserVO_.ts +++ b/generateds/models/Page_UserVO_.ts @@ -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 { UserVO } from './UserVO'; + export type Page_UserVO_ = { countId?: string; current?: number; @@ -16,4 +18,3 @@ export type Page_UserVO_ = { size?: number; total?: number; }; - diff --git a/generatedss/models/Page_User_.ts b/generateds/models/Page_User_.ts similarity index 86% rename from generatedss/models/Page_User_.ts rename to generateds/models/Page_User_.ts index 6f8a593..9e6e0f5 100644 --- a/generatedss/models/Page_User_.ts +++ b/generateds/models/Page_User_.ts @@ -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 { User } from './User'; + export type Page_User_ = { countId?: string; current?: number; @@ -16,4 +18,3 @@ export type Page_User_ = { size?: number; total?: number; }; - diff --git a/generatedss/models/PostAddRequest.ts b/generateds/models/PostAddRequest.ts similarity index 72% rename from generatedss/models/PostAddRequest.ts rename to generateds/models/PostAddRequest.ts index 85f6844..509da50 100644 --- a/generatedss/models/PostAddRequest.ts +++ b/generateds/models/PostAddRequest.ts @@ -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 PostAddRequest = { content?: string; tags?: Array; title?: string; }; - diff --git a/generatedss/models/PostEditRequest.ts b/generateds/models/PostEditRequest.ts similarity index 74% rename from generatedss/models/PostEditRequest.ts rename to generateds/models/PostEditRequest.ts index 0f26b25..873934f 100644 --- a/generatedss/models/PostEditRequest.ts +++ b/generateds/models/PostEditRequest.ts @@ -1,11 +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 */ + export type PostEditRequest = { content?: string; id?: number; tags?: Array; title?: string; }; - diff --git a/generatedss/models/PostFavourAddRequest.ts b/generateds/models/PostFavourAddRequest.ts similarity index 67% rename from generatedss/models/PostFavourAddRequest.ts rename to generateds/models/PostFavourAddRequest.ts index bd750e3..fbe3b93 100644 --- a/generatedss/models/PostFavourAddRequest.ts +++ b/generateds/models/PostFavourAddRequest.ts @@ -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 PostFavourAddRequest = { postId?: number; }; - diff --git a/generatedss/models/PostFavourQueryRequest.ts b/generateds/models/PostFavourQueryRequest.ts similarity index 83% rename from generatedss/models/PostFavourQueryRequest.ts rename to generateds/models/PostFavourQueryRequest.ts index 793031d..3f66929 100644 --- a/generatedss/models/PostFavourQueryRequest.ts +++ b/generateds/models/PostFavourQueryRequest.ts @@ -1,8 +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 */ + import type { PostQueryRequest } from './PostQueryRequest'; + export type PostFavourQueryRequest = { current?: number; pageSize?: number; @@ -11,4 +13,3 @@ export type PostFavourQueryRequest = { sortOrder?: string; userId?: number; }; - diff --git a/generatedss/models/PostQueryRequest.ts b/generateds/models/PostQueryRequest.ts similarity index 86% rename from generatedss/models/PostQueryRequest.ts rename to generateds/models/PostQueryRequest.ts index dcbf426..a379f91 100644 --- a/generatedss/models/PostQueryRequest.ts +++ b/generateds/models/PostQueryRequest.ts @@ -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 PostQueryRequest = { content?: string; current?: number; @@ -17,4 +18,3 @@ export type PostQueryRequest = { title?: string; userId?: number; }; - diff --git a/generatedss/models/PostThumbAddRequest.ts b/generateds/models/PostThumbAddRequest.ts similarity index 67% rename from generatedss/models/PostThumbAddRequest.ts rename to generateds/models/PostThumbAddRequest.ts index f3d2fb8..4221e2f 100644 --- a/generatedss/models/PostThumbAddRequest.ts +++ b/generateds/models/PostThumbAddRequest.ts @@ -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 PostThumbAddRequest = { postId?: number; }; - diff --git a/generatedss/models/PostUpdateRequest.ts b/generateds/models/PostUpdateRequest.ts similarity index 75% rename from generatedss/models/PostUpdateRequest.ts rename to generateds/models/PostUpdateRequest.ts index 745e554..328589e 100644 --- a/generatedss/models/PostUpdateRequest.ts +++ b/generateds/models/PostUpdateRequest.ts @@ -1,11 +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 */ + export type PostUpdateRequest = { content?: string; id?: number; tags?: Array; title?: string; }; - diff --git a/generatedss/models/PostVO.ts b/generateds/models/PostVO.ts similarity index 86% rename from generatedss/models/PostVO.ts rename to generateds/models/PostVO.ts index 88768cc..839ca42 100644 --- a/generatedss/models/PostVO.ts +++ b/generateds/models/PostVO.ts @@ -1,8 +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 */ + import type { UserVO } from './UserVO'; + export type PostVO = { content?: string; createTime?: string; @@ -17,4 +19,3 @@ export type PostVO = { user?: UserVO; userId?: number; }; - diff --git a/generatedss/models/Question.ts b/generateds/models/Question.ts similarity index 87% rename from generatedss/models/Question.ts rename to generateds/models/Question.ts index 9e86dd2..91cff57 100644 --- a/generatedss/models/Question.ts +++ b/generateds/models/Question.ts @@ -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 Question = { acceptedNum?: number; answer?: string; @@ -19,4 +20,3 @@ export type Question = { updateTime?: string; userId?: number; }; - diff --git a/generatedss/models/QuestionAddRequest.ts b/generateds/models/QuestionAddRequest.ts similarity index 84% rename from generatedss/models/QuestionAddRequest.ts rename to generateds/models/QuestionAddRequest.ts index 116be29..315f9b8 100644 --- a/generatedss/models/QuestionAddRequest.ts +++ b/generateds/models/QuestionAddRequest.ts @@ -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 { JudgeCase } from './JudgeCase'; import type { JudgeConfig } from './JudgeConfig'; + export type QuestionAddRequest = { answer?: string; content?: string; @@ -12,4 +14,3 @@ export type QuestionAddRequest = { tags?: Array; title?: string; }; - diff --git a/generatedss/models/QuestionEditRequest.ts b/generateds/models/QuestionEditRequest.ts similarity index 85% rename from generatedss/models/QuestionEditRequest.ts rename to generateds/models/QuestionEditRequest.ts index 0802adc..7dd61f1 100644 --- a/generatedss/models/QuestionEditRequest.ts +++ b/generateds/models/QuestionEditRequest.ts @@ -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 { JudgeCase } from './JudgeCase'; import type { JudgeConfig } from './JudgeConfig'; + export type QuestionEditRequest = { answer?: string; content?: string; @@ -13,4 +15,3 @@ export type QuestionEditRequest = { tags?: Array; title?: string; }; - diff --git a/generatedss/models/QuestionQueryRequest.ts b/generateds/models/QuestionQueryRequest.ts similarity index 83% rename from generatedss/models/QuestionQueryRequest.ts rename to generateds/models/QuestionQueryRequest.ts index 1d1db3f..e4bfa7f 100644 --- a/generatedss/models/QuestionQueryRequest.ts +++ b/generateds/models/QuestionQueryRequest.ts @@ -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 QuestionQueryRequest = { answer?: string; content?: string; @@ -14,4 +15,3 @@ export type QuestionQueryRequest = { title?: string; userId?: number; }; - diff --git a/generatedss/models/QuestionSubmitAddRequest.ts b/generateds/models/QuestionSubmitAddRequest.ts similarity index 73% rename from generatedss/models/QuestionSubmitAddRequest.ts rename to generateds/models/QuestionSubmitAddRequest.ts index d049842..f7e5f03 100644 --- a/generatedss/models/QuestionSubmitAddRequest.ts +++ b/generateds/models/QuestionSubmitAddRequest.ts @@ -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 QuestionSubmitAddRequest = { code?: string; language?: string; questionId?: number; }; - diff --git a/generatedss/models/QuestionSubmitQueryRequest.ts b/generateds/models/QuestionSubmitQueryRequest.ts similarity index 82% rename from generatedss/models/QuestionSubmitQueryRequest.ts rename to generateds/models/QuestionSubmitQueryRequest.ts index 3746a83..6d55ccb 100644 --- a/generatedss/models/QuestionSubmitQueryRequest.ts +++ b/generateds/models/QuestionSubmitQueryRequest.ts @@ -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 QuestionSubmitQueryRequest = { current?: number; language?: string; @@ -12,4 +13,3 @@ export type QuestionSubmitQueryRequest = { status?: number; userId?: number; }; - diff --git a/generatedss/models/QuestionSubmitVO.ts b/generateds/models/QuestionSubmitVO.ts similarity index 88% rename from generatedss/models/QuestionSubmitVO.ts rename to generateds/models/QuestionSubmitVO.ts index 76d2274..4d74604 100644 --- a/generatedss/models/QuestionSubmitVO.ts +++ b/generateds/models/QuestionSubmitVO.ts @@ -1,10 +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 { JudgeInfo } from './JudgeInfo'; import type { QuestionVO } from './QuestionVO'; import type { UserVO } from './UserVO'; + export type QuestionSubmitVO = { code?: string; createTime?: string; @@ -18,4 +20,3 @@ export type QuestionSubmitVO = { userId?: number; userVO?: UserVO; }; - diff --git a/generatedss/models/QuestionUpdateRequest.ts b/generateds/models/QuestionUpdateRequest.ts similarity index 85% rename from generatedss/models/QuestionUpdateRequest.ts rename to generateds/models/QuestionUpdateRequest.ts index af8b9ce..b26a6a5 100644 --- a/generatedss/models/QuestionUpdateRequest.ts +++ b/generateds/models/QuestionUpdateRequest.ts @@ -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 { JudgeCase } from './JudgeCase'; import type { JudgeConfig } from './JudgeConfig'; + export type QuestionUpdateRequest = { answer?: string; content?: string; @@ -13,4 +15,3 @@ export type QuestionUpdateRequest = { tags?: Array; title?: string; }; - diff --git a/generatedss/models/QuestionVO.ts b/generateds/models/QuestionVO.ts similarity index 88% rename from generatedss/models/QuestionVO.ts rename to generateds/models/QuestionVO.ts index f4e256c..95f9871 100644 --- a/generatedss/models/QuestionVO.ts +++ b/generateds/models/QuestionVO.ts @@ -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 { JudgeConfig } from './JudgeConfig'; import type { UserVO } from './UserVO'; + export type QuestionVO = { acceptedNum?: number; content?: string; @@ -19,4 +21,3 @@ export type QuestionVO = { userId?: number; userVO?: UserVO; }; - diff --git a/generatedss/models/User.ts b/generateds/models/User.ts similarity index 85% rename from generatedss/models/User.ts rename to generateds/models/User.ts index c083945..6c4355e 100644 --- a/generatedss/models/User.ts +++ b/generateds/models/User.ts @@ -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 User = { createTime?: string; id?: number; @@ -16,4 +17,3 @@ export type User = { userProfile?: string; userRole?: string; }; - diff --git a/generatedss/models/UserAddRequest.ts b/generateds/models/UserAddRequest.ts similarity index 75% rename from generatedss/models/UserAddRequest.ts rename to generateds/models/UserAddRequest.ts index 169e4d1..274913a 100644 --- a/generatedss/models/UserAddRequest.ts +++ b/generateds/models/UserAddRequest.ts @@ -1,11 +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 */ + export type UserAddRequest = { userAccount?: string; userAvatar?: string; userName?: string; userRole?: string; }; - diff --git a/generatedss/models/UserLoginRequest.ts b/generateds/models/UserLoginRequest.ts similarity index 71% rename from generatedss/models/UserLoginRequest.ts rename to generateds/models/UserLoginRequest.ts index 8053088..188224b 100644 --- a/generatedss/models/UserLoginRequest.ts +++ b/generateds/models/UserLoginRequest.ts @@ -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 UserLoginRequest = { userAccount?: string; userPassword?: string; }; - diff --git a/generatedss/models/UserQueryRequest.ts b/generateds/models/UserQueryRequest.ts similarity index 83% rename from generatedss/models/UserQueryRequest.ts rename to generateds/models/UserQueryRequest.ts index 1fd64a5..cb28f54 100644 --- a/generatedss/models/UserQueryRequest.ts +++ b/generateds/models/UserQueryRequest.ts @@ -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 UserQueryRequest = { current?: number; id?: number; @@ -14,4 +15,3 @@ export type UserQueryRequest = { userProfile?: string; userRole?: string; }; - diff --git a/generatedss/models/UserRegisterRequest.ts b/generateds/models/UserRegisterRequest.ts similarity index 74% rename from generatedss/models/UserRegisterRequest.ts rename to generateds/models/UserRegisterRequest.ts index 81e5752..1e1cb38 100644 --- a/generatedss/models/UserRegisterRequest.ts +++ b/generateds/models/UserRegisterRequest.ts @@ -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 UserRegisterRequest = { checkPassword?: string; userAccount?: string; userPassword?: string; }; - diff --git a/generatedss/models/UserUpdateMyRequest.ts b/generateds/models/UserUpdateMyRequest.ts similarity index 74% rename from generatedss/models/UserUpdateMyRequest.ts rename to generateds/models/UserUpdateMyRequest.ts index ea8f337..ddce74c 100644 --- a/generatedss/models/UserUpdateMyRequest.ts +++ b/generateds/models/UserUpdateMyRequest.ts @@ -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 UserUpdateMyRequest = { userAvatar?: string; userName?: string; userProfile?: string; }; - diff --git a/generatedss/models/UserUpdateRequest.ts b/generateds/models/UserUpdateRequest.ts similarity index 77% rename from generatedss/models/UserUpdateRequest.ts rename to generateds/models/UserUpdateRequest.ts index 2163ba4..f1bc51b 100644 --- a/generatedss/models/UserUpdateRequest.ts +++ b/generateds/models/UserUpdateRequest.ts @@ -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 UserUpdateRequest = { id?: number; userAvatar?: string; @@ -9,4 +10,3 @@ export type UserUpdateRequest = { userProfile?: string; userRole?: string; }; - diff --git a/generatedss/models/UserVO.ts b/generateds/models/UserVO.ts similarity index 78% rename from generatedss/models/UserVO.ts rename to generateds/models/UserVO.ts index 502b10a..3c76ac0 100644 --- a/generatedss/models/UserVO.ts +++ b/generateds/models/UserVO.ts @@ -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 UserVO = { createTime?: string; id?: number; @@ -10,4 +11,3 @@ export type UserVO = { userProfile?: string; userRole?: string; }; - diff --git a/generatedss/services/FileControllerService.ts b/generateds/services/FileControllerService.ts similarity index 82% rename from generatedss/services/FileControllerService.ts rename to generateds/services/FileControllerService.ts index 6fffb0c..200b463 100644 --- a/generatedss/services/FileControllerService.ts +++ b/generateds/services/FileControllerService.ts @@ -1,24 +1,27 @@ -/* 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 { 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 { +biz?: string, +file?: Blob, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/file/upload', @@ -35,4 +38,5 @@ export class FileControllerService { }, }); } + } diff --git a/generatedss/services/PostControllerService.ts b/generateds/services/PostControllerService.ts similarity index 85% rename from generatedss/services/PostControllerService.ts rename to generateds/services/PostControllerService.ts index dec5c8b..1e75afa 100644 --- a/generatedss/services/PostControllerService.ts +++ b/generateds/services/PostControllerService.ts @@ -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 */ @@ -11,10 +11,13 @@ 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 @@ -23,8 +26,8 @@ export class PostControllerService { * @throws ApiError */ public static addPostUsingPost( - postAddRequest: PostAddRequest, - ): CancelablePromise { +postAddRequest: PostAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/add', @@ -36,6 +39,7 @@ export class PostControllerService { }, }); } + /** * deletePost * @param deleteRequest deleteRequest @@ -44,8 +48,8 @@ export class PostControllerService { * @throws ApiError */ public static deletePostUsingPost( - deleteRequest: DeleteRequest, - ): CancelablePromise { +deleteRequest: DeleteRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/delete', @@ -57,6 +61,7 @@ export class PostControllerService { }, }); } + /** * editPost * @param postEditRequest postEditRequest @@ -65,8 +70,8 @@ export class PostControllerService { * @throws ApiError */ public static editPostUsingPost( - postEditRequest: PostEditRequest, - ): CancelablePromise { +postEditRequest: PostEditRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/edit', @@ -78,6 +83,7 @@ export class PostControllerService { }, }); } + /** * getPostVOById * @param id id @@ -85,8 +91,8 @@ export class PostControllerService { * @throws ApiError */ public static getPostVoByIdUsingGet( - id?: number, - ): CancelablePromise { +id?: number, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/post/get/vo', @@ -100,6 +106,7 @@ export class PostControllerService { }, }); } + /** * listPostVOByPage * @param postQueryRequest postQueryRequest @@ -108,8 +115,8 @@ export class PostControllerService { * @throws ApiError */ public static listPostVoByPageUsingPost( - postQueryRequest: PostQueryRequest, - ): CancelablePromise { +postQueryRequest: PostQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/list/page/vo', @@ -121,6 +128,7 @@ export class PostControllerService { }, }); } + /** * listMyPostVOByPage * @param postQueryRequest postQueryRequest @@ -129,8 +137,8 @@ export class PostControllerService { * @throws ApiError */ public static listMyPostVoByPageUsingPost( - postQueryRequest: PostQueryRequest, - ): CancelablePromise { +postQueryRequest: PostQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/my/list/page/vo', @@ -142,6 +150,7 @@ export class PostControllerService { }, }); } + /** * searchPostVOByPage * @param postQueryRequest postQueryRequest @@ -150,8 +159,8 @@ export class PostControllerService { * @throws ApiError */ public static searchPostVoByPageUsingPost( - postQueryRequest: PostQueryRequest, - ): CancelablePromise { +postQueryRequest: PostQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/search/page/vo', @@ -163,6 +172,7 @@ export class PostControllerService { }, }); } + /** * updatePost * @param postUpdateRequest postUpdateRequest @@ -171,8 +181,8 @@ export class PostControllerService { * @throws ApiError */ public static updatePostUsingPost( - postUpdateRequest: PostUpdateRequest, - ): CancelablePromise { +postUpdateRequest: PostUpdateRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post/update', @@ -184,4 +194,5 @@ export class PostControllerService { }, }); } + } diff --git a/generatedss/services/PostFavourControllerService.ts b/generateds/services/PostFavourControllerService.ts similarity index 85% rename from generatedss/services/PostFavourControllerService.ts rename to generateds/services/PostFavourControllerService.ts index 9ed981d..2a6ba12 100644 --- a/generatedss/services/PostFavourControllerService.ts +++ b/generateds/services/PostFavourControllerService.ts @@ -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 */ @@ -7,10 +7,13 @@ 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 @@ -19,8 +22,8 @@ export class PostFavourControllerService { * @throws ApiError */ public static doPostFavourUsingPost( - postFavourAddRequest: PostFavourAddRequest, - ): CancelablePromise { +postFavourAddRequest: PostFavourAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_favour/', @@ -32,6 +35,7 @@ export class PostFavourControllerService { }, }); } + /** * listFavourPostByPage * @param postFavourQueryRequest postFavourQueryRequest @@ -40,8 +44,8 @@ export class PostFavourControllerService { * @throws ApiError */ public static listFavourPostByPageUsingPost( - postFavourQueryRequest: PostFavourQueryRequest, - ): CancelablePromise { +postFavourQueryRequest: PostFavourQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_favour/list/page', @@ -53,6 +57,7 @@ export class PostFavourControllerService { }, }); } + /** * listMyFavourPostByPage * @param postQueryRequest postQueryRequest @@ -61,8 +66,8 @@ export class PostFavourControllerService { * @throws ApiError */ public static listMyFavourPostByPageUsingPost( - postQueryRequest: PostQueryRequest, - ): CancelablePromise { +postQueryRequest: PostQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_favour/my/list/page', @@ -74,4 +79,5 @@ export class PostFavourControllerService { }, }); } + } diff --git a/generatedss/services/PostThumbControllerService.ts b/generateds/services/PostThumbControllerService.ts similarity index 84% rename from generatedss/services/PostThumbControllerService.ts rename to generateds/services/PostThumbControllerService.ts index 54bbee2..c2f5515 100644 --- a/generatedss/services/PostThumbControllerService.ts +++ b/generateds/services/PostThumbControllerService.ts @@ -1,13 +1,16 @@ -/* 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 { 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 @@ -16,8 +19,8 @@ export class PostThumbControllerService { * @throws ApiError */ public static doThumbUsingPost( - postThumbAddRequest: PostThumbAddRequest, - ): CancelablePromise { +postThumbAddRequest: PostThumbAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/post_thumb/', @@ -29,4 +32,5 @@ export class PostThumbControllerService { }, }); } + } diff --git a/generatedss/services/QuestionControllerService.ts b/generateds/services/QuestionControllerService.ts similarity index 85% rename from generatedss/services/QuestionControllerService.ts rename to generateds/services/QuestionControllerService.ts index 5c8957c..e52857c 100644 --- a/generatedss/services/QuestionControllerService.ts +++ b/generateds/services/QuestionControllerService.ts @@ -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 */ @@ -16,10 +16,13 @@ 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 @@ -28,8 +31,8 @@ export class QuestionControllerService { * @throws ApiError */ public static addQuestionUsingPost( - questionAddRequest: QuestionAddRequest, - ): CancelablePromise { +questionAddRequest: QuestionAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/add', @@ -41,6 +44,7 @@ export class QuestionControllerService { }, }); } + /** * deleteQuestion * @param deleteRequest deleteRequest @@ -49,8 +53,8 @@ export class QuestionControllerService { * @throws ApiError */ public static deleteQuestionUsingPost( - deleteRequest: DeleteRequest, - ): CancelablePromise { +deleteRequest: DeleteRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/delete', @@ -62,6 +66,7 @@ export class QuestionControllerService { }, }); } + /** * editQuestion * @param questionEditRequest questionEditRequest @@ -70,8 +75,8 @@ export class QuestionControllerService { * @throws ApiError */ public static editQuestionUsingPost( - questionEditRequest: QuestionEditRequest, - ): CancelablePromise { +questionEditRequest: QuestionEditRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/edit', @@ -83,6 +88,7 @@ export class QuestionControllerService { }, }); } + /** * getQuestionById * @param id id @@ -90,8 +96,8 @@ export class QuestionControllerService { * @throws ApiError */ public static getQuestionByIdUsingGet( - id?: number, - ): CancelablePromise { +id?: number, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/question/get', @@ -105,6 +111,7 @@ export class QuestionControllerService { }, }); } + /** * getQuestionVOById * @param id id @@ -112,8 +119,8 @@ export class QuestionControllerService { * @throws ApiError */ public static getQuestionVoByIdUsingGet( - id?: number, - ): CancelablePromise { +id?: number, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/question/get/vo', @@ -127,6 +134,7 @@ export class QuestionControllerService { }, }); } + /** * listQuestionByPage * @param questionQueryRequest questionQueryRequest @@ -135,8 +143,8 @@ export class QuestionControllerService { * @throws ApiError */ public static listQuestionByPageUsingPost( - questionQueryRequest: QuestionQueryRequest, - ): CancelablePromise { +questionQueryRequest: QuestionQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/list/page', @@ -148,6 +156,7 @@ export class QuestionControllerService { }, }); } + /** * listQuestionVOByPage * @param questionQueryRequest questionQueryRequest @@ -156,8 +165,8 @@ export class QuestionControllerService { * @throws ApiError */ public static listQuestionVoByPageUsingPost( - questionQueryRequest: QuestionQueryRequest, - ): CancelablePromise { +questionQueryRequest: QuestionQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/list/page/vo', @@ -169,6 +178,7 @@ export class QuestionControllerService { }, }); } + /** * listMyQuestionVOByPage * @param questionQueryRequest questionQueryRequest @@ -177,8 +187,8 @@ export class QuestionControllerService { * @throws ApiError */ public static listMyQuestionVoByPageUsingPost( - questionQueryRequest: QuestionQueryRequest, - ): CancelablePromise { +questionQueryRequest: QuestionQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/my/list/page/vo', @@ -190,6 +200,7 @@ export class QuestionControllerService { }, }); } + /** * doQuestionSubmit * @param questionSubmitAddRequest questionSubmitAddRequest @@ -198,8 +209,8 @@ export class QuestionControllerService { * @throws ApiError */ public static doQuestionSubmitUsingPost( - questionSubmitAddRequest: QuestionSubmitAddRequest, - ): CancelablePromise { +questionSubmitAddRequest: QuestionSubmitAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/question_submit/do', @@ -211,6 +222,7 @@ export class QuestionControllerService { }, }); } + /** * listQuestionSubmitByPage * @param questionSubmitQueryRequest questionSubmitQueryRequest @@ -219,8 +231,8 @@ export class QuestionControllerService { * @throws ApiError */ public static listQuestionSubmitByPageUsingPost( - questionSubmitQueryRequest: QuestionSubmitQueryRequest, - ): CancelablePromise { +questionSubmitQueryRequest: QuestionSubmitQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/question_submit/list/page', @@ -232,6 +244,7 @@ export class QuestionControllerService { }, }); } + /** * updateQuestion * @param questionUpdateRequest questionUpdateRequest @@ -240,8 +253,8 @@ export class QuestionControllerService { * @throws ApiError */ public static updateQuestionUsingPost( - questionUpdateRequest: QuestionUpdateRequest, - ): CancelablePromise { +questionUpdateRequest: QuestionUpdateRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/question/update', @@ -253,4 +266,5 @@ export class QuestionControllerService { }, }); } + } diff --git a/generatedss/services/UserControllerService.ts b/generateds/services/UserControllerService.ts similarity index 87% rename from generatedss/services/UserControllerService.ts rename to generateds/services/UserControllerService.ts index 44103f0..74c3056 100644 --- a/generatedss/services/UserControllerService.ts +++ b/generateds/services/UserControllerService.ts @@ -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 */ @@ -16,10 +16,13 @@ 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 @@ -28,8 +31,8 @@ export class UserControllerService { * @throws ApiError */ public static addUserUsingPost( - userAddRequest: UserAddRequest, - ): CancelablePromise { +userAddRequest: UserAddRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/add', @@ -41,6 +44,7 @@ export class UserControllerService { }, }); } + /** * deleteUser * @param deleteRequest deleteRequest @@ -49,8 +53,8 @@ export class UserControllerService { * @throws ApiError */ public static deleteUserUsingPost( - deleteRequest: DeleteRequest, - ): CancelablePromise { +deleteRequest: DeleteRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/delete', @@ -62,6 +66,7 @@ export class UserControllerService { }, }); } + /** * getUserById * @param id id @@ -69,8 +74,8 @@ export class UserControllerService { * @throws ApiError */ public static getUserByIdUsingGet( - id?: number, - ): CancelablePromise { +id?: number, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/user/get', @@ -84,6 +89,7 @@ export class UserControllerService { }, }); } + /** * getLoginUser * @returns BaseResponse_LoginUserVO_ OK @@ -100,6 +106,7 @@ export class UserControllerService { }, }); } + /** * getUserVOById * @param id id @@ -107,8 +114,8 @@ export class UserControllerService { * @throws ApiError */ public static getUserVoByIdUsingGet( - id?: number, - ): CancelablePromise { +id?: number, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/user/get/vo', @@ -122,6 +129,7 @@ export class UserControllerService { }, }); } + /** * listUserByPage * @param userQueryRequest userQueryRequest @@ -130,8 +138,8 @@ export class UserControllerService { * @throws ApiError */ public static listUserByPageUsingPost( - userQueryRequest: UserQueryRequest, - ): CancelablePromise { +userQueryRequest: UserQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/list/page', @@ -143,6 +151,7 @@ export class UserControllerService { }, }); } + /** * listUserVOByPage * @param userQueryRequest userQueryRequest @@ -151,8 +160,8 @@ export class UserControllerService { * @throws ApiError */ public static listUserVoByPageUsingPost( - userQueryRequest: UserQueryRequest, - ): CancelablePromise { +userQueryRequest: UserQueryRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/list/page/vo', @@ -164,6 +173,7 @@ export class UserControllerService { }, }); } + /** * userLogin * @param userLoginRequest userLoginRequest @@ -172,8 +182,8 @@ export class UserControllerService { * @throws ApiError */ public static userLoginUsingPost( - userLoginRequest: UserLoginRequest, - ): CancelablePromise { +userLoginRequest: UserLoginRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/login', @@ -185,6 +195,7 @@ export class UserControllerService { }, }); } + /** * userLoginByWxOpen * @param code code @@ -192,8 +203,8 @@ export class UserControllerService { * @throws ApiError */ public static userLoginByWxOpenUsingGet( - code: string, - ): CancelablePromise { +code: string, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/user/login/wx_open', @@ -207,6 +218,7 @@ export class UserControllerService { }, }); } + /** * userLogout * @returns BaseResponse_boolean_ OK @@ -224,6 +236,7 @@ export class UserControllerService { }, }); } + /** * userRegister * @param userRegisterRequest userRegisterRequest @@ -232,8 +245,8 @@ export class UserControllerService { * @throws ApiError */ public static userRegisterUsingPost( - userRegisterRequest: UserRegisterRequest, - ): CancelablePromise { +userRegisterRequest: UserRegisterRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/register', @@ -245,6 +258,7 @@ export class UserControllerService { }, }); } + /** * updateUser * @param userUpdateRequest userUpdateRequest @@ -253,8 +267,8 @@ export class UserControllerService { * @throws ApiError */ public static updateUserUsingPost( - userUpdateRequest: UserUpdateRequest, - ): CancelablePromise { +userUpdateRequest: UserUpdateRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/update', @@ -266,6 +280,7 @@ export class UserControllerService { }, }); } + /** * updateMyUser * @param userUpdateMyRequest userUpdateMyRequest @@ -274,8 +289,8 @@ export class UserControllerService { * @throws ApiError */ public static updateMyUserUsingPost( - userUpdateMyRequest: UserUpdateMyRequest, - ): CancelablePromise { +userUpdateMyRequest: UserUpdateMyRequest, +): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/user/update/my', @@ -287,4 +302,5 @@ export class UserControllerService { }, }); } + } diff --git a/generatedss/services/WxMpControllerService.ts b/generateds/services/WxMpControllerService.ts similarity index 89% rename from generatedss/services/WxMpControllerService.ts rename to generateds/services/WxMpControllerService.ts index c06e790..3725566 100644 --- a/generatedss/services/WxMpControllerService.ts +++ b/generateds/services/WxMpControllerService.ts @@ -1,11 +1,13 @@ -/* 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 { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; + export class WxMpControllerService { + /** * check * @param echostr echostr @@ -16,11 +18,11 @@ export class WxMpControllerService { * @throws ApiError */ public static checkUsingGet( - echostr?: string, - nonce?: string, - signature?: string, - timestamp?: string, - ): CancelablePromise { +echostr?: string, +nonce?: string, +signature?: string, +timestamp?: string, +): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/', @@ -37,6 +39,7 @@ export class WxMpControllerService { }, }); } + /** * receiveMessage * @returns any OK @@ -53,6 +56,7 @@ export class WxMpControllerService { }, }); } + /** * setMenu * @returns string OK @@ -69,4 +73,5 @@ export class WxMpControllerService { }, }); } + } diff --git a/generatedss/index.ts b/generatedss/index.ts deleted file mode 100644 index 3766667..0000000 --- a/generatedss/index.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* 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 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';