820 Star 6.4K Fork 1.5K

GVP腾讯开源/APIJSON

希望在保存,及修改的数据的时候,能够根据业务需求加密操作

Backlog
Opened this issue  
2025-04-23 15:33

Description

现在业务需求,如果根据数据库不同的敏感字段,需要在保存数据的时候,调用加密方法,修改前端传递过来的值,进行加密保存,这个要用apijson 能实现吗

Comments (1)

xiaoyu created任务 2 months ago

可以在 DemoSQLConfig 重写 getValue/gainValue(key, column, value) 判断 getTable 和 key 是不是需要加密的表字段,是的话就加密。

或者在 DemoFunctionParser 新增一个远程函数对参数进行加密,Request 对应请求配置调用这个函数,把需要加密的字段传参进去。
https://github.com/Tencent/APIJSON/issues/101

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
485581 tommylemon 1578925347 xiaoyu-charryyu
Java
1
https://gitee.com/Tencent/APIJSON.git
git@gitee.com:Tencent/APIJSON.git
Tencent
APIJSON
APIJSON

Search