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"`
Apis []dbModel.Api `json:"apis"`
}
// @Tags Api
// @Summary 创建api和角色关系
// @Security ApiKeyAuth
@ -79,7 +80,7 @@ func SetAuthAndPath(c *gin.Context){
}
}
// @Tags api
// @Tags Api
// @Summary 分页获取角色列表
// @Security ApiKeyAuth
// @accept application/json

4
QMPlusServer/docs/docs.go

@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// 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
@ -118,7 +118,7 @@ var doc = `{
"application/json"
],
"tags": [
"api"
"Api"
],
"summary": "分页获取角色列表",
"parameters": [

2
QMPlusServer/docs/swagger.json

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

2
QMPlusServer/docs/swagger.yaml

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

Loading…
Cancel
Save