You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
561 B
TypeScript
32 lines
561 B
TypeScript
/**
|
|
* @description: Request result set
|
|
*/
|
|
export enum ResultEnum {
|
|
SUCCESS = 0,
|
|
ERROR = -1,
|
|
TIMEOUT = 401,
|
|
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',
|
|
}
|