You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
4.6 KiB
194 lines
4.6 KiB
8 months ago
|
definitions:
|
||
|
request.TerminalPant:
|
||
|
properties:
|
||
|
cmd:
|
||
|
description: 命令id 1020
|
||
|
type: string
|
||
|
data:
|
||
|
properties:
|
||
|
mode:
|
||
|
description: 当前是否属于降级模式:0:正常在线比对模式 1:降级模式(离线比对模式)
|
||
|
type: integer
|
||
|
platform:
|
||
|
description: 闸机状态 0-在线 1-离线
|
||
|
type: integer
|
||
|
turnstile:
|
||
|
description: 闸机标识
|
||
|
type: string
|
||
|
ver:
|
||
|
description: 版本号
|
||
|
type: string
|
||
|
type: object
|
||
|
msg_id:
|
||
|
description: 消息id 报文唯一标识
|
||
|
type: string
|
||
|
time:
|
||
|
description: 时间戳
|
||
|
type: string
|
||
|
type: object
|
||
|
request.TerminalUpdateGet:
|
||
|
properties:
|
||
|
cmd:
|
||
|
description: 命令id 1050
|
||
|
type: string
|
||
|
data:
|
||
|
properties:
|
||
|
flag:
|
||
|
description: 获取更新文件标识,值为1
|
||
|
type: integer
|
||
|
type: object
|
||
|
msg_id:
|
||
|
description: 消息id 报文唯一标识
|
||
|
type: string
|
||
|
time:
|
||
|
description: 时间戳
|
||
|
type: string
|
||
|
type: object
|
||
|
request.UserIdentify:
|
||
|
properties:
|
||
|
cmd:
|
||
|
description: "1070"
|
||
|
type: string
|
||
|
feature_code:
|
||
|
description: 特征码
|
||
|
type: string
|
||
|
msg_id:
|
||
|
description: 报文唯一标识
|
||
|
type: string
|
||
|
time:
|
||
|
description: 时间戳
|
||
|
type: string
|
||
|
type: object
|
||
|
info:
|
||
|
contact: {}
|
||
|
description: 接口文档
|
||
|
title: Swagger Example API
|
||
|
version: 0.0.1
|
||
|
paths:
|
||
|
/terminal/pant:
|
||
|
post:
|
||
|
consumes:
|
||
|
- application/json
|
||
|
parameters:
|
||
|
- description: page,pageSize
|
||
|
in: body
|
||
|
name: data
|
||
|
required: true
|
||
|
schema:
|
||
|
$ref: '#/definitions/request.TerminalPant'
|
||
|
produces:
|
||
|
- application/json
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- ApiKeyAuth: []
|
||
|
summary: 终端心跳上报
|
||
|
tags:
|
||
|
- terminal
|
||
|
/terminal/update:
|
||
|
post:
|
||
|
consumes:
|
||
|
- application/json
|
||
|
parameters:
|
||
|
- description: page,pageSize
|
||
|
in: body
|
||
|
name: data
|
||
|
required: true
|
||
|
schema:
|
||
|
$ref: '#/definitions/request.TerminalUpdateGet'
|
||
|
produces:
|
||
|
- application/json
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- ApiKeyAuth: []
|
||
|
summary: 终端获取最新固件更新
|
||
|
tags:
|
||
|
- terminal
|
||
|
put:
|
||
|
consumes:
|
||
|
- application/json
|
||
|
parameters:
|
||
|
- description: page,pageSize
|
||
|
in: body
|
||
|
name: data
|
||
|
required: true
|
||
|
schema:
|
||
|
$ref: '#/definitions/request.TerminalUpdateGet'
|
||
|
produces:
|
||
|
- application/json
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- ApiKeyAuth: []
|
||
|
summary: 终端固件更新完成
|
||
|
tags:
|
||
|
- terminal
|
||
|
/user/identify:
|
||
|
post:
|
||
|
consumes:
|
||
|
- application/json
|
||
|
parameters:
|
||
|
- description: page,pageSize
|
||
|
in: body
|
||
|
name: data
|
||
|
required: true
|
||
|
schema:
|
||
|
$ref: '#/definitions/request.UserIdentify'
|
||
|
produces:
|
||
|
- application/json
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- ApiKeyAuth: []
|
||
|
summary: 比对特征码获取人员 id
|
||
|
tags:
|
||
|
- user
|
||
|
/user/register:
|
||
|
post:
|
||
|
parameters:
|
||
|
- description: 特征码` //特征码
|
||
|
in: formData
|
||
|
name: feature_code
|
||
|
type: string
|
||
|
- description: 报文唯一标识
|
||
|
in: formData
|
||
|
name: msg_id
|
||
|
type: string
|
||
|
- description: 时间戳` //时间戳
|
||
|
in: formData
|
||
|
name: time
|
||
|
type: string
|
||
|
- description: 用户id(或员工号)
|
||
|
in: formData
|
||
|
name: user_id
|
||
|
type: string
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- ApiKeyAuth: []
|
||
|
summary: 用户注册
|
||
|
tags:
|
||
|
- user
|
||
|
securityDefinitions:
|
||
|
ApiKeyAuth:
|
||
|
in: header
|
||
|
name: x-token
|
||
|
type: apiKey
|
||
|
swagger: "2.0"
|