-
Notifications
You must be signed in to change notification settings - Fork 17
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
封装 request 类,处理所有api请求 #21
Comments
预计完成时间:1.9 - 1.12 |
I think this is a very strange layer and I can not understand why we need it. |
The aim for control all requests related
|
@su-chang Thanks for the explanation. I think what you described is very like the Wechaty Redux layer, you can have a look at https://github.com/wechaty/redux/blob/main/src/duck/actions.ts . Please feel free to go ahead and keep me updated, thanks. |
任务二 定义各个请求的枚举类型 是否是个实际的需求?因为并非通过API.Type进行调用。 @su-chang |
任务三 将请求和响应进行匹配 应该也并不需要,因为所有请求本身都会返回包含结果的Promise |
不是实际需求,当时只是大致的一个想法,具体按实际需要来定。 |
如果是这样的话,最好了。我们可以省去一些不必要的匹配代码。 |
The text was updated successfully, but these errors were encountered: