finish
This commit is contained in:
1059
docs/docs.go
1059
docs/docs.go
File diff suppressed because it is too large
Load Diff
1059
docs/swagger.json
1059
docs/swagger.json
File diff suppressed because it is too large
Load Diff
@@ -54,6 +54,9 @@ definitions:
|
||||
createUser:
|
||||
description: 文章创建者id
|
||||
type: integer
|
||||
id:
|
||||
description: 文章id
|
||||
type: integer
|
||||
isDelete:
|
||||
description: 删除标志
|
||||
type: integer
|
||||
@@ -76,6 +79,138 @@ definitions:
|
||||
description: 文章标题
|
||||
type: string
|
||||
type: object
|
||||
models.BackLocation:
|
||||
properties:
|
||||
address:
|
||||
description: 地点的精确地址
|
||||
type: string
|
||||
createTime:
|
||||
description: 创建时间
|
||||
type: string
|
||||
createUser:
|
||||
description: 创建者
|
||||
type: integer
|
||||
id:
|
||||
description: ID
|
||||
type: integer
|
||||
isDelete:
|
||||
description: 删除标志
|
||||
type: integer
|
||||
modifyTime:
|
||||
description: 修改时间
|
||||
type: string
|
||||
modifyUser:
|
||||
description: 修改者
|
||||
type: integer
|
||||
name:
|
||||
description: 地点名
|
||||
type: string
|
||||
principalName:
|
||||
description: 负责人姓名
|
||||
type: string
|
||||
principalPhone:
|
||||
description: 负责人电话
|
||||
type: string
|
||||
region:
|
||||
description: 地点所在地区
|
||||
type: string
|
||||
type: object
|
||||
models.BackNotification:
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
kind:
|
||||
type: string
|
||||
time:
|
||||
type: string
|
||||
type: object
|
||||
models.BackObservation:
|
||||
properties:
|
||||
address:
|
||||
description: 受观察者所在具体地点
|
||||
type: string
|
||||
age:
|
||||
description: 年龄
|
||||
type: integer
|
||||
contactPerson:
|
||||
description: 接触者id
|
||||
type: integer
|
||||
createTime:
|
||||
description: 创建时间
|
||||
type: string
|
||||
createUser:
|
||||
description: 创建者
|
||||
type: integer
|
||||
healthChangeTime:
|
||||
description: 患者健康状况转化时间
|
||||
type: string
|
||||
healthSituation:
|
||||
description: 被观察者的疫情状况:0- 其他,1-患者,2-密接,3-次密接
|
||||
type: integer
|
||||
id:
|
||||
description: ID
|
||||
type: integer
|
||||
identification:
|
||||
description: 身份证号
|
||||
type: string
|
||||
isDelete:
|
||||
description: 删除标志
|
||||
type: integer
|
||||
measureSituation:
|
||||
description: 受观察者被采取措施状况 :0-未采取措施,1-解除风险,2-正在治疗,3-集中隔离,4-居家隔离
|
||||
type: integer
|
||||
modifyTime:
|
||||
description: 修改时间
|
||||
type: string
|
||||
modifyUser:
|
||||
description: 修改者
|
||||
type: integer
|
||||
name:
|
||||
description: 姓名
|
||||
type: string
|
||||
phone:
|
||||
description: 手机号码
|
||||
type: string
|
||||
region:
|
||||
description: 受观察者所在区域
|
||||
type: string
|
||||
sex:
|
||||
description: 性别
|
||||
type: integer
|
||||
trajectory:
|
||||
description: 行程轨迹
|
||||
type: string
|
||||
type: object
|
||||
models.BackPcr:
|
||||
properties:
|
||||
createTime:
|
||||
description: 创建时间
|
||||
type: string
|
||||
createUser:
|
||||
description: 创建者
|
||||
type: integer
|
||||
detectResult:
|
||||
description: 核酸检测结果:0-未检测,1-阴性,2-阳性
|
||||
type: integer
|
||||
detectTime:
|
||||
description: 核酸检测时间
|
||||
type: string
|
||||
id:
|
||||
description: ID
|
||||
type: integer
|
||||
isDelete:
|
||||
description: 删除标志
|
||||
type: integer
|
||||
modifyTime:
|
||||
description: 修改时间
|
||||
type: string
|
||||
modifyUser:
|
||||
description: 修改者
|
||||
type: integer
|
||||
observation:
|
||||
description: 观察对象ID
|
||||
type: integer
|
||||
type: object
|
||||
models.BackUser:
|
||||
properties:
|
||||
approver:
|
||||
@@ -256,6 +391,8 @@ definitions:
|
||||
type: string
|
||||
createTime:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
modifyTime:
|
||||
type: string
|
||||
resume:
|
||||
@@ -267,6 +404,129 @@ definitions:
|
||||
username:
|
||||
type: string
|
||||
type: object
|
||||
models.ListObservation:
|
||||
properties:
|
||||
address:
|
||||
description: 受观察者所在具体地点
|
||||
type: string
|
||||
age:
|
||||
description: 年龄
|
||||
type: integer
|
||||
contactPerson:
|
||||
description: 接触者id
|
||||
type: integer
|
||||
createTime:
|
||||
description: 创建时间
|
||||
type: string
|
||||
createUser:
|
||||
description: 创建者
|
||||
type: integer
|
||||
healthChangeTime:
|
||||
description: 患者健康状况转化时间
|
||||
type: string
|
||||
healthSituation:
|
||||
description: 被观察者的疫情状况:0- 其他,1-患者,2-密接,3-次密接
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
identification:
|
||||
description: 身份证号
|
||||
type: string
|
||||
measureSituation:
|
||||
description: 受观察者被采取措施状况 :0-未采取措施,1-解除风险,2-正在治疗,3-集中隔离,4-居家隔离
|
||||
type: integer
|
||||
modifyTime:
|
||||
description: 修改时间
|
||||
type: string
|
||||
modifyUser:
|
||||
description: 修改者
|
||||
type: integer
|
||||
name:
|
||||
description: 姓名
|
||||
type: string
|
||||
pcrResult:
|
||||
description: 核酸结果:0-未检测,1-阴性,2-阳性
|
||||
type: integer
|
||||
pcrTime:
|
||||
description: 核酸时间
|
||||
type: string
|
||||
phone:
|
||||
description: 手机号码
|
||||
type: string
|
||||
record:
|
||||
description: 状态转换内容
|
||||
type: string
|
||||
recordTime:
|
||||
description: 状态转换时间
|
||||
type: string
|
||||
region:
|
||||
description: 受观察者所在区域
|
||||
type: string
|
||||
sex:
|
||||
description: 性别
|
||||
type: integer
|
||||
trajectory:
|
||||
description: 行程轨迹
|
||||
type: string
|
||||
type: object
|
||||
models.TreeObservation:
|
||||
properties:
|
||||
address:
|
||||
description: 受观察者所在具体地点
|
||||
type: string
|
||||
age:
|
||||
description: 年龄
|
||||
type: integer
|
||||
children:
|
||||
description: 子结点
|
||||
items:
|
||||
$ref: '#/definitions/models.TreeObservation'
|
||||
type: array
|
||||
contactPerson:
|
||||
description: 接触者id
|
||||
type: integer
|
||||
createTime:
|
||||
description: 创建时间
|
||||
type: string
|
||||
createUser:
|
||||
description: 创建者
|
||||
type: integer
|
||||
healthChangeTime:
|
||||
description: 患者健康状况转化时间
|
||||
type: string
|
||||
healthSituation:
|
||||
description: 被观察者的疫情状况:0- 其他,1-患者,2-密接,3-次密接
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
identification:
|
||||
description: 身份证号
|
||||
type: string
|
||||
measureSituation:
|
||||
description: 受观察者被采取措施状况 :0-未采取措施,1-解除风险,2-正在治疗,3-集中隔离,4-居家隔离
|
||||
type: integer
|
||||
modifyTime:
|
||||
description: 修改时间
|
||||
type: string
|
||||
modifyUser:
|
||||
description: 修改者
|
||||
type: integer
|
||||
name:
|
||||
description: 姓名
|
||||
type: string
|
||||
phone:
|
||||
description: 手机号码
|
||||
type: string
|
||||
region:
|
||||
description: 受观察者所在区域
|
||||
type: string
|
||||
sex:
|
||||
description: 性别
|
||||
type: integer
|
||||
trajectory:
|
||||
description: 行程轨迹
|
||||
type: string
|
||||
type: object
|
||||
models.UserApprove:
|
||||
properties:
|
||||
email:
|
||||
@@ -480,6 +740,456 @@ paths:
|
||||
summary: get user's articles
|
||||
tags:
|
||||
- Article
|
||||
/management/faker/{patientId}:
|
||||
get:
|
||||
parameters:
|
||||
- description: Token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: Patient Id
|
||||
in: path
|
||||
name: patientId
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: pull contact from faker
|
||||
tags:
|
||||
- Management
|
||||
/management/location/:
|
||||
get:
|
||||
parameters:
|
||||
- description: 地点的精确地址
|
||||
in: query
|
||||
name: address
|
||||
type: string
|
||||
- description: 创建时间
|
||||
in: query
|
||||
name: createTime
|
||||
type: string
|
||||
- description: 创建者
|
||||
in: query
|
||||
name: createUser
|
||||
type: integer
|
||||
- description: ID
|
||||
in: query
|
||||
name: id
|
||||
type: integer
|
||||
- description: 删除标志
|
||||
in: query
|
||||
name: isDelete
|
||||
type: integer
|
||||
- description: 修改时间
|
||||
in: query
|
||||
name: modifyTime
|
||||
type: string
|
||||
- description: 修改者
|
||||
in: query
|
||||
name: modifyUser
|
||||
type: integer
|
||||
- description: 地点名
|
||||
in: query
|
||||
name: name
|
||||
type: string
|
||||
- description: 负责人姓名
|
||||
in: query
|
||||
name: principalName
|
||||
type: string
|
||||
- description: 负责人电话
|
||||
in: query
|
||||
name: principalPhone
|
||||
type: string
|
||||
- description: 地点所在地区
|
||||
in: query
|
||||
name: region
|
||||
type: string
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.GinResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/models.BackLocation'
|
||||
type: object
|
||||
summary: list locations
|
||||
tags:
|
||||
- Management
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: location
|
||||
in: body
|
||||
name: Location
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.BackLocation'
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: insert location
|
||||
tags:
|
||||
- Management
|
||||
/management/location/{id}:
|
||||
delete:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: Id
|
||||
in: path
|
||||
name: Id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: delete location
|
||||
tags:
|
||||
- Management
|
||||
/management/observation/:
|
||||
get:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: 受观察者所在具体地点
|
||||
in: query
|
||||
name: address
|
||||
type: string
|
||||
- description: 年龄
|
||||
in: query
|
||||
name: age
|
||||
type: integer
|
||||
- description: 接触者id
|
||||
in: query
|
||||
name: contactPerson
|
||||
type: integer
|
||||
- description: 创建时间
|
||||
in: query
|
||||
name: createTime
|
||||
type: string
|
||||
- description: 创建者
|
||||
in: query
|
||||
name: createUser
|
||||
type: integer
|
||||
- description: 患者健康状况转化时间
|
||||
in: query
|
||||
name: healthChangeTime
|
||||
type: string
|
||||
- description: 被观察者的疫情状况:0- 其他,1-患者,2-密接,3-次密接
|
||||
in: query
|
||||
name: healthSituation
|
||||
type: integer
|
||||
- description: ID
|
||||
in: query
|
||||
name: id
|
||||
type: integer
|
||||
- description: 身份证号
|
||||
in: query
|
||||
name: identification
|
||||
type: string
|
||||
- description: 删除标志
|
||||
in: query
|
||||
name: isDelete
|
||||
type: integer
|
||||
- description: 受观察者被采取措施状况 :0-未采取措施,1-解除风险,2-正在治疗,3-集中隔离,4-居家隔离
|
||||
in: query
|
||||
name: measureSituation
|
||||
type: integer
|
||||
- description: 修改时间
|
||||
in: query
|
||||
name: modifyTime
|
||||
type: string
|
||||
- description: 修改者
|
||||
in: query
|
||||
name: modifyUser
|
||||
type: integer
|
||||
- description: 姓名
|
||||
in: query
|
||||
name: name
|
||||
type: string
|
||||
- description: 手机号码
|
||||
in: query
|
||||
name: phone
|
||||
type: string
|
||||
- description: 受观察者所在区域
|
||||
in: query
|
||||
name: region
|
||||
type: string
|
||||
- description: 性别
|
||||
in: query
|
||||
name: sex
|
||||
type: integer
|
||||
- description: 行程轨迹
|
||||
in: query
|
||||
name: trajectory
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.GinResponse'
|
||||
- properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/models.ListObservation'
|
||||
type: array
|
||||
type: object
|
||||
summary: list observations by query
|
||||
tags:
|
||||
- Management
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: observation
|
||||
in: body
|
||||
name: Observation
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.BackObservation'
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: insert observation
|
||||
tags:
|
||||
- Management
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: observation
|
||||
in: body
|
||||
name: Observation
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.BackObservation'
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: update observation
|
||||
tags:
|
||||
- Management
|
||||
/management/observation/{id}:
|
||||
get:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: token
|
||||
required: true
|
||||
type: string
|
||||
- description: id
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.GinResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/models.BackObservation'
|
||||
type: object
|
||||
summary: get observation's info
|
||||
tags:
|
||||
- Management
|
||||
/management/observation/tree/{id}/{direction}:
|
||||
get:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: id
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: direction
|
||||
enum:
|
||||
- up
|
||||
- down
|
||||
- all
|
||||
in: path
|
||||
name: direction
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.GinResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/models.TreeObservation'
|
||||
type: object
|
||||
summary: get transform chain by user
|
||||
tags:
|
||||
- Management
|
||||
/management/pcr/:
|
||||
post:
|
||||
parameters:
|
||||
- description: Pcr
|
||||
in: body
|
||||
name: Pcr
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.BackPcr'
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: insert pcr record
|
||||
tags:
|
||||
- Management
|
||||
/notify/{index}:
|
||||
delete:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: index
|
||||
in: path
|
||||
name: index
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: delete the notify by index, if -1 delete all
|
||||
tags:
|
||||
- Notification
|
||||
/notify/{start}/{end}:
|
||||
get:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
- description: start
|
||||
in: path
|
||||
name: start
|
||||
required: true
|
||||
type: integer
|
||||
- description: end
|
||||
in: path
|
||||
name: end
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.GinResponse'
|
||||
- properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/models.BackNotification'
|
||||
type: array
|
||||
type: object
|
||||
summary: list the notification in the range
|
||||
tags:
|
||||
- Notification
|
||||
/notify/count/:
|
||||
get:
|
||||
parameters:
|
||||
- description: token
|
||||
in: header
|
||||
name: Token
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/utils.GinResponse'
|
||||
summary: count the notification
|
||||
tags:
|
||||
- Notification
|
||||
/statistics/china:
|
||||
get:
|
||||
produces:
|
||||
|
||||
Reference in New Issue
Block a user