Browse Source

swagger 文档更新

main
pixel 5 years ago
parent
commit
ce613ae6db
  1. 3
      QMPlusServer/controller/api/api.go
  2. 4
      QMPlusServer/docs/docs.go
  3. 2
      QMPlusServer/docs/swagger.json
  4. 2
      QMPlusServer/docs/swagger.yaml

3
QMPlusServer/controller/api/api.go

@ -60,6 +60,7 @@ type AuthAndPathIn struct {
AuthorityId string `json:"authorityId"` AuthorityId string `json:"authorityId"`
Apis []dbModel.Api `json:"apis"` Apis []dbModel.Api `json:"apis"`
} }
// @Tags Api // @Tags Api
// @Summary 创建api和角色关系 // @Summary 创建api和角色关系
// @Security ApiKeyAuth // @Security ApiKeyAuth
@ -79,7 +80,7 @@ func SetAuthAndPath(c *gin.Context){
} }
} }
// @Tags api
// @Tags Api
// @Summary 分页获取角色列表 // @Summary 分页获取角色列表
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json

4
QMPlusServer/docs/docs.go

@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at // This file was generated by swaggo/swag at
// 2019-09-21 22:57:49.3172136 +0800 CST m=+0.048845201
// 2019-09-22 15:52:19.9796956 +0800 CST m=+0.472771301
package docs package docs
@ -118,7 +118,7 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"api"
"Api"
], ],
"summary": "分页获取角色列表", "summary": "分页获取角色列表",
"parameters": [ "parameters": [

2
QMPlusServer/docs/swagger.json

@ -101,7 +101,7 @@
"application/json" "application/json"
], ],
"tags": [ "tags": [
"api"
"Api"
], ],
"summary": "分页获取角色列表", "summary": "分页获取角色列表",
"parameters": [ "parameters": [

2
QMPlusServer/docs/swagger.yaml

@ -180,7 +180,7 @@ paths:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 分页获取角色列表 summary: 分页获取角色列表
tags: tags:
- api
- Api
/api/setAuthAndPath: /api/setAuthAndPath:
post: post:
consumes: consumes:

Loading…
Cancel
Save