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.15k stars 2.15k forks source link

当前版本如何生成自定义主键id,关于put和delete除id之外的其他条件 #705

Open shuaizqz opened 5 months ago

shuaizqz commented 5 months ago

Description

1.如何自定义生成主键id

shuaizqz commented 5 months ago

PUT请求,Oa_apply_info 里面不能缺少 id 等[id]内的任何字段! DELETE请求,Oa_apply_info 里面不能缺少 id 等[id]内的任何字段! 这些是由request表中structure限制的吗

TommyLemon commented 5 months ago

AbstractVerifier.IS_UPDATE_MUST_HAVE_ID_CONDITION = false

https://github.com/Tencent/APIJSON/blob/7403f0a7471819ae8897c2fa56ea7eea4ab9c4c7/APIJSONORM/src/main/java/apijson/orm/AbstractVerifier.java#L83-L85