蛋蛋星球-客户端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

136 satır
3.0 KiB

  1. definitions:
  2. md.LoginReq:
  3. properties:
  4. code:
  5. example: 验证码
  6. type: string
  7. password:
  8. example: 登录密码
  9. type: string
  10. username:
  11. example: 登录账号
  12. type: string
  13. required:
  14. - password
  15. - username
  16. type: object
  17. md.LoginResponse:
  18. properties:
  19. token:
  20. type: string
  21. type: object
  22. md.Response:
  23. properties:
  24. code:
  25. example: 响应码
  26. type: string
  27. data:
  28. description: 内容
  29. msg:
  30. example: 具体错误原因
  31. type: string
  32. type: object
  33. host: localhost:4001
  34. info:
  35. contact:
  36. email: 1239118001@qq.com
  37. name: dengbiao
  38. url: http://www.swagger.io/support
  39. description: 管理后台接口文档
  40. license:
  41. name: Apache 2.0
  42. url: http://www.apache.org/licenses/LICENSE-2.0.html
  43. termsOfService: http://swagger.io/terms/
  44. title: 蛋蛋星球-管理后台
  45. version: "1.0"
  46. paths:
  47. /api/demo:
  48. post:
  49. consumes:
  50. - application/json
  51. description: Demo样例测试
  52. parameters:
  53. - description: 用户名密码
  54. in: body
  55. name: req
  56. required: true
  57. schema: {}
  58. produces:
  59. - application/json
  60. responses:
  61. "200":
  62. description: token
  63. schema:
  64. additionalProperties: true
  65. type: object
  66. "400":
  67. description: 具体错误
  68. schema:
  69. $ref: '#/definitions/md.Response'
  70. summary: Demo测试
  71. tags:
  72. - Demo
  73. /api/login:
  74. post:
  75. consumes:
  76. - application/json
  77. description: 登入
  78. parameters:
  79. - description: 用户名密码
  80. in: body
  81. name: req
  82. required: true
  83. schema:
  84. $ref: '#/definitions/md.LoginReq'
  85. produces:
  86. - application/json
  87. responses:
  88. "200":
  89. description: token
  90. schema:
  91. $ref: '#/definitions/md.LoginResponse'
  92. "400":
  93. description: 具体错误
  94. schema:
  95. $ref: '#/definitions/md.Response'
  96. summary: 登陆
  97. tags:
  98. - 登录
  99. /api/publicPlatoon/getBasic:
  100. get:
  101. consumes:
  102. - application/json
  103. description: 公排基础设置(修改)
  104. parameters:
  105. - description: 验证参数Bearer和token空格拼接
  106. in: header
  107. name: Authorization
  108. required: true
  109. type: string
  110. - description: 公排设置表单内容
  111. in: body
  112. name: req
  113. required: true
  114. schema: {}
  115. produces:
  116. - application/json
  117. responses:
  118. "200":
  119. description: 修改数据条数
  120. schema:
  121. additionalProperties: true
  122. type: object
  123. "400":
  124. description: 具体错误
  125. schema:
  126. $ref: '#/definitions/md.Response'
  127. summary: 制度中心-公排管理-公排基础设置(修改)
  128. tags:
  129. - 公排管理
  130. securityDefinitions:
  131. MasterID:
  132. in: header
  133. name: MasterID
  134. type: apiKey
  135. swagger: "2.0"