Tencent / APIJSON

🏆 实时 零代码、全功能、强安全 ORM 库 🚀 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构 🏆 Real-Time coding-free, powerful and secure ORM 🚀 providing APIs and Docs without coding by Backend, and the returned JSON of API can be customized by Frontend(Client) users
http://apijson.cn
Other
17.14k stars 2.15k forks source link

PUT, DELETE 请求将除id外的其他字段作为where条件如何使用 #752

Closed gxmanito closed 1 week ago

gxmanito commented 1 month ago

Description

你好,作者,想咨询一下,apijson6.3.0版本,配置IS_UPDATE_MUST_HAVE_ID_CONDITION = false后,将其他条件作为修改或者删除的where条件,参数该如何写呢 https://github.com/Tencent/APIJSON/issues/509,查了一下这个需要引入apijson-router,不引入可以实现这个功能吗

TommyLemon commented 1 month ago

DELETE 所有键值对都是条件;PUT 有功能符的就是条件,没有功能符的需要 @combine 指定为条件 https://github.com/Tencent/APIJSON/issues/277

为什么限制在GETS中使用@combine https://github.com/Tencent/APIJSON/issues/425