docs.go 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196
  1. // Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import (
  5. "bytes"
  6. "encoding/json"
  7. "strings"
  8. "text/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{escape .Description}}",
  16. "title": "{{.Title}}",
  17. "contact": {},
  18. "version": "{{.Version}}"
  19. },
  20. "host": "{{.Host}}",
  21. "basePath": "{{.BasePath}}",
  22. "paths": {
  23. "/admin/administrator": {
  24. "get": {
  25. "security": [
  26. {
  27. "ApiKeyAuth": []
  28. }
  29. ],
  30. "description": "관리자 리스트 가져오기",
  31. "consumes": [
  32. "application/json"
  33. ],
  34. "produces": [
  35. "application/json"
  36. ],
  37. "tags": [
  38. "admin"
  39. ],
  40. "summary": "get administrator list",
  41. "responses": {
  42. "200": {
  43. "description": "OK",
  44. "schema": {
  45. "$ref": "#/definitions/view.AdministratorList"
  46. }
  47. }
  48. }
  49. },
  50. "post": {
  51. "security": [
  52. {
  53. "ApiKeyAuth": []
  54. }
  55. ],
  56. "description": "관리자 등록",
  57. "consumes": [
  58. "application/json"
  59. ],
  60. "produces": [
  61. "application/json"
  62. ],
  63. "tags": [
  64. "admin"
  65. ],
  66. "summary": "create administrator",
  67. "parameters": [
  68. {
  69. "description": "body struct",
  70. "name": "RegisterAdministratorData",
  71. "in": "body",
  72. "required": true,
  73. "schema": {
  74. "$ref": "#/definitions/admin.RegisterAdministratorData"
  75. }
  76. }
  77. ],
  78. "responses": {
  79. "200": {
  80. "description": "OK",
  81. "schema": {
  82. "type": "number"
  83. }
  84. }
  85. }
  86. }
  87. },
  88. "/admin/administrator/permission": {
  89. "patch": {
  90. "security": [
  91. {
  92. "ApiKeyAuth": []
  93. }
  94. ],
  95. "description": "관리자 권한 변경",
  96. "consumes": [
  97. "application/json"
  98. ],
  99. "produces": [
  100. "application/json"
  101. ],
  102. "tags": [
  103. "admin"
  104. ],
  105. "summary": "update administrator permmsion",
  106. "parameters": [
  107. {
  108. "description": "selected target data",
  109. "name": "UpdatePermission",
  110. "in": "body",
  111. "required": true,
  112. "schema": {
  113. "$ref": "#/definitions/admin.UpdatePermission"
  114. }
  115. }
  116. ],
  117. "responses": {
  118. "200": {
  119. "description": "OK",
  120. "schema": {
  121. "type": "string"
  122. }
  123. }
  124. }
  125. }
  126. },
  127. "/admin/administrator/status": {
  128. "patch": {
  129. "security": [
  130. {
  131. "ApiKeyAuth": []
  132. }
  133. ],
  134. "description": "관리자 상태값 변경",
  135. "consumes": [
  136. "application/json"
  137. ],
  138. "produces": [
  139. "application/json"
  140. ],
  141. "tags": [
  142. "admin"
  143. ],
  144. "summary": "update administrator status",
  145. "parameters": [
  146. {
  147. "description": "selected target data",
  148. "name": "UpdateStatus",
  149. "in": "body",
  150. "required": true,
  151. "schema": {
  152. "$ref": "#/definitions/admin.UpdateStatus"
  153. }
  154. }
  155. ],
  156. "responses": {
  157. "200": {
  158. "description": "OK",
  159. "schema": {
  160. "type": "string"
  161. }
  162. }
  163. }
  164. }
  165. },
  166. "/admin/artist": {
  167. "get": {
  168. "security": [
  169. {
  170. "ApiKeyAuth": []
  171. }
  172. ],
  173. "description": "작가 리스트 가져오기",
  174. "consumes": [
  175. "application/json"
  176. ],
  177. "produces": [
  178. "application/json"
  179. ],
  180. "tags": [
  181. "admin"
  182. ],
  183. "summary": "get artist list",
  184. "responses": {
  185. "200": {
  186. "description": "OK",
  187. "schema": {
  188. "$ref": "#/definitions/view.MemberList"
  189. }
  190. }
  191. }
  192. },
  193. "post": {
  194. "security": [
  195. {
  196. "ApiKeyAuth": []
  197. }
  198. ],
  199. "description": "작가 등록",
  200. "consumes": [
  201. "application/json"
  202. ],
  203. "produces": [
  204. "application/json"
  205. ],
  206. "tags": [
  207. "admin"
  208. ],
  209. "summary": "create artist",
  210. "parameters": [
  211. {
  212. "description": "body struct",
  213. "name": "RegisterArtistData",
  214. "in": "body",
  215. "required": true,
  216. "schema": {
  217. "$ref": "#/definitions/admin.RegisterArtistData"
  218. }
  219. }
  220. ],
  221. "responses": {
  222. "200": {
  223. "description": "OK",
  224. "schema": {
  225. "type": "number"
  226. }
  227. }
  228. }
  229. }
  230. },
  231. "/admin/artist/status": {
  232. "patch": {
  233. "security": [
  234. {
  235. "ApiKeyAuth": []
  236. }
  237. ],
  238. "description": "작가 상태값 변경",
  239. "consumes": [
  240. "application/json"
  241. ],
  242. "produces": [
  243. "application/json"
  244. ],
  245. "tags": [
  246. "admin"
  247. ],
  248. "summary": "update artist status",
  249. "parameters": [
  250. {
  251. "description": "selected target data",
  252. "name": "UpdateStatus",
  253. "in": "body",
  254. "required": true,
  255. "schema": {
  256. "$ref": "#/definitions/admin.UpdateStatus"
  257. }
  258. }
  259. ],
  260. "responses": {
  261. "200": {
  262. "description": "OK",
  263. "schema": {
  264. "type": "string"
  265. }
  266. }
  267. }
  268. }
  269. },
  270. "/admin/auth/signin": {
  271. "post": {
  272. "description": "어드민 로그인",
  273. "consumes": [
  274. "application/json"
  275. ],
  276. "produces": [
  277. "application/json"
  278. ],
  279. "tags": [
  280. "admin"
  281. ],
  282. "summary": "signin",
  283. "parameters": [
  284. {
  285. "description": "body struct",
  286. "name": "AccountInfo",
  287. "in": "body",
  288. "required": true,
  289. "schema": {
  290. "$ref": "#/definitions/admin.AccountInfo"
  291. }
  292. }
  293. ],
  294. "responses": {
  295. "200": {
  296. "description": "OK",
  297. "schema": {
  298. "$ref": "#/definitions/admin.AdminAuthContainer"
  299. }
  300. }
  301. }
  302. }
  303. },
  304. "/admin/collection": {
  305. "get": {
  306. "security": [
  307. {
  308. "ApiKeyAuth": []
  309. }
  310. ],
  311. "description": "데이터가 쌓인 이후에 진행 예정, 컬렉션 리스트 가져오기",
  312. "consumes": [
  313. "application/json"
  314. ],
  315. "produces": [
  316. "application/json"
  317. ],
  318. "tags": [
  319. "admin"
  320. ],
  321. "summary": "get collection list",
  322. "responses": {
  323. "200": {
  324. "description": "OK",
  325. "schema": {
  326. "type": "array",
  327. "items": {
  328. "$ref": "#/definitions/view.CollectionInfo"
  329. }
  330. }
  331. }
  332. }
  333. }
  334. },
  335. "/admin/collection/curation": {
  336. "patch": {
  337. "security": [
  338. {
  339. "ApiKeyAuth": []
  340. }
  341. ],
  342. "description": "컬렉션 큐레이션 변경",
  343. "consumes": [
  344. "application/json"
  345. ],
  346. "produces": [
  347. "application/json"
  348. ],
  349. "tags": [
  350. "admin"
  351. ],
  352. "summary": "update collection curation",
  353. "parameters": [
  354. {
  355. "description": "selected target data",
  356. "name": "UpdateCuration",
  357. "in": "body",
  358. "required": true,
  359. "schema": {
  360. "$ref": "#/definitions/admin.UpdateCuration"
  361. }
  362. }
  363. ],
  364. "responses": {
  365. "200": {
  366. "description": "OK",
  367. "schema": {
  368. "type": "string"
  369. }
  370. }
  371. }
  372. }
  373. },
  374. "/admin/collection/status": {
  375. "patch": {
  376. "security": [
  377. {
  378. "ApiKeyAuth": []
  379. }
  380. ],
  381. "description": "컬렉션 상태값 변경 (보이기, 숨김)",
  382. "consumes": [
  383. "application/json"
  384. ],
  385. "produces": [
  386. "application/json"
  387. ],
  388. "tags": [
  389. "admin"
  390. ],
  391. "summary": "update collection status",
  392. "parameters": [
  393. {
  394. "description": "selected target data",
  395. "name": "UpdateStatus",
  396. "in": "body",
  397. "required": true,
  398. "schema": {
  399. "$ref": "#/definitions/admin.UpdateStatus"
  400. }
  401. }
  402. ],
  403. "responses": {
  404. "200": {
  405. "description": "OK",
  406. "schema": {
  407. "type": "string"
  408. }
  409. }
  410. }
  411. }
  412. },
  413. "/admin/log": {
  414. "get": {
  415. "security": [
  416. {
  417. "ApiKeyAuth": []
  418. }
  419. ],
  420. "description": "어드민 로그 가져오기",
  421. "consumes": [
  422. "application/json"
  423. ],
  424. "produces": [
  425. "application/json"
  426. ],
  427. "tags": [
  428. "admin"
  429. ],
  430. "summary": "get log list",
  431. "responses": {
  432. "200": {
  433. "description": "OK",
  434. "schema": {
  435. "$ref": "#/definitions/models.AdminLog"
  436. }
  437. }
  438. }
  439. }
  440. },
  441. "/admin/setting": {
  442. "get": {
  443. "security": [
  444. {
  445. "ApiKeyAuth": []
  446. }
  447. ],
  448. "description": "현재 셋팅 값 가져오기",
  449. "consumes": [
  450. "application/json"
  451. ],
  452. "produces": [
  453. "application/json"
  454. ],
  455. "tags": [
  456. "admin"
  457. ],
  458. "summary": "get setting list",
  459. "responses": {
  460. "200": {
  461. "description": "OK",
  462. "schema": {
  463. "$ref": "#/definitions/models.Setting"
  464. }
  465. }
  466. }
  467. }
  468. },
  469. "/admin/setting/{type}": {
  470. "patch": {
  471. "security": [
  472. {
  473. "ApiKeyAuth": []
  474. }
  475. ],
  476. "description": "설정 값 변경",
  477. "consumes": [
  478. "application/json"
  479. ],
  480. "produces": [
  481. "application/json"
  482. ],
  483. "tags": [
  484. "admin"
  485. ],
  486. "summary": "update setting value",
  487. "parameters": [
  488. {
  489. "description": "selected target data",
  490. "name": "SettingData",
  491. "in": "body",
  492. "required": true,
  493. "schema": {
  494. "$ref": "#/definitions/admin.SettingData"
  495. }
  496. },
  497. {
  498. "type": "string",
  499. "description": "type: commission, special_collection, gas_deposit",
  500. "name": "type",
  501. "in": "path",
  502. "required": true
  503. }
  504. ],
  505. "responses": {
  506. "200": {
  507. "description": "OK",
  508. "schema": {
  509. "type": "string"
  510. }
  511. }
  512. }
  513. }
  514. },
  515. "/admin/user": {
  516. "get": {
  517. "security": [
  518. {
  519. "ApiKeyAuth": []
  520. }
  521. ],
  522. "description": "유저 리스트 가져오기",
  523. "consumes": [
  524. "application/json"
  525. ],
  526. "produces": [
  527. "application/json"
  528. ],
  529. "tags": [
  530. "admin"
  531. ],
  532. "summary": "get user list",
  533. "responses": {
  534. "200": {
  535. "description": "OK",
  536. "schema": {
  537. "$ref": "#/definitions/view.MemberList"
  538. }
  539. }
  540. }
  541. }
  542. },
  543. "/admin/user/status": {
  544. "patch": {
  545. "security": [
  546. {
  547. "ApiKeyAuth": []
  548. }
  549. ],
  550. "description": "유저 상태값 변경",
  551. "consumes": [
  552. "application/json"
  553. ],
  554. "produces": [
  555. "application/json"
  556. ],
  557. "tags": [
  558. "admin"
  559. ],
  560. "summary": "update user status",
  561. "parameters": [
  562. {
  563. "description": "selected target data",
  564. "name": "UpdateStatus",
  565. "in": "body",
  566. "required": true,
  567. "schema": {
  568. "$ref": "#/definitions/admin.UpdateStatus"
  569. }
  570. }
  571. ],
  572. "responses": {
  573. "200": {
  574. "description": "OK",
  575. "schema": {
  576. "type": "string"
  577. }
  578. }
  579. }
  580. }
  581. },
  582. "/collection": {
  583. "post": {
  584. "security": [
  585. {
  586. "ApiKeyAuth": []
  587. }
  588. ],
  589. "description": "컬렉션 등록, json struct = {name: string, symbol: string, description: string, type: string}",
  590. "consumes": [
  591. "multipart/form-data"
  592. ],
  593. "produces": [
  594. "application/json"
  595. ],
  596. "tags": [
  597. "collection"
  598. ],
  599. "summary": "create collection",
  600. "parameters": [
  601. {
  602. "type": "file",
  603. "description": "thumbnail image",
  604. "name": "thumbnailImage",
  605. "in": "formData",
  606. "required": true
  607. },
  608. {
  609. "type": "file",
  610. "description": "cover image",
  611. "name": "coverImage",
  612. "in": "formData",
  613. "required": true
  614. },
  615. {
  616. "type": "string",
  617. "name": "json",
  618. "in": "formData"
  619. }
  620. ],
  621. "responses": {
  622. "200": {
  623. "description": "OK",
  624. "schema": {
  625. "type": "string"
  626. }
  627. }
  628. }
  629. },
  630. "patch": {
  631. "security": [
  632. {
  633. "ApiKeyAuth": []
  634. }
  635. ],
  636. "description": "컬렉션 수정, json struct = {description: string, collection_id: uin64}",
  637. "consumes": [
  638. "multipart/form-data"
  639. ],
  640. "produces": [
  641. "application/json"
  642. ],
  643. "tags": [
  644. "collection"
  645. ],
  646. "summary": "update collection",
  647. "parameters": [
  648. {
  649. "type": "file",
  650. "description": "thumbnail image",
  651. "name": "thumbnailImage",
  652. "in": "formData",
  653. "required": true
  654. },
  655. {
  656. "type": "file",
  657. "description": "cover image",
  658. "name": "coverImage",
  659. "in": "formData",
  660. "required": true
  661. },
  662. {
  663. "type": "string",
  664. "name": "json",
  665. "in": "formData"
  666. }
  667. ],
  668. "responses": {
  669. "200": {
  670. "description": "OK",
  671. "schema": {
  672. "type": "string"
  673. }
  674. }
  675. }
  676. }
  677. },
  678. "/collection/activity/{collection_name}": {
  679. "post": {
  680. "description": "컬렉션 페이지 활동 탭",
  681. "consumes": [
  682. "application/json"
  683. ],
  684. "produces": [
  685. "application/json"
  686. ],
  687. "tags": [
  688. "collection"
  689. ],
  690. "summary": "get activities in collection",
  691. "parameters": [
  692. {
  693. "type": "string",
  694. "description": "collection name",
  695. "name": "collection_name",
  696. "in": "path",
  697. "required": true
  698. }
  699. ],
  700. "responses": {
  701. "200": {
  702. "description": "OK",
  703. "schema": {
  704. "type": "array",
  705. "items": {
  706. "$ref": "#/definitions/common.ExpItem"
  707. }
  708. }
  709. }
  710. }
  711. }
  712. },
  713. "/collection/duplicate/{name}": {
  714. "get": {
  715. "description": "컬렉션 이름 중복체크",
  716. "consumes": [
  717. "application/json"
  718. ],
  719. "produces": [
  720. "application/json"
  721. ],
  722. "tags": [
  723. "collection"
  724. ],
  725. "summary": "collection profile name duplicate check.",
  726. "parameters": [
  727. {
  728. "type": "string",
  729. "description": "check duplicate name",
  730. "name": "name",
  731. "in": "path",
  732. "required": true
  733. }
  734. ],
  735. "responses": {
  736. "200": {
  737. "description": "OK",
  738. "schema": {
  739. "type": "string"
  740. }
  741. }
  742. }
  743. }
  744. },
  745. "/collection/item/{collection_name}": {
  746. "post": {
  747. "description": "컬렉션 페이지 아이템 탭",
  748. "consumes": [
  749. "application/json"
  750. ],
  751. "produces": [
  752. "application/json"
  753. ],
  754. "tags": [
  755. "collection"
  756. ],
  757. "summary": "get items in collection",
  758. "parameters": [
  759. {
  760. "type": "string",
  761. "description": "collection name",
  762. "name": "collection_name",
  763. "in": "path",
  764. "required": true
  765. },
  766. {
  767. "description": "filter data",
  768. "name": "common.Filter",
  769. "in": "body",
  770. "required": true,
  771. "schema": {
  772. "$ref": "#/definitions/common.Filter"
  773. }
  774. }
  775. ],
  776. "responses": {
  777. "200": {
  778. "description": "OK",
  779. "schema": {
  780. "type": "array",
  781. "items": {
  782. "$ref": "#/definitions/common.ExpItem"
  783. }
  784. }
  785. }
  786. }
  787. }
  788. },
  789. "/collection/{collection_name}": {
  790. "get": {
  791. "description": "컬렉션 페이지에 있는 기본 정보 (탭 데이터는 따로 가져와야 한다.)",
  792. "consumes": [
  793. "application/json"
  794. ],
  795. "produces": [
  796. "application/json"
  797. ],
  798. "tags": [
  799. "collection"
  800. ],
  801. "summary": "get collection info",
  802. "parameters": [
  803. {
  804. "type": "string",
  805. "description": "collection name",
  806. "name": "collection_name",
  807. "in": "path",
  808. "required": true
  809. }
  810. ],
  811. "responses": {
  812. "200": {
  813. "description": "OK",
  814. "schema": {
  815. "$ref": "#/definitions/view.CollectionInfo"
  816. }
  817. }
  818. }
  819. }
  820. },
  821. "/explore/home": {
  822. "post": {
  823. "description": "탐색하기 home data",
  824. "consumes": [
  825. "application/json"
  826. ],
  827. "produces": [
  828. "application/json"
  829. ],
  830. "tags": [
  831. "explore"
  832. ],
  833. "summary": "explore filter data",
  834. "parameters": [
  835. {
  836. "description": "filter object",
  837. "name": "common.Filter",
  838. "in": "body",
  839. "required": true,
  840. "schema": {
  841. "$ref": "#/definitions/common.Filter"
  842. }
  843. }
  844. ],
  845. "responses": {
  846. "200": {
  847. "description": "OK",
  848. "schema": {
  849. "type": "array",
  850. "items": {
  851. "$ref": "#/definitions/common.ExpItem"
  852. }
  853. }
  854. }
  855. }
  856. }
  857. },
  858. "/explore/search": {
  859. "post": {
  860. "description": "필터링중 컬렉션 이름으로 키워드 검색 할 때 사용하며, filter.collectionName이 빈 값인 경우 tvl 기준 limit 10개 리턴",
  861. "consumes": [
  862. "application/json"
  863. ],
  864. "produces": [
  865. "application/json"
  866. ],
  867. "tags": [
  868. "explore"
  869. ],
  870. "summary": "explore collection filter list",
  871. "parameters": [
  872. {
  873. "description": "filter object",
  874. "name": "common.Filter",
  875. "in": "body",
  876. "required": true,
  877. "schema": {
  878. "$ref": "#/definitions/common.Filter"
  879. }
  880. }
  881. ],
  882. "responses": {
  883. "200": {
  884. "description": "OK",
  885. "schema": {
  886. "type": "obejct"
  887. }
  888. }
  889. }
  890. }
  891. },
  892. "/health": {
  893. "get": {
  894. "description": "API to check the status of the server",
  895. "consumes": [
  896. "application/json"
  897. ],
  898. "produces": [
  899. "application/json"
  900. ],
  901. "tags": [
  902. "health check"
  903. ],
  904. "summary": "API to check the status of the server",
  905. "responses": {
  906. "200": {
  907. "description": "OK",
  908. "schema": {
  909. "type": "string"
  910. }
  911. }
  912. }
  913. }
  914. },
  915. "/home": {
  916. "get": {
  917. "description": "index 페이지 데이터",
  918. "consumes": [
  919. "application/json"
  920. ],
  921. "produces": [
  922. "application/json"
  923. ],
  924. "tags": [
  925. "home"
  926. ],
  927. "summary": "get index data",
  928. "responses": {
  929. "200": {
  930. "description": "OK",
  931. "schema": {
  932. "$ref": "#/definitions/view.TokenSet"
  933. }
  934. }
  935. }
  936. }
  937. },
  938. "/sale/auction": {
  939. "post": {
  940. "security": [
  941. {
  942. "ApiKeyAuth": []
  943. }
  944. ],
  945. "description": "최고가 판매",
  946. "consumes": [
  947. "application/json"
  948. ],
  949. "produces": [
  950. "application/json"
  951. ],
  952. "tags": [
  953. "sale"
  954. ],
  955. "summary": "highest price sell",
  956. "parameters": [
  957. {
  958. "description": "body struct",
  959. "name": "BidData",
  960. "in": "body",
  961. "required": true,
  962. "schema": {
  963. "$ref": "#/definitions/sale.BidData"
  964. }
  965. }
  966. ],
  967. "responses": {
  968. "200": {
  969. "description": "OK",
  970. "schema": {
  971. "type": "string"
  972. }
  973. }
  974. }
  975. }
  976. },
  977. "/sale/bid": {
  978. "post": {
  979. "security": [
  980. {
  981. "ApiKeyAuth": []
  982. }
  983. ],
  984. "description": "입찰하기",
  985. "consumes": [
  986. "application/json"
  987. ],
  988. "produces": [
  989. "application/json"
  990. ],
  991. "tags": [
  992. "sale"
  993. ],
  994. "summary": "create bid",
  995. "parameters": [
  996. {
  997. "description": "body struct",
  998. "name": "BidData",
  999. "in": "body",
  1000. "required": true,
  1001. "schema": {
  1002. "$ref": "#/definitions/sale.BidData"
  1003. }
  1004. }
  1005. ],
  1006. "responses": {
  1007. "200": {
  1008. "description": "OK",
  1009. "schema": {
  1010. "type": "string"
  1011. }
  1012. }
  1013. }
  1014. },
  1015. "patch": {
  1016. "security": [
  1017. {
  1018. "ApiKeyAuth": []
  1019. }
  1020. ],
  1021. "description": "입찰 취소하기, 입찰을 다시하려면 취소 후 다시 해야한다.",
  1022. "consumes": [
  1023. "application/json"
  1024. ],
  1025. "produces": [
  1026. "application/json"
  1027. ],
  1028. "tags": [
  1029. "sale"
  1030. ],
  1031. "summary": "cancel bid",
  1032. "parameters": [
  1033. {
  1034. "description": "body struct",
  1035. "name": "TargetID",
  1036. "in": "body",
  1037. "required": true,
  1038. "schema": {
  1039. "$ref": "#/definitions/sale.TargetID"
  1040. }
  1041. }
  1042. ],
  1043. "responses": {
  1044. "200": {
  1045. "description": "OK",
  1046. "schema": {
  1047. "type": "string"
  1048. }
  1049. }
  1050. }
  1051. }
  1052. },
  1053. "/sale/bid/{sale_id}": {
  1054. "get": {
  1055. "security": [
  1056. {
  1057. "ApiKeyAuth": []
  1058. }
  1059. ],
  1060. "description": "NFT 판매 상세페이지 경매 기록 탭",
  1061. "consumes": [
  1062. "application/json"
  1063. ],
  1064. "produces": [
  1065. "application/json"
  1066. ],
  1067. "tags": [
  1068. "sale"
  1069. ],
  1070. "summary": "get bid history",
  1071. "parameters": [
  1072. {
  1073. "type": "string",
  1074. "description": "sale id",
  1075. "name": "sale_id",
  1076. "in": "path",
  1077. "required": true
  1078. }
  1079. ],
  1080. "responses": {
  1081. "200": {
  1082. "description": "OK",
  1083. "schema": {
  1084. "type": "obejct"
  1085. }
  1086. }
  1087. }
  1088. }
  1089. },
  1090. "/sale/buy": {
  1091. "post": {
  1092. "security": [
  1093. {
  1094. "ApiKeyAuth": []
  1095. }
  1096. ],
  1097. "description": "아이템 즉시 구매",
  1098. "consumes": [
  1099. "application/json"
  1100. ],
  1101. "produces": [
  1102. "application/json"
  1103. ],
  1104. "tags": [
  1105. "sale"
  1106. ],
  1107. "summary": "buy now item",
  1108. "parameters": [
  1109. {
  1110. "description": "body struct",
  1111. "name": "BidData",
  1112. "in": "body",
  1113. "required": true,
  1114. "schema": {
  1115. "$ref": "#/definitions/sale.BidData"
  1116. }
  1117. }
  1118. ],
  1119. "responses": {
  1120. "200": {
  1121. "description": "OK",
  1122. "schema": {
  1123. "type": "string"
  1124. }
  1125. }
  1126. }
  1127. }
  1128. },
  1129. "/sale/resale": {
  1130. "post": {
  1131. "security": [
  1132. {
  1133. "ApiKeyAuth": []
  1134. }
  1135. ],
  1136. "description": "NFT 구입 후 재등록 API",
  1137. "consumes": [
  1138. "application/json"
  1139. ],
  1140. "produces": [
  1141. "application/json"
  1142. ],
  1143. "tags": [
  1144. "sale"
  1145. ],
  1146. "summary": "create resale",
  1147. "parameters": [
  1148. {
  1149. "description": "body struct",
  1150. "name": "RegisterResaleData",
  1151. "in": "body",
  1152. "required": true,
  1153. "schema": {
  1154. "$ref": "#/definitions/sale.RegisterResaleData"
  1155. }
  1156. }
  1157. ],
  1158. "responses": {
  1159. "200": {
  1160. "description": "OK",
  1161. "schema": {
  1162. "type": "string"
  1163. }
  1164. }
  1165. }
  1166. }
  1167. },
  1168. "/sale/status": {
  1169. "patch": {
  1170. "security": [
  1171. {
  1172. "ApiKeyAuth": []
  1173. }
  1174. ],
  1175. "description": "등록한 오너인 경우에만 실행가능, 판매하지 않고 판매를 강제 종료시킨다.",
  1176. "consumes": [
  1177. "application/json"
  1178. ],
  1179. "produces": [
  1180. "application/json"
  1181. ],
  1182. "tags": [
  1183. "sale"
  1184. ],
  1185. "summary": "update sale statue for cancel",
  1186. "parameters": [
  1187. {
  1188. "description": "selected target id",
  1189. "name": "TargetID",
  1190. "in": "body",
  1191. "required": true,
  1192. "schema": {
  1193. "$ref": "#/definitions/sale.TargetID"
  1194. }
  1195. }
  1196. ],
  1197. "responses": {
  1198. "200": {
  1199. "description": "OK",
  1200. "schema": {
  1201. "type": "string"
  1202. }
  1203. }
  1204. }
  1205. }
  1206. },
  1207. "/sale/{sale_id}": {
  1208. "get": {
  1209. "description": "NFT 판매 상세페이지 데이터 가져오기",
  1210. "consumes": [
  1211. "application/json"
  1212. ],
  1213. "produces": [
  1214. "application/json"
  1215. ],
  1216. "tags": [
  1217. "sale"
  1218. ],
  1219. "summary": "get detail sale data",
  1220. "parameters": [
  1221. {
  1222. "type": "string",
  1223. "description": "sale id",
  1224. "name": "sale_id",
  1225. "in": "path",
  1226. "required": true
  1227. }
  1228. ],
  1229. "responses": {
  1230. "200": {
  1231. "description": "OK",
  1232. "schema": {
  1233. "type": "obejct"
  1234. }
  1235. }
  1236. }
  1237. }
  1238. },
  1239. "/token": {
  1240. "post": {
  1241. "security": [
  1242. {
  1243. "ApiKeyAuth": []
  1244. }
  1245. ],
  1246. "description": "NFT 생성과 동시에 판매 등록",
  1247. "consumes": [
  1248. "multipart/form-data"
  1249. ],
  1250. "produces": [
  1251. "application/json"
  1252. ],
  1253. "tags": [
  1254. "token"
  1255. ],
  1256. "summary": "create NFT",
  1257. "parameters": [
  1258. {
  1259. "type": "file",
  1260. "description": "content image",
  1261. "name": "contentImage",
  1262. "in": "formData",
  1263. "required": true
  1264. },
  1265. {
  1266. "type": "string",
  1267. "name": "json",
  1268. "in": "formData"
  1269. }
  1270. ],
  1271. "responses": {
  1272. "200": {
  1273. "description": "OK",
  1274. "schema": {
  1275. "type": "string"
  1276. }
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "/token/baseinfo": {
  1282. "get": {
  1283. "security": [
  1284. {
  1285. "ApiKeyAuth": []
  1286. }
  1287. ],
  1288. "description": "아이템 생성 시 내가 만든 컬렉션 리스트와, 사이트 커미션 수수료 정보 가져오기",
  1289. "consumes": [
  1290. "application/json"
  1291. ],
  1292. "produces": [
  1293. "application/json"
  1294. ],
  1295. "tags": [
  1296. "token"
  1297. ],
  1298. "summary": "get token base info",
  1299. "parameters": [
  1300. {
  1301. "type": "string",
  1302. "description": "erc721, erc1155",
  1303. "name": "type",
  1304. "in": "query",
  1305. "required": true
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "description": "OK",
  1311. "schema": {
  1312. "$ref": "#/definitions/token.TokenBaseInfo"
  1313. }
  1314. }
  1315. }
  1316. }
  1317. },
  1318. "/token/like": {
  1319. "patch": {
  1320. "security": [
  1321. {
  1322. "ApiKeyAuth": []
  1323. }
  1324. ],
  1325. "description": "토큰 좋아요 기능",
  1326. "consumes": [
  1327. "application/json"
  1328. ],
  1329. "produces": [
  1330. "application/json"
  1331. ],
  1332. "tags": [
  1333. "token"
  1334. ],
  1335. "summary": "update token like count",
  1336. "parameters": [
  1337. {
  1338. "description": "selected target id",
  1339. "name": "Like",
  1340. "in": "body",
  1341. "required": true,
  1342. "schema": {
  1343. "$ref": "#/definitions/token.Like"
  1344. }
  1345. }
  1346. ],
  1347. "responses": {
  1348. "200": {
  1349. "description": "OK",
  1350. "schema": {
  1351. "type": "string"
  1352. }
  1353. }
  1354. }
  1355. }
  1356. },
  1357. "/token/log/{token_id}": {
  1358. "get": {
  1359. "description": "NFT 판매 페이지 기록 탭",
  1360. "consumes": [
  1361. "application/json"
  1362. ],
  1363. "produces": [
  1364. "application/json"
  1365. ],
  1366. "tags": [
  1367. "token"
  1368. ],
  1369. "summary": "get token log",
  1370. "parameters": [
  1371. {
  1372. "type": "string",
  1373. "description": "token id",
  1374. "name": "token_id",
  1375. "in": "path",
  1376. "required": true
  1377. }
  1378. ],
  1379. "responses": {
  1380. "200": {
  1381. "description": "OK",
  1382. "schema": {
  1383. "$ref": "#/definitions/common.ActivityItem"
  1384. }
  1385. }
  1386. }
  1387. }
  1388. },
  1389. "/token/owner": {
  1390. "get": {
  1391. "description": "NFT 1155타입의 소유자 탭",
  1392. "consumes": [
  1393. "application/json"
  1394. ],
  1395. "produces": [
  1396. "application/json"
  1397. ],
  1398. "tags": [
  1399. "token"
  1400. ],
  1401. "summary": "get owner list",
  1402. "parameters": [
  1403. {
  1404. "type": "string",
  1405. "description": "type",
  1406. "name": "token_uid",
  1407. "in": "query",
  1408. "required": true
  1409. }
  1410. ],
  1411. "responses": {
  1412. "200": {
  1413. "description": "OK",
  1414. "schema": {
  1415. "$ref": "#/definitions/view.TokenOwnerList"
  1416. }
  1417. }
  1418. }
  1419. }
  1420. },
  1421. "/token/resaleinfo/{token_id}": {
  1422. "get": {
  1423. "security": [
  1424. {
  1425. "ApiKeyAuth": []
  1426. }
  1427. ],
  1428. "description": "토큰 재판매 시 설정해야하는 기본 데이터",
  1429. "consumes": [
  1430. "application/json"
  1431. ],
  1432. "produces": [
  1433. "application/json"
  1434. ],
  1435. "tags": [
  1436. "token"
  1437. ],
  1438. "summary": "get resale data",
  1439. "parameters": [
  1440. {
  1441. "type": "string",
  1442. "description": "token id",
  1443. "name": "token_id",
  1444. "in": "path",
  1445. "required": true
  1446. }
  1447. ],
  1448. "responses": {
  1449. "200": {
  1450. "description": "OK",
  1451. "schema": {
  1452. "$ref": "#/definitions/view.TokenResaleData"
  1453. }
  1454. }
  1455. }
  1456. }
  1457. },
  1458. "/token/{token_id}": {
  1459. "get": {
  1460. "description": "토큰 상세페이지",
  1461. "consumes": [
  1462. "application/json"
  1463. ],
  1464. "produces": [
  1465. "application/json"
  1466. ],
  1467. "tags": [
  1468. "token"
  1469. ],
  1470. "summary": "get token detail",
  1471. "parameters": [
  1472. {
  1473. "type": "string",
  1474. "description": "token id",
  1475. "name": "token_id",
  1476. "in": "path",
  1477. "required": true
  1478. }
  1479. ],
  1480. "responses": {
  1481. "200": {
  1482. "description": "OK",
  1483. "schema": {
  1484. "$ref": "#/definitions/view.TokenDetailData"
  1485. }
  1486. }
  1487. }
  1488. }
  1489. },
  1490. "/user/activity/{name}": {
  1491. "get": {
  1492. "description": "유저 프로필 활동 탭",
  1493. "consumes": [
  1494. "application/json"
  1495. ],
  1496. "produces": [
  1497. "application/json"
  1498. ],
  1499. "tags": [
  1500. "user"
  1501. ],
  1502. "summary": "user activity list",
  1503. "parameters": [
  1504. {
  1505. "type": "string",
  1506. "description": "user profile name",
  1507. "name": "name",
  1508. "in": "path",
  1509. "required": true
  1510. }
  1511. ],
  1512. "responses": {
  1513. "200": {
  1514. "description": "OK",
  1515. "schema": {
  1516. "type": "array",
  1517. "items": {
  1518. "$ref": "#/definitions/common.ActivityItem"
  1519. }
  1520. }
  1521. }
  1522. }
  1523. }
  1524. },
  1525. "/user/authenticate": {
  1526. "post": {
  1527. "description": "redirect url 호출이후 받은 코드로 기존유저라면 로그인, 새로운 유저라면 가입 후 로그인",
  1528. "consumes": [
  1529. "application/json"
  1530. ],
  1531. "produces": [
  1532. "application/json"
  1533. ],
  1534. "tags": [
  1535. "user"
  1536. ],
  1537. "summary": "sign-in",
  1538. "parameters": [
  1539. {
  1540. "description": "oauth data",
  1541. "name": "AuthenticationSNS",
  1542. "in": "body",
  1543. "required": true,
  1544. "schema": {
  1545. "$ref": "#/definitions/user.AuthenticationSNS"
  1546. }
  1547. }
  1548. ],
  1549. "responses": {
  1550. "200": {
  1551. "description": "OK",
  1552. "schema": {
  1553. "type": "string"
  1554. }
  1555. }
  1556. }
  1557. }
  1558. },
  1559. "/user/authenticate/temp": {
  1560. "get": {
  1561. "description": "SNS로그인 테스트 이전에 동일한 로직으로 유저 회원가입, 세션 획득을 위한 임시 함수, 입력된 이메일이 없으면 회원가입 이후 로그인, 있으면 로그인",
  1562. "consumes": [
  1563. "application/json"
  1564. ],
  1565. "produces": [
  1566. "application/json"
  1567. ],
  1568. "tags": [
  1569. "user"
  1570. ],
  1571. "summary": "temp user authentication",
  1572. "parameters": [
  1573. {
  1574. "type": "string",
  1575. "description": "email",
  1576. "name": "email",
  1577. "in": "query",
  1578. "required": true
  1579. }
  1580. ],
  1581. "responses": {
  1582. "200": {
  1583. "description": "OK",
  1584. "schema": {
  1585. "type": "string"
  1586. }
  1587. }
  1588. }
  1589. }
  1590. },
  1591. "/user/bid": {
  1592. "post": {
  1593. "security": [
  1594. {
  1595. "ApiKeyAuth": []
  1596. }
  1597. ],
  1598. "description": "유저 경매 히스토리",
  1599. "consumes": [
  1600. "application/json"
  1601. ],
  1602. "produces": [
  1603. "application/json"
  1604. ],
  1605. "tags": [
  1606. "user"
  1607. ],
  1608. "summary": "user bid list",
  1609. "responses": {
  1610. "200": {
  1611. "description": "OK",
  1612. "schema": {
  1613. "type": "array",
  1614. "items": {
  1615. "$ref": "#/definitions/common.ExpItem"
  1616. }
  1617. }
  1618. }
  1619. }
  1620. }
  1621. },
  1622. "/user/certification/code": {
  1623. "post": {
  1624. "description": "출금하기 2차 인증",
  1625. "consumes": [
  1626. "application/json"
  1627. ],
  1628. "produces": [
  1629. "application/json"
  1630. ],
  1631. "tags": [
  1632. "user"
  1633. ],
  1634. "summary": "send certification code",
  1635. "parameters": [
  1636. {
  1637. "description": "currency: mf, mr, eth",
  1638. "name": "CertificationBody",
  1639. "in": "body",
  1640. "required": true,
  1641. "schema": {
  1642. "$ref": "#/definitions/user.CertificationBody"
  1643. }
  1644. }
  1645. ],
  1646. "responses": {
  1647. "200": {
  1648. "description": "OK",
  1649. "schema": {
  1650. "type": "string"
  1651. }
  1652. }
  1653. }
  1654. }
  1655. },
  1656. "/user/collection/{name}": {
  1657. "post": {
  1658. "security": [
  1659. {
  1660. "ApiKeyAuth": []
  1661. }
  1662. ],
  1663. "description": "유저 프로필 컬렉션 탭",
  1664. "consumes": [
  1665. "application/json"
  1666. ],
  1667. "produces": [
  1668. "application/json"
  1669. ],
  1670. "tags": [
  1671. "user"
  1672. ],
  1673. "summary": "collection list",
  1674. "parameters": [
  1675. {
  1676. "description": "filter object",
  1677. "name": "common.Filter",
  1678. "in": "body",
  1679. "required": true,
  1680. "schema": {
  1681. "$ref": "#/definitions/common.Filter"
  1682. }
  1683. },
  1684. {
  1685. "type": "string",
  1686. "description": "user profile name",
  1687. "name": "name",
  1688. "in": "path",
  1689. "required": true
  1690. }
  1691. ],
  1692. "responses": {
  1693. "200": {
  1694. "description": "OK",
  1695. "schema": {
  1696. "type": "array",
  1697. "items": {
  1698. "$ref": "#/definitions/common.CollectionItem"
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. },
  1705. "/user/duplicate/{name}": {
  1706. "get": {
  1707. "description": "유저 이름 중복체크",
  1708. "consumes": [
  1709. "application/json"
  1710. ],
  1711. "produces": [
  1712. "application/json"
  1713. ],
  1714. "tags": [
  1715. "user"
  1716. ],
  1717. "summary": "User profile name duplicate check.",
  1718. "parameters": [
  1719. {
  1720. "type": "string",
  1721. "description": "check duplicate name",
  1722. "name": "name",
  1723. "in": "path",
  1724. "required": true
  1725. }
  1726. ],
  1727. "responses": {
  1728. "200": {
  1729. "description": "OK",
  1730. "schema": {
  1731. "type": "string"
  1732. }
  1733. }
  1734. }
  1735. }
  1736. },
  1737. "/user/like/{name}": {
  1738. "post": {
  1739. "description": "유저 프로필 좋아요 탭",
  1740. "consumes": [
  1741. "application/json"
  1742. ],
  1743. "produces": [
  1744. "application/json"
  1745. ],
  1746. "tags": [
  1747. "user"
  1748. ],
  1749. "summary": "user like list",
  1750. "parameters": [
  1751. {
  1752. "description": "filter object",
  1753. "name": "common.Filter",
  1754. "in": "body",
  1755. "required": true,
  1756. "schema": {
  1757. "$ref": "#/definitions/common.Filter"
  1758. }
  1759. },
  1760. {
  1761. "type": "string",
  1762. "description": "user profile name",
  1763. "name": "name",
  1764. "in": "path",
  1765. "required": true
  1766. }
  1767. ],
  1768. "responses": {
  1769. "200": {
  1770. "description": "OK",
  1771. "schema": {
  1772. "type": "array",
  1773. "items": {
  1774. "$ref": "#/definitions/common.ExpItem"
  1775. }
  1776. }
  1777. }
  1778. }
  1779. }
  1780. },
  1781. "/user/onsale/{name}": {
  1782. "post": {
  1783. "security": [
  1784. {
  1785. "ApiKeyAuth": []
  1786. }
  1787. ],
  1788. "description": "판매중인 NFT 리스트",
  1789. "consumes": [
  1790. "application/json"
  1791. ],
  1792. "produces": [
  1793. "application/json"
  1794. ],
  1795. "tags": [
  1796. "user"
  1797. ],
  1798. "summary": "onesale list",
  1799. "parameters": [
  1800. {
  1801. "description": "filter object",
  1802. "name": "common.Filter",
  1803. "in": "body",
  1804. "required": true,
  1805. "schema": {
  1806. "$ref": "#/definitions/common.Filter"
  1807. }
  1808. },
  1809. {
  1810. "type": "string",
  1811. "description": "user profile name",
  1812. "name": "name",
  1813. "in": "path",
  1814. "required": true
  1815. }
  1816. ],
  1817. "responses": {
  1818. "200": {
  1819. "description": "OK",
  1820. "schema": {
  1821. "type": "array",
  1822. "items": {
  1823. "$ref": "#/definitions/common.ExpItem"
  1824. }
  1825. }
  1826. }
  1827. }
  1828. }
  1829. },
  1830. "/user/owned": {
  1831. "post": {
  1832. "security": [
  1833. {
  1834. "ApiKeyAuth": []
  1835. }
  1836. ],
  1837. "description": "보유중인 NFT 리스트",
  1838. "consumes": [
  1839. "application/json"
  1840. ],
  1841. "produces": [
  1842. "application/json"
  1843. ],
  1844. "tags": [
  1845. "user"
  1846. ],
  1847. "summary": "owned list",
  1848. "parameters": [
  1849. {
  1850. "description": "filter object",
  1851. "name": "common.Filter",
  1852. "in": "body",
  1853. "required": true,
  1854. "schema": {
  1855. "$ref": "#/definitions/common.Filter"
  1856. }
  1857. }
  1858. ],
  1859. "responses": {
  1860. "200": {
  1861. "description": "OK",
  1862. "schema": {
  1863. "type": "array",
  1864. "items": {
  1865. "$ref": "#/definitions/common.ExpItem"
  1866. }
  1867. }
  1868. }
  1869. }
  1870. }
  1871. },
  1872. "/user/profile": {
  1873. "get": {
  1874. "security": [
  1875. {
  1876. "ApiKeyAuth": []
  1877. }
  1878. ],
  1879. "description": "헤더, 프로필 편집에 사용할 데이터",
  1880. "consumes": [
  1881. "application/json"
  1882. ],
  1883. "produces": [
  1884. "application/json"
  1885. ],
  1886. "tags": [
  1887. "user"
  1888. ],
  1889. "summary": "user simple profile data",
  1890. "responses": {
  1891. "200": {
  1892. "description": "OK",
  1893. "schema": {
  1894. "$ref": "#/definitions/view.SimpleProfile"
  1895. }
  1896. }
  1897. }
  1898. },
  1899. "patch": {
  1900. "security": [
  1901. {
  1902. "ApiKeyAuth": []
  1903. }
  1904. ],
  1905. "description": "유저 정보 업데이트",
  1906. "consumes": [
  1907. "multipart/form-data"
  1908. ],
  1909. "produces": [
  1910. "application/json"
  1911. ],
  1912. "tags": [
  1913. "user"
  1914. ],
  1915. "summary": "update user profile",
  1916. "parameters": [
  1917. {
  1918. "type": "file",
  1919. "description": "thumbnail image",
  1920. "name": "thumbnailImage",
  1921. "in": "formData",
  1922. "required": true
  1923. },
  1924. {
  1925. "type": "file",
  1926. "description": "cover image",
  1927. "name": "coverImage",
  1928. "in": "formData",
  1929. "required": true
  1930. },
  1931. {
  1932. "type": "string",
  1933. "name": "json",
  1934. "in": "formData"
  1935. }
  1936. ],
  1937. "responses": {
  1938. "200": {
  1939. "description": "OK",
  1940. "schema": {
  1941. "type": "string"
  1942. }
  1943. }
  1944. }
  1945. }
  1946. },
  1947. "/user/profile/{name}": {
  1948. "get": {
  1949. "description": "유저 기본 정보 가져오기",
  1950. "consumes": [
  1951. "application/json"
  1952. ],
  1953. "produces": [
  1954. "application/json"
  1955. ],
  1956. "tags": [
  1957. "user"
  1958. ],
  1959. "summary": "user basic profile data",
  1960. "parameters": [
  1961. {
  1962. "type": "string",
  1963. "description": "user profile name",
  1964. "name": "name",
  1965. "in": "path",
  1966. "required": true
  1967. }
  1968. ],
  1969. "responses": {
  1970. "200": {
  1971. "description": "OK",
  1972. "schema": {
  1973. "type": "string"
  1974. }
  1975. }
  1976. }
  1977. }
  1978. },
  1979. "/user/redirect/url": {
  1980. "get": {
  1981. "description": "SNS 로그인 버튼 클릭시 redirect_url을 받는 API, {type=google, kakao}",
  1982. "consumes": [
  1983. "application/json"
  1984. ],
  1985. "produces": [
  1986. "application/json"
  1987. ],
  1988. "tags": [
  1989. "user"
  1990. ],
  1991. "summary": "sns redirect url",
  1992. "parameters": [
  1993. {
  1994. "type": "string",
  1995. "description": "type",
  1996. "name": "type",
  1997. "in": "query",
  1998. "required": true
  1999. }
  2000. ],
  2001. "responses": {
  2002. "200": {
  2003. "description": "OK",
  2004. "schema": {
  2005. "type": "string"
  2006. }
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "/user/transfer": {
  2012. "post": {
  2013. "description": "출금하기",
  2014. "consumes": [
  2015. "application/json"
  2016. ],
  2017. "produces": [
  2018. "application/json"
  2019. ],
  2020. "tags": [
  2021. "user"
  2022. ],
  2023. "summary": "token transfer",
  2024. "parameters": [
  2025. {
  2026. "description": "currency: mf1, mr, eth",
  2027. "name": "Transfer",
  2028. "in": "body",
  2029. "required": true,
  2030. "schema": {
  2031. "$ref": "#/definitions/user.Transfer"
  2032. }
  2033. }
  2034. ],
  2035. "responses": {
  2036. "200": {
  2037. "description": "OK",
  2038. "schema": {
  2039. "type": "string"
  2040. }
  2041. }
  2042. }
  2043. }
  2044. }
  2045. },
  2046. "definitions": {
  2047. "admin.AccountInfo": {
  2048. "type": "object",
  2049. "properties": {
  2050. "email": {
  2051. "type": "string"
  2052. },
  2053. "password": {
  2054. "type": "string"
  2055. }
  2056. }
  2057. },
  2058. "admin.AdminAuthContainer": {
  2059. "type": "object",
  2060. "properties": {
  2061. "access_token": {
  2062. "type": "string"
  2063. },
  2064. "permission": {
  2065. "$ref": "#/definitions/models.AdminPermission"
  2066. }
  2067. }
  2068. },
  2069. "admin.RegisterAdministratorData": {
  2070. "type": "object",
  2071. "properties": {
  2072. "chargeof": {
  2073. "type": "string"
  2074. },
  2075. "email": {
  2076. "type": "string"
  2077. },
  2078. "name": {
  2079. "type": "string"
  2080. },
  2081. "password": {
  2082. "type": "string"
  2083. },
  2084. "phone": {
  2085. "type": "string"
  2086. },
  2087. "position": {
  2088. "type": "string"
  2089. },
  2090. "team": {
  2091. "type": "string"
  2092. }
  2093. }
  2094. },
  2095. "admin.RegisterArtistData": {
  2096. "type": "object",
  2097. "properties": {
  2098. "category": {
  2099. "type": "string"
  2100. },
  2101. "email": {
  2102. "type": "string"
  2103. },
  2104. "name": {
  2105. "type": "string"
  2106. },
  2107. "phone": {
  2108. "type": "string"
  2109. },
  2110. "team": {
  2111. "type": "string"
  2112. }
  2113. }
  2114. },
  2115. "admin.SettingData": {
  2116. "type": "object",
  2117. "properties": {
  2118. "commission": {
  2119. "type": "number"
  2120. },
  2121. "gas_deposit": {
  2122. "type": "number"
  2123. },
  2124. "special_collection": {
  2125. "type": "string"
  2126. }
  2127. }
  2128. },
  2129. "admin.UpdateCuration": {
  2130. "type": "object",
  2131. "properties": {
  2132. "id": {
  2133. "type": "integer"
  2134. },
  2135. "index": {
  2136. "type": "integer"
  2137. }
  2138. }
  2139. },
  2140. "admin.UpdatePermission": {
  2141. "type": "object",
  2142. "properties": {
  2143. "admin_id": {
  2144. "type": "integer"
  2145. },
  2146. "admin_permission": {
  2147. "type": "boolean"
  2148. },
  2149. "collection_permission": {
  2150. "type": "boolean"
  2151. },
  2152. "log_permission": {
  2153. "type": "boolean"
  2154. },
  2155. "system_permission": {
  2156. "type": "boolean"
  2157. },
  2158. "user_permission": {
  2159. "type": "boolean"
  2160. }
  2161. }
  2162. },
  2163. "admin.UpdateStatus": {
  2164. "type": "object",
  2165. "properties": {
  2166. "id": {
  2167. "type": "integer"
  2168. },
  2169. "status": {
  2170. "type": "string"
  2171. }
  2172. }
  2173. },
  2174. "common.ActivityItem": {
  2175. "type": "object",
  2176. "properties": {
  2177. "created_at": {
  2178. "type": "string"
  2179. },
  2180. "currency": {
  2181. "type": "string"
  2182. },
  2183. "from_address": {
  2184. "type": "string"
  2185. },
  2186. "from_user_is_artist": {
  2187. "type": "boolean"
  2188. },
  2189. "from_user_name": {
  2190. "type": "string"
  2191. },
  2192. "from_user_profile": {
  2193. "type": "string"
  2194. },
  2195. "is_cancel": {
  2196. "type": "boolean"
  2197. },
  2198. "log_relation_id": {
  2199. "type": "integer"
  2200. },
  2201. "log_type": {
  2202. "type": "string"
  2203. },
  2204. "price": {
  2205. "type": "string"
  2206. },
  2207. "sale_id": {
  2208. "type": "integer"
  2209. },
  2210. "sale_uid": {
  2211. "type": "string"
  2212. },
  2213. "to_address": {
  2214. "type": "string"
  2215. },
  2216. "to_user_is_artist": {
  2217. "type": "boolean"
  2218. },
  2219. "to_user_name": {
  2220. "type": "string"
  2221. },
  2222. "to_user_profile": {
  2223. "type": "string"
  2224. },
  2225. "token_content_url": {
  2226. "type": "string"
  2227. },
  2228. "token_id": {
  2229. "type": "integer"
  2230. },
  2231. "token_name": {
  2232. "type": "string"
  2233. },
  2234. "tx": {
  2235. "type": "string"
  2236. }
  2237. }
  2238. },
  2239. "common.CollectionItem": {
  2240. "type": "object",
  2241. "properties": {
  2242. "collection_id": {
  2243. "type": "integer"
  2244. },
  2245. "collection_name": {
  2246. "type": "string"
  2247. },
  2248. "cover_image": {
  2249. "type": "string"
  2250. },
  2251. "is_official": {
  2252. "type": "boolean"
  2253. },
  2254. "owner_name": {
  2255. "type": "string"
  2256. },
  2257. "thumbnail_image": {
  2258. "type": "string"
  2259. },
  2260. "total_item": {
  2261. "type": "integer"
  2262. },
  2263. "total_volume": {
  2264. "type": "number"
  2265. },
  2266. "user_id": {
  2267. "type": "integer"
  2268. }
  2269. }
  2270. },
  2271. "common.ExpItem": {
  2272. "type": "object",
  2273. "properties": {
  2274. "bid_count": {
  2275. "type": "integer"
  2276. },
  2277. "collection_id": {
  2278. "type": "integer"
  2279. },
  2280. "collection_name": {
  2281. "type": "string"
  2282. },
  2283. "collection_thumbnail_image": {
  2284. "type": "string"
  2285. },
  2286. "content_title": {
  2287. "type": "string"
  2288. },
  2289. "content_url": {
  2290. "type": "string"
  2291. },
  2292. "created_at": {
  2293. "type": "string"
  2294. },
  2295. "current_currency": {
  2296. "type": "string"
  2297. },
  2298. "current_price": {
  2299. "type": "string"
  2300. },
  2301. "end_at": {
  2302. "type": "string"
  2303. },
  2304. "fixed_price": {
  2305. "type": "string"
  2306. },
  2307. "is_artist": {
  2308. "type": "boolean"
  2309. },
  2310. "is_like": {
  2311. "type": "boolean"
  2312. },
  2313. "is_official_collection": {
  2314. "type": "boolean"
  2315. },
  2316. "item_index": {
  2317. "type": "integer"
  2318. },
  2319. "lastest_currency": {
  2320. "type": "string"
  2321. },
  2322. "lastest_price": {
  2323. "type": "string"
  2324. },
  2325. "likes": {
  2326. "type": "integer"
  2327. },
  2328. "owner_name": {
  2329. "type": "string"
  2330. },
  2331. "owner_thumbnail_image": {
  2332. "type": "string"
  2333. },
  2334. "sale_id": {
  2335. "type": "integer"
  2336. },
  2337. "sale_status": {
  2338. "type": "string"
  2339. },
  2340. "sale_type": {
  2341. "type": "string"
  2342. },
  2343. "start_price": {
  2344. "type": "string"
  2345. },
  2346. "token_id": {
  2347. "type": "integer"
  2348. },
  2349. "total_count": {
  2350. "type": "integer"
  2351. },
  2352. "user_id": {
  2353. "type": "integer"
  2354. }
  2355. }
  2356. },
  2357. "common.Filter": {
  2358. "type": "object",
  2359. "properties": {
  2360. "category": {
  2361. "type": "string"
  2362. },
  2363. "collection_name": {
  2364. "type": "string"
  2365. },
  2366. "currency": {
  2367. "type": "string"
  2368. },
  2369. "currency_amount_end": {
  2370. "type": "string"
  2371. },
  2372. "currency_amount_start": {
  2373. "type": "string"
  2374. },
  2375. "limit": {
  2376. "type": "integer",
  2377. "default": -1
  2378. },
  2379. "network": {
  2380. "type": "string"
  2381. },
  2382. "offset": {
  2383. "type": "integer",
  2384. "default": -1
  2385. },
  2386. "sale_status": {
  2387. "description": "for 개인페이지의 판매중",
  2388. "type": "string"
  2389. },
  2390. "sale_type": {
  2391. "type": "string"
  2392. },
  2393. "token_name": {
  2394. "type": "string"
  2395. }
  2396. }
  2397. },
  2398. "models.AdminLog": {
  2399. "type": "object",
  2400. "properties": {
  2401. "action_type": {
  2402. "description": "[ 2] action_type char(10) null: false primary: false isArray: false auto: false col: char len: 10 default: []",
  2403. "type": "string"
  2404. },
  2405. "actioned_at": {
  2406. "description": "[ 4] actioned_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2407. "type": "string"
  2408. },
  2409. "admin_id": {
  2410. "description": "[ 1] admin_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2411. "type": "integer"
  2412. },
  2413. "created_at": {
  2414. "description": "[ 5] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2415. "type": "string"
  2416. },
  2417. "deleted_at": {
  2418. "description": "[ 7] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2419. "type": "string"
  2420. },
  2421. "id": {
  2422. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2423. "type": "integer"
  2424. },
  2425. "message": {
  2426. "description": "[ 8] message varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2427. "type": "string"
  2428. },
  2429. "sub_action_type": {
  2430. "description": "[ 3] sub_action_type char(8) null: false primary: false isArray: false auto: false col: char len: 8 default: []",
  2431. "type": "string"
  2432. },
  2433. "updated_at": {
  2434. "description": "[ 6] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2435. "type": "string"
  2436. }
  2437. }
  2438. },
  2439. "models.AdminPermission": {
  2440. "type": "object",
  2441. "properties": {
  2442. "admin": {
  2443. "description": "[ 5] admin tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2444. "type": "integer"
  2445. },
  2446. "admin_id": {
  2447. "description": "[ 1] admin_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2448. "type": "integer"
  2449. },
  2450. "collection": {
  2451. "description": "[ 3] collection tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2452. "type": "integer"
  2453. },
  2454. "created_at": {
  2455. "description": "[ 7] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2456. "type": "string"
  2457. },
  2458. "deleted_at": {
  2459. "description": "[ 9] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2460. "type": "string"
  2461. },
  2462. "id": {
  2463. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2464. "type": "integer"
  2465. },
  2466. "log": {
  2467. "description": "[ 6] log tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2468. "type": "integer"
  2469. },
  2470. "system": {
  2471. "description": "[ 4] system tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2472. "type": "integer"
  2473. },
  2474. "updated_at": {
  2475. "description": "[ 8] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2476. "type": "string"
  2477. },
  2478. "user": {
  2479. "description": "[ 2] user tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2480. "type": "integer"
  2481. }
  2482. }
  2483. },
  2484. "models.Setting": {
  2485. "type": "object",
  2486. "properties": {
  2487. "commission": {
  2488. "description": "[ 1] commission double null: false primary: false isArray: false auto: false col: double len: -1 default: []",
  2489. "type": "number"
  2490. },
  2491. "created_at": {
  2492. "description": "[ 5] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2493. "type": "string"
  2494. },
  2495. "deleted_at": {
  2496. "description": "[ 7] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2497. "type": "string"
  2498. },
  2499. "gas_deposit": {
  2500. "description": "[ 3] gas_deposit double null: false primary: false isArray: false auto: false col: double len: -1 default: []",
  2501. "type": "number"
  2502. },
  2503. "id": {
  2504. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2505. "type": "integer"
  2506. },
  2507. "special_collection": {
  2508. "description": "[ 2] special_collection varchar(128) null: false primary: false isArray: false auto: false col: varchar len: 128 default: []",
  2509. "type": "string"
  2510. },
  2511. "treasury_address": {
  2512. "description": "[ 4] treasury_address varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2513. "type": "string"
  2514. },
  2515. "updated_at": {
  2516. "description": "[ 6] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2517. "type": "string"
  2518. }
  2519. }
  2520. },
  2521. "models.Traits": {
  2522. "type": "object",
  2523. "properties": {
  2524. "created_at": {
  2525. "description": "[ 4] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2526. "type": "string"
  2527. },
  2528. "deleted_at": {
  2529. "description": "[ 6] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2530. "type": "string"
  2531. },
  2532. "id": {
  2533. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2534. "type": "integer"
  2535. },
  2536. "key": {
  2537. "description": "[ 2] key varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2538. "type": "string"
  2539. },
  2540. "token_id": {
  2541. "description": "[ 1] token_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2542. "type": "integer"
  2543. },
  2544. "updated_at": {
  2545. "description": "[ 5] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2546. "type": "string"
  2547. },
  2548. "value": {
  2549. "description": "[ 3] value varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2550. "type": "string"
  2551. }
  2552. }
  2553. },
  2554. "sale.BidData": {
  2555. "type": "object",
  2556. "properties": {
  2557. "bid_price": {
  2558. "type": "number"
  2559. },
  2560. "currency": {
  2561. "type": "string"
  2562. },
  2563. "sale_id": {
  2564. "type": "integer"
  2565. }
  2566. }
  2567. },
  2568. "sale.RegisterResaleData": {
  2569. "type": "object",
  2570. "required": [
  2571. "currency",
  2572. "sale_type",
  2573. "token_id"
  2574. ],
  2575. "properties": {
  2576. "currency": {
  2577. "type": "string"
  2578. },
  2579. "end_at": {
  2580. "type": "string"
  2581. },
  2582. "price": {
  2583. "type": "number"
  2584. },
  2585. "sale_type": {
  2586. "type": "string"
  2587. },
  2588. "start_at": {
  2589. "type": "string"
  2590. },
  2591. "start_price": {
  2592. "type": "number"
  2593. },
  2594. "token_id": {
  2595. "type": "integer"
  2596. }
  2597. }
  2598. },
  2599. "sale.TargetID": {
  2600. "type": "object",
  2601. "properties": {
  2602. "id": {
  2603. "type": "integer"
  2604. }
  2605. }
  2606. },
  2607. "token.CollectionData": {
  2608. "type": "object",
  2609. "properties": {
  2610. "collection_id": {
  2611. "type": "integer"
  2612. },
  2613. "is_official": {
  2614. "type": "boolean"
  2615. },
  2616. "name": {
  2617. "type": "string"
  2618. },
  2619. "thumbnail_image": {
  2620. "type": "string"
  2621. }
  2622. }
  2623. },
  2624. "token.Like": {
  2625. "type": "object",
  2626. "required": [
  2627. "token_id"
  2628. ],
  2629. "properties": {
  2630. "is_like": {
  2631. "type": "boolean"
  2632. },
  2633. "token_id": {
  2634. "type": "integer"
  2635. }
  2636. }
  2637. },
  2638. "token.TokenBaseInfo": {
  2639. "type": "object",
  2640. "properties": {
  2641. "collection": {
  2642. "type": "array",
  2643. "items": {
  2644. "$ref": "#/definitions/token.CollectionData"
  2645. }
  2646. },
  2647. "commission": {
  2648. "type": "number"
  2649. }
  2650. }
  2651. },
  2652. "user.AuthenticationSNS": {
  2653. "type": "object",
  2654. "required": [
  2655. "code",
  2656. "type"
  2657. ],
  2658. "properties": {
  2659. "code": {
  2660. "type": "string"
  2661. },
  2662. "type": {
  2663. "type": "string"
  2664. }
  2665. }
  2666. },
  2667. "user.CertificationBody": {
  2668. "type": "object",
  2669. "required": [
  2670. "amount",
  2671. "currency"
  2672. ],
  2673. "properties": {
  2674. "amount": {
  2675. "type": "number"
  2676. },
  2677. "currency": {
  2678. "type": "string"
  2679. }
  2680. }
  2681. },
  2682. "user.Transfer": {
  2683. "type": "object",
  2684. "required": [
  2685. "amount",
  2686. "code",
  2687. "currency",
  2688. "to_address"
  2689. ],
  2690. "properties": {
  2691. "amount": {
  2692. "type": "number"
  2693. },
  2694. "code": {
  2695. "type": "string"
  2696. },
  2697. "currency": {
  2698. "type": "string"
  2699. },
  2700. "to_address": {
  2701. "type": "string"
  2702. }
  2703. }
  2704. },
  2705. "view.AdministratorList": {
  2706. "type": "object",
  2707. "properties": {
  2708. "admin": {
  2709. "type": "integer"
  2710. },
  2711. "chargeof": {
  2712. "type": "string"
  2713. },
  2714. "collection": {
  2715. "type": "integer"
  2716. },
  2717. "created_at": {
  2718. "type": "string"
  2719. },
  2720. "email": {
  2721. "type": "string"
  2722. },
  2723. "id": {
  2724. "type": "integer"
  2725. },
  2726. "log": {
  2727. "type": "integer"
  2728. },
  2729. "name": {
  2730. "type": "string"
  2731. },
  2732. "phone": {
  2733. "type": "string"
  2734. },
  2735. "position": {
  2736. "type": "string"
  2737. },
  2738. "status": {
  2739. "type": "string"
  2740. },
  2741. "system": {
  2742. "type": "integer"
  2743. },
  2744. "team": {
  2745. "type": "string"
  2746. },
  2747. "update_at": {
  2748. "type": "string"
  2749. },
  2750. "user": {
  2751. "type": "integer"
  2752. }
  2753. }
  2754. },
  2755. "view.CollectionInfo": {
  2756. "type": "object",
  2757. "properties": {
  2758. "contract_address": {
  2759. "type": "string"
  2760. },
  2761. "cover_image": {
  2762. "type": "string"
  2763. },
  2764. "curating_number": {
  2765. "type": "integer"
  2766. },
  2767. "description": {
  2768. "type": "string"
  2769. },
  2770. "highest_sale_price": {
  2771. "type": "number"
  2772. },
  2773. "id": {
  2774. "type": "integer"
  2775. },
  2776. "is_official": {
  2777. "type": "boolean"
  2778. },
  2779. "is_owner": {
  2780. "type": "boolean"
  2781. },
  2782. "items": {
  2783. "type": "integer"
  2784. },
  2785. "market_cap": {
  2786. "type": "number"
  2787. },
  2788. "name": {
  2789. "type": "string"
  2790. },
  2791. "recent_trading_day": {
  2792. "type": "string"
  2793. },
  2794. "status": {
  2795. "type": "string"
  2796. },
  2797. "symbol": {
  2798. "type": "string"
  2799. },
  2800. "thumbnail_image": {
  2801. "type": "string"
  2802. },
  2803. "total_like_count": {
  2804. "type": "integer"
  2805. },
  2806. "total_volume": {
  2807. "type": "number"
  2808. },
  2809. "user_name": {
  2810. "type": "string"
  2811. }
  2812. }
  2813. },
  2814. "view.MemberList": {
  2815. "type": "object",
  2816. "properties": {
  2817. "address": {
  2818. "type": "string"
  2819. },
  2820. "check_sum": {
  2821. "type": "string"
  2822. },
  2823. "created_at": {
  2824. "type": "string"
  2825. },
  2826. "email": {
  2827. "type": "string"
  2828. },
  2829. "enc_version": {
  2830. "type": "integer"
  2831. },
  2832. "id": {
  2833. "type": "integer"
  2834. },
  2835. "name": {
  2836. "type": "string"
  2837. },
  2838. "phone": {
  2839. "type": "string"
  2840. },
  2841. "status": {
  2842. "type": "string"
  2843. },
  2844. "team": {
  2845. "type": "string"
  2846. }
  2847. }
  2848. },
  2849. "view.ResaleBaseData": {
  2850. "type": "object",
  2851. "properties": {
  2852. "collection_id": {
  2853. "type": "integer"
  2854. },
  2855. "collection_is_official": {
  2856. "type": "boolean"
  2857. },
  2858. "collection_name": {
  2859. "type": "string"
  2860. },
  2861. "collection_thumbnail_image": {
  2862. "type": "string"
  2863. },
  2864. "commission": {
  2865. "type": "number"
  2866. },
  2867. "content_url": {
  2868. "type": "string"
  2869. },
  2870. "description": {
  2871. "type": "string"
  2872. },
  2873. "name": {
  2874. "type": "string"
  2875. },
  2876. "network": {
  2877. "type": "string"
  2878. },
  2879. "royalties": {
  2880. "type": "integer"
  2881. },
  2882. "token_id": {
  2883. "type": "integer"
  2884. },
  2885. "total_count": {
  2886. "type": "integer"
  2887. },
  2888. "type": {
  2889. "type": "string"
  2890. }
  2891. }
  2892. },
  2893. "view.Settings": {
  2894. "type": "object",
  2895. "properties": {
  2896. "network_commission": {
  2897. "type": "number"
  2898. },
  2899. "service_commission": {
  2900. "type": "number"
  2901. }
  2902. }
  2903. },
  2904. "view.SimpleProfile": {
  2905. "type": "object",
  2906. "properties": {
  2907. "settings": {
  2908. "$ref": "#/definitions/view.Settings"
  2909. },
  2910. "simple_profile": {
  2911. "$ref": "#/definitions/view.UserBaseData"
  2912. }
  2913. }
  2914. },
  2915. "view.TokenBaseData": {
  2916. "type": "object",
  2917. "properties": {
  2918. "artist_is_official": {
  2919. "type": "boolean"
  2920. },
  2921. "artist_name": {
  2922. "type": "string"
  2923. },
  2924. "artist_profile_image": {
  2925. "type": "string"
  2926. },
  2927. "collection_is_official": {
  2928. "type": "boolean"
  2929. },
  2930. "collection_name": {
  2931. "type": "string"
  2932. },
  2933. "collection_thumbnail_image": {
  2934. "type": "string"
  2935. },
  2936. "content_url": {
  2937. "type": "string"
  2938. },
  2939. "description": {
  2940. "type": "string"
  2941. },
  2942. "id": {
  2943. "type": "integer"
  2944. },
  2945. "index": {
  2946. "type": "integer"
  2947. },
  2948. "is_like": {
  2949. "type": "boolean"
  2950. },
  2951. "is_owner": {
  2952. "type": "boolean"
  2953. },
  2954. "like_count": {
  2955. "type": "integer"
  2956. },
  2957. "name": {
  2958. "type": "string"
  2959. },
  2960. "network": {
  2961. "type": "string"
  2962. },
  2963. "owner_is_official": {
  2964. "type": "boolean"
  2965. },
  2966. "royalties": {
  2967. "type": "integer"
  2968. },
  2969. "total_count": {
  2970. "type": "integer"
  2971. },
  2972. "type": {
  2973. "type": "string"
  2974. },
  2975. "uid": {
  2976. "type": "string"
  2977. },
  2978. "user_name": {
  2979. "type": "string"
  2980. },
  2981. "user_profile_image": {
  2982. "type": "string"
  2983. }
  2984. }
  2985. },
  2986. "view.TokenDetailData": {
  2987. "type": "object",
  2988. "properties": {
  2989. "token": {
  2990. "$ref": "#/definitions/view.TokenBaseData"
  2991. },
  2992. "traits": {
  2993. "type": "array",
  2994. "items": {
  2995. "$ref": "#/definitions/models.Traits"
  2996. }
  2997. }
  2998. }
  2999. },
  3000. "view.TokenOwnerList": {
  3001. "type": "object",
  3002. "properties": {
  3003. "index": {
  3004. "type": "integer"
  3005. },
  3006. "is_official": {
  3007. "type": "boolean"
  3008. },
  3009. "name": {
  3010. "type": "string"
  3011. },
  3012. "thumbnail_image": {
  3013. "type": "string"
  3014. },
  3015. "token_id": {
  3016. "type": "integer"
  3017. },
  3018. "total_count": {
  3019. "type": "integer"
  3020. },
  3021. "updated_at": {
  3022. "type": "string"
  3023. }
  3024. }
  3025. },
  3026. "view.TokenResaleData": {
  3027. "type": "object",
  3028. "properties": {
  3029. "token": {
  3030. "$ref": "#/definitions/view.ResaleBaseData"
  3031. },
  3032. "traits": {
  3033. "type": "array",
  3034. "items": {
  3035. "$ref": "#/definitions/models.Traits"
  3036. }
  3037. }
  3038. }
  3039. },
  3040. "view.TokenSet": {
  3041. "type": "object",
  3042. "properties": {
  3043. "collections": {
  3044. "type": "array",
  3045. "items": {
  3046. "$ref": "#/definitions/view.CollectionInfo"
  3047. }
  3048. },
  3049. "curating_list": {
  3050. "type": "array",
  3051. "items": {
  3052. "$ref": "#/definitions/common.ExpItem"
  3053. }
  3054. },
  3055. "explore": {
  3056. "type": "array",
  3057. "items": {
  3058. "$ref": "#/definitions/common.ExpItem"
  3059. }
  3060. },
  3061. "hot_bids": {
  3062. "type": "array",
  3063. "items": {
  3064. "$ref": "#/definitions/common.ExpItem"
  3065. }
  3066. },
  3067. "special_bids": {
  3068. "type": "array",
  3069. "items": {
  3070. "$ref": "#/definitions/common.ExpItem"
  3071. }
  3072. },
  3073. "time_auctions": {
  3074. "type": "array",
  3075. "items": {
  3076. "$ref": "#/definitions/common.ExpItem"
  3077. }
  3078. }
  3079. }
  3080. },
  3081. "view.UserBaseData": {
  3082. "type": "object",
  3083. "properties": {
  3084. "address": {
  3085. "type": "string"
  3086. },
  3087. "available_eth_balance": {
  3088. "type": "number"
  3089. },
  3090. "available_mf_balance": {
  3091. "type": "number"
  3092. },
  3093. "available_mr_balance": {
  3094. "type": "number"
  3095. },
  3096. "cover_image": {
  3097. "type": "string"
  3098. },
  3099. "description": {
  3100. "type": "string"
  3101. },
  3102. "email": {
  3103. "type": "string"
  3104. },
  3105. "eth_balance": {
  3106. "type": "number"
  3107. },
  3108. "is_artist": {
  3109. "type": "boolean"
  3110. },
  3111. "mf_balance": {
  3112. "type": "number"
  3113. },
  3114. "mr_balance": {
  3115. "type": "number"
  3116. },
  3117. "name": {
  3118. "type": "string"
  3119. },
  3120. "thumbnail_image": {
  3121. "type": "string"
  3122. },
  3123. "twitter": {
  3124. "type": "string"
  3125. },
  3126. "user_id": {
  3127. "type": "integer"
  3128. }
  3129. }
  3130. }
  3131. },
  3132. "securityDefinitions": {
  3133. "ApiKeyAuth": {
  3134. "type": "apiKey",
  3135. "name": "Authorization",
  3136. "in": "header"
  3137. }
  3138. }
  3139. }`
  3140. type swaggerInfo struct {
  3141. Version string
  3142. Host string
  3143. BasePath string
  3144. Schemes []string
  3145. Title string
  3146. Description string
  3147. }
  3148. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3149. var SwaggerInfo = swaggerInfo{
  3150. Version: "",
  3151. Host: "",
  3152. BasePath: "",
  3153. Schemes: []string{},
  3154. Title: "",
  3155. Description: "",
  3156. }
  3157. type s struct{}
  3158. func (s *s) ReadDoc() string {
  3159. sInfo := SwaggerInfo
  3160. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3161. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3162. "marshal": func(v interface{}) string {
  3163. a, _ := json.Marshal(v)
  3164. return string(a)
  3165. },
  3166. "escape": func(v interface{}) string {
  3167. // escape tabs
  3168. str := strings.Replace(v.(string), "\t", "\\t", -1)
  3169. // replace " with \", and if that results in \\", replace that with \\\"
  3170. str = strings.Replace(str, "\"", "\\\"", -1)
  3171. return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
  3172. },
  3173. }).Parse(doc)
  3174. if err != nil {
  3175. return doc
  3176. }
  3177. var tpl bytes.Buffer
  3178. if err := t.Execute(&tpl, sInfo); err != nil {
  3179. return doc
  3180. }
  3181. return tpl.String()
  3182. }
  3183. func init() {
  3184. swag.Register("swagger", &s{})
  3185. }