api.swagger.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "app/service/main/up/api/v1/api.proto",
  5. "version": "version not set"
  6. },
  7. "schemes": [
  8. "http",
  9. "https"
  10. ],
  11. "consumes": [
  12. "application/json"
  13. ],
  14. "produces": [
  15. "application/json"
  16. ],
  17. "paths": {
  18. "/x/internal/uper/archive/up/count": {
  19. "get": {
  20. "summary": "UpCount 单个up主的稿件计数接口",
  21. "operationId": "UpCount",
  22. "responses": {
  23. "200": {
  24. "description": "A successful response.",
  25. "schema": {
  26. "$ref": "#/definitions/v1UpCountReply"
  27. }
  28. }
  29. },
  30. "parameters": [
  31. {
  32. "name": "mid",
  33. "in": "query",
  34. "required": false,
  35. "type": "string",
  36. "format": "int64"
  37. }
  38. ],
  39. "tags": [
  40. "Up"
  41. ]
  42. }
  43. },
  44. "/x/internal/uper/archive/up/passed": {
  45. "get": {
  46. "summary": "UpArcs 单个up主的稿件列表接口-带分页",
  47. "operationId": "UpArcs",
  48. "responses": {
  49. "200": {
  50. "description": "A successful response.",
  51. "schema": {
  52. "$ref": "#/definitions/v1UpArcsReply"
  53. }
  54. }
  55. },
  56. "parameters": [
  57. {
  58. "name": "mid",
  59. "description": "mid 用户id 必传.",
  60. "in": "query",
  61. "required": false,
  62. "type": "string",
  63. "format": "int64"
  64. },
  65. {
  66. "name": "pn",
  67. "description": "pn 第几页 非必传.",
  68. "in": "query",
  69. "required": false,
  70. "type": "integer",
  71. "format": "int32"
  72. },
  73. {
  74. "name": "ps",
  75. "description": "ps 分页大小 非必传.",
  76. "in": "query",
  77. "required": false,
  78. "type": "integer",
  79. "format": "int32"
  80. }
  81. ],
  82. "tags": [
  83. "Up"
  84. ]
  85. }
  86. },
  87. "/x/internal/uper/archive/ups/count": {
  88. "get": {
  89. "summary": "UpsCount 多个up主的稿件计数接口",
  90. "operationId": "UpsCount",
  91. "responses": {
  92. "200": {
  93. "description": "A successful response.",
  94. "schema": {
  95. "$ref": "#/definitions/v1UpsCountReply"
  96. }
  97. }
  98. },
  99. "parameters": [
  100. {
  101. "name": "mids",
  102. "description": "mids 多个用户id 必传 最大100个.",
  103. "in": "query",
  104. "required": false,
  105. "type": "array",
  106. "items": {
  107. "type": "string",
  108. "format": "int64"
  109. }
  110. }
  111. ],
  112. "tags": [
  113. "Up"
  114. ]
  115. }
  116. },
  117. "/x/internal/uper/archive/ups/passed": {
  118. "get": {
  119. "summary": "UpsArcs 多个up主的稿件列表接口-带分页",
  120. "operationId": "UpsArcs",
  121. "responses": {
  122. "200": {
  123. "description": "A successful response.",
  124. "schema": {
  125. "$ref": "#/definitions/v1UpsArcsReply"
  126. }
  127. }
  128. },
  129. "parameters": [
  130. {
  131. "name": "mids",
  132. "description": "mids 多个用户id 必传 最大100个.",
  133. "in": "query",
  134. "required": false,
  135. "type": "array",
  136. "items": {
  137. "type": "string",
  138. "format": "int64"
  139. }
  140. },
  141. {
  142. "name": "pn",
  143. "description": "pn 第几页 非必传.",
  144. "in": "query",
  145. "required": false,
  146. "type": "integer",
  147. "format": "int32"
  148. },
  149. {
  150. "name": "ps",
  151. "description": "ps 分页大小 非必传.",
  152. "in": "query",
  153. "required": false,
  154. "type": "integer",
  155. "format": "int32"
  156. }
  157. ],
  158. "tags": [
  159. "Up"
  160. ]
  161. }
  162. }
  163. },
  164. "definitions": {
  165. "v1AidPubTime": {
  166. "type": "object",
  167. "properties": {
  168. "Aid": {
  169. "type": "string",
  170. "format": "int64",
  171. "title": "Aid 稿件aid"
  172. },
  173. "PubDate": {
  174. "type": "string",
  175. "format": "int64",
  176. "title": "PubDate 发布时间"
  177. },
  178. "Copyright": {
  179. "type": "integer",
  180. "format": "int32",
  181. "title": "Copyright 版权来源"
  182. }
  183. },
  184. "title": "AidPubTime 发布时间的稿件aid的信息"
  185. },
  186. "v1Arc": {
  187. "type": "object",
  188. "properties": {
  189. "Aid": {
  190. "type": "string",
  191. "format": "int64"
  192. },
  193. "Videos": {
  194. "type": "string",
  195. "format": "int64"
  196. },
  197. "TypeID": {
  198. "type": "integer",
  199. "format": "int32"
  200. },
  201. "TypeName": {
  202. "type": "string"
  203. },
  204. "Copyright": {
  205. "type": "integer",
  206. "format": "int32"
  207. },
  208. "Pic": {
  209. "type": "string"
  210. },
  211. "Title": {
  212. "type": "string"
  213. },
  214. "PubDate": {
  215. "type": "string",
  216. "format": "int64"
  217. },
  218. "Ctime": {
  219. "type": "string",
  220. "format": "int64"
  221. },
  222. "Desc": {
  223. "type": "string"
  224. },
  225. "State": {
  226. "type": "integer",
  227. "format": "int32"
  228. },
  229. "Access": {
  230. "type": "integer",
  231. "format": "int32"
  232. },
  233. "Attribute": {
  234. "type": "integer",
  235. "format": "int32"
  236. },
  237. "Tag": {
  238. "type": "string"
  239. },
  240. "Tags": {
  241. "type": "array",
  242. "items": {
  243. "type": "string"
  244. }
  245. },
  246. "Duration": {
  247. "type": "string",
  248. "format": "int64"
  249. },
  250. "MissionID": {
  251. "type": "string",
  252. "format": "int64"
  253. },
  254. "OrderID": {
  255. "type": "string",
  256. "format": "int64"
  257. },
  258. "RedirectURL": {
  259. "type": "string"
  260. },
  261. "Forward": {
  262. "type": "string",
  263. "format": "int64"
  264. },
  265. "Rights": {
  266. "$ref": "#/definitions/v1Rights"
  267. },
  268. "Author": {
  269. "$ref": "#/definitions/v1Author"
  270. },
  271. "Stat": {
  272. "$ref": "#/definitions/v1Stat"
  273. },
  274. "ReportResult": {
  275. "type": "string"
  276. },
  277. "Dynamic": {
  278. "type": "string"
  279. },
  280. "FirstCid": {
  281. "type": "string",
  282. "format": "int64"
  283. },
  284. "Dimension": {
  285. "$ref": "#/definitions/v1Dimension"
  286. }
  287. }
  288. },
  289. "v1Author": {
  290. "type": "object",
  291. "properties": {
  292. "Mid": {
  293. "type": "string",
  294. "format": "int64"
  295. },
  296. "Name": {
  297. "type": "string"
  298. },
  299. "Face": {
  300. "type": "string"
  301. }
  302. }
  303. },
  304. "v1Dimension": {
  305. "type": "object",
  306. "properties": {
  307. "Width": {
  308. "type": "string",
  309. "format": "int64"
  310. },
  311. "Height": {
  312. "type": "string",
  313. "format": "int64"
  314. },
  315. "Rotate": {
  316. "type": "string",
  317. "format": "int64"
  318. }
  319. }
  320. },
  321. "v1NoReply": {
  322. "type": "object",
  323. "title": "NoReply 没有返回值"
  324. },
  325. "v1Rights": {
  326. "type": "object",
  327. "properties": {
  328. "Bp": {
  329. "type": "integer",
  330. "format": "int32"
  331. },
  332. "Elec": {
  333. "type": "integer",
  334. "format": "int32"
  335. },
  336. "Download": {
  337. "type": "integer",
  338. "format": "int32"
  339. },
  340. "Movie": {
  341. "type": "integer",
  342. "format": "int32"
  343. },
  344. "Pay": {
  345. "type": "integer",
  346. "format": "int32"
  347. },
  348. "HD5": {
  349. "type": "integer",
  350. "format": "int32"
  351. },
  352. "NoReprint": {
  353. "type": "integer",
  354. "format": "int32"
  355. },
  356. "Autoplay": {
  357. "type": "integer",
  358. "format": "int32"
  359. },
  360. "UGCPay": {
  361. "type": "integer",
  362. "format": "int32"
  363. }
  364. }
  365. },
  366. "v1Stat": {
  367. "type": "object",
  368. "properties": {
  369. "Aid": {
  370. "type": "string",
  371. "format": "int64"
  372. },
  373. "View": {
  374. "type": "integer",
  375. "format": "int32"
  376. },
  377. "Danmaku": {
  378. "type": "integer",
  379. "format": "int32"
  380. },
  381. "Reply": {
  382. "type": "integer",
  383. "format": "int32"
  384. },
  385. "Fav": {
  386. "type": "integer",
  387. "format": "int32"
  388. },
  389. "Coin": {
  390. "type": "integer",
  391. "format": "int32"
  392. },
  393. "Share": {
  394. "type": "integer",
  395. "format": "int32"
  396. },
  397. "NowRank": {
  398. "type": "integer",
  399. "format": "int32"
  400. },
  401. "HisRank": {
  402. "type": "integer",
  403. "format": "int32"
  404. },
  405. "Like": {
  406. "type": "integer",
  407. "format": "int32"
  408. },
  409. "DisLike": {
  410. "type": "integer",
  411. "format": "int32"
  412. }
  413. }
  414. },
  415. "v1UpAidPubTimeReply": {
  416. "type": "object",
  417. "properties": {
  418. "archives": {
  419. "type": "array",
  420. "items": {
  421. "$ref": "#/definitions/v1AidPubTime"
  422. }
  423. }
  424. },
  425. "title": "UpAidPubTimeReply 按发布时间的单个up的稿件aid的返回值"
  426. },
  427. "v1UpArcsReply": {
  428. "type": "object",
  429. "properties": {
  430. "archives": {
  431. "type": "array",
  432. "items": {
  433. "$ref": "#/definitions/v1Arc"
  434. }
  435. }
  436. },
  437. "title": "UpArcsReply 单个up主的稿件信息列表返回值"
  438. },
  439. "v1UpCountReply": {
  440. "type": "object",
  441. "properties": {
  442. "count": {
  443. "type": "string",
  444. "format": "int64"
  445. }
  446. },
  447. "title": "UpCountReply 单个up主的稿件计数返回值"
  448. },
  449. "v1UpsAidPubTimeReply": {
  450. "type": "object",
  451. "properties": {
  452. "archives": {
  453. "type": "object",
  454. "additionalProperties": {
  455. "$ref": "#/definitions/v1UpAidPubTimeReply"
  456. }
  457. }
  458. },
  459. "title": "UpsAidPubTimeReply 按发布时间的多个up的稿件aid的返回值"
  460. },
  461. "v1UpsArcsReply": {
  462. "type": "object",
  463. "properties": {
  464. "archives": {
  465. "type": "object",
  466. "additionalProperties": {
  467. "$ref": "#/definitions/v1UpArcsReply"
  468. }
  469. }
  470. },
  471. "title": "UpsArcsReply 多个up主的稿件信息列表返回值"
  472. },
  473. "v1UpsCountReply": {
  474. "type": "object",
  475. "properties": {
  476. "count": {
  477. "type": "object",
  478. "additionalProperties": {
  479. "type": "string",
  480. "format": "int64"
  481. }
  482. }
  483. },
  484. "title": "UpsCountReply 多个up主的稿件计数返回值"
  485. }
  486. }
  487. }