You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
/**
|
|
|
|
* @description: Request result set
|
|
|
|
*/
|
|
|
|
export enum ResultEnum {
|
|
|
|
SUCCESS = 0,
|
|
|
|
ERROR = -1,
|
|
|
|
TIMEOUT = 400,
|
|
|
|
UNAUTHORIZED = 401,
|
|
|
|
INTERNAL_SERVER_ERROR = 500,
|
|
|
|
TYPE = 'success'
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @description: request method
|
|
|
|
*/
|
|
|
|
export enum RequestEnum {
|
|
|
|
GET = 'GET',
|
|
|
|
POST = 'POST',
|
|
|
|
PUT = 'PUT',
|
|
|
|
DELETE = 'DELETE'
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @description: contentType
|
|
|
|
*/
|
|
|
|
export enum ContentTypeEnum {
|
|
|
|
// json
|
|
|
|
JSON = 'application/json;charset=UTF-8',
|
|
|
|
// form-data qs
|
|
|
|
FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
|
|
|
|
// form-data upload
|
|
|
|
FORM_DATA = 'multipart/form-data;charset=UTF-8'
|
|
|
|
}
|