Skip to content

Commit 3f79703

Browse files
author
sun_song_1203
committed
Merge branch 'gin-vue-admin_v2_dev' of https://github.com/flipped-aurora/gin-vue-admin into gin-vue-admin_v2_dev
2 parents fc88a54 + c13f04d commit 3f79703

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2019 JiZhao Jiang
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README-zh_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ go run main.go;
179179
- api管理:不同用户可调用的api接口的权限不同。
180180
- 配置管理:配置文件可前台修改(测试环境不开放此功能)。
181181
- 富文本编辑器:MarkDown编辑器功能嵌入。
182-
- 条件搜索:增加条件搜索示例。
182+
- 条件搜索:增加条件搜索示例。
183+
- restful示例:参考客户管理功能,customer组api。
183184
```
184185
前端文件参考: src\view\superAdmin\api\api.vue
185186
后台文件参考: model\dnModel\api.go

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ go run main.go;
177177
- Configuration management: The configuration file can be modified in the web page (the test environment does not provide this function).
178178
- Rich text editor: Embed MarkDown editor function.
179179
- Conditional search: Add an example of conditional search.
180+
- Restful example: refer to customer management function and apidcustomer group.
181+
180182
```
181183
fontend code file: src\view\superAdmin\api\api.vue
182184
backend code file: model\dnModel\api.go

server/service/sys_api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ func GetAPIInfoList(api model.SysApi, info request.PageInfo, order string, desc
6161
db = db.Where("method = ?", api.Method)
6262
}
6363

64+
if api.ApiGroup != "" {
65+
db = db.Where("api_group = ?", api.ApiGroup)
66+
}
67+
6468
err = db.Find(&apiList).Count(&total).Error
6569

6670
if err != nil {

web/src/view/superAdmin/api/api.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<el-form-item label="描述">
99
<el-input placeholder="描述" v-model="searchInfo.description"></el-input>
1010
</el-form-item>
11+
<el-form-item label="api组">
12+
<el-input placeholder="api组" v-model="searchInfo.apiGroup"></el-input>
13+
</el-form-item>
1114
<el-form-item label="请求">
1215
<el-select clearable placeholder="请选择" v-model="searchInfo.method">
1316
<el-option

0 commit comments

Comments
 (0)