import { fetch } from '../../../utils/util'; export type ResponseType = Promise; export const URL = '/api/menu/reset'; /** * @desc 重置菜单元信息 */ export function request( bodyParams: defs.ResetMenuDTO, options?: WechatMiniprogram.RequestOption, ): ResponseType { let url = '/api/menu/reset'; const fetchOption = Object.assign( { url: url, method: 'POST', headers: { 'Content-Type': 'application/json', }, data: bodyParams, }, options, ); return fetch(fetchOption); }