APIJSON icon indicating copy to clipboard operation
APIJSON copied to clipboard

🏆 零代码、全功能、强安全 ORM 库 🚀 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构。 🏆 A JSON Transmission Protocol and an ORM Library 🚀 provides APIs and Docs without writing any co...

Results 288 APIJSON issues
Sort by recently updated
recently updated
newest added

你好,请问oracle日期比较,比如 where sysdate>to_date('20211014','YYYYMMDD') 这种该如何使用呢? 请指点一下谢谢!

Enhancement 增强
Question 使用问题
Oracle

**环境信息** - 系统:Windows 10 - JDK: 1.8.0_17 - 数据库:MySQL 8.0.28 - APIJSON: 4.9.1 **问题描述** 在进行多表连接时,不知道为什么其它表的字段会加入那个表中。 数据库结构: ![image](https://user-images.githubusercontent.com/95343401/160996302-e5135543-14c7-44e4-bbba-672137bb4526.png) ![image](https://user-images.githubusercontent.com/95343401/160996347-a7df9121-42ce-4adc-ac13-c790d6f1fc52.png) 执行的apijson表达式: ```json { "[]": { "join": "&/Lrx_score:t2/sid@,&/Lrx_score:t3/sid@,&/Lrx_score:t4/sid@", "Lrx_student": { }, "Lrx_score:t2": {...

Bug 漏洞

{"@Explain":true, "[]": { Tda_datasource_header: { "@from@":{ "from":"Tda_datasource_header", "join":"&/Tda_datasource_tableset/set_key@", Tda_datasource_tableset:{ "@column": "set_name_cn", "set_key@":"/Tda_datasource_header/set_key" }, Tda_datasource_header:{ } }, "@order": "row_id", }, "count": 10000, "page": 0 }, } ![image](https://user-images.githubusercontent.com/69414375/168778364-e7c5bd00-4b1b-44ef-ac21-66f3b3eeaf73.png) 这是我的查询语句,需要用主表Tda_datasource_header连接副表 Tda_datasource_tableset,通过set_key连接。

Question 使用问题

### **有什么功能建议可以在这里回复,点赞数高的回复将会被加入开发计划**

Enhancement 增强

接入自定义数据后数据库后,在调试GET、POST、PUT接口时遇到了一些问题,把个人的摸索经验分享一下,希望作者能梳理下文档,方便我们更好的接入,目前感觉文档没有涵盖这些接入的关键问题,都需要遇到问题之后自己到issue中查找,接入比较耗时。 前提步骤: (必须操作,否则后续调试报错) 1.已有数据库tool,初始化时候需要把demo中的apijson.sql导入数据库tool中 2.在ACCESS表中参照其他记录,为自有的数据库表新增ACCESS记录,例如tool库中有task表,则新增task表对应记录 3.对于需要用到PUT、POST这类非公开接口的表,参照REQUEST表中其他记录,增加对应表记录,例如tool库中的task表需要用post接口,在需要在REQUEST表中新增记录 4.ACCESS、REQUEST表新增记录后,需要重新启动java应用,才能读取到更新的记录 (注意:需要用到的表都需要新增记录,否则会报错) 调试: 1.在apijson.org/api 调试 get接口 ,正常,参照文档即可 2.在apijson.org/api 调试 post、put接口 1)因为本身系统已经进行了权限校验,不需要apijson再对post、put这类接口进行权限校验,所以 参考该issue 问题 13 https://github.com/Tencent/APIJSON/issues/36 代码实现: ![image](https://user-images.githubusercontent.com/62273402/103518876-7e4ab280-4eaf-11eb-93f8-8031e4c5ec0f.png) 调试结果正常: ![image](https://user-images.githubusercontent.com/62273402/103519039-c5d13e80-4eaf-11eb-8480-35f6ff4c93cc.png) 2)如果数据库表是id自增设计,不需要apijson自动生成id,则参考该issue进行修改 https://github.com/Tencent/APIJSON/issues/186 ![image](https://user-images.githubusercontent.com/62273402/103518782-522f3180-4eaf-11eb-8f14-a0a03115aab7.png) 调试结果正常: ![image](https://user-images.githubusercontent.com/62273402/103518825-66732e80-4eaf-11eb-9b74-6912a75c6434.png)

Question 使用问题
Document 文档

某人【腾讯】 TEG 一面面经:被问了 APIJSON https://www.nowcoder.com/discuss/865751?type=2&order=3&pos=24&page=1&ncTraceId=&channel=-1&source_id=discuss_tag_nctrack ![FF4794A656B9905358D4AAA7C91DF7AF](https://user-images.githubusercontent.com/5738175/162486237-2d6c084d-3c62-4ec6-8824-a7053e522c79.jpg) 感谢这位楼主分享,祝顺利~

Job Interview 面试

赞,感谢楼主的分享~ https://www.nowcoder.com/discuss/865957?source_id=profile_create_nctrack&channel=-1 ![image](https://user-images.githubusercontent.com/5738175/165349290-a3e9c4cf-b080-474b-adf5-333342d8775f.png)

Job Interview 面试

**具体说下** 希望完善对象映射,暴露给前端是对象查询,而不是数据库查询; 类似odata这种; **为什么** 1.数据库字段暴露本身比较危险, 2.其次数据库命名并不符合数据获取,虽然可以as,但不能指望前端去做数据库方面东西 3.很多时候前端是不能接触后端数据表的 4.有些字段是需要权限控制的

Enhancement 增强

现在仅仅支持本地数据库中的表生成接口。 建议增加一个数据库管理,可以配置多个数据库、各种类型的数据库。查询的表可以从各个数据库中选择。 那么只需要分布式部署一套程序。所有的应用都可以支撑了。

Document 文档

比如图数据库

Enhancement 增强
help wanted