mirror of
https://github.com/shuguangnet/Code-Master.git
synced 2025-01-24 00:18:44 +08:00
33 lines
1014 B
TypeScript
33 lines
1014 B
TypeScript
/* generated using openapi-typescript-codegen -- do not edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
|
|
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
type Headers = Record<string, string>;
|
|
|
|
export type OpenAPIConfig = {
|
|
BASE: string;
|
|
VERSION: string;
|
|
WITH_CREDENTIALS: boolean;
|
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
TOKEN?: string | Resolver<string> | undefined;
|
|
USERNAME?: string | Resolver<string> | undefined;
|
|
PASSWORD?: string | Resolver<string> | undefined;
|
|
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
};
|
|
|
|
export const OpenAPI: OpenAPIConfig = {
|
|
BASE: 'http://oj.shuguangwl.com:8101',
|
|
VERSION: '1.0',
|
|
WITH_CREDENTIALS: true,
|
|
CREDENTIALS: 'include',
|
|
TOKEN: undefined,
|
|
USERNAME: undefined,
|
|
PASSWORD: undefined,
|
|
HEADERS: undefined,
|
|
ENCODE_PATH: undefined,
|
|
};
|