finance-pay-admin/pc/enums/requestEnums.ts

19 lines
361 B
TypeScript
Raw Normal View History

2023-11-08 18:02:55 +08:00
export enum ContentTypeEnum {
// json
JSON = 'application/json;charset=UTF-8',
// form-data 上传资源(图片,视频)
FORM_DATA = 'multipart/form-data'
}
export enum RequestMethodsEnum {
GET = 'GET',
POST = 'POST'
}
export enum RequestCodeEnum {
SUCCESS = 1,
FAIL = 0,
LOGIN_FAILURE = -1,
OPEN_NEW_PAGE = 2
}