蛋蛋星球 后台端
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.

docs.go 12 KiB

3 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
1 month ago
3 weeks ago
1 month ago
4 weeks ago
3 weeks ago
1 month ago
4 weeks ago
1 month ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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. "/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": "用户ID",
  209. "name": "uid",
  210. "in": "query"
  211. },
  212. {
  213. "type": "string",
  214. "description": "手机号",
  215. "name": "phone",
  216. "in": "query"
  217. }
  218. ],
  219. "responses": {
  220. "200": {
  221. "description": "具体数据",
  222. "schema": {
  223. "$ref": "#/definitions/public_platoon.RelationshipMapResp"
  224. }
  225. },
  226. "400": {
  227. "description": "具体错误",
  228. "schema": {
  229. "$ref": "#/definitions/md.Response"
  230. }
  231. }
  232. }
  233. }
  234. }
  235. },
  236. "definitions": {
  237. "md.LoginReq": {
  238. "type": "object",
  239. "required": [
  240. "password",
  241. "username"
  242. ],
  243. "properties": {
  244. "code": {
  245. "type": "string",
  246. "example": "验证码"
  247. },
  248. "password": {
  249. "type": "string",
  250. "example": "登录密码"
  251. },
  252. "username": {
  253. "type": "string",
  254. "example": "登录账号"
  255. }
  256. }
  257. },
  258. "md.LoginResponse": {
  259. "type": "object",
  260. "properties": {
  261. "token": {
  262. "type": "string"
  263. }
  264. }
  265. },
  266. "md.Response": {
  267. "type": "object",
  268. "properties": {
  269. "code": {
  270. "type": "string",
  271. "example": "响应码"
  272. },
  273. "data": {
  274. "description": "内容"
  275. },
  276. "msg": {
  277. "type": "string",
  278. "example": "具体错误原因"
  279. }
  280. }
  281. },
  282. "public_platoon.GetPublicPlatoonBasicResp": {
  283. "type": "object",
  284. "properties": {
  285. "is_open": {
  286. "type": "integer"
  287. },
  288. "is_self_active_get_team_revenue": {
  289. "type": "integer"
  290. },
  291. "originator_uid": {
  292. "type": "integer"
  293. },
  294. "several_rows": {
  295. "type": "integer"
  296. },
  297. "several_times": {
  298. "type": "integer"
  299. },
  300. "system_punish_replace": {
  301. "type": "integer"
  302. },
  303. "system_punish_replace_value": {
  304. "type": "integer"
  305. }
  306. }
  307. },
  308. "public_platoon.RelationshipMap": {
  309. "type": "object",
  310. "properties": {
  311. "avatar_url": {
  312. "type": "string"
  313. },
  314. "level": {
  315. "type": "integer"
  316. },
  317. "nickname": {
  318. "type": "string"
  319. },
  320. "phone": {
  321. "type": "string"
  322. },
  323. "pid": {
  324. "type": "integer"
  325. },
  326. "position": {
  327. "type": "integer"
  328. },
  329. "son": {
  330. "type": "array",
  331. "items": {
  332. "$ref": "#/definitions/public_platoon.RelationshipMap"
  333. }
  334. },
  335. "system_id": {
  336. "type": "integer"
  337. },
  338. "uid": {
  339. "type": "integer"
  340. }
  341. }
  342. },
  343. "public_platoon.RelationshipMapResp": {
  344. "type": "object",
  345. "properties": {
  346. "basicSetting": {
  347. "$ref": "#/definitions/public_platoon.GetPublicPlatoonBasicResp"
  348. },
  349. "map": {
  350. "$ref": "#/definitions/public_platoon.RelationshipMap"
  351. },
  352. "searchUid": {
  353. "type": "integer"
  354. }
  355. }
  356. }
  357. },
  358. "securityDefinitions": {
  359. "MasterID": {
  360. "type": "apiKey",
  361. "name": "MasterID",
  362. "in": "header"
  363. }
  364. }
  365. }`
  366. // SwaggerInfo holds exported Swagger Info so clients can modify it
  367. var SwaggerInfo = &swag.Spec{
  368. Version: "1.0",
  369. Host: "localhost:4001",
  370. BasePath: "",
  371. Schemes: []string{},
  372. Title: "蛋蛋星球-管理后台",
  373. Description: "管理后台接口文档",
  374. InfoInstanceName: "swagger",
  375. SwaggerTemplate: docTemplate,
  376. LeftDelim: "{{",
  377. RightDelim: "}}",
  378. }
  379. func init() {
  380. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  381. }