From 12b8d3cdfdf42c6f5f7d2120c2c0a09973af2241 Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期二, 13 八月 2024 19:31:57 +0800
Subject: [PATCH] 用户字段调整

---
 src/api/authority.ts |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/src/api/authority.ts b/src/api/authority.ts
index f3a9039..6ef6840 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -63,6 +63,44 @@
   total: number;
 }
 
+export interface Role {
+  roleId:  string;
+  createTime:  string;
+  updateTime:  string;
+  roleName:  string;
+  remark:  string;
+  iconCls:  string;
+  roleSort:  string;
+  status:  string;
+  roleKey:  string;
+  dataScope:  string;
+  dept: any;
+  resources: any;
+}
+
+export function RoleList(params: Pagination) {
+  return axios.get<Result<Role[]>>('/base/system/role/list', { params });
+}
+
+export function RoleDelete(id) {
+  return axios.delete('/base/system/role/' + id);
+}
+
+export function RoleEdit(role) {
+  return axios.put('/base/system/role', { role });
+}
+
+export function RoleAdd(role) {
+  return axios.post('/base/system/role', { role });
+}
+
+export function Rolestatus(roleId, status) {
+  return axios.put('/base/system/role/changeStatus', {
+    roleId: roleId,
+    status: status,
+  });
+}
+
 export function UserList(params: Pagination) {
   return axios.get<Result<User[]>>('/base/system/user/list', { params });
 }

--
Gitblit v1.8.0