删除注册页面 为注册接口修改为需要权限 防止业务漏洞

This commit is contained in:
QM303176530
2020-10-18 12:26:34 +08:00
parent 938c598cfb
commit 1848ceb8f7
7 changed files with 729 additions and 180 deletions

View File

@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-08-31 21:50:05.0136259 +0800 CST m=+0.193314401
// 2020-10-18 12:17:37.2292991 +0800 CST m=+0.263609801
package docs
@@ -593,36 +593,6 @@ var doc = `{
}
}
},
"/base/register": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Base"
],
"summary": "用户注册账号",
"parameters": [
{
"description": "用户注册接口",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.SysUser"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/casbin/UpdateCasbin": {
"post": {
"security": [
@@ -883,6 +853,30 @@ var doc = `{
}
}
},
"/email/emailTest": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"system"
],
"summary": "发送测试邮件",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/fileUploadAndDownload/breakpointContinue": {
"post": {
"security": [
@@ -2161,6 +2155,30 @@ var doc = `{
}
}
},
"/system/getServerInfo": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"system"
],
"summary": "获取服务器信息",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/system/getSystemConfig": {
"post": {
"security": [
@@ -2331,6 +2349,36 @@ var doc = `{
}
}
},
"/user/register": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Base"
],
"summary": "用户注册账号",
"parameters": [
{
"description": "用户注册接口",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.SysUser"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/setUserAuthority": {
"post": {
"security": [
@@ -2369,6 +2417,44 @@ var doc = `{
}
}
},
"/user/setUserInfo": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SysUser"
],
"summary": "删除用户",
"parameters": [
{
"description": "删除用户",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.SysUser"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/workflow/createWorkFlow": {
"post": {
"produces": [
@@ -2423,6 +2509,32 @@ var doc = `{
}
}
},
"config.Email": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"host": {
"type": "string"
},
"isSSL": {
"type": "boolean"
},
"nickname": {
"type": "string"
},
"port": {
"type": "integer"
},
"secret": {
"type": "string"
},
"to": {
"type": "string"
}
}
},
"config.JWT": {
"type": "object",
"properties": {
@@ -2431,33 +2543,10 @@ var doc = `{
}
}
},
"config.LocalUpload": {
"config.Local": {
"type": "object",
"properties": {
"avatarPath": {
"type": "string"
},
"filePath": {
"type": "string"
},
"local": {
"type": "boolean"
}
}
},
"config.Log": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"logFile": {
"type": "boolean"
},
"prefix": {
"type": "string"
},
"stdout": {
"path": {
"type": "string"
}
}
@@ -2491,6 +2580,41 @@ var doc = `{
}
}
},
"config.Postgresql": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"dbname": {
"type": "string"
},
"host": {
"type": "string"
},
"logger": {
"type": "boolean"
},
"maxIdleConns": {
"type": "integer"
},
"maxOpenConns": {
"type": "integer"
},
"password": {
"type": "string"
},
"port": {
"type": "string"
},
"preferSimpleProtocol": {
"type": "boolean"
},
"username": {
"type": "string"
}
}
},
"config.Qiniu": {
"type": "object",
"properties": {
@@ -2505,6 +2629,15 @@ var doc = `{
},
"secretKey": {
"type": "string"
},
"useCdnDomains": {
"type": "boolean"
},
"useHttps": {
"type": "boolean"
},
"zone": {
"type": "string"
}
}
},
@@ -2533,22 +2666,28 @@ var doc = `{
"type": "object",
"$ref": "#/definitions/config.Casbin"
},
"email": {
"type": "object",
"$ref": "#/definitions/config.Email"
},
"jwt": {
"type": "object",
"$ref": "#/definitions/config.JWT"
},
"localUpload": {
"local": {
"description": "oss",
"type": "object",
"$ref": "#/definitions/config.LocalUpload"
},
"log": {
"type": "object",
"$ref": "#/definitions/config.Log"
"$ref": "#/definitions/config.Local"
},
"mysql": {
"description": "gorm",
"type": "object",
"$ref": "#/definitions/config.Mysql"
},
"postgresql": {
"type": "object",
"$ref": "#/definitions/config.Postgresql"
},
"qiniu": {
"type": "object",
"$ref": "#/definitions/config.Qiniu"
@@ -2561,21 +2700,52 @@ var doc = `{
"type": "object",
"$ref": "#/definitions/config.Sqlite"
},
"sqlserver": {
"type": "object",
"$ref": "#/definitions/config.Sqlserver"
},
"system": {
"type": "object",
"$ref": "#/definitions/config.System"
},
"zap": {
"type": "object",
"$ref": "#/definitions/config.Zap"
}
}
},
"config.Sqlite": {
"type": "object",
"properties": {
"config": {
"logger": {
"type": "boolean"
},
"maxIdleConns": {
"type": "integer"
},
"maxOpenConns": {
"type": "integer"
},
"path": {
"type": "string"
}
}
},
"config.Sqlserver": {
"type": "object",
"properties": {
"dbname": {
"type": "string"
},
"logMode": {
"logger": {
"type": "boolean"
},
"maxIdleConns": {
"type": "integer"
},
"maxOpenConns": {
"type": "integer"
},
"password": {
"type": "string"
},
@@ -2599,11 +2769,49 @@ var doc = `{
"env": {
"type": "string"
},
"needInitData": {
"type": "boolean"
},
"ossType": {
"type": "string"
},
"useMultipoint": {
"type": "boolean"
}
}
},
"config.Zap": {
"type": "object",
"properties": {
"director": {
"type": "string"
},
"encodeLevel": {
"type": "string"
},
"format": {
"type": "string"
},
"level": {
"type": "string"
},
"linkName": {
"type": "string"
},
"logInConsole": {
"type": "boolean"
},
"prefix": {
"type": "string"
},
"showLine": {
"type": "boolean"
},
"stacktraceKey": {
"type": "string"
}
}
},
"model.AutoCodeStruct": {
"type": "object",
"properties": {
@@ -2971,7 +3179,7 @@ var doc = `{
"description": "是否是完结流节点",
"type": "boolean"
},
"isStrat": {
"isStart": {
"description": "是否是开始流节点",
"type": "boolean"
},