角色列表接口完成

This commit is contained in:
2026-08-18 15:54:56 +08:00
parent bf355b3fbf
commit b8571da035
4 changed files with 37 additions and 20 deletions
+24
View File
@@ -0,0 +1,24 @@
import { request } from '../request';
/** 获取角色列表
*
*/
export function roleListApi() {
return request({ url: '/api/role' });
}
/**
* 登录
*
* @param username User name
* @param password Password
*/
export function fetchLogin(username: string, password: string) {
return request({
url: '/api/auth/login',
method: 'post',
data: {
username,
password
}
});
}