Skip to content

【新】基于 Go + GoFrame 实现的 APIJSON,增删改查、权限校验等,本仓库为副本,请给原仓库右上角点亮 ⭐️ Star

License

Notifications You must be signed in to change notification settings

APIJSON/APIJSON-GoFrame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apijson-go [WIP]

基于 go + goframe 实现的 apijson

暂仍处于前期开发探索中, 请仅使用在 个人探索项目

功能实现

  • 单表查询、单表数组查询
  • 双表一对一关联查询、数组关联查询
  • 双表一对多关联查询、数组关联查询
  • @column, @order, @group, page, count
  • 单表单条新增
  • 单表单条修改
  • 单表单条、批量删除
  • Request表的tag校验
    • MUST
    • REFUSE
  • 可用的权限方案

查询实现

  1. 根据json构造节点树, 并检查节点结构(不符合直接返回)
  2. parse 节点树内容, 并分析关联关系(不要求json的key顺序, 因为go的原生map不支持顺序遍历)
  3. 从依赖关系中逐步fetch数据
  4. 构造响应数据

列表查询限制

  • []下只能有一个主查询表 (不依赖于列表中其他表)

开发指南

  1. go >= 1.18
  2. 创建mysql数据库
  3. 导入test.sql文件
  4. 修改配置文件config.yaml中数据库连接
  5. 运行go run main.go
  6. 查看测试test.http

感谢

参考链接

  1. 详细的说明文档.md
  2. 最新规范文档
  3. todo demo doc
  4. 如何实现其它语言的APIJSON?

About

【新】基于 Go + GoFrame 实现的 APIJSON,增删改查、权限校验等,本仓库为副本,请给原仓库右上角点亮 ⭐️ Star

Resources

License

Stars

Watchers

Forks

Languages

  • Go 100.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy