import { Injectable, Injector } from '@angular/core';
import { BaseService } from '@shared';

@Injectable({
  providedIn: 'root',
})
export class MenuManagerService extends BaseService {
  // 新增/更新菜单
  $api_add_one = `/api/mdc/cuc/functionInfo/saveFunctionInfo`;

  // 根据应用ID获取所有菜单
  $api_get_all = `/scm/cuc/cuc/functionInfo/getAllFunctionInfoByAppId`;

  // 根据应用ID获取菜单
  $api_get_one = `/api/mdc/cuc/functionInfo/getAllFunctionInfoByAppId?_allow_badcode=true`;

  // 删除多个菜单
  $api_del_many = `/api/mdc/cuc/functionInfo/deletebatchFunctionInfo`;

  constructor(public injector: Injector) {
    super(injector);
  }
}
