wupengfei
8 天以前 87af8eda59a2679cb1c9295012adda05b72cde85
src/services/api/auth.ts
@@ -12,8 +12,40 @@
    method: 'GET',
    params: {
      ...params,
      query: undefined,
      ...params['query'],
      request: undefined,
      ...params['request'],
    },
    ...(options || {}),
  });
}
/** 获取当前登录用户菜单详情 GET /api/user/auth/getCurrentLogierMenu */
export async function getCurrentLogierMenu(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetCurrentLogierMenuParams,
  options?: API.RequestConfig
) {
  return request<API.GetMenuQueryResult>('/api/user/auth/getCurrentLogierMenu', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 获取当前登录用户菜单 GET /api/user/auth/getCurrentLogierMenus */
export async function getCurrentLogierMenus(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetCurrentLogierMenusParams,
  options?: API.RequestConfig
) {
  return request<API.GetMenusQueryResultItem[]>('/api/user/auth/getCurrentLogierMenus', {
    method: 'GET',
    params: {
      ...params,
      request: undefined,
      ...params['request'],
    },
    ...(options || {}),
  });
@@ -30,3 +62,15 @@
    ...(options || {}),
  });
}
/** 发送验证码 POST /api/user/auth/sendVerifyCode */
export async function sendVerifyCode(body: API.SendVerifyCodeCommand, options?: API.RequestConfig) {
  return request<string>('/api/user/auth/sendVerifyCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}