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

查询不到数据,出参应该有当前结构而不是什么都不返回怎么设置呢?数据库字段采用驼峰如何设置(除了用字段名映射) #738

Closed gxmanito closed 1 week ago

gxmanito commented 3 months ago

Description

6.1.0版本 jdk8

  1. 查询不到数据,出参应该有当前结构而不是什么都不返回怎么设置呢,且某个字段为空也要返回当前key;
  2. 入参空字符串不作为where条件;
  3. 如何添加默认的入参?
TommyLemon commented 3 months ago

查不到数据问题见注意事项: https://github.com/Tencent/APIJSON?tab=readme-ov-file#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9

其它见常见问题: https://github.com/Tencent/APIJSON/issues/36

另外这种缺少请求 JSON 和返回结果(强烈推荐 APIAuto 截屏)的提问,下次不再回答直接关闭,这个 issue 没补充好也不再回复