/** * Copyright (c) 2013-Now http://jeesite.com All rights reserved. * No deletion without permission, or be held responsible to law. * @author gaoxq */ import { defHttp } from '@jeesite/core/utils/http/axios'; import { useGlobSetting } from '@jeesite/core/hooks/setting'; import { BasicModel, Page, TreeDataModel } from '@jeesite/core/api/model/baseModel'; const { adminPath } = useGlobSetting(); export interface MyAreaSource extends BasicModel { createTime: string; // 记录时间 areaId: string; // 区域标识 areaCode?: string; // 区域编号 areaName?: string; // 区域名称 pareaCode?: string; // 上级编号 areaLevel: number; // 区域级别 treeName?: string; // 区域地址 updateTime?: string; // 更新时间 areaStatus?: string; // 区域状态 } export const MyAreaSourceList = (params?: MyAreaSource | any) => defHttp.get({ url: adminPath + '/biz/myAreaSource/list', params }); export const MyAreaSourceListData = (params?: MyAreaSource | any) => defHttp.post>({ url: adminPath + '/biz/myAreaSource/listData', params }); export const MyAreaSourceForm = (params?: MyAreaSource | any) => defHttp.get({ url: adminPath + '/biz/myAreaSource/form', params }); export const MyAreaSourceSave = (params?: any, data?: MyAreaSource | any) => defHttp.postJson({ url: adminPath + '/biz/myAreaSource/save', params, data }); export const MyAreaSourceDelete = (params?: MyAreaSource | any) => defHttp.get({ url: adminPath + '/biz/myAreaSource/delete', params }); export const MyAreaSourceTreeData = (params?: any) => defHttp.get({ url: adminPath + '/biz/myAreaSource/treeData', params });