From 515a265a809d0c12fb5cbff39cb743f391938a41 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 30 十一月 2023 08:49:34 +0800
Subject: [PATCH] 新增

---
 src/api/login.js |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/api/login.js b/src/api/login.js
index 69a8d71..85e37b4 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -22,7 +22,7 @@
 // 注册方法
 export function register(data) {
   return request({
-    url: '/register',
+    url: '/system/user/addAgency',
     headers: {
       isToken: false
     },
@@ -57,4 +57,29 @@
     method: 'get',
     timeout: 20000
   })
+}
+
+// 获取字典
+export function getDict(type) {
+  return request({
+    url: '/system/dictType/getDictDataByType',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    params: type
+  })
+}
+
+// 删除图片
+export function delPic(path) {
+  return request({
+    url: '/system/common/removeFile',
+    headers: {
+      isToken: false
+    },
+    method: 'delete',
+    params: path,
+    timeout: 20000
+  })
 }
\ No newline at end of file

--
Gitblit v1.9.2