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.27k stars 2.16k forks source link

批量更新参数校验咨询 #639

Closed csx-bill closed 11 months ago

csx-bill commented 11 months ago

Description

请求参数 { "SysDataRule":{ "id{}": ["1701158323197","1701158422987"], "del_flag" : 1 } }

Request 表的 structure 参数校验格式

{ "SysDataRule":{ "MUST":"id{},del_flag", "REFUSE":"!id{},!del_flag,!", "TYPE":{ "id":"STRING[]", "del_flag":"NUMBER" }, "VERIFY":{ "del_flag{}":[1] } } }

响应信息

{"msg":"PUT请求,/SysDataRule 里面的 id{}:[] 中[]的长度不能超过 0 !","status":406}

csx-bill commented 11 months ago

我看了下代码 发下 apijson-router maxUpdateCount 这里 写死了 0 image

csx-bill commented 11 months ago

看起来已经实现了软删除 image

当我重写了 image

image