方法添加注释,中文版注释

This commit is contained in:
rainyan
2020-04-05 22:23:17 +08:00
parent c755120c8d
commit 13c30d4c55
27 changed files with 457 additions and 150 deletions
+5 -5
View File
@@ -475,7 +475,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -559,7 +559,7 @@ var doc = `{
}
}
},
"/casbin/casbinPUpdate": {
"/casbin/UpdateCasbin": {
"post": {
"security": [
{
@@ -1256,7 +1256,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -1292,7 +1292,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -1752,7 +1752,7 @@ var doc = `{
}
}
},
"api.RegisterAndLoginStuct": {
"api.RegisterAndLoginStruct": {
"type": "object",
"properties": {
"captcha": {
+5 -5
View File
@@ -458,7 +458,7 @@
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -542,7 +542,7 @@
}
}
},
"/casbin/casbinPUpdate": {
"/casbin/UpdateCasbin": {
"post": {
"security": [
{
@@ -1239,7 +1239,7 @@
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -1275,7 +1275,7 @@
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.RegisterAndLoginStuct"
"$ref": "#/definitions/api.RegisterAndLoginStruct"
}
}
],
@@ -1735,7 +1735,7 @@
}
}
},
"api.RegisterAndLoginStuct": {
"api.RegisterAndLoginStruct": {
"type": "object",
"properties": {
"captcha": {
+5 -5
View File
@@ -52,7 +52,7 @@ definitions:
id:
type: number
type: object
api.RegisterAndLoginStuct:
api.RegisterAndLoginStruct:
properties:
captcha:
type: string
@@ -580,7 +580,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/api.RegisterAndLoginStuct'
$ref: '#/definitions/api.RegisterAndLoginStruct'
type: object
produces:
- application/json
@@ -636,7 +636,7 @@ paths:
summary: casb RBAC RESTFUL测试路由
tags:
- casbin
/casbin/casbinPUpdate:
/casbin/UpdateCasbin:
post:
consumes:
- application/json
@@ -1058,7 +1058,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/api.RegisterAndLoginStuct'
$ref: '#/definitions/api.RegisterAndLoginStruct'
type: object
produces:
- application/json
@@ -1080,7 +1080,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/api.RegisterAndLoginStuct'
$ref: '#/definitions/api.RegisterAndLoginStruct'
type: object
produces:
- application/json