tpc-ht / rust-axum-admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

axum-admin

接口状态码:

  1. 100: 接口错误
  2. 200: 正常
  3. 401: 未登录
  4. 403: 无权限
  5. 500: 服务器内部错误

是基于axum和rbatis的rbac权限管理系统

前端项目

https://github.com/feihua/antd-admin.git

相关rust web框架项目

https://github.com/feihua/actix-admin.git # actix-web框架
https://github.com/feihua/rocket-admin.git # rocket框架
https://github.com/feihua/salvo-admin.git # salvo-web框架

预览地址

http://139.159.180.129:81/salvo 账号:18613030352 密码:123456

本地启动

1.创建数据库并导入sql脚本
2.修改src/model/db.rs代码中的 rb.init(rbdc_mysql::driver::MysqlDriver {}, "mysql://root:123456@127.0.0.1:3306/rustdb").unwrap(); 为你自己的数据信息
3.启动 cargo run main.rs
4.验证脚本在docs目录下,请求接口前要先执行登录接口(user.http文件中)

POST {{host}}/api/login
Content-Type: application/json

{
  "mobile": "18613030352",
  "password": "123456"
}
> {% client.global.set("token", response.body.data.token); %}

系统截图

首页

home

用户界面

user

角色分配界面

user-role

角色界面

role

菜单分配界面

role-menu

菜单界面

menu

About

License:Apache License 2.0


Languages

Language:Rust 98.9%Language:Shell 0.7%Language:Dockerfile 0.4%