swagger.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "go-common api",
  5. "description": "api",
  6. "version": "1.0",
  7. "contact": {
  8. "email": "lintanghui@bilibili.com"
  9. },
  10. "license": {
  11. "name": "Apache 2.0",
  12. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  13. }
  14. },
  15. "paths": {
  16. "/bbq/app-bbq/sv/list/": {
  17. "get": {
  18. "operationId": "/bbq/app-bbq/sv/list/",
  19. "parameters": [
  20. {
  21. "in": "query",
  22. "name": "pagesize",
  23. "description": " 最大值 20",
  24. "required": true,
  25. "type": "integer",
  26. "format": "int64"
  27. },
  28. {
  29. "in": "query",
  30. "name": "MID",
  31. "type": "integer",
  32. "format": "int64"
  33. },
  34. {
  35. "in": "query",
  36. "name": "Device",
  37. "type": "object"
  38. },
  39. {
  40. "in": "query",
  41. "name": "qn",
  42. "required": true,
  43. "type": "integer",
  44. "format": "int64"
  45. },
  46. {
  47. "in": "query",
  48. "name": "RemoteIP",
  49. "type": "string"
  50. }
  51. ],
  52. "responses": {
  53. "200": {
  54. "description": "服务成功响应内容",
  55. "schema": {
  56. "type": "object",
  57. "properties": {
  58. "code": {
  59. "description": "错误码描述",
  60. "type": "integer"
  61. },
  62. "data": {
  63. "$ref": "#/definitions/VideoResponse",
  64. "type": "object"
  65. },
  66. "message": {
  67. "description": "错误码文本描述",
  68. "type": "string"
  69. },
  70. "ttl": {
  71. "description": "客户端限速时间",
  72. "type": "integer",
  73. "format": "int64"
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. },
  82. "definitions": {
  83. "UserCard": {
  84. "title": "UserCard",
  85. "description": "UserCard 主站返回的用户信息",
  86. "type": "object",
  87. "properties": {
  88. "Face": {
  89. "type": "string"
  90. },
  91. "Level": {
  92. "type": "integer",
  93. "format": "int32"
  94. },
  95. "MID": {
  96. "type": "integer",
  97. "format": "int64"
  98. },
  99. "Name": {
  100. "type": "string"
  101. },
  102. "Rank": {
  103. "type": "integer",
  104. "format": "int32"
  105. },
  106. "Sex": {
  107. "type": "string"
  108. },
  109. "Sign": {
  110. "type": "string"
  111. },
  112. "VIPInfo": {
  113. "$ref": "#/definitions/VIPInfo",
  114. "type": "object"
  115. }
  116. }
  117. },
  118. "VideoPlay": {
  119. "title": "VideoPlay",
  120. "description": "VideoPlay playinfo",
  121. "type": "object",
  122. "properties": {
  123. "CID": {
  124. "type": "integer",
  125. "format": "int64"
  126. },
  127. "CurrentTime": {
  128. "type": "integer",
  129. "format": "int64"
  130. },
  131. "ExpireTime": {
  132. "type": "integer",
  133. "format": "int64"
  134. },
  135. "FileInfo": {
  136. "type": "array",
  137. "items": {
  138. "$ref": "#/definitions/FileInfo",
  139. "type": "object"
  140. }
  141. },
  142. "Fnval": {
  143. "type": "integer",
  144. "format": "int64"
  145. },
  146. "Fnver": {
  147. "type": "integer",
  148. "format": "int64"
  149. },
  150. "Quality": {
  151. "type": "integer",
  152. "format": "int64"
  153. },
  154. "SupportDescription": {
  155. "type": "array",
  156. "items": {
  157. "type": "string"
  158. }
  159. },
  160. "SupportFormats": {
  161. "type": "array",
  162. "items": {
  163. "type": "string"
  164. }
  165. },
  166. "SupportQuality": {
  167. "type": "array",
  168. "items": {
  169. "type": "integer",
  170. "format": "int64"
  171. }
  172. },
  173. "URL": {
  174. "type": "string"
  175. },
  176. "VideoCodeCID": {
  177. "type": "integer",
  178. "format": "int64"
  179. },
  180. "VideoProject": {
  181. "type": "boolean"
  182. }
  183. }
  184. },
  185. "VideoResponse": {
  186. "title": "VideoResponse",
  187. "description": "VideoResponse 返回视频结构",
  188. "type": "object",
  189. "properties": {
  190. "AVID": {
  191. "type": "integer",
  192. "format": "int64"
  193. },
  194. "CID": {
  195. "type": "integer",
  196. "format": "int64"
  197. },
  198. "Content": {
  199. "type": "string"
  200. },
  201. "Ctime": {
  202. "type": "integer",
  203. "format": "int64"
  204. },
  205. "Duration": {
  206. "type": "integer",
  207. "format": "int64"
  208. },
  209. "From": {
  210. "type": "integer",
  211. "format": "int32"
  212. },
  213. "IsLike": {
  214. "type": "boolean"
  215. },
  216. "Like": {
  217. "type": "integer",
  218. "format": "int64"
  219. },
  220. "MID": {
  221. "type": "integer",
  222. "format": "int64"
  223. },
  224. "Pic": {
  225. "type": "string"
  226. },
  227. "Play": {
  228. "$ref": "#/definitions/VideoPlay",
  229. "type": "object"
  230. },
  231. "Pubtime": {
  232. "type": "string"
  233. },
  234. "Reply": {
  235. "type": "integer",
  236. "format": "int64"
  237. },
  238. "SVID": {
  239. "type": "integer",
  240. "format": "int64"
  241. },
  242. "Share": {
  243. "type": "integer",
  244. "format": "int64"
  245. },
  246. "Tag": {
  247. "type": "string"
  248. },
  249. "Tags": {
  250. "type": "array",
  251. "items": {
  252. "$ref": "#/definitions/VideoTag",
  253. "type": "object"
  254. }
  255. },
  256. "Title": {
  257. "type": "string"
  258. },
  259. "UserInfo": {
  260. "$ref": "#/definitions/UserCard",
  261. "type": "object"
  262. }
  263. }
  264. },
  265. "VideoTag": {
  266. "title": "VideoTag",
  267. "description": "VideoTag 视屏标签",
  268. "type": "object",
  269. "properties": {
  270. "ID": {
  271. "type": "integer",
  272. "format": "int64"
  273. },
  274. "Name": {
  275. "type": "string"
  276. },
  277. "Type": {
  278. "type": "integer",
  279. "format": "int32"
  280. }
  281. }
  282. }
  283. }
  284. }