Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc11c6b3

Browse files
authored
Merge pull requestglennliao#17 from glennliao/dev
v0.2.0-beta
2 parentsccba021 +3b05f54 commitc11c6b3

33 files changed

+679
-522
lines changed

‎.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,16 @@ on:
77

88
jobs:
99
simple-test:
10-
run:cd test && go test -short
10+
runs-on:ubuntu-latest
11+
steps:
12+
-name:Checkout
13+
uses:actions/checkout@v2
14+
15+
-name:Set up Go
16+
uses:actions/setup-go@v3
17+
with:
18+
go-version:1.18
19+
cache:true
20+
21+
-name:test
22+
run:cd test && go test -short

‎.github/workflows/todo.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

‎@doc/action.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#非开放请求
22

3+
structures 不能省略层级, 可为空(则代表所有内容都开放)

‎@doc/functions.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
##1. 调用方式一 来自返回的字段 -> 因为默认simple字段会返回 -> 需要返回吗
2+
```json
3+
{
4+
"name":"hi",
5+
"aaa":"demo",
6+
"ref()":"sayHello(name,aaa)",
7+
"@a":0,
8+
"ref2()":"ret(@a)",
9+
"User": {
10+
"pic()":"getPic(userId)"// 来自当前User的字段, 需要分析函数依赖的字段和依赖函数字段的节点
11+
}
12+
}
13+
```
14+
15+
##2Z
16+
```json
17+
{
18+
"msg()":"sayHi",
19+
"msg2()":"sayHi()"
20+
}
21+
```

‎README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@
22
基于 go + goframe 实现的 apijson
33

44
>~~暂仍处于前期开发探索中, 请仅使用在 个人探索项目~~
5+
>
56
>~~目前处于 【下水阶段】, 欢迎测试、issue、建议、pr~~
7+
>
68
>目前处于 【摸石头阶段】, 欢迎测试、issue、建议、pr, 请勿使用在非个人的线上项目
79
810
[RoadMap 阶段规划](./@doc/roadmap.md)
911

1012
#快速体验
1113
<ahref="https://gitpod.io/#https://github.com/glennliao/apijson-go"target="_blank"><imgsrc="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
1214

13-
创建后 执行@demo/todo/tests 下的*_test.go 访问测试
15+
~~创建后 执行@demo/todo/tests 下的*_test.go 访问测试~~
1416

1517

1618
#使用指南
17-
暂参考demo目录下的todo
19+
~~暂参考demo目录下的todo~~
1820

1921
##文档参考
2022
1.[Get开放查询](./@doc/query.md)
2123
2.[非开放请求](./@doc/action.md)
2224
3.[权限控制](./@doc/access.md)
2325

2426

25-
#开发指南
27+
~~# 开发指南~~
2628
1. go >= 1.18
2729
2. 创建 mysql 数据库
2830
3. 导入 demo/todo/doc/todo.sql文件

‎README.zh-CN.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@
22
基于 go + goframe 实现的 apijson
33

44
>~~暂仍处于前期开发探索中, 请仅使用在 个人探索项目~~
5+
>
6+
>~~目前处于 【下水阶段】, 欢迎测试、issue、建议、pr~~
7+
>
8+
>目前处于 【摸石头阶段】, 欢迎测试、issue、建议、pr, 请勿使用在非个人的线上项目
59
6-
>目前处于 【下水阶段】, 欢迎测试、issue、建议、pr
710

811
[RoadMap 阶段规划](./@doc/roadmap.md)
912

1013
#快速体验
1114
<ahref="https://gitpod.io/#https://github.com/glennliao/apijson-go"target="_blank"><imgsrc="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
1215

13-
创建后 执行@demo/todo/tests 下的*_test.go 访问测试
16+
~~创建后 执行@demo/todo/tests 下的*_test.go 访问测试~~
1417

1518

1619
#使用指南
17-
暂参考demo目录下的todo
20+
~~暂参考demo目录下的todo~~
1821

1922
##文档参考
2023
1.[Get开放查询](./@doc/query.md)
2124
2.[非开放请求](./@doc/action.md)
2225
3.[权限控制](./@doc/access.md)
2326

2427

25-
#开发指南
28+
~~# 开发指南~~
2629
1. go >= 1.18
2730
2. 创建 mysql 数据库
2831
3. 导入@demo/todo/doc/todo.sql文件

‎action/action.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type Action struct {
3838
// jsonFieldStyle 数据库返回的字段
3939
JsonFieldStyle config.FieldStyle
4040

41-
Functions*config.Functions
4241
actionConfig*config.ActionConfig
4342
}
4443

‎action/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func RegHook(h Hook) {
2828

2929
funcEmitHook(ctx context.Context,hookAtint,node*Node,methodstring)error {
3030

31-
hooks:=append(hooksMap["*"],hooksMap[node.TableName]...)
31+
hooks:=append(hooksMap["*"],hooksMap[node.Key]...)
3232
for_,hook:=rangehooks {
3333

3434
varhandlerfunc(ctx context.Context,n*Node,methodstring)error

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp