localhost_oa_based/src/constants/response.constant.ts

16 lines
375 B
TypeScript
Raw Normal View History

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