|
@@ -6,9 +6,13 @@ enum Api {
|
|
|
edit = '/app/appSitePlace/updateUnfixed',
|
|
|
deleteOne = '/app/appSitePlace/deleteUnfixed',
|
|
|
detaile = '/app/appCourese/queryById',
|
|
|
+ queryById = '/app/appSitePlace/queryPack',
|
|
|
+ Business = '/app/appSitePlace/queryByOrgCode',
|
|
|
}
|
|
|
export const list = (params) => defHttp.get({ url: Api.list, params });
|
|
|
-
|
|
|
+export const queryById = (params) => {
|
|
|
+ return defHttp.get({ url: Api.queryById, params });
|
|
|
+};
|
|
|
/**
|
|
|
* 删除单个
|
|
|
*/
|
|
@@ -17,7 +21,14 @@ export const deleteOne = (params, handleSuccess) => {
|
|
|
handleSuccess();
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+/**
|
|
|
+ * 营业名称
|
|
|
+ * @param params type:0是学校,1是体育馆,不传查全部
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export const Business = (params) => {
|
|
|
+ return defHttp.post({ url: `${Api.Business}`, data: params });
|
|
|
+};
|
|
|
/**
|
|
|
* 保存或者更新
|
|
|
* @param params
|