import { ApiClientFactory } from "../core/api.client.factory"; import { SortCreateModel, SortCreateSecondModel } from "../model/createMent.model"; export class CreateMenuClient { constructor(private factory: ApiClientFactory) { } // 一级菜单排序 async loadCreateSort(data: SortCreateModel): Promise { const url = `/api/menu/admin/menu/first/sort` const createSote = await this.factory.entity.post(url, data); return createSote; } // 二菜单排序 async loadCreateSortSecond(data: SortCreateSecondModel): Promise { const url = `/api/menu/admin/menu/second/sort` const createSote = await this.factory.entity.post(url, data); return createSote; } }