d2admin-service/README.md

43 lines
659 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# d2admin-service
#### 项目说明
```text
前端https://gitee.com/d2-projects/d2-admin-start-kit
后端从零开始。无依赖Casbin无二次封装适合学习。
```
### 文档地址
```text
# gin
https://gin-gonic.com/docs/quickstart
# gorm
https://gorm.io/zh_CN/docs/index.html
```
### 结构说明
```text
1、所有API接口必须在"src/infra/bind_api.go"上定义与"gin.HandlerFunc"的绑定关系
2、所有API接口必须在"system_router"表中定义
```
### golang版本
```text
go1.21.5 darwin/amd64
```
### 安装依赖并启动
```bash
go mod tidy
go run main.go
```
### 构建
```bash
go build -o d2admin-service
```