You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
637 B

import { fetch } from '../../../utils/util';
export class Params {
/** 姓名 */
name?: string;
/** 手机号 */
phone?: string;
}
export type ResponseType = Promise<defs.ResultVO>;
export const URL = '/project/declarationAdd';
/**
* @desc add
*/
export function request(
params: Params,
options?: WechatMiniprogram.RequestOption,
): ResponseType {
let url = '/project/declarationAdd';
const fetchOption = Object.assign(
{
url: url,
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
params: params,
},
options,
);
return fetch(fetchOption);
}