zhengyiming
2025-11-12 d13efc10f2a59705f142d24c5b05f925b7f9b131
src/services/api/BaseModuleNew.ts
@@ -2,6 +2,18 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 此处后端没有提供注释 POST /api/BaseModuleNew/AddOrEditModuleV2 */
export async function addOrEditModuleV2(body: API.ModuleDtoV2, options?: API.RequestConfig) {
  return request<string>('/api/BaseModuleNew/AddOrEditModuleV2', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 查询所有模块 GET /api/BaseModuleNew/GetAllModuleList */
export async function getAllModuleList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
@@ -17,6 +29,21 @@
  });
}
/** 此处后端没有提供注释 GET /api/BaseModuleNew/GetCurrentUserModuleListV2 */
export async function getCurrentUserModuleListV2(
  body: API.ModuleDtoV2,
  options?: API.RequestConfig
) {
  return request<number>('/api/BaseModuleNew/GetCurrentUserModuleListV2', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 此处后端没有提供注释 GET /api/BaseModuleNew/GetUserOrRoleModuleList */
export async function getUserOrRoleModuleList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)