common.ts 475 B

123456789101112131415161718
  1. /**
  2. * Common / Base config API module
  3. * 通用常量配置等相关接口
  4. */
  5. import { http } from '~/utils/request'
  6. import type { ResultVOMapObjectObject } from '~/types/api'
  7. export const commonApi = {
  8. /**
  9. * 获取通用常量配置
  10. * 对应后端接口:POST /base/consts/config
  11. * 免登录,按后端要求使用 application/x-www-form-urlencoded
  12. */
  13. getBaseConstsConfig() {
  14. return http.post<ResultVOMapObjectObject>('/base/consts/config')
  15. },
  16. }