README
¶
apijson-go [摸石头阶段]
基于 go + goframe 实现的 apijson
暂仍处于前期开发探索中, 请仅使用在 个人探索项目
目前处于 【下水阶段】, 欢迎测试、issue、建议、pr目前处于 【摸石头阶段】, 欢迎测试、issue、建议、pr, 请勿使用在非个人的线上项目
快速体验
创建后 执行 @demo/todo/tests 下的 *_test.go 访问测试
使用指南
暂参考demo目录下的todo
文档参考
# 开发指南
- go >= 1.18
- 创建 mysql 数据库
- 导入 demo/todo/doc/todo.sql文件
- demo/todo/config.yaml.example 改成 demo/todo/config.yaml, 然后修改配置文件 config.yaml 中数据库连接
- 在demo/todo 目录运行 go run main.go 或者 查看测试 demo/todo/tests
感谢
参考链接
Documentation
¶
Index ¶
- Variables
- type ApiJson
- func (a *ApiJson) Config() *config.Config
- func (a *ApiJson) Load()
- func (a *ApiJson) NewAction(ctx context.Context, method string, req model.Map) *action.Action
- func (a *ApiJson) NewQuery(ctx context.Context, req model.Map) *query.Query
- func (a *ApiJson) Use(p ...func(ctx context.Context, a *ApiJson)) *ApiJson
- type App
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultApiJson = New()
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.