import { axios } from 'marmot_design_ui'

export const {{camelCase apiName}} = {{#if hasParam}}(params:any){{else}}(){{/if}}:Promise<any> => {
    return axios.request({
        url: '{{url}}',
        method: '{{method}}',
        {{#if hasParam}}
        {{#if (isPost method)}}
        data: params,
        {{else}}
        params
        {{/if}}
        {{/if}}
    })
}
/* INJECT_CONFIG */

