From 44d78ecb8ce6edd9e359e55a9d599ae632bf957b Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期四, 12 十月 2023 11:00:22 +0800
Subject: [PATCH] prod改为dev试下
---
ruoyi-ui/src/api/pet/index.js | 35 +++++++++++++++++++++++++++++++----
1 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/api/pet/index.js b/ruoyi-ui/src/api/pet/index.js
index f23068b..ae4a9c8 100644
--- a/ruoyi-ui/src/api/pet/index.js
+++ b/ruoyi-ui/src/api/pet/index.js
@@ -46,10 +46,10 @@
//榄呭疇澶囧繕褰�
-// 鏌ヨ鎵�鏈夐瓍瀹犲蹇樺綍璁板綍
+// 鏍规嵁榄呭疇id 鏌ヨ鎵�鏈夊蹇樻湰
export function listPetnote(query) {
return request({
- url: '/family/zfPetNote/all',
+ url: '/family/zfPetNote',
method: 'get',
params: query
})
@@ -75,15 +75,42 @@
// 鍒犻櫎榄呭疇澶囧繕褰曡褰�
export function delPetnote(Ids) {
return request({
- url: '/zfPet/' + Ids,
+ url: '/family/zfPetNote/' + Ids,
method: 'delete'
})
}
//淇敼榄呭疇澶囧繕褰曡褰�
export function updatenotePet(data) {
return request({
- url: '/zfPet',
+ url: '/family/zfPetNote',
method: 'put',
data: data
})
}
+
+
+//涓婁紶鏂囦欢
+export function uploadPic(data) {
+ return request({
+ url: '/common/upload',
+ method: 'post',
+ data: data
+ })
+}
+//涓嬭浇鏂囦欢
+export function download(data) {
+ return request({
+ url: '/common/downLoadFile',
+ method: 'get',
+ params: data,
+ responseType: 'blob'
+ })
+}
+//瀵煎叆
+export function enload(pid) {
+ return request({
+ url: '/zfPetNote/importData/' + pid,
+ method: 'post',
+ data: data
+ })
+}
--
Gitblit v1.9.1