Skip to content

如何做到先初始化完全局规则,后根据业务场景动态对请求data进行校验? #64

Description

@soh0ro0t

当前流程:
1.初始化engine
2.初始化datacontext
3.用datacontext加载规则
4.使用规则对数据进行判定

典型需求是先对规则完成初始化,全局加载,然后不同代码场景动态的地对请求data进行规则判定,即是实现:
1->4
2->3
2->3

不然每次检查数据,都需要完成2,3,4,规则不停重建,有什么方式能实现呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions