import { fetch } from '../../../utils/util'; export type ResponseType = Promise; export const URL = '/test/user/detail3'; /** * @desc get方法传参,类接收,requestbody注解 */ export function request( bodyParams: defs.QUser, options?: WechatMiniprogram.RequestOption, ): ResponseType { let url = '/test/user/detail3'; const fetchOption = Object.assign( { url: url, method: 'GET', headers: { 'Content-Type': 'application/json', }, data: bodyParams, }, options, ); return fetch(fetchOption); }