文件类型swagger的注解书写
用户头像上传 功能完成
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2019-09-03 23:59:41.1295277 +0800 CST m=+0.038362901
|
||||
// 2019-09-05 23:15:39.7963441 +0800 CST m=+0.062832501
|
||||
|
||||
package docs
|
||||
|
||||
@@ -118,6 +118,44 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/uploadHeaderImg": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "用户上传头像",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "file",
|
||||
"description": "用户上传头像",
|
||||
"name": "headerImg",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "用户上传头像",
|
||||
"name": "userName",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
|
Reference in New Issue
Block a user