字典类型 CRUD

This commit is contained in:
2024-10-31 14:53:29 +08:00
parent b452636c37
commit b207bc0e68
26 changed files with 386 additions and 279 deletions

View File

@@ -7,20 +7,20 @@ import http from '@/api'
*/
// 用户登录
export const loginApi = (params: Login.ReqLoginForm) => {
// return http.post<Login.ResLogin>(`${rePrefix}/login`, params, { loading: false })
return http.post<Login.ResLogin>(`/Register1`, params, { loading: false })
return http.post<Login.ResLogin>(`${rePrefix}/login`, params, { loading: false })
// return http.post<Login.ResLogin>(`/Register1`, params, { loading: false })
}
// 获取菜单列表
export const getAuthMenuListApi = () => {
// return http.get<Menu.MenuOptions[]>(`${rePrefix}/menu/list`, {}, { loading: false })
return http.post<Menu.MenuOptions[]>(`/Register2`, {}, { loading: false })
return http.get<Menu.MenuOptions[]>(`${rePrefix}/menu/list`, {}, { loading: false })
// return http.post<Menu.MenuOptions[]>(`/Register2`, {}, { loading: false })
}
// 获取按钮权限
export const getAuthButtonListApi = () => {
// return http.get<Login.ResAuthButtons>(`${rePrefix}/auth/buttons`, {}, { loading: false })
return http.post<Login.ResAuthButtons>(`/Register3`, {}, { loading: false })
return http.get<Login.ResAuthButtons>(`${rePrefix}/auth/buttons`, {}, { loading: false })
// return http.post<Login.ResAuthButtons>(`/Register3`, {}, { loading: false })
}
// 用户退出登录