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.
 
 
 
 
 

33 lines
536 B

export enum ContentTypeEnum {
// json
JSON = 'application/json;charset=UTF-8',
// form-data 上传资源(图片,视频)
FORM_DATA = 'multipart/form-data',
}
/**
* 请求方式
*/
export enum RequestMethodsEnum {
GET = 'GET',
POST = 'POST',
DELETE = 'DELETE',
}
/**
* 请求结果
*/
export enum RequestCodeEnum {
SUCCESS = 200,
FAIL = 500,
LOGIN_FAILURE_ONE = 401,
LOGIN_FAILURE_TWO = 402,
PARAMS_FAIL = 400,
}
/**
* 请求配置
*/
export enum RequestConfig {
TOKENNAME = 'Authori-zation',
}