course/starbook/word-detail #138
Replies: 2 comments 2 replies
-
|
大佬,教程上有个文件名写错了 api/words/v1/words.god 应为: api/words/v1/words.go,另外就是想请教下,这个路由参数是怎么解析给Id的呢,怎么设置为uint类型的 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
func (c *ControllerV1) Detail(ctx context.Context, req *v1.DetailReq) (res *v1.DetailRes, err error) { |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
course/starbook/word-detail
单词详情接口通过GET请求获取不在列表中的单词详细信息,包含例句、中文翻译、发音等字段。使用模糊路由匹配,并通过接口的逻辑层实现对数据库的查询操作。
https://goframe.org/course/starbook/word-detail
Beta Was this translation helpful? Give feedback.
All reactions