2022-12-04 21:42:59 +08:00

29 lines
534 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const config: {
result_code: number | string
unauthorized_code: number | string
default_headers: AxiosHeaders
request_timeout: number
} = {
/**
* 接口成功返回状态码
*/
result_code: 200,
/**
* 接口TOKEN失效返回状态码
*/
unauthorized_code: 401,
/**
* 接口请求超时时间
*/
request_timeout: 60000,
/**
* 默认接口请求类型
* 可选值application/x-www-form-urlencoded multipart/form-data
*/
default_headers: 'application/json'
}
export { config }