feat: 开发中...
This commit is contained in:
4
blog-frontend/src/swagger/.gitignore
vendored
Normal file
4
blog-frontend/src/swagger/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
wwwroot/*.js
|
||||
node_modules
|
||||
typings
|
||||
dist
|
1
blog-frontend/src/swagger/.npmignore
Normal file
1
blog-frontend/src/swagger/.npmignore
Normal file
@@ -0,0 +1 @@
|
||||
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
23
blog-frontend/src/swagger/.swagger-codegen-ignore
Normal file
23
blog-frontend/src/swagger/.swagger-codegen-ignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# Swagger Codegen Ignore
|
||||
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
1
blog-frontend/src/swagger/.swagger-codegen/VERSION
Normal file
1
blog-frontend/src/swagger/.swagger-codegen/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
3.0.41
|
45
blog-frontend/src/swagger/README.md
Normal file
45
blog-frontend/src/swagger/README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
## @
|
||||
|
||||
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
||||
|
||||
Environment
|
||||
* Node.js
|
||||
* Webpack
|
||||
* Browserify
|
||||
|
||||
Language level
|
||||
* ES5 - you must have a Promises/A+ library installed
|
||||
* ES6
|
||||
|
||||
Module system
|
||||
* CommonJS
|
||||
* ES6 module system
|
||||
|
||||
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
||||
|
||||
### Building
|
||||
|
||||
To build and compile the typescript sources to javascript use:
|
||||
```
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Publishing
|
||||
|
||||
First build the package then run ```npm publish```
|
||||
|
||||
### Consuming
|
||||
|
||||
navigate to the folder of your consuming project and run one of the following commands.
|
||||
|
||||
_published:_
|
||||
|
||||
```
|
||||
npm install @ --save
|
||||
```
|
||||
|
||||
_unPublished (not recommended):_
|
||||
|
||||
```
|
||||
npm install PATH_TO_GENERATED_PACKAGE --save
|
17
blog-frontend/src/swagger/api.ts
Normal file
17
blog-frontend/src/swagger/api.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/export * from './apis/attach-controller-api';
|
||||
export * from './apis/blog-controller-api';
|
||||
export * from './apis/setting-controller-api';
|
||||
export * from './apis/user-controller-api';
|
||||
|
417
blog-frontend/src/swagger/apis/attach-controller-api.ts
Normal file
417
blog-frontend/src/swagger/apis/attach-controller-api.ts
Normal file
@@ -0,0 +1,417 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import { Configuration } from '../configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
||||
import { AttachAttachIDBody } from '../models';
|
||||
import { ResponseVOVoid } from '../models';
|
||||
import { V1AttachBody } from '../models';
|
||||
/**
|
||||
* AttachControllerApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const AttachControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {V1AttachBody} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createAttach: async (body: V1AttachBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling createAttach.');
|
||||
}
|
||||
const localVarPath = `/api/v1/attach/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deleteAttach: async (attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'attachID' is not null or undefined
|
||||
if (attachID === null || attachID === undefined) {
|
||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling deleteAttach.');
|
||||
}
|
||||
const localVarPath = `/api/v1/attach/{attachID}/`
|
||||
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAttach: async (attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'attachID' is not null or undefined
|
||||
if (attachID === null || attachID === undefined) {
|
||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttach.');
|
||||
}
|
||||
const localVarPath = `/api/v1/attach/{attachID}/`
|
||||
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAttachList: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1/attach/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {AttachAttachIDBody} body
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
modifyAttach: async (body: AttachAttachIDBody, attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling modifyAttach.');
|
||||
}
|
||||
// verify required parameter 'attachID' is not null or undefined
|
||||
if (attachID === null || attachID === undefined) {
|
||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling modifyAttach.');
|
||||
}
|
||||
const localVarPath = `/api/v1/attach/{attachID}/`
|
||||
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'PUT', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* AttachControllerApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const AttachControllerApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {V1AttachBody} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createAttach(body: V1AttachBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).createAttach(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async deleteAttach(attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).deleteAttach(attachID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAttach(attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttach(attachID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAttachList(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachList(options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {AttachAttachIDBody} body
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).modifyAttach(body, attachID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* AttachControllerApi - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const AttachControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {V1AttachBody} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createAttach(body: V1AttachBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(configuration).createAttach(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async deleteAttach(attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(configuration).deleteAttach(attachID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAttach(attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(configuration).getAttach(attachID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAttachList(options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(configuration).getAttachList(options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {AttachAttachIDBody} body
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(configuration).modifyAttach(body, attachID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* AttachControllerApi - object-oriented interface
|
||||
* @export
|
||||
* @class AttachControllerApi
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class AttachControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @param {V1AttachBody} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof AttachControllerApi
|
||||
*/
|
||||
public async createAttach(body: V1AttachBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(this.configuration).createAttach(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof AttachControllerApi
|
||||
*/
|
||||
public async deleteAttach(attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(this.configuration).deleteAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof AttachControllerApi
|
||||
*/
|
||||
public async getAttach(attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(this.configuration).getAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof AttachControllerApi
|
||||
*/
|
||||
public async getAttachList(options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(this.configuration).getAttachList(options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param {AttachAttachIDBody} body
|
||||
* @param {string} attachID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof AttachControllerApi
|
||||
*/
|
||||
public async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return AttachControllerApiFp(this.configuration).modifyAttach(body, attachID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
463
blog-frontend/src/swagger/apis/blog-controller-api.ts
Normal file
463
blog-frontend/src/swagger/apis/blog-controller-api.ts
Normal file
@@ -0,0 +1,463 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import { Configuration } from '../configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
||||
import { BlogUpdateRequireVO } from '../models';
|
||||
import { ResponseVOBlogInfoResponseVO } from '../models';
|
||||
import { ResponseVOListBlogInfoResponseVO } from '../models';
|
||||
import { ResponseVOLong } from '../models';
|
||||
import { ResponseVOVoid } from '../models';
|
||||
/**
|
||||
* BlogControllerApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const BlogControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 创建博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createBlog: async (body: BlogUpdateRequireVO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling createBlog.');
|
||||
}
|
||||
const localVarPath = `/api/v1/blog/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文信息
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getBlogInfo: async (blogID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'blogID' is not null or undefined
|
||||
if (blogID === null || blogID === undefined) {
|
||||
throw new RequiredError('blogID','Required parameter blogID was null or undefined when calling getBlogInfo.');
|
||||
}
|
||||
const localVarPath = `/api/v1/blog/{blogID}/`
|
||||
.replace(`{${"blogID"}}`, encodeURIComponent(String(blogID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getBlogInfoList: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'page' is not null or undefined
|
||||
if (page === null || page === undefined) {
|
||||
throw new RequiredError('page','Required parameter page was null or undefined when calling getBlogInfoList.');
|
||||
}
|
||||
// verify required parameter 'size' is not null or undefined
|
||||
if (size === null || size === undefined) {
|
||||
throw new RequiredError('size','Required parameter size was null or undefined when calling getBlogInfoList.');
|
||||
}
|
||||
const localVarPath = `/api/v1/blog/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除博文
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
removeBlog: async (blogID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'blogID' is not null or undefined
|
||||
if (blogID === null || blogID === undefined) {
|
||||
throw new RequiredError('blogID','Required parameter blogID was null or undefined when calling removeBlog.');
|
||||
}
|
||||
const localVarPath = `/api/v1/blog/{blogID}/`
|
||||
.replace(`{${"blogID"}}`, encodeURIComponent(String(blogID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updateBlog: async (body: BlogUpdateRequireVO, blogID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling updateBlog.');
|
||||
}
|
||||
// verify required parameter 'blogID' is not null or undefined
|
||||
if (blogID === null || blogID === undefined) {
|
||||
throw new RequiredError('blogID','Required parameter blogID was null or undefined when calling updateBlog.');
|
||||
}
|
||||
const localVarPath = `/api/v1/blog/{blogID}/`
|
||||
.replace(`{${"blogID"}}`, encodeURIComponent(String(blogID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'PUT', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* BlogControllerApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const BlogControllerApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 创建博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createBlog(body: BlogUpdateRequireVO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOLong>>> {
|
||||
const localVarAxiosArgs = await BlogControllerApiAxiosParamCreator(configuration).createBlog(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文信息
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getBlogInfo(blogID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOBlogInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await BlogControllerApiAxiosParamCreator(configuration).getBlogInfo(blogID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getBlogInfoList(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOListBlogInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await BlogControllerApiAxiosParamCreator(configuration).getBlogInfoList(page, size, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除博文
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async removeBlog(blogID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await BlogControllerApiAxiosParamCreator(configuration).removeBlog(blogID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateBlog(body: BlogUpdateRequireVO, blogID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await BlogControllerApiAxiosParamCreator(configuration).updateBlog(body, blogID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* BlogControllerApi - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const BlogControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 创建博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createBlog(body: BlogUpdateRequireVO, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOLong>> {
|
||||
return BlogControllerApiFp(configuration).createBlog(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文信息
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getBlogInfo(blogID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOBlogInfoResponseVO>> {
|
||||
return BlogControllerApiFp(configuration).getBlogInfo(blogID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getBlogInfoList(page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOListBlogInfoResponseVO>> {
|
||||
return BlogControllerApiFp(configuration).getBlogInfoList(page, size, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除博文
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async removeBlog(blogID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return BlogControllerApiFp(configuration).removeBlog(blogID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateBlog(body: BlogUpdateRequireVO, blogID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return BlogControllerApiFp(configuration).updateBlog(body, blogID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* BlogControllerApi - object-oriented interface
|
||||
* @export
|
||||
* @class BlogControllerApi
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class BlogControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 创建博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof BlogControllerApi
|
||||
*/
|
||||
public async createBlog(body: BlogUpdateRequireVO, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOLong>> {
|
||||
return BlogControllerApiFp(this.configuration).createBlog(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文信息
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof BlogControllerApi
|
||||
*/
|
||||
public async getBlogInfo(blogID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOBlogInfoResponseVO>> {
|
||||
return BlogControllerApiFp(this.configuration).getBlogInfo(blogID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 获取博文列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof BlogControllerApi
|
||||
*/
|
||||
public async getBlogInfoList(page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOListBlogInfoResponseVO>> {
|
||||
return BlogControllerApiFp(this.configuration).getBlogInfoList(page, size, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 删除博文
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof BlogControllerApi
|
||||
*/
|
||||
public async removeBlog(blogID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return BlogControllerApiFp(this.configuration).removeBlog(blogID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 更新博文
|
||||
* @param {BlogUpdateRequireVO} body
|
||||
* @param {number} blogID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof BlogControllerApi
|
||||
*/
|
||||
public async updateBlog(body: BlogUpdateRequireVO, blogID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return BlogControllerApiFp(this.configuration).updateBlog(body, blogID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
459
blog-frontend/src/swagger/apis/setting-controller-api.ts
Normal file
459
blog-frontend/src/swagger/apis/setting-controller-api.ts
Normal file
@@ -0,0 +1,459 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import { Configuration } from '../configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
||||
import { ResponseVOPageableVOSettingInfoResponseVO } from '../models';
|
||||
import { ResponseVOSettingInfoResponseVO } from '../models';
|
||||
import { ResponseVOString } from '../models';
|
||||
import { ResponseVOVoid } from '../models';
|
||||
/**
|
||||
* SettingControllerApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const SettingControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 删除网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deleteSetting: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
if (id === null || id === undefined) {
|
||||
throw new RequiredError('id','Required parameter id was null or undefined when calling deleteSetting.');
|
||||
}
|
||||
const localVarPath = `/api/v1/settings/{id}/`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getSetting: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'page' is not null or undefined
|
||||
if (page === null || page === undefined) {
|
||||
throw new RequiredError('page','Required parameter page was null or undefined when calling getSetting.');
|
||||
}
|
||||
// verify required parameter 'size' is not null or undefined
|
||||
if (size === null || size === undefined) {
|
||||
throw new RequiredError('size','Required parameter size was null or undefined when calling getSetting.');
|
||||
}
|
||||
const localVarPath = `/api/v1/settings/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getSettingContent: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
if (id === null || id === undefined) {
|
||||
throw new RequiredError('id','Required parameter id was null or undefined when calling getSettingContent.');
|
||||
}
|
||||
const localVarPath = `/api/v1/settings/{id}/content/`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getSettingInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
if (id === null || id === undefined) {
|
||||
throw new RequiredError('id','Required parameter id was null or undefined when calling getSettingInfo.');
|
||||
}
|
||||
const localVarPath = `/api/v1/settings/{id}/`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更改网站设置
|
||||
* @param {string} body
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updateSetting: async (body: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling updateSetting.');
|
||||
}
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
if (id === null || id === undefined) {
|
||||
throw new RequiredError('id','Required parameter id was null or undefined when calling updateSetting.');
|
||||
}
|
||||
const localVarPath = `/api/v1/settings/{id}/`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'PUT', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'text/plain';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* SettingControllerApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const SettingControllerApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 删除网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async deleteSetting(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await SettingControllerApiAxiosParamCreator(configuration).deleteSetting(id, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSetting(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOSettingInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await SettingControllerApiAxiosParamCreator(configuration).getSetting(page, size, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSettingContent(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOString>>> {
|
||||
const localVarAxiosArgs = await SettingControllerApiAxiosParamCreator(configuration).getSettingContent(id, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSettingInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOSettingInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await SettingControllerApiAxiosParamCreator(configuration).getSettingInfo(id, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更改网站设置
|
||||
* @param {string} body
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateSetting(body: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await SettingControllerApiAxiosParamCreator(configuration).updateSetting(body, id, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* SettingControllerApi - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const SettingControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 删除网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async deleteSetting(id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return SettingControllerApiFp(configuration).deleteSetting(id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSetting(page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOSettingInfoResponseVO>> {
|
||||
return SettingControllerApiFp(configuration).getSetting(page, size, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSettingContent(id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOString>> {
|
||||
return SettingControllerApiFp(configuration).getSettingContent(id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getSettingInfo(id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOSettingInfoResponseVO>> {
|
||||
return SettingControllerApiFp(configuration).getSettingInfo(id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更改网站设置
|
||||
* @param {string} body
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateSetting(body: string, id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return SettingControllerApiFp(configuration).updateSetting(body, id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* SettingControllerApi - object-oriented interface
|
||||
* @export
|
||||
* @class SettingControllerApi
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class SettingControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 删除网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SettingControllerApi
|
||||
*/
|
||||
public async deleteSetting(id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return SettingControllerApiFp(this.configuration).deleteSetting(id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SettingControllerApi
|
||||
*/
|
||||
public async getSetting(page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOSettingInfoResponseVO>> {
|
||||
return SettingControllerApiFp(this.configuration).getSetting(page, size, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SettingControllerApi
|
||||
*/
|
||||
public async getSettingContent(id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOString>> {
|
||||
return SettingControllerApiFp(this.configuration).getSettingContent(id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 获取网站设置
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SettingControllerApi
|
||||
*/
|
||||
public async getSettingInfo(id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOSettingInfoResponseVO>> {
|
||||
return SettingControllerApiFp(this.configuration).getSettingInfo(id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 更改网站设置
|
||||
* @param {string} body
|
||||
* @param {string} id 设置ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SettingControllerApi
|
||||
*/
|
||||
public async updateSetting(body: string, id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return SettingControllerApiFp(this.configuration).updateSetting(body, id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
733
blog-frontend/src/swagger/apis/user-controller-api.ts
Normal file
733
blog-frontend/src/swagger/apis/user-controller-api.ts
Normal file
@@ -0,0 +1,733 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import { Configuration } from '../configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
||||
import { ResponseVOPageableVOAttachInfoResponseVO } from '../models';
|
||||
import { ResponseVOPageableVOBlogInfoResponseVO } from '../models';
|
||||
import { ResponseVOPageableVOUserInfoResponseVO } from '../models';
|
||||
import { ResponseVOUserInfoResponseVO } from '../models';
|
||||
import { ResponseVOVoid } from '../models';
|
||||
import { UserCreateRequireVO } from '../models';
|
||||
import { UserLoginRequireVO } from '../models';
|
||||
import { UserUpdateRequireVO } from '../models';
|
||||
/**
|
||||
* UserControllerApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const UserControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAllUserInfo: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'page' is not null or undefined
|
||||
if (page === null || page === undefined) {
|
||||
throw new RequiredError('page','Required parameter page was null or undefined when calling getAllUserInfo.');
|
||||
}
|
||||
// verify required parameter 'size' is not null or undefined
|
||||
if (size === null || size === undefined) {
|
||||
throw new RequiredError('size','Required parameter size was null or undefined when calling getAllUserInfo.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询当前用户
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1/user/current`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有附件
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getUserAttachList: async (userID: string, page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'userID' is not null or undefined
|
||||
if (userID === null || userID === undefined) {
|
||||
throw new RequiredError('userID','Required parameter userID was null or undefined when calling getUserAttachList.');
|
||||
}
|
||||
// verify required parameter 'page' is not null or undefined
|
||||
if (page === null || page === undefined) {
|
||||
throw new RequiredError('page','Required parameter page was null or undefined when calling getUserAttachList.');
|
||||
}
|
||||
// verify required parameter 'size' is not null or undefined
|
||||
if (size === null || size === undefined) {
|
||||
throw new RequiredError('size','Required parameter size was null or undefined when calling getUserAttachList.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/{userID}/attach/`
|
||||
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有博文
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getUserBlogList: async (userID: string, page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'userID' is not null or undefined
|
||||
if (userID === null || userID === undefined) {
|
||||
throw new RequiredError('userID','Required parameter userID was null or undefined when calling getUserBlogList.');
|
||||
}
|
||||
// verify required parameter 'page' is not null or undefined
|
||||
if (page === null || page === undefined) {
|
||||
throw new RequiredError('page','Required parameter page was null or undefined when calling getUserBlogList.');
|
||||
}
|
||||
// verify required parameter 'size' is not null or undefined
|
||||
if (size === null || size === undefined) {
|
||||
throw new RequiredError('size','Required parameter size was null or undefined when calling getUserBlogList.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/{userID}/blog/`
|
||||
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getUserInfo: async (userID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'userID' is not null or undefined
|
||||
if (userID === null || userID === undefined) {
|
||||
throw new RequiredError('userID','Required parameter userID was null or undefined when calling getUserInfo.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/{userID}/`
|
||||
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 登录用户
|
||||
* @param {UserLoginRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
loginUser: async (body: UserLoginRequireVO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling loginUser.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/login`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 注册用户
|
||||
* @param {UserCreateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
register: async (body: UserCreateRequireVO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling register.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新用户信息
|
||||
* @param {UserUpdateRequireVO} body
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updateUser: async (body: UserUpdateRequireVO, userID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
if (body === null || body === undefined) {
|
||||
throw new RequiredError('body','Required parameter body was null or undefined when calling updateUser.');
|
||||
}
|
||||
// verify required parameter 'userID' is not null or undefined
|
||||
if (userID === null || userID === undefined) {
|
||||
throw new RequiredError('userID','Required parameter userID was null or undefined when calling updateUser.');
|
||||
}
|
||||
const localVarPath = `/api/v1/user/{userID}/`
|
||||
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
const localVarRequestOptions :AxiosRequestConfig = { method: 'PUT', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
const query = new URLSearchParams(localVarUrlObj.search);
|
||||
for (const key in localVarQueryParameter) {
|
||||
query.set(key, localVarQueryParameter[key]);
|
||||
}
|
||||
for (const key in options.params) {
|
||||
query.set(key, options.params[key]);
|
||||
}
|
||||
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
||||
|
||||
return {
|
||||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* UserControllerApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const UserControllerApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAllUserInfo(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOUserInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).getAllUserInfo(page, size, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询当前用户
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCurrentUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOUserInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).getCurrentUserInfo(options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有附件
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserAttachList(userID: string, page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).getUserAttachList(userID, page, size, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有博文
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserBlogList(userID: string, page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOBlogInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).getUserBlogList(userID, page, size, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserInfo(userID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOUserInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).getUserInfo(userID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 登录用户
|
||||
* @param {UserLoginRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async loginUser(body: UserLoginRequireVO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).loginUser(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 注册用户
|
||||
* @param {UserCreateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async register(body: UserCreateRequireVO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOUserInfoResponseVO>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).register(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新用户信息
|
||||
* @param {UserUpdateRequireVO} body
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateUser(body: UserUpdateRequireVO, userID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||
const localVarAxiosArgs = await UserControllerApiAxiosParamCreator(configuration).updateUser(body, userID, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* UserControllerApi - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const UserControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAllUserInfo(page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).getAllUserInfo(page, size, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询当前用户
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCurrentUserInfo(options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).getCurrentUserInfo(options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有附件
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserAttachList(userID: string, page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).getUserAttachList(userID, page, size, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有博文
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserBlogList(userID: string, page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOBlogInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).getUserBlogList(userID, page, size, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getUserInfo(userID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).getUserInfo(userID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 登录用户
|
||||
* @param {UserLoginRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async loginUser(body: UserLoginRequireVO, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return UserControllerApiFp(configuration).loginUser(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 注册用户
|
||||
* @param {UserCreateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async register(body: UserCreateRequireVO, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(configuration).register(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 更新用户信息
|
||||
* @param {UserUpdateRequireVO} body
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateUser(body: UserUpdateRequireVO, userID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return UserControllerApiFp(configuration).updateUser(body, userID, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* UserControllerApi - object-oriented interface
|
||||
* @export
|
||||
* @class UserControllerApi
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class UserControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户列表
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async getAllUserInfo(page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).getAllUserInfo(page, size, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 查询当前用户
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async getCurrentUserInfo(options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).getCurrentUserInfo(options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有附件
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async getUserAttachList(userID: string, page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).getUserAttachList(userID, page, size, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户所有博文
|
||||
* @param {string} userID 用户ID
|
||||
* @param {number} page 页码
|
||||
* @param {number} size 大小
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async getUserBlogList(userID: string, page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOBlogInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).getUserBlogList(userID, page, size, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 查询用户
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async getUserInfo(userID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).getUserInfo(userID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 登录用户
|
||||
* @param {UserLoginRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async loginUser(body: UserLoginRequireVO, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return UserControllerApiFp(this.configuration).loginUser(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 注册用户
|
||||
* @param {UserCreateRequireVO} body
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async register(body: UserCreateRequireVO, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOUserInfoResponseVO>> {
|
||||
return UserControllerApiFp(this.configuration).register(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 更新用户信息
|
||||
* @param {UserUpdateRequireVO} body
|
||||
* @param {string} userID 用户ID
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserControllerApi
|
||||
*/
|
||||
public async updateUser(body: UserUpdateRequireVO, userID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||
return UserControllerApiFp(this.configuration).updateUser(body, userID, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
69
blog-frontend/src/swagger/base.ts
Normal file
69
blog-frontend/src/swagger/base.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Configuration } from "./configuration";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
|
||||
|
||||
export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const COLLECTION_FORMATS = {
|
||||
csv: ",",
|
||||
ssv: " ",
|
||||
tsv: "\t",
|
||||
pipes: "|",
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RequestArgs
|
||||
*/
|
||||
export interface RequestArgs {
|
||||
url: string;
|
||||
options: AxiosRequestConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @class BaseAPI
|
||||
*/
|
||||
export class BaseAPI {
|
||||
protected configuration: Configuration | undefined;
|
||||
|
||||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||
if (configuration) {
|
||||
this.configuration = configuration;
|
||||
this.basePath = configuration.basePath || this.basePath;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @class RequiredError
|
||||
* @extends {Error}
|
||||
*/
|
||||
export class RequiredError extends Error {
|
||||
name: "RequiredError" = "RequiredError";
|
||||
constructor(public field: string, msg?: string) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
74
blog-frontend/src/swagger/configuration.ts
Normal file
74
blog-frontend/src/swagger/configuration.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
/**
|
||||
* parameter for apiKey security
|
||||
* @param name security name
|
||||
* @memberof Configuration
|
||||
*/
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* parameter for oauth2 security
|
||||
* @param name security name
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
basePath?: string;
|
||||
/**
|
||||
* base options for axios calls
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
baseOptions?: any;
|
||||
|
||||
constructor(param: ConfigurationParameters = {}) {
|
||||
this.apiKey = param.apiKey;
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.basePath = param.basePath;
|
||||
this.baseOptions = param.baseOptions;
|
||||
}
|
||||
}
|
52
blog-frontend/src/swagger/git_push.sh
Normal file
52
blog-frontend/src/swagger/git_push.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh hugomario swagger-petstore-perl "minor update"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="GIT_REPO_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=`git remote`
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
||||
|
17
blog-frontend/src/swagger/index.ts
Normal file
17
blog-frontend/src/swagger/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
export * from "./api";
|
||||
export * from "./configuration";
|
||||
export * from "./models";
|
||||
|
26
blog-frontend/src/swagger/models/attach-attach-idbody.ts
Normal file
26
blog-frontend/src/swagger/models/attach-attach-idbody.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AttachAttachIDBody
|
||||
*/
|
||||
export interface AttachAttachIDBody {
|
||||
/**
|
||||
*
|
||||
* @type {Blob}
|
||||
* @memberof AttachAttachIDBody
|
||||
*/
|
||||
file?: Blob;
|
||||
}
|
57
blog-frontend/src/swagger/models/attach-entity.ts
Normal file
57
blog-frontend/src/swagger/models/attach-entity.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { UserEntity } from './user-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AttachEntity
|
||||
*/
|
||||
export interface AttachEntity {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
data?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
creator?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
updater?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AttachEntity
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
44
blog-frontend/src/swagger/models/attach-info-response-vo.ts
Normal file
44
blog-frontend/src/swagger/models/attach-info-response-vo.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AttachInfoResponseVO
|
||||
*/
|
||||
export interface AttachInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AttachInfoResponseVO
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AttachInfoResponseVO
|
||||
*/
|
||||
creator?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AttachInfoResponseVO
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AttachInfoResponseVO
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
64
blog-frontend/src/swagger/models/blog-attach-entity.ts
Normal file
64
blog-frontend/src/swagger/models/blog-attach-entity.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogEntity } from './blog-entity';
|
||||
import { UserEntity } from './user-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BlogAttachEntity
|
||||
*/
|
||||
export interface BlogAttachEntity {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
data?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {BlogEntity}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
blogEntity?: BlogEntity;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
creator?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
updater?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogAttachEntity
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
100
blog-frontend/src/swagger/models/blog-entity.ts
Normal file
100
blog-frontend/src/swagger/models/blog-entity.ts
Normal file
@@ -0,0 +1,100 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogAttachEntity } from './blog-attach-entity';
|
||||
import { UserEntity } from './user-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BlogEntity
|
||||
*/
|
||||
export interface BlogEntity {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
abstracts?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
top?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
publish?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogAttachEntity>}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
attachEntities?: Array<BlogAttachEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
creator?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
updater?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogEntity
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
100
blog-frontend/src/swagger/models/blog-info-response-vo.ts
Normal file
100
blog-frontend/src/swagger/models/blog-info-response-vo.ts
Normal file
@@ -0,0 +1,100 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogAttachEntity } from './blog-attach-entity';
|
||||
import { UserEntity } from './user-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BlogInfoResponseVO
|
||||
*/
|
||||
export interface BlogInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
abstracts?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
top?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
publish?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogAttachEntity>}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
attachEntities?: Array<BlogAttachEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
creator?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {UserEntity}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
updater?: UserEntity;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BlogInfoResponseVO
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
62
blog-frontend/src/swagger/models/blog-update-require-vo.ts
Normal file
62
blog-frontend/src/swagger/models/blog-update-require-vo.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BlogUpdateRequireVO
|
||||
*/
|
||||
export interface BlogUpdateRequireVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
abstracts?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
content: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
top?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
publish?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof BlogUpdateRequireVO
|
||||
*/
|
||||
tags: Array<string>;
|
||||
}
|
29
blog-frontend/src/swagger/models/index.ts
Normal file
29
blog-frontend/src/swagger/models/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export * from './attach-attach-idbody';
|
||||
export * from './attach-entity';
|
||||
export * from './attach-info-response-vo';
|
||||
export * from './blog-attach-entity';
|
||||
export * from './blog-entity';
|
||||
export * from './blog-info-response-vo';
|
||||
export * from './blog-update-require-vo';
|
||||
export * from './pageable-voattach-info-response-vo';
|
||||
export * from './pageable-voblog-info-response-vo';
|
||||
export * from './pageable-vosetting-info-response-vo';
|
||||
export * from './pageable-vouser-info-response-vo';
|
||||
export * from './response-voblog-info-response-vo';
|
||||
export * from './response-volist-blog-info-response-vo';
|
||||
export * from './response-volong';
|
||||
export * from './response-vopageable-voattach-info-response-vo';
|
||||
export * from './response-vopageable-voblog-info-response-vo';
|
||||
export * from './response-vopageable-vosetting-info-response-vo';
|
||||
export * from './response-vopageable-vouser-info-response-vo';
|
||||
export * from './response-vosetting-info-response-vo';
|
||||
export * from './response-vostring';
|
||||
export * from './response-vouser-info-response-vo';
|
||||
export * from './response-vovoid';
|
||||
export * from './setting-info-response-vo';
|
||||
export * from './user-create-require-vo';
|
||||
export * from './user-entity';
|
||||
export * from './user-info-response-vo';
|
||||
export * from './user-login-require-vo';
|
||||
export * from './user-update-require-vo';
|
||||
export * from './v1-attach-body';
|
@@ -0,0 +1,51 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AttachInfoResponseVO } from './attach-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
export interface PageableVOAttachInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
totalElements?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
totalPage?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<AttachInfoResponseVO>}
|
||||
* @memberof PageableVOAttachInfoResponseVO
|
||||
*/
|
||||
data?: Array<AttachInfoResponseVO>;
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogInfoResponseVO } from './blog-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
export interface PageableVOBlogInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
totalElements?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
totalPage?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogInfoResponseVO>}
|
||||
* @memberof PageableVOBlogInfoResponseVO
|
||||
*/
|
||||
data?: Array<BlogInfoResponseVO>;
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { SettingInfoResponseVO } from './setting-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
export interface PageableVOSettingInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
totalElements?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
totalPage?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SettingInfoResponseVO>}
|
||||
* @memberof PageableVOSettingInfoResponseVO
|
||||
*/
|
||||
data?: Array<SettingInfoResponseVO>;
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { UserInfoResponseVO } from './user-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PageableVOUserInfoResponseVO
|
||||
*/
|
||||
export interface PageableVOUserInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOUserInfoResponseVO
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOUserInfoResponseVO
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOUserInfoResponseVO
|
||||
*/
|
||||
totalElements?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageableVOUserInfoResponseVO
|
||||
*/
|
||||
totalPage?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserInfoResponseVO>}
|
||||
* @memberof PageableVOUserInfoResponseVO
|
||||
*/
|
||||
data?: Array<UserInfoResponseVO>;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogInfoResponseVO } from './blog-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOBlogInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOBlogInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOBlogInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOBlogInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {BlogInfoResponseVO}
|
||||
* @memberof ResponseVOBlogInfoResponseVO
|
||||
*/
|
||||
data?: BlogInfoResponseVO;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { BlogInfoResponseVO } from './blog-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOListBlogInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOListBlogInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOListBlogInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOListBlogInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogInfoResponseVO>}
|
||||
* @memberof ResponseVOListBlogInfoResponseVO
|
||||
*/
|
||||
data?: Array<BlogInfoResponseVO>;
|
||||
}
|
38
blog-frontend/src/swagger/models/response-volong.ts
Normal file
38
blog-frontend/src/swagger/models/response-volong.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOLong
|
||||
*/
|
||||
export interface ResponseVOLong {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOLong
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOLong
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOLong
|
||||
*/
|
||||
data?: number;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { PageableVOAttachInfoResponseVO } from './pageable-voattach-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOPageableVOAttachInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOPageableVOAttachInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOPageableVOAttachInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOPageableVOAttachInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {PageableVOAttachInfoResponseVO}
|
||||
* @memberof ResponseVOPageableVOAttachInfoResponseVO
|
||||
*/
|
||||
data?: PageableVOAttachInfoResponseVO;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { PageableVOBlogInfoResponseVO } from './pageable-voblog-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOPageableVOBlogInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOPageableVOBlogInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOPageableVOBlogInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOPageableVOBlogInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {PageableVOBlogInfoResponseVO}
|
||||
* @memberof ResponseVOPageableVOBlogInfoResponseVO
|
||||
*/
|
||||
data?: PageableVOBlogInfoResponseVO;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { PageableVOSettingInfoResponseVO } from './pageable-vosetting-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOPageableVOSettingInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOPageableVOSettingInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOPageableVOSettingInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOPageableVOSettingInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {PageableVOSettingInfoResponseVO}
|
||||
* @memberof ResponseVOPageableVOSettingInfoResponseVO
|
||||
*/
|
||||
data?: PageableVOSettingInfoResponseVO;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { PageableVOUserInfoResponseVO } from './pageable-vouser-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOPageableVOUserInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOPageableVOUserInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOPageableVOUserInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOPageableVOUserInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {PageableVOUserInfoResponseVO}
|
||||
* @memberof ResponseVOPageableVOUserInfoResponseVO
|
||||
*/
|
||||
data?: PageableVOUserInfoResponseVO;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { SettingInfoResponseVO } from './setting-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOSettingInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOSettingInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOSettingInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOSettingInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {SettingInfoResponseVO}
|
||||
* @memberof ResponseVOSettingInfoResponseVO
|
||||
*/
|
||||
data?: SettingInfoResponseVO;
|
||||
}
|
38
blog-frontend/src/swagger/models/response-vostring.ts
Normal file
38
blog-frontend/src/swagger/models/response-vostring.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOString
|
||||
*/
|
||||
export interface ResponseVOString {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOString
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOString
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOString
|
||||
*/
|
||||
data?: string;
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { UserInfoResponseVO } from './user-info-response-vo';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOUserInfoResponseVO
|
||||
*/
|
||||
export interface ResponseVOUserInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOUserInfoResponseVO
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOUserInfoResponseVO
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {UserInfoResponseVO}
|
||||
* @memberof ResponseVOUserInfoResponseVO
|
||||
*/
|
||||
data?: UserInfoResponseVO;
|
||||
}
|
38
blog-frontend/src/swagger/models/response-vovoid.ts
Normal file
38
blog-frontend/src/swagger/models/response-vovoid.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResponseVOVoid
|
||||
*/
|
||||
export interface ResponseVOVoid {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResponseVOVoid
|
||||
*/
|
||||
code?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResponseVOVoid
|
||||
*/
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof ResponseVOVoid
|
||||
*/
|
||||
data?: any;
|
||||
}
|
44
blog-frontend/src/swagger/models/setting-info-response-vo.ts
Normal file
44
blog-frontend/src/swagger/models/setting-info-response-vo.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SettingInfoResponseVO
|
||||
*/
|
||||
export interface SettingInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SettingInfoResponseVO
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SettingInfoResponseVO
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof SettingInfoResponseVO
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof SettingInfoResponseVO
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
38
blog-frontend/src/swagger/models/user-create-require-vo.ts
Normal file
38
blog-frontend/src/swagger/models/user-create-require-vo.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserCreateRequireVO
|
||||
*/
|
||||
export interface UserCreateRequireVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserCreateRequireVO
|
||||
*/
|
||||
email: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserCreateRequireVO
|
||||
*/
|
||||
nickname: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserCreateRequireVO
|
||||
*/
|
||||
password?: string;
|
||||
}
|
87
blog-frontend/src/swagger/models/user-entity.ts
Normal file
87
blog-frontend/src/swagger/models/user-entity.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AttachEntity } from './attach-entity';
|
||||
import { BlogEntity } from './blog-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserEntity
|
||||
*/
|
||||
export interface UserEntity {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
email: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
nickname: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
role?: UserEntityRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogEntity>}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
blogEntities?: Array<BlogEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<AttachEntity>}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
attachEntities?: Array<AttachEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UserEntity
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum UserEntityRoleEnum {
|
||||
GUEST = 'GUEST',
|
||||
AUTHOR = 'AUTHOR',
|
||||
ADMIN = 'ADMIN'
|
||||
}
|
||||
|
81
blog-frontend/src/swagger/models/user-info-response-vo.ts
Normal file
81
blog-frontend/src/swagger/models/user-info-response-vo.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AttachEntity } from './attach-entity';
|
||||
import { BlogEntity } from './blog-entity';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserInfoResponseVO
|
||||
*/
|
||||
export interface UserInfoResponseVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
nickname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
role?: UserInfoResponseVORoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BlogEntity>}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
blogEntities?: Array<BlogEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<AttachEntity>}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
attachEntities?: Array<AttachEntity>;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
createTime?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UserInfoResponseVO
|
||||
*/
|
||||
updateTime?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum UserInfoResponseVORoleEnum {
|
||||
GUEST = 'GUEST',
|
||||
AUTHOR = 'AUTHOR',
|
||||
ADMIN = 'ADMIN'
|
||||
}
|
||||
|
32
blog-frontend/src/swagger/models/user-login-require-vo.ts
Normal file
32
blog-frontend/src/swagger/models/user-login-require-vo.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserLoginRequireVO
|
||||
*/
|
||||
export interface UserLoginRequireVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserLoginRequireVO
|
||||
*/
|
||||
email: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserLoginRequireVO
|
||||
*/
|
||||
password?: string;
|
||||
}
|
55
blog-frontend/src/swagger/models/user-update-require-vo.ts
Normal file
55
blog-frontend/src/swagger/models/user-update-require-vo.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
* 用户信息
|
||||
* @export
|
||||
* @interface UserUpdateRequireVO
|
||||
*/
|
||||
export interface UserUpdateRequireVO {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserUpdateRequireVO
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserUpdateRequireVO
|
||||
*/
|
||||
nickname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserUpdateRequireVO
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserUpdateRequireVO
|
||||
*/
|
||||
role?: UserUpdateRequireVORoleEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum UserUpdateRequireVORoleEnum {
|
||||
GUEST = 'GUEST',
|
||||
AUTHOR = 'AUTHOR',
|
||||
ADMIN = 'ADMIN'
|
||||
}
|
||||
|
26
blog-frontend/src/swagger/models/v1-attach-body.ts
Normal file
26
blog-frontend/src/swagger/models/v1-attach-body.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OpenAPI definition
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: v0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface V1AttachBody
|
||||
*/
|
||||
export interface V1AttachBody {
|
||||
/**
|
||||
*
|
||||
* @type {Blob}
|
||||
* @memberof V1AttachBody
|
||||
*/
|
||||
file?: Blob;
|
||||
}
|
21
blog-frontend/src/swagger/tsconfig.json
Normal file
21
blog-frontend/src/swagger/tsconfig.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"noImplicitAny": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"dist",
|
||||
"node_modules"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user