category.ts 381 B

1234567891011121314151617
  1. /**
  2. * Category API module
  3. * 品类树型结构相关接口
  4. */
  5. import { http } from '~/utils/request'
  6. import type { ListVOBizCategoryVo } from '~/types/api'
  7. export const categoryApi = {
  8. /**
  9. * 获取品类树(一级品类 + 子品类)
  10. * 对应后端接口:POST /biz/categorys
  11. */
  12. listTree() {
  13. return http.post<ListVOBizCategoryVo>('/biz/categorys')
  14. },
  15. }