123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- definitions:
- base.HTTPError:
- properties:
- code:
- example: 500
- format: int
- type: integer
- message:
- example: status bad request
- type: string
- type: object
- v1.CodeGateCheckCodeBody:
- properties:
- BrushTime:
- type: string
- CodeType:
- type: string
- CodeVal:
- type: string
- IsOnline:
- type: string
- Property:
- type: string
- SN:
- type: string
- UID:
- type: string
- UKey:
- type: string
- ViewId:
- type: string
- type: object
- v1.CodeGateCheckCodeResponse:
- properties:
- Status:
- type: integer
- UID:
- type: string
- type: object
- v1.CodeGateIsConnectBody:
- properties:
- SN:
- type: string
- UID:
- type: string
- UKey:
- type: string
- ViewId:
- type: string
- type: object
- v1.CodeGateIsConnectResponse:
- properties:
- DateTime:
- type: string
- type: object
- v1.CodeGateQueryCmdBody:
- properties:
- DoorMagnetic:
- type: string
- SN:
- type: string
- TamperAlarm:
- type: string
- UID:
- type: string
- UKey:
- type: string
- ViewId:
- type: string
- type: object
- v1.CodeGateQueryCmdPostDataBody:
- properties:
- CmdCode:
- type: integer
- CmdID:
- type: string
- CmdParams:
- additionalProperties:
- items:
- additionalProperties:
- type: string
- type: object
- type: array
- type: object
- CmdStatus:
- type: integer
- SN:
- type: string
- UID:
- type: string
- UKey:
- type: string
- ViewId:
- type: string
- type: object
- v1.CodeGateQueryCmdPostDataResponse:
- properties:
- CmdStatus:
- type: integer
- CmdStatusDesc:
- type: integer
- type: object
- v1.CodeGateQueryCmdResponse:
- properties:
- CmdCode:
- type: integer
- CmdID:
- type: string
- CmdParams:
- description: CmdParams string `json:"CmdParams"`
- items:
- additionalProperties:
- type: string
- type: object
- type: array
- type: object
- info:
- contact: {}
- description: This is a gateway server. On the page, you can go to do testing for every API.
- license: {}
- title: Project property-device-gateway's APIs
- version: "1.1"
- paths:
- /api/CheckCode:
- post:
- consumes:
- - application/json
- description: 设备上传数据
- parameters:
- - description: ' '
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/v1.CodeGateCheckCodeBody'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/v1.CodeGateCheckCodeResponse'
- "500":
- description: Internal Server Error
- schema:
- $ref: '#/definitions/base.HTTPError'
- summary: 设备上传数据
- tags:
- - 二维码门禁
- /api/IsConnect:
- post:
- consumes:
- - application/json
- description: 心跳
- parameters:
- - description: ' '
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/v1.CodeGateIsConnectBody'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/v1.CodeGateIsConnectResponse'
- "500":
- description: Internal Server Error
- schema:
- $ref: '#/definitions/base.HTTPError'
- summary: 心跳
- tags:
- - 二维码门禁
- /api/QueryCmd:
- post:
- consumes:
- - application/json
- description: 轮询是否有命令
- parameters:
- - description: ' '
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/v1.CodeGateQueryCmdBody'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/v1.CodeGateQueryCmdResponse'
- "500":
- description: Internal Server Error
- schema:
- $ref: '#/definitions/base.HTTPError'
- summary: 轮询是否有命令
- tags:
- - 二维码门禁
- /api/QueryCmdPostData:
- post:
- consumes:
- - application/json
- description: 命令执行结果
- parameters:
- - description: ' '
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/v1.CodeGateQueryCmdPostDataBody'
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/v1.CodeGateQueryCmdPostDataResponse'
- "500":
- description: Internal Server Error
- schema:
- $ref: '#/definitions/base.HTTPError'
- summary: 命令执行结果
- tags:
- - 二维码门禁
- swagger: "2.0"
|