Skip to content

tpc-ht/rust-axum-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://139.159.180.129:81/salvo 账号:18613030352 密码:123456

本地启动

1.创建数据库并导入sql脚本
2.修改src/model/db.rs代码中的 rb.init(rbdc_mysql::driver::MysqlDriver {}, "mysql:https://root:[email protected]: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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages