/** * Copyright (c) 2013-Now http://jeesite.com All rights reserved. * No deletion without permission, or be held responsible to law. * @author ThinkGem */ import { defHttp } from '@jeesite/core/utils/http/axios'; import { useGlobSetting } from '@jeesite/core/hooks/setting'; import { BasicModel, Page } from '@jeesite/core/api/model/baseModel'; const { adminPath } = useGlobSetting(); export interface Module extends BasicModel { moduleCode?: string; // 模块编码 moduleName?: string; // 模块名称 description?: string; // 模块描述 mainClassName?: string; // 主类全名 currentVersion?: string; // 当前版本 upgradeInfo?: string; // 升级信息 } export const moduleList = (params?: Module | any) => defHttp.get({ url: adminPath + '/sys/module/list', params }); export const moduleListData = (params?: Module | any) => defHttp.post>({ url: adminPath + '/sys/module/listData', params }); export const moduleSelectData = (params?: Module | any) => defHttp.post({ url: adminPath + '/sys/module/selectData', params }); export const moduleForm = (params?: Module | any) => defHttp.get({ url: adminPath + '/sys/module/form', params }); export const moduleSave = (params?: any, data?: Module | any) => defHttp.postJson({ url: adminPath + '/sys/module/save', params, data }); export const moduleDisable = (params?: Module | any) => defHttp.get({ url: adminPath + '/sys/module/disable', params }); export const moduleEnable = (params?: Module | any) => defHttp.get({ url: adminPath + '/sys/module/enable', params }); export const moduleDelete = (params?: Module | any) => defHttp.get({ url: adminPath + '/sys/module/delete', params });