蛋蛋星球 后台端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

287 Zeilen
8.8 KiB

  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. "responses": {
  127. "200": {
  128. "description": "具体数据",
  129. "schema": {
  130. "$ref": "#/definitions/public_platoon.GetPublicPlatoonBasicResp"
  131. }
  132. },
  133. "400": {
  134. "description": "具体错误",
  135. "schema": {
  136. "$ref": "#/definitions/md.Response"
  137. }
  138. }
  139. }
  140. },
  141. "post": {
  142. "description": "公排基础设置(修改)",
  143. "consumes": [
  144. "application/json"
  145. ],
  146. "produces": [
  147. "application/json"
  148. ],
  149. "tags": [
  150. "公排管理"
  151. ],
  152. "summary": "制度中心-公排管理-公排基础设置(修改)",
  153. "parameters": [
  154. {
  155. "type": "string",
  156. "description": "验证参数Bearer和token空格拼接",
  157. "name": "Authorization",
  158. "in": "header",
  159. "required": true
  160. },
  161. {
  162. "description": "公排设置表单内容",
  163. "name": "req",
  164. "in": "body",
  165. "required": true,
  166. "schema": {}
  167. }
  168. ],
  169. "responses": {
  170. "200": {
  171. "description": "success",
  172. "schema": {
  173. "type": "string"
  174. }
  175. },
  176. "400": {
  177. "description": "具体错误",
  178. "schema": {
  179. "$ref": "#/definitions/md.Response"
  180. }
  181. }
  182. }
  183. }
  184. }
  185. },
  186. "definitions": {
  187. "md.LoginReq": {
  188. "type": "object",
  189. "required": [
  190. "password",
  191. "username"
  192. ],
  193. "properties": {
  194. "code": {
  195. "type": "string",
  196. "example": "验证码"
  197. },
  198. "password": {
  199. "type": "string",
  200. "example": "登录密码"
  201. },
  202. "username": {
  203. "type": "string",
  204. "example": "登录账号"
  205. }
  206. }
  207. },
  208. "md.LoginResponse": {
  209. "type": "object",
  210. "properties": {
  211. "token": {
  212. "type": "string"
  213. }
  214. }
  215. },
  216. "md.Response": {
  217. "type": "object",
  218. "properties": {
  219. "code": {
  220. "type": "string",
  221. "example": "响应码"
  222. },
  223. "data": {
  224. "description": "内容"
  225. },
  226. "msg": {
  227. "type": "string",
  228. "example": "具体错误原因"
  229. }
  230. }
  231. },
  232. "public_platoon.GetPublicPlatoonBasicResp": {
  233. "type": "object",
  234. "properties": {
  235. "is_open": {
  236. "type": "integer"
  237. },
  238. "is_self_active_get_team_revenue": {
  239. "type": "integer"
  240. },
  241. "originator_uid": {
  242. "type": "integer"
  243. },
  244. "several_rows": {
  245. "type": "integer"
  246. },
  247. "several_times": {
  248. "type": "integer"
  249. },
  250. "system_punish_replace": {
  251. "type": "integer"
  252. },
  253. "system_punish_replace_value": {
  254. "type": "integer"
  255. }
  256. }
  257. }
  258. },
  259. "securityDefinitions": {
  260. "MasterID": {
  261. "type": "apiKey",
  262. "name": "MasterID",
  263. "in": "header"
  264. }
  265. }
  266. }`
  267. // SwaggerInfo holds exported Swagger Info so clients can modify it
  268. var SwaggerInfo = &swag.Spec{
  269. Version: "1.0",
  270. Host: "localhost:4001",
  271. BasePath: "",
  272. Schemes: []string{},
  273. Title: "蛋蛋星球-管理后台",
  274. Description: "管理后台接口文档",
  275. InfoInstanceName: "swagger",
  276. SwaggerTemplate: docTemplate,
  277. LeftDelim: "{{",
  278. RightDelim: "}}",
  279. }
  280. func init() {
  281. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  282. }