-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/tanlang/replace client with api / 用封装好的 api 代替 httpClient #3
Feat/tanlang/replace client with api / 用封装好的 api 代替 httpClient #3
Conversation
22ec5b5
to
367e323
Compare
@@ -21,43 +24,12 @@ func registerRoute(s *service.Service) http.Handler { | |||
}) | |||
|
|||
apiV0Group := router.Group("/api/v0") | |||
Register(apiV0Group, s, service.IServiceStruct{}.Internal) |
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.
return err rather than panic when create client
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.
现在的实现让调用和新增API变简单了,前提是信任所有的封装是ok的.增加了参与者入门的复杂度,封装部分看起来后续基本不需要改,所以个人觉得还好
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.
LGTM
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.
LGTM
Proposal Change