GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 零代码接口和文档 apijson-go 开源,APIJSON 的 Golang 版实现 · Issue #520 · APIJSON/APIJSON

零代码接口和文档 apijson-go 开源,APIJSON 的 Golang 版实现 #520

New issue
Copy link
New issue
Copy link
Closed
Closed
零代码接口和文档 apijson-go 开源,APIJSON 的 Golang 版实现#520
Copy link
Labels
Ecosystem 周边生态完善生态(Go语言版、更多Demo、周边工具等)完善生态(Go语言版、更多Demo、周边工具等)

Description

@TommyLemon
TommyLemon
opened on Feb 24, 2023
Issue body actions

Description

image
image

apijson-go 是 APIJSON 的 Golang 版实现,支持零代码实现增删改查接口并提供文档。
https://www.oschina.net/news/229221/apijson-go-opensource

已实现的功能:

  • 单表查询、单表数组查询

  • 双表一对一关联查询、数组关联查询

  • 双表一对多关联查询、数组关联查询

  • @column, @order, @group, page, count

  • 单、多表单条新增

  • 单、多表单条修改

  • 单、多表单条、批量删除

  • Request表的tag校验

    • MUST
    • REFUSE
  • 分页返回total@

  • 可用的权限方案

    • get只有access中定义的才能访问
    • 非get操作则必须与request指定一致才可请求
    • 基于角色控制
  • 远程函数

  • 查询节点 自定义查询数据

  • 字段限制

计划后续实现:

  •  错误提示完善

  • 请求结构复杂度限制

开发指南

  1. go >= 1.18
  2. 创建 mysql 数据库
  3. 导入 demo/todo/doc/todo.sql文件
  4. demo/todo/config.yaml.example 改成 demo/todo/config.yaml, 然后修改配置文件 config.yaml 中数据库连接
  5. 在demo/todo 目录运行 go run main.go 或者 查看测试 demo/todo/tests

还配套开源了 apijson-go-demo 和 apijson-go-ui

点右上角 ⭐Star 支持一下热心的作者吧~
https://github.com/glennliao/apijson-go

https://gitee.com/glennliao/apijson-go

Activity

  1. TommyLemon
    changed the title [-]零代码接口和文档 apijson-go 开源,腾讯 APIJSON 的 Golang 版实现[/-] [+]零代码接口和文档 apijson-go 开源,APIJSON 的 Golang 版实现[/+] on Feb 24, 2023
  2. TommyLemon
    added
    Ecosystem 周边生态完善生态(Go语言版、更多Demo、周边工具等)完善生态(Go语言版、更多Demo、周边工具等)
    on Feb 24, 2023
  3. TommyLemon
    closed this as completedon May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ecosystem 周边生态完善生态(Go语言版、更多Demo、周边工具等)完善生态(Go语言版、更多Demo、周边工具等)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.