docs.go 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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. "contact": {},
  11. "version": "{{.Version}}"
  12. },
  13. "host": "{{.Host}}",
  14. "basePath": "{{.BasePath}}",
  15. "paths": {
  16. "/exist": {
  17. "get": {
  18. "description": "get ip if id exist",
  19. "consumes": [
  20. "application/json"
  21. ],
  22. "produces": [
  23. "application/json"
  24. ],
  25. "tags": [
  26. "Safeline"
  27. ],
  28. "summary": "get ip if id exist",
  29. "parameters": [
  30. {
  31. "type": "string",
  32. "description": "id",
  33. "name": "id",
  34. "in": "query",
  35. "required": true
  36. }
  37. ],
  38. "responses": {
  39. "200": {
  40. "description": "OK",
  41. "schema": {
  42. "type": "string"
  43. }
  44. }
  45. }
  46. }
  47. },
  48. "/repos/discussions": {
  49. "get": {
  50. "description": "get discussions from GitHub",
  51. "consumes": [
  52. "application/json"
  53. ],
  54. "produces": [
  55. "application/json"
  56. ],
  57. "tags": [
  58. "GitHub"
  59. ],
  60. "summary": "get discussions",
  61. "parameters": [
  62. {
  63. "type": "string",
  64. "description": "search by",
  65. "name": "q",
  66. "in": "query"
  67. }
  68. ],
  69. "responses": {
  70. "200": {
  71. "description": "OK",
  72. "schema": {
  73. "type": "array",
  74. "items": {
  75. "$ref": "#/definitions/service.Discussion"
  76. }
  77. }
  78. }
  79. }
  80. }
  81. },
  82. "/repos/info": {
  83. "get": {
  84. "description": "get repo info from GitHub",
  85. "consumes": [
  86. "application/json"
  87. ],
  88. "produces": [
  89. "application/json"
  90. ],
  91. "tags": [
  92. "GitHub"
  93. ],
  94. "summary": "get repo info",
  95. "responses": {
  96. "200": {
  97. "description": "OK",
  98. "schema": {
  99. "$ref": "#/definitions/service.Repo"
  100. }
  101. }
  102. }
  103. }
  104. },
  105. "/repos/issues": {
  106. "get": {
  107. "description": "get issues from GitHub",
  108. "consumes": [
  109. "application/json"
  110. ],
  111. "produces": [
  112. "application/json"
  113. ],
  114. "tags": [
  115. "GitHub"
  116. ],
  117. "summary": "get issues",
  118. "parameters": [
  119. {
  120. "type": "string",
  121. "description": "search by",
  122. "name": "q",
  123. "in": "query"
  124. }
  125. ],
  126. "responses": {
  127. "200": {
  128. "description": "OK",
  129. "schema": {
  130. "type": "array",
  131. "items": {
  132. "$ref": "#/definitions/service.Issue"
  133. }
  134. }
  135. }
  136. }
  137. }
  138. },
  139. "/safeline/count": {
  140. "get": {
  141. "description": "get installer count",
  142. "consumes": [
  143. "application/json"
  144. ],
  145. "produces": [
  146. "application/json"
  147. ],
  148. "tags": [
  149. "Safeline"
  150. ],
  151. "summary": "get installer count",
  152. "responses": {
  153. "200": {
  154. "description": "OK",
  155. "schema": {
  156. "$ref": "#/definitions/service.InstallerCount"
  157. }
  158. }
  159. }
  160. }
  161. }
  162. },
  163. "definitions": {
  164. "service.Category": {
  165. "type": "object",
  166. "properties": {
  167. "emoji": {
  168. "type": "string"
  169. },
  170. "emoji_html": {
  171. "type": "string"
  172. },
  173. "id": {
  174. "type": "string"
  175. },
  176. "name": {
  177. "type": "string"
  178. }
  179. }
  180. },
  181. "service.Discussion": {
  182. "type": "object",
  183. "properties": {
  184. "author": {
  185. "$ref": "#/definitions/service.User"
  186. },
  187. "category": {
  188. "$ref": "#/definitions/service.Category"
  189. },
  190. "comment_count": {
  191. "type": "integer"
  192. },
  193. "comment_users": {
  194. "type": "array",
  195. "items": {
  196. "$ref": "#/definitions/service.User"
  197. }
  198. },
  199. "created_at": {
  200. "type": "integer"
  201. },
  202. "id": {
  203. "type": "string"
  204. },
  205. "is_answered": {
  206. "type": "boolean"
  207. },
  208. "labels": {
  209. "type": "array",
  210. "items": {
  211. "$ref": "#/definitions/service.Label"
  212. }
  213. },
  214. "thumbs_up": {
  215. "type": "integer"
  216. },
  217. "title": {
  218. "type": "string"
  219. },
  220. "upvote_count": {
  221. "type": "integer"
  222. },
  223. "url": {
  224. "type": "string"
  225. }
  226. }
  227. },
  228. "service.InstallerCount": {
  229. "type": "object",
  230. "properties": {
  231. "total": {
  232. "type": "integer"
  233. }
  234. }
  235. },
  236. "service.Issue": {
  237. "type": "object",
  238. "properties": {
  239. "author": {
  240. "$ref": "#/definitions/service.User"
  241. },
  242. "comment_count": {
  243. "type": "integer"
  244. },
  245. "created_at": {
  246. "type": "integer"
  247. },
  248. "id": {
  249. "type": "string"
  250. },
  251. "labels": {
  252. "type": "array",
  253. "items": {
  254. "$ref": "#/definitions/service.Label"
  255. }
  256. },
  257. "thumbs_up": {
  258. "type": "integer"
  259. },
  260. "title": {
  261. "type": "string"
  262. },
  263. "url": {
  264. "type": "string"
  265. }
  266. }
  267. },
  268. "service.Label": {
  269. "type": "object",
  270. "properties": {
  271. "color": {
  272. "type": "string"
  273. },
  274. "name": {
  275. "type": "string"
  276. }
  277. }
  278. },
  279. "service.Repo": {
  280. "type": "object",
  281. "properties": {
  282. "id": {
  283. "type": "string"
  284. },
  285. "star_count": {
  286. "type": "integer"
  287. }
  288. }
  289. },
  290. "service.User": {
  291. "type": "object",
  292. "properties": {
  293. "avatar_url": {
  294. "type": "string"
  295. },
  296. "login": {
  297. "type": "string"
  298. }
  299. }
  300. }
  301. }
  302. }`
  303. // SwaggerInfo holds exported Swagger Info so clients can modify it
  304. var SwaggerInfo = &swag.Spec{
  305. Version: "",
  306. Host: "",
  307. BasePath: "",
  308. Schemes: []string{},
  309. Title: "",
  310. Description: "",
  311. InfoInstanceName: "swagger",
  312. SwaggerTemplate: docTemplate,
  313. LeftDelim: "{{",
  314. RightDelim: "}}",
  315. }
  316. func init() {
  317. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  318. }