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.

34 lines
536 B

10 months ago
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',
}