import { fetch } from '../../../utils/util'; export class Params { /** 姓名 */ name?: string; /** 手机号 */ phone?: string; } export type ResponseType = Promise; export const URL = '/test/user/detail11'; /** * @desc post方法传参,类接收,无注解 */ export function request( params: Params, options?: WechatMiniprogram.RequestOption, ): ResponseType { let url = '/test/user/detail11'; const fetchOption = Object.assign( { url: url, method: 'POST', headers: { 'Content-Type': 'application/json', }, params: params, }, options, ); return fetch(fetchOption); }