From ba911169712067ed25e6c757cc5a2b5b4e0ea670 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期四, 24 八月 2023 22:37:48 +0800
Subject: [PATCH] 魅宠

---
 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