Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SchwarzSail committed Nov 5, 2024
1 parent 46ea355 commit 2256684
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@ flowchart TD
#### 三层架构设计
显式将代码分为三层,分别是 Handler 层、服务层和数据层

`classroom` 为例
`course` 为例
```bash
├── handler.go # handler 层
├── pack # 用于打包返回给 api 的数据, 只由 handler 调用
│ └── classroom.go
.
├── handler.go # handler 层
├── pack # 用于打包返回给 api 的数据, 只由 handler 调用
│ └── classroom.go
├── service
├── get_room.go # 服务函数实现
├── get_room_test.go # 对应函数的单测
└── service.go # 服务的定义与实现
├── get_room.go # 服务函数实现
├── get_room_test.go # 对应函数的单测
└── service.go # 服务的定义与实现
```


Expand Down

0 comments on commit 2256684

Please sign in to comment.