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

重构方向 #55

Open
dannyvi opened this issue Dec 14, 2020 · 0 comments
Open

重构方向 #55

dannyvi opened this issue Dec 14, 2020 · 0 comments

Comments

@dannyvi
Copy link

dannyvi commented Dec 14, 2020

几点记录:

  1. 在dispatch的handler前面使用meta_config生成校验serializer,用这个去检验request.data。
  2. viewset 和 flow 分开。在解释器里面加上环境参数Executor.start_flow(flow, request, env, *args, **kwargs)。

这里需要处理好 urlpatterns -> router -> view -> dispatch -> handler 路径和任务分派问题,有相互配合关系。

三种主要选型:

  1. View就是Flow,flow流程从dispatch开始介入
  2. 在dispatch的handler处开始引入flow流处理。
  3. 在action里面导入流处理。
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