初始化项目
This commit is contained in:
40
web-vue/packages/biz/api/biz/myAreaSource.ts
Normal file
40
web-vue/packages/biz/api/biz/myAreaSource.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* 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<MyAreaSource> {
|
||||
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<MyAreaSource>({ url: adminPath + '/biz/myAreaSource/list', params });
|
||||
|
||||
export const MyAreaSourceListData = (params?: MyAreaSource | any) =>
|
||||
defHttp.post<Page<MyAreaSource>>({ url: adminPath + '/biz/myAreaSource/listData', params });
|
||||
|
||||
export const MyAreaSourceForm = (params?: MyAreaSource | any) =>
|
||||
defHttp.get<MyAreaSource>({ url: adminPath + '/biz/myAreaSource/form', params });
|
||||
|
||||
export const MyAreaSourceSave = (params?: any, data?: MyAreaSource | any) =>
|
||||
defHttp.postJson<MyAreaSource>({ url: adminPath + '/biz/myAreaSource/save', params, data });
|
||||
|
||||
export const MyAreaSourceDelete = (params?: MyAreaSource | any) =>
|
||||
defHttp.get<MyAreaSource>({ url: adminPath + '/biz/myAreaSource/delete', params });
|
||||
|
||||
export const MyAreaSourceTreeData = (params?: any) =>
|
||||
defHttp.get<TreeDataModel[]>({ url: adminPath + '/biz/myAreaSource/treeData', params });
|
||||
Reference in New Issue
Block a user