12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084 |
- definitions:
- admin.AccountInfo:
- properties:
- email:
- type: string
- password:
- type: string
- type: object
- admin.AdminAuthContainer:
- properties:
- access_token:
- type: string
- permission:
- $ref: '#/definitions/models.AdminPermission'
- type: object
- admin.RegisterAdministratorData:
- properties:
- chargeof:
- type: string
- email:
- type: string
- name:
- type: string
- password:
- type: string
- phone:
- type: string
- position:
- type: string
- team:
- type: string
- type: object
- admin.RegisterArtistData:
- properties:
- category:
- type: string
- email:
- type: string
- name:
- type: string
- phone:
- type: string
- team:
- type: string
- type: object
- admin.SettingData:
- properties:
- commission:
- type: number
- gas_deposit:
- type: number
- special_collection:
- type: string
- type: object
- admin.UpdateCuration:
- properties:
- id:
- type: integer
- index:
- type: integer
- type: object
- admin.UpdatePermission:
- properties:
- admin_id:
- type: integer
- admin_permission:
- type: boolean
- collection_permission:
- type: boolean
- log_permission:
- type: boolean
- system_permission:
- type: boolean
- user_permission:
- type: boolean
- type: object
- admin.UpdateStatus:
- properties:
- id:
- type: integer
- status:
- type: string
- type: object
- common.ActivityItem:
- properties:
- created_at:
- type: string
- currency:
- type: string
- from_address:
- type: string
- from_user_is_artist:
- type: boolean
- from_user_name:
- type: string
- from_user_profile:
- type: string
- is_cancel:
- type: boolean
- log_relation_id:
- type: integer
- log_type:
- type: string
- price:
- type: string
- sale_id:
- type: integer
- sale_uid:
- type: string
- to_address:
- type: string
- to_user_is_artist:
- type: boolean
- to_user_name:
- type: string
- to_user_profile:
- type: string
- token_content_url:
- type: string
- token_id:
- type: integer
- token_name:
- type: string
- tx:
- type: string
- type: object
- common.CollectionItem:
- properties:
- collection_id:
- type: integer
- collection_name:
- type: string
- cover_image:
- type: string
- is_official:
- type: boolean
- owner_name:
- type: string
- thumbnail_image:
- type: string
- total_item:
- type: integer
- total_volume:
- type: number
- user_id:
- type: integer
- type: object
- common.ExpItem:
- properties:
- bid_count:
- type: integer
- collection_id:
- type: integer
- collection_name:
- type: string
- collection_thumbnail_image:
- type: string
- content_title:
- type: string
- content_url:
- type: string
- created_at:
- type: string
- current_currency:
- type: string
- current_price:
- type: string
- end_at:
- type: string
- fixed_price:
- type: string
- is_artist:
- type: boolean
- is_like:
- type: boolean
- is_official_collection:
- type: boolean
- item_index:
- type: integer
- lastest_currency:
- type: string
- lastest_price:
- type: string
- likes:
- type: integer
- owner_name:
- type: string
- owner_thumbnail_image:
- type: string
- sale_id:
- type: integer
- sale_status:
- type: string
- sale_type:
- type: string
- start_price:
- type: string
- token_id:
- type: integer
- total_count:
- type: integer
- user_id:
- type: integer
- type: object
- common.Filter:
- properties:
- category:
- type: string
- collection_name:
- type: string
- currency:
- type: string
- currency_amount_end:
- type: string
- currency_amount_start:
- type: string
- limit:
- default: -1
- type: integer
- network:
- type: string
- offset:
- default: -1
- type: integer
- sale_status:
- description: for 개인페이지의 판매중
- type: string
- sale_type:
- type: string
- token_name:
- type: string
- type: object
- models.AdminLog:
- properties:
- action_type:
- description: '[ 2] action_type char(10) null:
- false primary: false isArray: false auto: false col: char len:
- 10 default: []'
- type: string
- actioned_at:
- description: '[ 4] actioned_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: []'
- type: string
- admin_id:
- description: '[ 1] admin_id ubigint null:
- false primary: false isArray: false auto: false col: ubigint len:
- -1 default: []'
- type: integer
- created_at:
- description: '[ 5] created_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- deleted_at:
- description: '[ 7] deleted_at timestamp null:
- true primary: false isArray: false auto: false col: timestamp len:
- -1 default: []'
- type: string
- id:
- description: '[ 0] id ubigint null:
- false primary: true isArray: false auto: true col: ubigint len:
- -1 default: []'
- type: integer
- message:
- description: '[ 8] message varchar(256) null:
- false primary: false isArray: false auto: false col: varchar len:
- 256 default: []'
- type: string
- sub_action_type:
- description: '[ 3] sub_action_type char(8) null:
- false primary: false isArray: false auto: false col: char len:
- 8 default: []'
- type: string
- updated_at:
- description: '[ 6] updated_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- type: object
- models.AdminPermission:
- properties:
- admin:
- description: '[ 5] admin tinyint null:
- false primary: false isArray: false auto: false col: tinyint len:
- -1 default: [0]'
- type: integer
- admin_id:
- description: '[ 1] admin_id ubigint null:
- false primary: false isArray: false auto: false col: ubigint len:
- -1 default: []'
- type: integer
- collection:
- description: '[ 3] collection tinyint null:
- false primary: false isArray: false auto: false col: tinyint len:
- -1 default: [0]'
- type: integer
- created_at:
- description: '[ 7] created_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- deleted_at:
- description: '[ 9] deleted_at timestamp null:
- true primary: false isArray: false auto: false col: timestamp len:
- -1 default: []'
- type: string
- id:
- description: '[ 0] id ubigint null:
- false primary: true isArray: false auto: true col: ubigint len:
- -1 default: []'
- type: integer
- log:
- description: '[ 6] log tinyint null:
- false primary: false isArray: false auto: false col: tinyint len:
- -1 default: [0]'
- type: integer
- system:
- description: '[ 4] system tinyint null:
- false primary: false isArray: false auto: false col: tinyint len:
- -1 default: [0]'
- type: integer
- updated_at:
- description: '[ 8] updated_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- user:
- description: '[ 2] user tinyint null:
- false primary: false isArray: false auto: false col: tinyint len:
- -1 default: [0]'
- type: integer
- type: object
- models.Setting:
- properties:
- commission:
- description: '[ 1] commission double null:
- false primary: false isArray: false auto: false col: double len:
- -1 default: []'
- type: number
- created_at:
- description: '[ 5] created_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- deleted_at:
- description: '[ 7] deleted_at timestamp null:
- true primary: false isArray: false auto: false col: timestamp len:
- -1 default: []'
- type: string
- gas_deposit:
- description: '[ 3] gas_deposit double null:
- false primary: false isArray: false auto: false col: double len:
- -1 default: []'
- type: number
- id:
- description: '[ 0] id ubigint null:
- false primary: true isArray: false auto: true col: ubigint len:
- -1 default: []'
- type: integer
- special_collection:
- description: '[ 2] special_collection varchar(128) null:
- false primary: false isArray: false auto: false col: varchar len:
- 128 default: []'
- type: string
- treasury_address:
- description: '[ 4] treasury_address varchar(256) null:
- false primary: false isArray: false auto: false col: varchar len:
- 256 default: []'
- type: string
- updated_at:
- description: '[ 6] updated_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- type: object
- models.Traits:
- properties:
- created_at:
- description: '[ 4] created_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- deleted_at:
- description: '[ 6] deleted_at timestamp null:
- true primary: false isArray: false auto: false col: timestamp len:
- -1 default: []'
- type: string
- id:
- description: '[ 0] id ubigint null:
- false primary: true isArray: false auto: true col: ubigint len:
- -1 default: []'
- type: integer
- key:
- description: '[ 2] key varchar(256) null:
- false primary: false isArray: false auto: false col: varchar len:
- 256 default: []'
- type: string
- token_id:
- description: '[ 1] token_id ubigint null:
- false primary: false isArray: false auto: false col: ubigint len:
- -1 default: []'
- type: integer
- updated_at:
- description: '[ 5] updated_at timestamp null:
- false primary: false isArray: false auto: false col: timestamp len:
- -1 default: [CURRENT_TIMESTAMP]'
- type: string
- value:
- description: '[ 3] value varchar(256) null:
- false primary: false isArray: false auto: false col: varchar len:
- 256 default: []'
- type: string
- type: object
- sale.BidData:
- properties:
- bid_price:
- type: number
- currency:
- type: string
- sale_id:
- type: integer
- type: object
- sale.RegisterResaleData:
- properties:
- currency:
- type: string
- end_at:
- type: string
- price:
- type: number
- sale_type:
- type: string
- start_at:
- type: string
- start_price:
- type: number
- token_id:
- type: integer
- required:
- - currency
- - sale_type
- - token_id
- type: object
- sale.TargetID:
- properties:
- id:
- type: integer
- type: object
- token.CollectionData:
- properties:
- collection_id:
- type: integer
- is_official:
- type: boolean
- name:
- type: string
- thumbnail_image:
- type: string
- type: object
- token.Like:
- properties:
- is_like:
- type: boolean
- token_id:
- type: integer
- required:
- - token_id
- type: object
- token.TokenBaseInfo:
- properties:
- collection:
- items:
- $ref: '#/definitions/token.CollectionData'
- type: array
- commission:
- type: number
- type: object
- user.AuthenticationSNS:
- properties:
- code:
- type: string
- type:
- type: string
- required:
- - code
- - type
- type: object
- user.CertificationBody:
- properties:
- amount:
- type: number
- currency:
- type: string
- required:
- - amount
- - currency
- type: object
- user.Transfer:
- properties:
- amount:
- type: number
- code:
- type: string
- currency:
- type: string
- to_address:
- type: string
- required:
- - amount
- - code
- - currency
- - to_address
- type: object
- view.AdministratorList:
- properties:
- admin:
- type: integer
- chargeof:
- type: string
- collection:
- type: integer
- created_at:
- type: string
- email:
- type: string
- id:
- type: integer
- log:
- type: integer
- name:
- type: string
- phone:
- type: string
- position:
- type: string
- status:
- type: string
- system:
- type: integer
- team:
- type: string
- update_at:
- type: string
- user:
- type: integer
- type: object
- view.CollectionInfo:
- properties:
- contract_address:
- type: string
- cover_image:
- type: string
- curating_number:
- type: integer
- description:
- type: string
- highest_sale_price:
- type: number
- id:
- type: integer
- is_official:
- type: boolean
- is_owner:
- type: boolean
- items:
- type: integer
- market_cap:
- type: number
- name:
- type: string
- recent_trading_day:
- type: string
- status:
- type: string
- symbol:
- type: string
- thumbnail_image:
- type: string
- total_like_count:
- type: integer
- total_volume:
- type: number
- user_name:
- type: string
- type: object
- view.MemberList:
- properties:
- address:
- type: string
- check_sum:
- type: string
- created_at:
- type: string
- email:
- type: string
- enc_version:
- type: integer
- id:
- type: integer
- name:
- type: string
- phone:
- type: string
- status:
- type: string
- team:
- type: string
- type: object
- view.ResaleBaseData:
- properties:
- collection_id:
- type: integer
- collection_is_official:
- type: boolean
- collection_name:
- type: string
- collection_thumbnail_image:
- type: string
- commission:
- type: number
- content_url:
- type: string
- description:
- type: string
- name:
- type: string
- network:
- type: string
- royalties:
- type: integer
- token_id:
- type: integer
- total_count:
- type: integer
- type:
- type: string
- type: object
- view.Settings:
- properties:
- network_commission:
- type: number
- service_commission:
- type: number
- type: object
- view.SimpleProfile:
- properties:
- settings:
- $ref: '#/definitions/view.Settings'
- simple_profile:
- $ref: '#/definitions/view.UserBaseData'
- type: object
- view.TokenBaseData:
- properties:
- artist_is_official:
- type: boolean
- artist_name:
- type: string
- artist_profile_image:
- type: string
- collection_is_official:
- type: boolean
- collection_name:
- type: string
- collection_thumbnail_image:
- type: string
- content_url:
- type: string
- description:
- type: string
- id:
- type: integer
- index:
- type: integer
- is_like:
- type: boolean
- is_owner:
- type: boolean
- like_count:
- type: integer
- name:
- type: string
- network:
- type: string
- owner_is_official:
- type: boolean
- royalties:
- type: integer
- total_count:
- type: integer
- type:
- type: string
- uid:
- type: string
- user_name:
- type: string
- user_profile_image:
- type: string
- type: object
- view.TokenDetailData:
- properties:
- token:
- $ref: '#/definitions/view.TokenBaseData'
- traits:
- items:
- $ref: '#/definitions/models.Traits'
- type: array
- type: object
- view.TokenOwnerList:
- properties:
- index:
- type: integer
- is_official:
- type: boolean
- name:
- type: string
- thumbnail_image:
- type: string
- token_id:
- type: integer
- total_count:
- type: integer
- updated_at:
- type: string
- type: object
- view.TokenResaleData:
- properties:
- token:
- $ref: '#/definitions/view.ResaleBaseData'
- traits:
- items:
- $ref: '#/definitions/models.Traits'
- type: array
- type: object
- view.TokenSet:
- properties:
- collections:
- items:
- $ref: '#/definitions/view.CollectionInfo'
- type: array
- curating_list:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- explore:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- hot_bids:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- special_bids:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- time_auctions:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- type: object
- view.UserBaseData:
- properties:
- address:
- type: string
- available_eth_balance:
- type: number
- available_mf_balance:
- type: number
- available_mr_balance:
- type: number
- cover_image:
- type: string
- description:
- type: string
- email:
- type: string
- eth_balance:
- type: number
- is_artist:
- type: boolean
- mf_balance:
- type: number
- mr_balance:
- type: number
- name:
- type: string
- thumbnail_image:
- type: string
- twitter:
- type: string
- user_id:
- type: integer
- type: object
- info:
- contact: {}
- paths:
- /admin/administrator:
- get:
- consumes:
- - application/json
- description: 관리자 리스트 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.AdministratorList'
- security:
- - ApiKeyAuth: []
- summary: get administrator list
- tags:
- - admin
- post:
- consumes:
- - application/json
- description: 관리자 등록
- parameters:
- - description: body struct
- in: body
- name: RegisterAdministratorData
- required: true
- schema:
- $ref: '#/definitions/admin.RegisterAdministratorData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: number
- security:
- - ApiKeyAuth: []
- summary: create administrator
- tags:
- - admin
- /admin/administrator/permission:
- patch:
- consumes:
- - application/json
- description: 관리자 권한 변경
- parameters:
- - description: selected target data
- in: body
- name: UpdatePermission
- required: true
- schema:
- $ref: '#/definitions/admin.UpdatePermission'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update administrator permmsion
- tags:
- - admin
- /admin/administrator/status:
- patch:
- consumes:
- - application/json
- description: 관리자 상태값 변경
- parameters:
- - description: selected target data
- in: body
- name: UpdateStatus
- required: true
- schema:
- $ref: '#/definitions/admin.UpdateStatus'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update administrator status
- tags:
- - admin
- /admin/artist:
- get:
- consumes:
- - application/json
- description: 작가 리스트 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.MemberList'
- security:
- - ApiKeyAuth: []
- summary: get artist list
- tags:
- - admin
- post:
- consumes:
- - application/json
- description: 작가 등록
- parameters:
- - description: body struct
- in: body
- name: RegisterArtistData
- required: true
- schema:
- $ref: '#/definitions/admin.RegisterArtistData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: number
- security:
- - ApiKeyAuth: []
- summary: create artist
- tags:
- - admin
- /admin/artist/status:
- patch:
- consumes:
- - application/json
- description: 작가 상태값 변경
- parameters:
- - description: selected target data
- in: body
- name: UpdateStatus
- required: true
- schema:
- $ref: '#/definitions/admin.UpdateStatus'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update artist status
- tags:
- - admin
- /admin/auth/signin:
- post:
- consumes:
- - application/json
- description: 어드민 로그인
- parameters:
- - description: body struct
- in: body
- name: AccountInfo
- required: true
- schema:
- $ref: '#/definitions/admin.AccountInfo'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/admin.AdminAuthContainer'
- summary: signin
- tags:
- - admin
- /admin/collection:
- get:
- consumes:
- - application/json
- description: 데이터가 쌓인 이후에 진행 예정, 컬렉션 리스트 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/view.CollectionInfo'
- type: array
- security:
- - ApiKeyAuth: []
- summary: get collection list
- tags:
- - admin
- /admin/collection/curation:
- patch:
- consumes:
- - application/json
- description: 컬렉션 큐레이션 변경
- parameters:
- - description: selected target data
- in: body
- name: UpdateCuration
- required: true
- schema:
- $ref: '#/definitions/admin.UpdateCuration'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update collection curation
- tags:
- - admin
- /admin/collection/status:
- patch:
- consumes:
- - application/json
- description: 컬렉션 상태값 변경 (보이기, 숨김)
- parameters:
- - description: selected target data
- in: body
- name: UpdateStatus
- required: true
- schema:
- $ref: '#/definitions/admin.UpdateStatus'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update collection status
- tags:
- - admin
- /admin/log:
- get:
- consumes:
- - application/json
- description: 어드민 로그 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/models.AdminLog'
- security:
- - ApiKeyAuth: []
- summary: get log list
- tags:
- - admin
- /admin/setting:
- get:
- consumes:
- - application/json
- description: 현재 셋팅 값 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/models.Setting'
- security:
- - ApiKeyAuth: []
- summary: get setting list
- tags:
- - admin
- /admin/setting/{type}:
- patch:
- consumes:
- - application/json
- description: 설정 값 변경
- parameters:
- - description: selected target data
- in: body
- name: SettingData
- required: true
- schema:
- $ref: '#/definitions/admin.SettingData'
- - description: 'type: commission, special_collection, gas_deposit'
- in: path
- name: type
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update setting value
- tags:
- - admin
- /admin/user:
- get:
- consumes:
- - application/json
- description: 유저 리스트 가져오기
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.MemberList'
- security:
- - ApiKeyAuth: []
- summary: get user list
- tags:
- - admin
- /admin/user/status:
- patch:
- consumes:
- - application/json
- description: 유저 상태값 변경
- parameters:
- - description: selected target data
- in: body
- name: UpdateStatus
- required: true
- schema:
- $ref: '#/definitions/admin.UpdateStatus'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update user status
- tags:
- - admin
- /collection:
- patch:
- consumes:
- - multipart/form-data
- description: '컬렉션 수정, json struct = {description: string, collection_id: uin64}'
- parameters:
- - description: thumbnail image
- in: formData
- name: thumbnailImage
- required: true
- type: file
- - description: cover image
- in: formData
- name: coverImage
- required: true
- type: file
- - in: formData
- name: json
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update collection
- tags:
- - collection
- post:
- consumes:
- - multipart/form-data
- description: '컬렉션 등록, json struct = {name: string, symbol: string, description:
- string, type: string}'
- parameters:
- - description: thumbnail image
- in: formData
- name: thumbnailImage
- required: true
- type: file
- - description: cover image
- in: formData
- name: coverImage
- required: true
- type: file
- - in: formData
- name: json
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: create collection
- tags:
- - collection
- /collection/{collection_name}:
- get:
- consumes:
- - application/json
- description: 컬렉션 페이지에 있는 기본 정보 (탭 데이터는 따로 가져와야 한다.)
- parameters:
- - description: collection name
- in: path
- name: collection_name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.CollectionInfo'
- summary: get collection info
- tags:
- - collection
- /collection/activity/{collection_name}:
- post:
- consumes:
- - application/json
- description: 컬렉션 페이지 활동 탭
- parameters:
- - description: collection name
- in: path
- name: collection_name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- summary: get activities in collection
- tags:
- - collection
- /collection/duplicate/{name}:
- get:
- consumes:
- - application/json
- description: 컬렉션 이름 중복체크
- parameters:
- - description: check duplicate name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: collection profile name duplicate check.
- tags:
- - collection
- /collection/item/{collection_name}:
- post:
- consumes:
- - application/json
- description: 컬렉션 페이지 아이템 탭
- parameters:
- - description: collection name
- in: path
- name: collection_name
- required: true
- type: string
- - description: filter data
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- summary: get items in collection
- tags:
- - collection
- /explore/home:
- post:
- consumes:
- - application/json
- description: 탐색하기 home data
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- summary: explore filter data
- tags:
- - explore
- /explore/search:
- post:
- consumes:
- - application/json
- description: 필터링중 컬렉션 이름으로 키워드 검색 할 때 사용하며, filter.collectionName이 빈 값인 경우 tvl
- 기준 limit 10개 리턴
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: obejct
- summary: explore collection filter list
- tags:
- - explore
- /health:
- get:
- consumes:
- - application/json
- description: API to check the status of the server
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: API to check the status of the server
- tags:
- - health check
- /home:
- get:
- consumes:
- - application/json
- description: index 페이지 데이터
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.TokenSet'
- summary: get index data
- tags:
- - home
- /sale/{sale_id}:
- get:
- consumes:
- - application/json
- description: NFT 판매 상세페이지 데이터 가져오기
- parameters:
- - description: sale id
- in: path
- name: sale_id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: obejct
- summary: get detail sale data
- tags:
- - sale
- /sale/auction:
- post:
- consumes:
- - application/json
- description: 최고가 판매
- parameters:
- - description: body struct
- in: body
- name: BidData
- required: true
- schema:
- $ref: '#/definitions/sale.BidData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: highest price sell
- tags:
- - sale
- /sale/bid:
- patch:
- consumes:
- - application/json
- description: 입찰 취소하기, 입찰을 다시하려면 취소 후 다시 해야한다.
- parameters:
- - description: body struct
- in: body
- name: TargetID
- required: true
- schema:
- $ref: '#/definitions/sale.TargetID'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: cancel bid
- tags:
- - sale
- post:
- consumes:
- - application/json
- description: 입찰하기
- parameters:
- - description: body struct
- in: body
- name: BidData
- required: true
- schema:
- $ref: '#/definitions/sale.BidData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: create bid
- tags:
- - sale
- /sale/bid/{sale_id}:
- get:
- consumes:
- - application/json
- description: NFT 판매 상세페이지 경매 기록 탭
- parameters:
- - description: sale id
- in: path
- name: sale_id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: obejct
- security:
- - ApiKeyAuth: []
- summary: get bid history
- tags:
- - sale
- /sale/buy:
- post:
- consumes:
- - application/json
- description: 아이템 즉시 구매
- parameters:
- - description: body struct
- in: body
- name: BidData
- required: true
- schema:
- $ref: '#/definitions/sale.BidData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: buy now item
- tags:
- - sale
- /sale/resale:
- post:
- consumes:
- - application/json
- description: NFT 구입 후 재등록 API
- parameters:
- - description: body struct
- in: body
- name: RegisterResaleData
- required: true
- schema:
- $ref: '#/definitions/sale.RegisterResaleData'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: create resale
- tags:
- - sale
- /sale/status:
- patch:
- consumes:
- - application/json
- description: 등록한 오너인 경우에만 실행가능, 판매하지 않고 판매를 강제 종료시킨다.
- parameters:
- - description: selected target id
- in: body
- name: TargetID
- required: true
- schema:
- $ref: '#/definitions/sale.TargetID'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update sale statue for cancel
- tags:
- - sale
- /token:
- post:
- consumes:
- - multipart/form-data
- description: NFT 생성과 동시에 판매 등록
- parameters:
- - description: content image
- in: formData
- name: contentImage
- required: true
- type: file
- - in: formData
- name: json
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: create NFT
- tags:
- - token
- /token/{token_id}:
- get:
- consumes:
- - application/json
- description: 토큰 상세페이지
- parameters:
- - description: token id
- in: path
- name: token_id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.TokenDetailData'
- summary: get token detail
- tags:
- - token
- /token/baseinfo:
- get:
- consumes:
- - application/json
- description: 아이템 생성 시 내가 만든 컬렉션 리스트와, 사이트 커미션 수수료 정보 가져오기
- parameters:
- - description: erc721, erc1155
- in: query
- name: type
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/token.TokenBaseInfo'
- security:
- - ApiKeyAuth: []
- summary: get token base info
- tags:
- - token
- /token/like:
- patch:
- consumes:
- - application/json
- description: 토큰 좋아요 기능
- parameters:
- - description: selected target id
- in: body
- name: Like
- required: true
- schema:
- $ref: '#/definitions/token.Like'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update token like count
- tags:
- - token
- /token/log/{token_id}:
- get:
- consumes:
- - application/json
- description: NFT 판매 페이지 기록 탭
- parameters:
- - description: token id
- in: path
- name: token_id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/common.ActivityItem'
- summary: get token log
- tags:
- - token
- /token/owner:
- get:
- consumes:
- - application/json
- description: NFT 1155타입의 소유자 탭
- parameters:
- - description: type
- in: query
- name: token_uid
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.TokenOwnerList'
- summary: get owner list
- tags:
- - token
- /token/resaleinfo/{token_id}:
- get:
- consumes:
- - application/json
- description: 토큰 재판매 시 설정해야하는 기본 데이터
- parameters:
- - description: token id
- in: path
- name: token_id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.TokenResaleData'
- security:
- - ApiKeyAuth: []
- summary: get resale data
- tags:
- - token
- /user/activity/{name}:
- get:
- consumes:
- - application/json
- description: 유저 프로필 활동 탭
- parameters:
- - description: user profile name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ActivityItem'
- type: array
- summary: user activity list
- tags:
- - user
- /user/authenticate:
- post:
- consumes:
- - application/json
- description: redirect url 호출이후 받은 코드로 기존유저라면 로그인, 새로운 유저라면 가입 후 로그인
- parameters:
- - description: oauth data
- in: body
- name: AuthenticationSNS
- required: true
- schema:
- $ref: '#/definitions/user.AuthenticationSNS'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: sign-in
- tags:
- - user
- /user/authenticate/temp:
- get:
- consumes:
- - application/json
- description: SNS로그인 테스트 이전에 동일한 로직으로 유저 회원가입, 세션 획득을 위한 임시 함수, 입력된 이메일이 없으면
- 회원가입 이후 로그인, 있으면 로그인
- parameters:
- - description: email
- in: query
- name: email
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: temp user authentication
- tags:
- - user
- /user/bid:
- post:
- consumes:
- - application/json
- description: 유저 경매 히스토리
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- security:
- - ApiKeyAuth: []
- summary: user bid list
- tags:
- - user
- /user/certification/code:
- post:
- consumes:
- - application/json
- description: 출금하기 2차 인증
- parameters:
- - description: 'currency: mf, mr, eth'
- in: body
- name: CertificationBody
- required: true
- schema:
- $ref: '#/definitions/user.CertificationBody'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: send certification code
- tags:
- - user
- /user/collection/{name}:
- post:
- consumes:
- - application/json
- description: 유저 프로필 컬렉션 탭
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- - description: user profile name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.CollectionItem'
- type: array
- security:
- - ApiKeyAuth: []
- summary: collection list
- tags:
- - user
- /user/duplicate/{name}:
- get:
- consumes:
- - application/json
- description: 유저 이름 중복체크
- parameters:
- - description: check duplicate name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: User profile name duplicate check.
- tags:
- - user
- /user/like/{name}:
- post:
- consumes:
- - application/json
- description: 유저 프로필 좋아요 탭
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- - description: user profile name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- summary: user like list
- tags:
- - user
- /user/onsale/{name}:
- post:
- consumes:
- - application/json
- description: 판매중인 NFT 리스트
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- - description: user profile name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- security:
- - ApiKeyAuth: []
- summary: onesale list
- tags:
- - user
- /user/owned:
- post:
- consumes:
- - application/json
- description: 보유중인 NFT 리스트
- parameters:
- - description: filter object
- in: body
- name: common.Filter
- required: true
- schema:
- $ref: '#/definitions/common.Filter'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/common.ExpItem'
- type: array
- security:
- - ApiKeyAuth: []
- summary: owned list
- tags:
- - user
- /user/profile:
- get:
- consumes:
- - application/json
- description: 헤더, 프로필 편집에 사용할 데이터
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/view.SimpleProfile'
- security:
- - ApiKeyAuth: []
- summary: user simple profile data
- tags:
- - user
- patch:
- consumes:
- - multipart/form-data
- description: 유저 정보 업데이트
- parameters:
- - description: thumbnail image
- in: formData
- name: thumbnailImage
- required: true
- type: file
- - description: cover image
- in: formData
- name: coverImage
- required: true
- type: file
- - in: formData
- name: json
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- security:
- - ApiKeyAuth: []
- summary: update user profile
- tags:
- - user
- /user/profile/{name}:
- get:
- consumes:
- - application/json
- description: 유저 기본 정보 가져오기
- parameters:
- - description: user profile name
- in: path
- name: name
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: user basic profile data
- tags:
- - user
- /user/redirect/url:
- get:
- consumes:
- - application/json
- description: SNS 로그인 버튼 클릭시 redirect_url을 받는 API, {type=google, kakao}
- parameters:
- - description: type
- in: query
- name: type
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: sns redirect url
- tags:
- - user
- /user/transfer:
- post:
- consumes:
- - application/json
- description: 출금하기
- parameters:
- - description: 'currency: mf1, mr, eth'
- in: body
- name: Transfer
- required: true
- schema:
- $ref: '#/definitions/user.Transfer'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- type: string
- summary: token transfer
- tags:
- - user
- securityDefinitions:
- ApiKeyAuth:
- in: header
- name: Authorization
- type: apiKey
- swagger: "2.0"
|