蛋蛋星球-客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

374 lines
12 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/md.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. "/api/publicPlatoon/relationshipMap": {
  186. "get": {
  187. "description": "关系分布图(获取)",
  188. "consumes": [
  189. "application/json"
  190. ],
  191. "produces": [
  192. "application/json"
  193. ],
  194. "tags": [
  195. "公排管理"
  196. ],
  197. "summary": "制度中心-公排管理-关系分布图(获取)",
  198. "parameters": [
  199. {
  200. "type": "string",
  201. "description": "验证参数Bearer和token空格拼接",
  202. "name": "Authorization",
  203. "in": "header",
  204. "required": true
  205. },
  206. {
  207. "type": "string",
  208. "description": "phone",
  209. "name": "phone",
  210. "in": "query",
  211. "required": true
  212. },
  213. {
  214. "type": "string",
  215. "description": "uid",
  216. "name": "uid",
  217. "in": "query",
  218. "required": true
  219. }
  220. ],
  221. "responses": {
  222. "200": {
  223. "description": "具体数据",
  224. "schema": {
  225. "$ref": "#/definitions/md.TreeNode"
  226. }
  227. },
  228. "400": {
  229. "description": "具体错误",
  230. "schema": {
  231. "$ref": "#/definitions/md.Response"
  232. }
  233. }
  234. }
  235. }
  236. }
  237. },
  238. "definitions": {
  239. "md.GetPublicPlatoonBasicResp": {
  240. "type": "object",
  241. "properties": {
  242. "is_open": {
  243. "type": "integer"
  244. },
  245. "is_self_active_get_team_revenue": {
  246. "type": "integer"
  247. },
  248. "originator_uid": {
  249. "type": "integer"
  250. },
  251. "several_rows": {
  252. "type": "integer"
  253. },
  254. "several_times": {
  255. "type": "integer"
  256. },
  257. "system_punish_replace": {
  258. "type": "integer"
  259. },
  260. "system_punish_replace_value": {
  261. "type": "integer"
  262. }
  263. }
  264. },
  265. "md.LoginReq": {
  266. "type": "object",
  267. "required": [
  268. "password",
  269. "username"
  270. ],
  271. "properties": {
  272. "code": {
  273. "type": "string",
  274. "example": "验证码"
  275. },
  276. "password": {
  277. "type": "string",
  278. "example": "登录密码"
  279. },
  280. "username": {
  281. "type": "string",
  282. "example": "登录账号"
  283. }
  284. }
  285. },
  286. "md.LoginResponse": {
  287. "type": "object",
  288. "properties": {
  289. "token": {
  290. "type": "string"
  291. }
  292. }
  293. },
  294. "md.Response": {
  295. "type": "object",
  296. "properties": {
  297. "code": {
  298. "type": "string",
  299. "example": "响应码"
  300. },
  301. "data": {
  302. "description": "内容"
  303. },
  304. "msg": {
  305. "type": "string",
  306. "example": "具体错误原因"
  307. }
  308. }
  309. },
  310. "md.TreeNode": {
  311. "type": "object",
  312. "properties": {
  313. "avatar_url": {
  314. "type": "string"
  315. },
  316. "level": {
  317. "type": "integer"
  318. },
  319. "nickname": {
  320. "type": "string"
  321. },
  322. "phone": {
  323. "type": "string"
  324. },
  325. "pid": {
  326. "type": "integer"
  327. },
  328. "position": {
  329. "type": "integer"
  330. },
  331. "son": {
  332. "type": "array",
  333. "items": {
  334. "$ref": "#/definitions/md.TreeNode"
  335. }
  336. },
  337. "system_id": {
  338. "type": "integer"
  339. },
  340. "uid": {
  341. "type": "integer"
  342. }
  343. }
  344. }
  345. },
  346. "securityDefinitions": {
  347. "MasterID": {
  348. "type": "apiKey",
  349. "name": "MasterID",
  350. "in": "header"
  351. }
  352. }
  353. }`
  354. // SwaggerInfo holds exported Swagger Info so clients can modify it
  355. var SwaggerInfo = &swag.Spec{
  356. Version: "1.0",
  357. Host: "localhost:4001",
  358. BasePath: "",
  359. Schemes: []string{},
  360. Title: "蛋蛋星球-管理后台",
  361. Description: "管理后台接口文档",
  362. InfoInstanceName: "swagger",
  363. SwaggerTemplate: docTemplate,
  364. LeftDelim: "{{",
  365. RightDelim: "}}",
  366. }
  367. func init() {
  368. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  369. }