From c6ea4d092d5a1bb824f72b8ba7c742257bf98155 Mon Sep 17 00:00:00 2001
From: zhangda <221830074@smail.nju.edu.cn>
Date: Tue, 31 Dec 2024 10:03:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AE=E6=AD=8C?=
 =?UTF-8?q?=E5=8D=95=E5=90=8D=E7=A7=B0=E8=8E=B7=E5=8F=96=E6=AD=8C=E5=8D=95?=
 =?UTF-8?q?=E7=9A=84api?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/api/playlist.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/api/playlist.js b/src/api/playlist.js
index d2d2ad4..181e4ef 100644
--- a/src/api/playlist.js
+++ b/src/api/playlist.js
@@ -15,6 +15,17 @@ export const getPlaylistsByUser = (userInfo) => {
         });
 }
 
+/*
+    title: string
+ */
+export const getPlaylistsByTitle = (titleInfo) => {
+    console.log(titleInfo)
+    return axios.get(`${PLAYLIST_MODULE}/fetchByTitle`, { params: titleInfo })
+        .then(res => {
+            return res;
+        });
+}
+
 /*
     // TODO - modified
     - user_name: string
-- 
GitLab