You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Activity
TommyLemon commentedon Feb 16, 2023
是个 bug,我这边复现了,改用 5.4.0 以下试试
https://github.com/APIJSON/APIJSON-Demo/releases
cloudAndMonkey commentedon Feb 17, 2023
@aldag
可以使用APIJSON全能接口 crud, 校验调用远程函数(前置远程函数,可以改变 request 参数), 能实现一样的效果
crud:
相同数据源,不同语句 支持事物
支持apijson校验
{ "@post": { "User:aa": { "@datasource": "db2" }, "User_address[]": { "@datasource": "db2" } }, "User:aa": { "username": "test-3", "password": "233223", "state": 1 }, "ES_blog:a": { "@datasource": "elasticSearch", "title.keyword": "test-2" }, "User_address[]": [ { "user_id@": "User:aa/id", "addr": "ddd", "count@": "ES_blog:a/count" }, { "user_id@": "User:aa/id", "addr": "ddd1", "count@": "ES_blog:a/count" } ], "@explain": true, "format": true }TommyLemon commentedon Apr 12, 2023
这里不应该只 requestItem.put(_key, obj),丢了 "Request":{} 对象导致 objectVerify 抛异常,
应该把原始请求的所有键值对 put 进去,可以 requestItem.putAll(原来的 request 对象)。
可以改下源码试试,如果可以麻烦提 PR 贡献下代码哦,开源要大家一起参与贡献才会更美好~
https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md
wahowaho commentedon Apr 13, 2023
试了一下联合插入

您那边看看这么改可以不。
cloudAndMonkey commentedon Apr 13, 2023
@wahowaho
你好, pr已经看到, 感谢贡献
vertify 方法需要兼容 crud全能接口和 post等method.
按照@TommyLemon 的意思, 别名不做提前 解析, 通过 Request structure 配置解决
#468 (comment)
删除 tag 、JSONObject 别名判断的代码, 或者把crud 和其他 method区别处理, 我晚上测一下, parse里面 会将crud转换为 PUT、DELETE、POST等方法执行, 需要确认是否有影响
wahowaho commentedon Apr 14, 2023
@cloudAndMonkey 好滴好滴 ^_^
TommyLemon commentedon May 6, 2023
@cloudAndMonkey @aldag @wahowaho
6.1.0 已发布,解决了多表同时增删改的 bug 等问题;新增支持 Snowflake,Databricks,Cassandra;增强条件组合、参数校验等:
https://github.com/Tencent/APIJSON/releases/tag/6.1.0
https://github.com/APIJSON/apijson-framework/releases/tag/6.1.0
https://github.com/APIJSON/apijson-router/releases/tag/1.6.0
https://github.com/APIJSON/apijson-column/releases/tag/1.6.0