zhengyiming
5 天以前 e063d2153f5d2c72178a13c2c35c3f8b97f2368a
packages/services/apiV2/auth.ts
@@ -2,6 +2,21 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 绑定手机号 POST /api/user/auth/bindPhoneNumber */
export async function bindPhoneNumber(
  body: API.BindPhoneNumberCommand,
  options?: API.RequestConfig
) {
  return request<boolean>('/api/user/auth/bindPhoneNumber', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 获取阿里云OSS授权信息 GET /api/user/auth/getAliyunOSSAcs */
export async function getAliyunOSSAcs(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
@@ -89,3 +104,15 @@
    ...(options || {}),
  });
}
/** 微信小程序登录 POST /api/user/auth/wxmpLogin */
export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) {
  return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}