Skip to content
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

调研 #3

Open
kevinten10 opened this issue Oct 20, 2021 · 0 comments
Open

调研 #3

kevinten10 opened this issue Oct 20, 2021 · 0 comments

Comments

@kevinten10
Copy link
Member

1. 代码运行

1. java端

直接用http,先不用protobuf

2. 发布

将服务发布上去,

3. 调试

先试用mock,等最后再换成真实的服务调用

4. 前端

两个框,一个输入,一个输出,有个按钮。

到时候前端可以本地运行,后端在测试环境运行。

2. API定义

可能写一个简易的README文档,request,response

1. 代码定义

定义Request对象和Response对象

2. 定义框架

定义各个模块,各个模块怎么通过接口交互

3.

3. 代码实现

1. 解析Request

解析成自定义的domain对象

依赖API定义

2. 调用各个服务

并行调用,注册到上下文中,当有值时再调用

3. 定义上下文机制

包含通知+存储

4. 数据裁剪

调研一下JSON框架

不同的类型,INT ,String

1. 根据path格式裁剪JSON数据

写个工具类

2. 将path格式的map,拼接成JSON对象(response对象)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant