UNPKG

@jdlinker/system

Version:

jdLinker 系统模块

12 lines (10 loc) 349 B
import { defHttp } from '@jdlinker/func'; import { DemoOptionsItem, selectParams } from './model/optionsModel'; enum Api { OPTIONS_LIST = '/mock/select/getDemoOptions' } /** * @description: Get sample options value */ export const optionsListApi = (params?: selectParams) => defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST, params });