前端和后端源码,合并到一个git仓库中,方便用户下载,避免前后端不匹配的问题

This commit is contained in:
JEECG
2024-06-23 10:39:52 +08:00
parent bb918b742e
commit 0325e34dcb
1439 changed files with 171106 additions and 0 deletions

View 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',
}