初始化项目
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 });
|
||||
52
web-vue/packages/biz/api/biz/myCities.ts
Normal file
52
web-vue/packages/biz/api/biz/myCities.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://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 } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyCities extends BasicModel<MyCities> {
|
||||
cityId?: string; // 唯一主键
|
||||
createTime?: string; // 记录时间
|
||||
provinceCode: string; // 省份编码
|
||||
cityCode: string; // 市区编码
|
||||
cityName: string; // 市区名称
|
||||
areaCode: string; // 市区区号
|
||||
areaType: string; // 市区级别
|
||||
updateTime?: string; // 更新时间
|
||||
ustatus: string; // 状态
|
||||
}
|
||||
|
||||
export const myCitiesList = (params?: MyCities | any) =>
|
||||
defHttp.get<MyCities>({ url: adminPath + '/biz/myCities/list', params });
|
||||
|
||||
export const myCitiesListData = (params?: MyCities | any) =>
|
||||
defHttp.post<Page<MyCities>>({ url: adminPath + '/biz/myCities/listData', params });
|
||||
|
||||
export const myCitiesForm = (params?: MyCities | any) =>
|
||||
defHttp.get<MyCities>({ url: adminPath + '/biz/myCities/form', params });
|
||||
|
||||
export const myCitiesSave = (params?: any, data?: MyCities | any) =>
|
||||
defHttp.postJson<MyCities>({ url: adminPath + '/biz/myCities/save', params, data });
|
||||
|
||||
export const myCitiesImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myCities/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myCitiesDelete = (params?: MyCities | any) =>
|
||||
defHttp.get<MyCities>({ url: adminPath + '/biz/myCities/delete', params });
|
||||
53
web-vue/packages/biz/api/biz/myProvince.ts
Normal file
53
web-vue/packages/biz/api/biz/myProvince.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://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 } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyProvince extends BasicModel<MyProvince> {
|
||||
provinceId?: string; // 唯一主键
|
||||
createTime?: string; // 记录时间
|
||||
provinceName: string; // 省份名称
|
||||
provinceCode: string; // 省份编码
|
||||
sorting: number; // 省份序号
|
||||
ustatus: string; // 状态
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myProvinceList = (params?: MyProvince | any) =>
|
||||
defHttp.get<MyProvince>({ url: adminPath + '/biz/myProvince/list', params });
|
||||
|
||||
export const myProvinceListAll = (params?: MyProvince | any) =>
|
||||
defHttp.get<MyProvince[]>({ url: adminPath + '/biz/myProvince/listAll', params });
|
||||
|
||||
export const myProvinceListData = (params?: MyProvince | any) =>
|
||||
defHttp.post<Page<MyProvince>>({ url: adminPath + '/biz/myProvince/listData', params });
|
||||
|
||||
export const myProvinceForm = (params?: MyProvince | any) =>
|
||||
defHttp.get<MyProvince>({ url: adminPath + '/biz/myProvince/form', params });
|
||||
|
||||
export const myProvinceSave = (params?: any, data?: MyProvince | any) =>
|
||||
defHttp.postJson<MyProvince>({ url: adminPath + '/biz/myProvince/save', params, data });
|
||||
|
||||
export const myProvinceImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myProvince/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myProvinceDelete = (params?: MyProvince | any) =>
|
||||
defHttp.get<MyProvince>({ url: adminPath + '/biz/myProvince/delete', params });
|
||||
Reference in New Issue
Block a user