localhost_oa_based/src/constants/response.constant.ts

16 lines
377 B
TypeScript
Raw Normal View History

2024-02-28 17:02:46 +08:00
export const RESPONSE_SUCCESS_CODE = 200;
2024-02-28 08:32:35 +08:00
2024-02-28 17:02:46 +08:00
export const RESPONSE_SUCCESS_MSG = 'success';
2024-02-28 08:32:35 +08:00
/**
* @description: contentType
*/
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',
}