Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
8341eda1
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
9 个月 前同步成功
通知
324
Star
18154
Fork
5505
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8341eda1
编写于
4月 10, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提供restful示例 参考 customer 客户管理(资源示例)版块 涉及到权限变动 请更新数据库 sys_api和casbin表
上级
2cf93133
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
1 deletion
+11
-1
README-zh_CN.md
README-zh_CN.md
+2
-1
README.md
README.md
+2
-0
server/service/sys_api.go
server/service/sys_api.go
+4
-0
web/src/view/superAdmin/api/api.vue
web/src/view/superAdmin/api/api.vue
+3
-0
未找到文件。
README-zh_CN.md
浏览文件 @
8341eda1
...
...
@@ -179,7 +179,8 @@ go run main.go;
-
api管理:不同用户可调用的api接口的权限不同。
-
配置管理:配置文件可前台修改(测试环境不开放此功能)。
-
富文本编辑器:MarkDown编辑器功能嵌入。
-
条件搜索:增加条件搜索示例。
-
条件搜索:增加条件搜索示例。
-
restful示例:参考客户管理功能,customer组api。
```
前端文件参考: src\view\superAdmin\api\api.vue
后台文件参考: model\dnModel\api.go
...
...
README.md
浏览文件 @
8341eda1
...
...
@@ -177,6 +177,8 @@ go run main.go;
-
Configuration management: The configuration file can be modified in the web page (the test environment does not provide this function).
-
Rich text editor: Embed MarkDown editor function.
-
Conditional search: Add an example of conditional search.
-
Restful example: refer to customer management function and apidcustomer group.
```
fontend code file: src\view\superAdmin\api\api.vue
backend code file: model\dnModel\api.go
...
...
server/service/sys_api.go
浏览文件 @
8341eda1
...
...
@@ -61,6 +61,10 @@ func GetAPIInfoList(api model.SysApi, info request.PageInfo, order string, desc
db
=
db
.
Where
(
"method = ?"
,
api
.
Method
)
}
if
api
.
ApiGroup
!=
""
{
db
=
db
.
Where
(
"api_group = ?"
,
api
.
ApiGroup
)
}
err
=
db
.
Find
(
&
apiList
)
.
Count
(
&
total
)
.
Error
if
err
!=
nil
{
...
...
web/src/view/superAdmin/api/api.vue
浏览文件 @
8341eda1
...
...
@@ -8,6 +8,9 @@
<el-form-item
label=
"描述"
>
<el-input
placeholder=
"描述"
v-model=
"searchInfo.description"
></el-input>
</el-form-item>
<el-form-item
label=
"api组"
>
<el-input
placeholder=
"api组"
v-model=
"searchInfo.apiGroup"
></el-input>
</el-form-item>
<el-form-item
label=
"请求"
>
<el-select
clearable
placeholder=
"请选择"
v-model=
"searchInfo.method"
>
<el-option
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录