tree.ts 406 B

123456789101112131415161718192021
  1. import { defHttp } from '/@/utils/http/axios'
  2. import { ErrorMessageMode } from '/@/utils/http/axios/types'
  3. enum Api {
  4. SectionAll = '/contract/section/all'
  5. }
  6. /**
  7. * @description: 获取设计表树结构
  8. */
  9. export function sectionAllApi(mode: ErrorMessageMode = 'message') {
  10. return defHttp.get<LoginResultModel>(
  11. {
  12. url: Api.SectionAll
  13. },
  14. {
  15. errorMessageMode: mode
  16. }
  17. )
  18. }