-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add develop.md #77
add develop.md #77
Conversation
结构图那边,网关是从etcd里获取服务对应的地址,然后去请求微服务的,网关 和 server 之间应该是有交互的,结构图没有体现这点 |
面向新手的文档 需要新手来看,可以让 @拽奇奇 看看 |
你这个没有@到,而且我估计他没有配置邮件通知,可能得私聊一下 |
主要是我不知道他github id ,我的意思也是私聊一下 |
docs/develop.md
Outdated
#### 三层架构设计 | ||
显式将代码分为三层,分别是 Handler 层、服务层和数据层 | ||
|
||
以 `classroom` 为例 | ||
```bash | ||
├── handler.go # handler 层 | ||
├── pack # 用于打包返回给 api 的数据, 只由 handler 调用 | ||
│ └── classroom.go | ||
├── service | ||
├── get_room.go # 服务函数实现 | ||
├── get_room_test.go # 对应函数的单测 | ||
└── service.go # 服务的定义与实现 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这得换成新的layout一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
新的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你说呢,看看 README!
@SmilingSea 你可以看一下这份文档有没有哪里写的不行的,如果没啥问题的话周五就给他合入了 |
好的,这两天正在看这个文档,目前看起来没啥问题 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能不能过一遍 prettier?
@renbaoshuo cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 中英文标点混杂,典型例子:既有全角逗号也有半角逗号+空格;
- 行末要有标点,一句话的结束加句号,下面有命令/图表时加冒号;
逗号的问题应该解决了,但是句号和冒号我实在不知道怎么配置,有时间帮我改改罢🌹 |
你在搞什么,怎么行都被截断了? 我这个 review 是让你人工改的,不是 prettier 规则( |
我还以为是直接用 prettier💦 |
3f5140f
to
a6d84ac
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #77 +/- ##
======================================
Coverage ? 2.75%
======================================
Files ? 144
Lines ? 22484
Branches ? 0
======================================
Hits ? 620
Misses ? 21829
Partials ? 35
Flags with carried forward coverage won't be shown. Click here to find out more. |
写到后面变成流水账了,帮我改改罢