Skip to content

Commit da34000

Browse files
committed
## 0.14.0: 增加home,用于存放常用程序入口地址
1 parent 9287807 commit da34000

33 files changed

+1470
-438
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222
- [x] markdown 编辑
2323

2424
## 截图
25-
## bookmark
26-
![](./screenshot/bookmark1.png)
27-
![](./screenshot/bookmark2.png)
28-
![](./screenshot/bookmark3.png)
29-
## note
30-
![](./screenshot/note1.png)
25+
26+
![](./screenshot/home.jpg)
27+
![](./screenshot/bookmark.jpg)
28+
![](./screenshot/note.jpg)
3129

3230

3331
## 使用

app/access.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ func AccessCondition(ctx context.Context, req config.ConditionReq, where *config
143143
delete(req.NodeReq, "q")
144144
}
145145
}
146+
case "AppList":
147+
where.Add("user_id", user.UserId)
146148

147149
case "Config":
148150
where.Add("for_id", user.UserId)

app/inits/_access.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,28 @@
182182
"rowKeyGen": "idgen",
183183
"executor": "default"
184184
},
185+
{
186+
"name": "app_list",
187+
"alias": "AppList",
188+
"get": ["LOGIN","OWNER","GroupUser","GroupAdmin"],
189+
"head":["LOGIN","OWNER","GroupUser","GroupAdmin"],
190+
"gets":["LOGIN","OWNER","GroupUser","GroupAdmin"],
191+
"heads":["LOGIN","OWNER","GroupUser","GroupAdmin"],
192+
"post":["LOGIN","OWNER","GroupUser","GroupAdmin"],
193+
"put":["LOGIN","OWNER","GroupUser","GroupAdmin"],
194+
"delete":["LOGIN","OWNER","GroupUser","GroupAdmin"],
195+
"rowKey": "app_id",
196+
"fieldsGet": {
197+
"default": {
198+
"in": {},
199+
"out": {
200+
201+
}
202+
}
203+
},
204+
"rowKeyGen": "idgen",
205+
"executor": "default"
206+
},
185207
{
186208
"name": "tag",
187209
"alias": "Tag",

app/inits/_reuqest.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,34 @@
196196
"Note": {}
197197
},
198198
"Executor": {}
199+
},
200+
201+
{
202+
"tag": "AppList",
203+
"version": "1",
204+
"method": "POST",
205+
"structure": {
206+
"AppList": {}
207+
},
208+
"Executor": {}
209+
},
210+
{
211+
"tag": "AppList",
212+
"version": "1",
213+
"method": "PUT",
214+
"structure": {
215+
"AppList": {}
216+
},
217+
"Executor": {}
218+
},
219+
{
220+
"tag": "AppList",
221+
"version": "1",
222+
"method": "DELETE",
223+
"structure": {
224+
"AppList": {}
225+
},
226+
"Executor": {}
199227
}
200228

201229
]

app/inits/table.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,23 @@ type (
128128
}
129129
)
130130

131+
type (
132+
AppList struct {
133+
tablesync.TableMeta `charset:"utf8mb4" comment:"应用"`
134+
Id uint64 `ddl:"primaryKey"`
135+
AppId string `ddl:"size:32;comment:appId"`
136+
Title string `ddl:"size:128;comment:标题"`
137+
Url string `ddl:"size:512;comment:书签地址"`
138+
Icon string `ddl:"size:256;comment:图标地址"`
139+
Remark string `ddl:"size:1024;comment:备注"`
140+
From string `ddl:"size:32;comment:来源"`
141+
UserId string `ddl:"size:128;comment:标题"`
142+
Created
143+
Updated
144+
Deleted
145+
}
146+
)
147+
131148
type (
132149
Tag struct {
133150
tablesync.TableMeta `charset:"utf8mb4" comment:"标签"`
@@ -163,6 +180,8 @@ func Tables() []tablesync.Table {
163180
Note{},
164181
NoteHistory{},
165182

183+
AppList{},
184+
166185
Tag{},
167186
Config{},
168187
}

screenshot/bookmark.jpg

125 KB
Loading

screenshot/bookmark1.png

-32.2 KB
Binary file not shown.

screenshot/bookmark2.png

-47.3 KB
Binary file not shown.

screenshot/bookmark3.png

-55.3 KB
Binary file not shown.

screenshot/home.jpg

53.7 KB
Loading

0 commit comments

Comments
 (0)