mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-03 12:05:28 +08:00
前端和后端源码,合并到一个git仓库中,方便用户下载,避免前后端不匹配的问题
This commit is contained in:
50
jeecgboot-vue3/src/enums/httpEnum.ts
Normal file
50
jeecgboot-vue3/src/enums/httpEnum.ts
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @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: contentTyp
|
||||
*/
|
||||
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',
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求header
|
||||
* @description: contentTyp
|
||||
*/
|
||||
export enum ConfigEnum {
|
||||
// TOKEN
|
||||
TOKEN = 'X-Access-Token',
|
||||
// TIMESTAMP
|
||||
TIMESTAMP = 'X-TIMESTAMP',
|
||||
// Sign
|
||||
Sign = 'X-Sign',
|
||||
// 租户id
|
||||
TENANT_ID = 'X-Tenant-Id',
|
||||
// 版本
|
||||
VERSION = 'X-Version',
|
||||
// 低代码应用ID
|
||||
X_LOW_APP_ID = 'X-Low-App-ID',
|
||||
}
|
||||
Reference in New Issue
Block a user