wms后台管理系统迁移

This commit is contained in:
2025-05-09 17:11:46 +08:00
parent a2b627c1aa
commit 17321702df
348 changed files with 46856 additions and 124 deletions

35
src/enums/httpEnum.ts Normal file
View File

@@ -0,0 +1,35 @@
/**
* @description请求配置
*/
export enum ResultEnum {
SUCCESS = 200,
ERROR = 500,
OVERDUE = 401,
TIMEOUT = 300000,
TYPE = "success"
}
/**
* @description请求方法
*/
export enum RequestEnum {
GET = "GET",
POST = "POST",
PATCH = "PATCH",
PUT = "PUT",
DELETE = "DELETE"
}
/**
* @description常用的 contentTyp 类型
*/
export enum ContentTypeEnum {
// json
JSON = "application/json;charset=UTF-8",
// text
TEXT = "text/plain;charset=UTF-8",
// form-data 一般配合qs
FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
// form-data 上传
FORM_DATA = "multipart/form-data;charset=UTF-8"
}