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.

30 lines
551 B

4 years ago
import { fetch } from '../../../utils/util';
export type ResponseType = Promise<defs.ResultVO<defs.Menu>>;
export const URL = '/api/menu/add';
/**
* @desc
*/
export function request(
bodyParams: defs.Menu,
options?: WechatMiniprogram.RequestOption,
): ResponseType {
let url = '/api/menu/add';
const fetchOption = Object.assign(
{
url: url,
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: bodyParams,
},
options,
);
return fetch(fetchOption);
}