蛋蛋星球 后台端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

docs.go 6.8 KiB

2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
2ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. // Package docs Code generated by swaggo/swag. DO NOT EDIT
  2. package docs
  3. import "github.com/swaggo/swag"
  4. const docTemplate = `{
  5. "schemes": {{ marshal .Schemes }},
  6. "swagger": "2.0",
  7. "info": {
  8. "description": "{{escape .Description}}",
  9. "title": "{{.Title}}",
  10. "termsOfService": "http://swagger.io/terms/",
  11. "contact": {
  12. "name": "dengbiao",
  13. "url": "http://www.swagger.io/support",
  14. "email": "1239118001@qq.com"
  15. },
  16. "license": {
  17. "name": "Apache 2.0",
  18. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  19. },
  20. "version": "{{.Version}}"
  21. },
  22. "host": "{{.Host}}",
  23. "basePath": "{{.BasePath}}",
  24. "paths": {
  25. "/api/demo": {
  26. "post": {
  27. "description": "Demo样例测试",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "Demo"
  36. ],
  37. "summary": "Demo测试",
  38. "parameters": [
  39. {
  40. "description": "用户名密码",
  41. "name": "req",
  42. "in": "body",
  43. "required": true,
  44. "schema": {}
  45. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "token",
  50. "schema": {
  51. "type": "object",
  52. "additionalProperties": true
  53. }
  54. },
  55. "400": {
  56. "description": "具体错误",
  57. "schema": {
  58. "$ref": "#/definitions/md.Response"
  59. }
  60. }
  61. }
  62. }
  63. },
  64. "/api/login": {
  65. "post": {
  66. "description": "登入",
  67. "consumes": [
  68. "application/json"
  69. ],
  70. "produces": [
  71. "application/json"
  72. ],
  73. "tags": [
  74. "登录"
  75. ],
  76. "summary": "登陆",
  77. "parameters": [
  78. {
  79. "description": "用户名密码",
  80. "name": "req",
  81. "in": "body",
  82. "required": true,
  83. "schema": {
  84. "$ref": "#/definitions/md.LoginReq"
  85. }
  86. }
  87. ],
  88. "responses": {
  89. "200": {
  90. "description": "token",
  91. "schema": {
  92. "$ref": "#/definitions/md.LoginResponse"
  93. }
  94. },
  95. "400": {
  96. "description": "具体错误",
  97. "schema": {
  98. "$ref": "#/definitions/md.Response"
  99. }
  100. }
  101. }
  102. }
  103. },
  104. "/api/publicPlatoon/getBasic": {
  105. "get": {
  106. "description": "公排基础设置(修改)",
  107. "consumes": [
  108. "application/json"
  109. ],
  110. "produces": [
  111. "application/json"
  112. ],
  113. "tags": [
  114. "公排管理"
  115. ],
  116. "summary": "制度中心-公排管理-公排基础设置(修改)",
  117. "parameters": [
  118. {
  119. "type": "string",
  120. "description": "验证参数Bearer和token空格拼接",
  121. "name": "Authorization",
  122. "in": "header",
  123. "required": true
  124. },
  125. {
  126. "description": "公排设置表单内容",
  127. "name": "req",
  128. "in": "body",
  129. "required": true,
  130. "schema": {}
  131. }
  132. ],
  133. "responses": {
  134. "200": {
  135. "description": "修改数据条数",
  136. "schema": {
  137. "type": "object",
  138. "additionalProperties": true
  139. }
  140. },
  141. "400": {
  142. "description": "具体错误",
  143. "schema": {
  144. "$ref": "#/definitions/md.Response"
  145. }
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "definitions": {
  152. "md.LoginReq": {
  153. "type": "object",
  154. "required": [
  155. "password",
  156. "username"
  157. ],
  158. "properties": {
  159. "code": {
  160. "type": "string",
  161. "example": "验证码"
  162. },
  163. "password": {
  164. "type": "string",
  165. "example": "登录密码"
  166. },
  167. "username": {
  168. "type": "string",
  169. "example": "登录账号"
  170. }
  171. }
  172. },
  173. "md.LoginResponse": {
  174. "type": "object",
  175. "properties": {
  176. "token": {
  177. "type": "string"
  178. }
  179. }
  180. },
  181. "md.Response": {
  182. "type": "object",
  183. "properties": {
  184. "code": {
  185. "type": "string",
  186. "example": "响应码"
  187. },
  188. "data": {
  189. "description": "内容"
  190. },
  191. "msg": {
  192. "type": "string",
  193. "example": "具体错误原因"
  194. }
  195. }
  196. }
  197. },
  198. "securityDefinitions": {
  199. "MasterID": {
  200. "type": "apiKey",
  201. "name": "MasterID",
  202. "in": "header"
  203. }
  204. }
  205. }`
  206. // SwaggerInfo holds exported Swagger Info so clients can modify it
  207. var SwaggerInfo = &swag.Spec{
  208. Version: "1.0",
  209. Host: "localhost:4001",
  210. BasePath: "",
  211. Schemes: []string{},
  212. Title: "蛋蛋星球-管理后台",
  213. Description: "管理后台接口文档",
  214. InfoInstanceName: "swagger",
  215. SwaggerTemplate: docTemplate,
  216. LeftDelim: "{{",
  217. RightDelim: "}}",
  218. }
  219. func init() {
  220. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  221. }