Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
6fe6ef94
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
333
Star
18155
Fork
5506
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
6fe6ef94
编写于
9月 02, 2019
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swagger
上级
c3943b40
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
199 addition
and
0 deletion
+199
-0
QMPlusServer/docs/docs.go
QMPlusServer/docs/docs.go
+118
-0
QMPlusServer/docs/swagger.json
QMPlusServer/docs/swagger.json
+50
-0
QMPlusServer/docs/swagger.yaml
QMPlusServer/docs/swagger.yaml
+31
-0
未找到文件。
QMPlusServer/docs/docs.go
0 → 100644
浏览文件 @
6fe6ef94
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-09-02 17:34:00.7260773 +0800 CST m=+0.033907001
package
docs
import
(
"bytes"
"encoding/json"
"strings"
"github.com/alecthomas/template"
"github.com/swaggo/swag"
)
var
doc
=
`{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{.Description}}",
"title": "{{.Title}}",
"contact": {},
"license": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/user/regist": {
"post": {
"produces": [
"application/x-www-form-urlencoded"
],
"summary": "创建用户",
"parameters": [
{
"description": "用户注册接口",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegistStuct"
}
}
],
"responses": {
"200": {
"description": "{\"code\":200,\"data\":{},\"msg\":\"ok\"}",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
"api.RegistStuct": {
"type": "object",
"properties": {
"passWord": {
"type": "string"
},
"userName": {
"type": "string"
}
}
}
}
}`
type
swaggerInfo
struct
{
Version
string
Host
string
BasePath
string
Schemes
[]
string
Title
string
Description
string
}
// SwaggerInfo holds exported Swagger Info so clients can modify it
var
SwaggerInfo
=
swaggerInfo
{
Version
:
""
,
Host
:
""
,
BasePath
:
""
,
Schemes
:
[]
string
{},
Title
:
""
,
Description
:
""
,
}
type
s
struct
{}
func
(
s
*
s
)
ReadDoc
()
string
{
sInfo
:=
SwaggerInfo
sInfo
.
Description
=
strings
.
Replace
(
sInfo
.
Description
,
"
\n
"
,
"
\\
n"
,
-
1
)
t
,
err
:=
template
.
New
(
"swagger_info"
)
.
Funcs
(
template
.
FuncMap
{
"marshal"
:
func
(
v
interface
{})
string
{
a
,
_
:=
json
.
Marshal
(
v
)
return
string
(
a
)
},
})
.
Parse
(
doc
)
if
err
!=
nil
{
return
doc
}
var
tpl
bytes
.
Buffer
if
err
:=
t
.
Execute
(
&
tpl
,
sInfo
);
err
!=
nil
{
return
doc
}
return
tpl
.
String
()
}
func
init
()
{
swag
.
Register
(
swag
.
Name
,
&
s
{})
}
QMPlusServer/docs/swagger.json
0 → 100644
浏览文件 @
6fe6ef94
{
"swagger"
:
"2.0"
,
"info"
:
{
"contact"
:
{},
"license"
:
{}
},
"paths"
:
{
"/user/regist"
:
{
"post"
:
{
"produces"
:
[
"application/x-www-form-urlencoded"
],
"summary"
:
"创建用户"
,
"parameters"
:
[
{
"description"
:
"用户注册接口"
,
"name"
:
"data"
,
"in"
:
"body"
,
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.RegistStuct"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"{
\"
code
\"
:200,
\"
data
\"
:{},
\"
msg
\"
:
\"
ok
\"
}"
,
"schema"
:
{
"type"
:
"string"
}
}
}
}
}
},
"definitions"
:
{
"api.RegistStuct"
:
{
"type"
:
"object"
,
"properties"
:
{
"passWord"
:
{
"type"
:
"string"
},
"userName"
:
{
"type"
:
"string"
}
}
}
}
}
\ No newline at end of file
QMPlusServer/docs/swagger.yaml
0 → 100644
浏览文件 @
6fe6ef94
definitions
:
api.RegistStuct
:
properties
:
passWord
:
type
:
string
userName
:
type
:
string
type
:
object
info
:
contact
:
{}
license
:
{}
paths
:
/user/regist
:
post
:
parameters
:
-
description
:
用户注册接口
in
:
body
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.RegistStuct'
type
:
object
produces
:
-
application/x-www-form-urlencoded
responses
:
"
200"
:
description
:
'
{"code":200,"data":{},"msg":"ok"}'
schema
:
type
:
string
summary
:
创建用户
swagger
:
"
2.0"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录