123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575 |
- # Generated with protoc-gen-openapi
- # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
- openapi: 3.0.3
- info:
- title: Card API
- version: 0.0.1
- paths:
- /v1/account/create:
- post:
- tags:
- - Card
- operationId: Card_CreateAccountUser
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateAccountUserRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateAccountUserReply'
- /v1/account/login:
- post:
- tags:
- - Card
- operationId: Card_LoginAccount
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.LoginAccountRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.LoginAccountReply'
- /v1/account/wx/login:
- post:
- tags:
- - Card
- operationId: Card_WxRegisterLogin
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.WxRegisterLoginRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.WxRegisterLoginReply'
- /v1/card/create:
- post:
- tags:
- - Card
- operationId: Card_CreateCard
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateCardRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateCardReply'
- /v1/card/del:
- post:
- tags:
- - Card
- operationId: Card_DelCard
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.DelCardInfoRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.DelCardReply'
- /v1/card/info:
- post:
- tags:
- - Card
- operationId: Card_GetCardInfo
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetCardInfoRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetCardInfoReply'
- /v1/card/ocr:
- post:
- tags:
- - Card
- operationId: Card_OCRCard
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.OCRCardRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.OCRCardReply'
- /v1/card/ossupload:
- post:
- tags:
- - Card
- operationId: Card_OssUpload
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.OssUploadRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.OssUploadReplay'
- /v1/card/save:
- post:
- tags:
- - Card
- operationId: Card_SaveCard
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.SaveCardInfoRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.SaveCardReply'
- /v1/card/search:
- post:
- tags:
- - Card
- operationId: Card_SearchCard
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.SearchCardRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.SearchCardReply'
- /v1/card/templates:
- post:
- tags:
- - Card
- operationId: Card_GetTemplates
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetTemplatesRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetTemplatesReply'
- /v1/card/token/create:
- post:
- tags:
- - Card
- operationId: Card_CreateShareToken
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateShareTokenRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.CreateShareTokenReply'
- /v1/card/user/bind:
- post:
- tags:
- - Card
- operationId: Card_AddCardByShareToken
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.AddCardByShareTokenRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.AddCardByShareTokenReply'
- /v1/cards:
- post:
- tags:
- - Card
- operationId: Card_GetMyCards
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetMyCardsRequest'
- required: true
- responses:
- "200":
- description: OK
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/card.GetMyCardsReply'
- components:
- schemas:
- aliyun.Oss:
- type: object
- properties:
- AccessKeyId:
- type: string
- AccessKeySecret:
- type: string
- SecurityToken:
- type: string
- Region:
- type: string
- Bucket:
- type: string
- card.AddCardByShareTokenReply:
- type: object
- properties:
- ok:
- type: boolean
- card.AddCardByShareTokenRequest:
- type: object
- properties:
- token:
- type: string
- card.CreateAccountUserReply:
- type: object
- properties:
- ok:
- type: boolean
- card.CreateAccountUserRequest:
- type: object
- properties:
- account:
- $ref: '#/components/schemas/user.AccountBaseBody'
- card.CreateCardReply:
- type: object
- properties:
- id:
- type: integer
- format: uint32
- card.CreateCardRequest:
- type: object
- properties:
- card:
- $ref: '#/components/schemas/common.CardBaseBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- card.CreateShareTokenReply:
- type: object
- properties:
- token:
- type: string
- expire:
- type: string
- card.CreateShareTokenRequest:
- type: object
- properties:
- cardId:
- type: integer
- format: uint32
- card.DelCardInfoRequest:
- type: object
- properties:
- cardId:
- type: integer
- format: uint32
- card.DelCardReply:
- type: object
- properties:
- ok:
- type: boolean
- card.GetCardInfoReply:
- type: object
- properties:
- card:
- $ref: '#/components/schemas/common.CardBaseBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- template:
- $ref: '#/components/schemas/common.CardTemplateBaseBody'
- card.GetCardInfoRequest:
- type: object
- properties:
- cardId:
- type: integer
- format: uint32
- card.GetMyCardsReply:
- type: object
- properties:
- cards:
- type: array
- items:
- $ref: '#/components/schemas/common.CardBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- templates:
- type: array
- items:
- $ref: '#/components/schemas/common.CardTemplateBody'
- card.GetMyCardsRequest:
- type: object
- properties: {}
- card.GetTemplatesReply:
- type: object
- properties:
- templates:
- type: array
- items:
- $ref: '#/components/schemas/common.CardTemplateBody'
- card.GetTemplatesRequest:
- type: object
- properties: {}
- card.LoginAccountReply:
- type: object
- properties:
- token:
- type: string
- card.LoginAccountRequest:
- type: object
- properties:
- account:
- $ref: '#/components/schemas/user.AccountBaseBody'
- card.OCRCardReply:
- type: object
- properties:
- body:
- $ref: '#/components/schemas/common.CardBaseBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- card.OCRCardRequest:
- type: object
- properties:
- url:
- type: string
- card.OssUploadReplay:
- type: object
- properties:
- body:
- $ref: '#/components/schemas/aliyun.Oss'
- card.OssUploadRequest:
- type: object
- properties: {}
- card.SaveCardInfoRequest:
- type: object
- properties:
- cardId:
- type: integer
- format: uint32
- card:
- $ref: '#/components/schemas/common.CardBaseBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- card.SaveCardReply:
- type: object
- properties:
- ok:
- type: boolean
- card.SearchCardReply:
- type: object
- properties:
- cards:
- type: array
- items:
- $ref: '#/components/schemas/common.CardBody'
- supplements:
- type: array
- items:
- $ref: '#/components/schemas/common.CardSupplementBaseBody'
- total:
- type: integer
- format: uint32
- card.SearchCardRequest:
- type: object
- properties:
- filter:
- $ref: '#/components/schemas/common.CardFilterBody'
- page:
- $ref: '#/components/schemas/pagination.PaginationBody'
- card.WxRegisterLoginReply:
- type: object
- properties:
- token:
- type: string
- card.WxRegisterLoginRequest:
- type: object
- properties:
- code:
- type: string
- common.CardBaseBody:
- type: object
- properties:
- name:
- type: string
- title:
- type: string
- companyName:
- type: string
- companyShortName:
- type: string
- templateId:
- type: integer
- format: uint32
- userId:
- type: integer
- format: uint32
- status:
- type: integer
- format: enum
- searchKey:
- type: string
- type:
- type: integer
- format: enum
- created:
- type: integer
- format: uint64
- common.CardBody:
- type: object
- properties:
- id:
- type: integer
- format: uint32
- body:
- $ref: '#/components/schemas/common.CardBaseBody'
- common.CardFilterBody:
- type: object
- properties:
- name:
- type: string
- title:
- type: string
- companyName:
- type: string
- companyShortName:
- type: string
- searchKey:
- type: string
- userId:
- type: integer
- format: uint32
- type:
- type: integer
- format: enum
- status:
- type: integer
- format: enum
- common.CardSupplementBaseBody:
- type: object
- properties:
- cardId:
- type: integer
- format: uint32
- keyName:
- type: string
- keyValue:
- type: string
- common.CardTemplateBaseBody:
- type: object
- properties:
- name:
- type: string
- titleColor:
- type: string
- subtitleColor:
- type: string
- contactColor:
- type: string
- backgroundImg:
- type: string
- common.CardTemplateBody:
- type: object
- properties:
- id:
- type: integer
- format: uint32
- body:
- $ref: '#/components/schemas/common.CardTemplateBaseBody'
- pagination.PaginationBody:
- type: object
- properties:
- now:
- type: integer
- format: uint32
- size:
- type: integer
- format: uint32
- user.AccountBaseBody:
- type: object
- properties:
- userId:
- type: integer
- format: uint32
- type:
- type: integer
- format: enum
- account:
- type: string
- password:
- type: string
- status:
- type: integer
- format: enum
- tags:
- - name: Card
|