{ "swagger": "2.0", "info": { "title": "nCov Tracker", "contact": {}, "version": "1.0" }, "paths": { "/article": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "save article", "parameters": [ { "description": "article", "name": "Article", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.BackArticle" } }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.BackArticle" } } } ] } } } } }, "/article/list": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "get all articles", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.ListArticle" } } } } ] } } } } }, "/article/list/{published}": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "get user's articles", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header" }, { "enum": [ "published", "notpublished" ], "type": "string", "description": "string enums", "name": "published", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.BackArticle" } } } } ] } } } } }, "/article/{id}": { "get": { "description": "Admin can get not published article", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "get an articles", "parameters": [ { "type": "string", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.BackArticle" } } } ] } } } }, "delete": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "delete an article", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "string", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/article/{id}/publish": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Article" ], "summary": "publish an articles", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "string", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/management/faker/{patientId}": { "get": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "pull contact from faker", "parameters": [ { "type": "string", "description": "Token", "name": "Token", "in": "header", "required": true }, { "type": "integer", "description": "Patient Id", "name": "patientId", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/management/location/": { "get": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "list locations", "parameters": [ { "type": "string", "description": "地点的精确地址", "name": "address", "in": "query" }, { "type": "string", "description": "创建时间", "name": "createTime", "in": "query" }, { "type": "integer", "description": "创建者", "name": "createUser", "in": "query" }, { "type": "integer", "description": "ID", "name": "id", "in": "query" }, { "type": "integer", "description": "删除标志", "name": "isDelete", "in": "query" }, { "type": "string", "description": "修改时间", "name": "modifyTime", "in": "query" }, { "type": "integer", "description": "修改者", "name": "modifyUser", "in": "query" }, { "type": "string", "description": "地点名", "name": "name", "in": "query" }, { "type": "string", "description": "负责人姓名", "name": "principalName", "in": "query" }, { "type": "string", "description": "负责人电话", "name": "principalPhone", "in": "query" }, { "type": "string", "description": "地点所在地区", "name": "region", "in": "query" }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.BackLocation" } } } ] } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "insert location", "parameters": [ { "description": "location", "name": "Location", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.BackLocation" } }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/management/location/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "delete location", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "integer", "description": "Id", "name": "Id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/management/observation/": { "get": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "list observations by query", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "string", "description": "受观察者所在具体地点", "name": "address", "in": "query" }, { "type": "integer", "description": "年龄", "name": "age", "in": "query" }, { "type": "integer", "description": "接触者id", "name": "contactPerson", "in": "query" }, { "type": "string", "description": "创建时间", "name": "createTime", "in": "query" }, { "type": "integer", "description": "创建者", "name": "createUser", "in": "query" }, { "type": "string", "description": "患者健康状况转化时间", "name": "healthChangeTime", "in": "query" }, { "type": "integer", "description": "被观察者的疫情状况:0- 其他,1-患者,2-密接,3-次密接", "name": "healthSituation", "in": "query" }, { "type": "integer", "description": "ID", "name": "id", "in": "query" }, { "type": "string", "description": "身份证号", "name": "identification", "in": "query" }, { "type": "integer", "description": "删除标志", "name": "isDelete", "in": "query" }, { "type": "integer", "description": "受观察者被采取措施状况 :0-未采取措施,1-解除风险,2-正在治疗,3-集中隔离,4-居家隔离", "name": "measureSituation", "in": "query" }, { "type": "string", "description": "修改时间", "name": "modifyTime", "in": "query" }, { "type": "integer", "description": "修改者", "name": "modifyUser", "in": "query" }, { "type": "string", "description": "姓名", "name": "name", "in": "query" }, { "type": "string", "description": "手机号码", "name": "phone", "in": "query" }, { "type": "string", "description": "受观察者所在区域", "name": "region", "in": "query" }, { "type": "integer", "description": "性别", "name": "sex", "in": "query" }, { "type": "string", "description": "行程轨迹", "name": "trajectory", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.ListObservation" } } } } ] } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "update observation", "parameters": [ { "description": "observation", "name": "Observation", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.BackObservation" } }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "insert observation", "parameters": [ { "description": "observation", "name": "Observation", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.BackObservation" } }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/management/observation/tree/{id}/{direction}": { "get": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "get transform chain by user", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "integer", "description": "id", "name": "id", "in": "path", "required": true }, { "enum": [ "up", "down", "all" ], "type": "string", "description": "direction", "name": "direction", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.TreeObservation" } } } ] } } } } }, "/management/observation/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "get observation's info", "parameters": [ { "type": "string", "description": "token", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.BackObservation" } } } ] } } } } }, "/management/pcr/": { "post": { "produces": [ "application/json" ], "tags": [ "Management" ], "summary": "insert pcr record", "parameters": [ { "description": "Pcr", "name": "Pcr", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.BackPcr" } }, { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/notify/count/": { "get": { "produces": [ "application/json" ], "tags": [ "Notification" ], "summary": "count the notification", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/notify/{index}": { "delete": { "produces": [ "application/json" ], "tags": [ "Notification" ], "summary": "delete the notify by index, if -1 delete all", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "integer", "description": "index", "name": "index", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/notify/{start}/{end}": { "get": { "produces": [ "application/json" ], "tags": [ "Notification" ], "summary": "list the notification in the range", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "type": "integer", "description": "start", "name": "start", "in": "path", "required": true }, { "type": "integer", "description": "end", "name": "end", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.BackNotification" } } } } ] } } } } }, "/statistics/china": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "china data", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.ChinaData" } } } ] } } } } }, "/statistics/china/trend": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "china trend", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.ChinaTrend" } } } ] } } } } }, "/statistics/city/{sort}": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "city statistics", "parameters": [ { "enum": [ "today", "total", "now", "default" ], "type": "string", "description": "data sorted by", "name": "sort", "in": "path" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.AreaInfo" } } } } ] } } } } }, "/statistics/country": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "country statistics", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.AreaInfo" } } } } ] } } } } }, "/statistics/country/child": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "country statistics", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.AreaInfo" } } } } ] } } } } }, "/statistics/province/{sort}": { "get": { "produces": [ "application/json" ], "tags": [ "Statistics" ], "summary": "province statistics", "parameters": [ { "enum": [ "today", "total", "now", "default" ], "type": "string", "description": "data sorted by", "name": "sort", "in": "path" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.AreaInfo" } } } } ] } } } } }, "/user/approve": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "admin approve account, user can use account after approved", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "description": "json", "name": "json", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.UserApprove" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/user/chpwd": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "change user's password", "parameters": [ { "description": "json", "name": "json", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.UserChangePwd" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/user/code/{email}": { "get": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "send verify code", "parameters": [ { "type": "string", "description": "email", "name": "email", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/user/code/{email}/{code}": { "get": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "send verify code", "parameters": [ { "type": "string", "description": "email", "name": "email", "in": "path", "required": true }, { "type": "string", "description": "code", "name": "code", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/user/login": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "user login", "parameters": [ { "description": "json", "name": "json", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.UserLogin" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } }, "/user/register": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "user register account", "parameters": [ { "description": "json", "name": "json", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.UserRegister" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/utils.GinResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.BackUser" } } } ] } } } } }, "/user/registers/{approved}": { "get": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "list register infos, which is to be approved", "parameters": [ { "type": "string", "description": "token", "name": "Token", "in": "header", "required": true }, { "enum": [ "approved", "notapproved" ], "type": "string", "description": "string enums", "name": "approved", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/utils.GinResponse" } } } } } }, "definitions": { "models.AreaInfo": { "type": "object", "properties": { "children": { "type": "array", "items": { "$ref": "#/definitions/models.AreaInfo" } }, "name": { "type": "string" }, "parent": { "type": "string" }, "today": { "$ref": "#/definitions/models.AreaToday" }, "total": { "$ref": "#/definitions/models.AreaTotal" } } }, "models.AreaToday": { "type": "object", "properties": { "confirm": { "type": "integer" }, "isUpdate": { "type": "boolean" } } }, "models.AreaTotal": { "type": "object", "properties": { "confirm": { "type": "integer" }, "dead": { "type": "integer" }, "heal": { "type": "integer" }, "nowConfirm": { "type": "integer" }, "provinceLocalConfirm": { "type": "integer" }, "showHeal": { "type": "boolean" }, "showRate": { "type": "boolean" }, "wzz": { "type": "integer" } } }, "models.BackArticle": { "type": "object", "properties": { "content": { "description": "文章内容(如有需要可迁移至对象存储)", "type": "string" }, "cover": { "description": "文章封面", "type": "string" }, "createTime": { "description": "文章新建时间", "type": "string" }, "createUser": { "description": "文章创建者id", "type": "integer" }, "id": { "description": "文章id", "type": "integer" }, "isDelete": { "description": "删除标志", "type": "integer" }, "isPublish": { "description": "发布状态(0:未发布, 1: 发布)", "type": "integer" }, "modifyTime": { "description": "文章最后更新时间", "type": "string" }, "modifyUser": { "description": "文章最后更新者id", "type": "integer" }, "resume": { "description": "文章简述", "type": "string" }, "tags": { "description": "文章Tag", "type": "string" }, "title": { "description": "文章标题", "type": "string" } } }, "models.BackLocation": { "type": "object", "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" } } }, "models.BackNotification": { "type": "object", "properties": { "content": { "type": "string" }, "kind": { "type": "string" }, "time": { "type": "string" } } }, "models.BackObservation": { "type": "object", "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" } } }, "models.BackPcr": { "type": "object", "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" } } }, "models.BackUser": { "type": "object", "properties": { "approver": { "description": "注册审核人ID", "type": "integer" }, "aptitude": { "description": "用户资质证明(图片URL)", "type": "string" }, "createTime": { "description": "用户注册时间", "type": "string" }, "email": { "description": "用户邮箱", "type": "string" }, "id": { "description": "用户ID", "type": "integer" }, "isDelete": { "description": "删除标志", "type": "integer" }, "modifyTime": { "type": "string" }, "password": { "description": "用户密码", "type": "string" }, "phone": { "description": "用户手机号码", "type": "string" }, "region": { "description": "用户所属地域", "type": "string" }, "role": { "description": "用户角色", "type": "integer" }, "username": { "description": "用户真实姓名", "type": "string" } } }, "models.ChinaAdd": { "type": "object", "properties": { "confirm": { "type": "integer" }, "dead": { "type": "integer" }, "heal": { "type": "integer" }, "importedCase": { "type": "integer" }, "localConfirm": { "type": "integer" }, "localConfirmH5": { "type": "integer" }, "noInfect": { "type": "integer" }, "noInfectH5": { "type": "integer" }, "nowConfirm": { "type": "integer" }, "nowSevere": { "type": "integer" }, "suspect": { "type": "integer" } } }, "models.ChinaData": { "type": "object", "properties": { "chinaAdd": { "$ref": "#/definitions/models.ChinaAdd" }, "chinaTotal": { "$ref": "#/definitions/models.ChinaTotal" } } }, "models.ChinaDay": { "type": "object", "properties": { "confirm": { "type": "integer" }, "date": { "type": "string" }, "dead": { "type": "integer" }, "deadRate": { "type": "string" }, "heal": { "type": "integer" }, "healRate": { "type": "string" }, "importedCase": { "type": "integer" }, "localConfirm": { "type": "integer" }, "localConfirmH5": { "type": "integer" }, "local_acc_confirm": { "type": "integer" }, "noInfect": { "type": "integer" }, "noInfectH5": { "type": "integer" }, "nowConfirm": { "type": "integer" }, "nowSevere": { "type": "integer" }, "suspect": { "type": "integer" }, "y": { "type": "string" } } }, "models.ChinaDayAdd": { "type": "object", "properties": { "confirm": { "type": "integer" }, "date": { "type": "string" }, "dead": { "type": "integer" }, "deadRate": { "type": "string" }, "heal": { "type": "integer" }, "healRate": { "type": "string" }, "importedCase": { "type": "integer" }, "infect": { "type": "integer" }, "localConfirmadd": { "type": "integer" }, "localinfectionadd": { "type": "integer" }, "suspect": { "type": "integer" }, "y": { "type": "string" } } }, "models.ChinaTotal": { "type": "object", "properties": { "confirm": { "type": "integer" }, "dead": { "type": "integer" }, "heal": { "type": "integer" }, "importedCase": { "type": "integer" }, "localConfirm": { "type": "integer" }, "localConfirmH5": { "type": "integer" }, "local_acc_confirm": { "type": "integer" }, "noInfect": { "type": "integer" }, "noInfectH5": { "type": "integer" }, "nowConfirm": { "type": "integer" }, "nowSevere": { "type": "integer" }, "showLocalConfirm": { "type": "integer" }, "showlocalinfeciton": { "type": "integer" }, "suspect": { "type": "integer" } } }, "models.ChinaTrend": { "type": "object", "properties": { "ChinaDayList": { "type": "array", "items": { "$ref": "#/definitions/models.ChinaDay" } }, "chinaDayAddList": { "type": "array", "items": { "$ref": "#/definitions/models.ChinaDayAdd" } } } }, "models.ListArticle": { "type": "object", "properties": { "cover": { "type": "string" }, "createTime": { "type": "string" }, "id": { "type": "integer" }, "modifyTime": { "type": "string" }, "resume": { "type": "string" }, "tags": { "type": "string" }, "title": { "type": "string" }, "username": { "type": "string" } } }, "models.ListObservation": { "type": "object", "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" } } }, "models.TreeObservation": { "type": "object", "properties": { "address": { "description": "受观察者所在具体地点", "type": "string" }, "age": { "description": "年龄", "type": "integer" }, "children": { "description": "子结点", "type": "array", "items": { "$ref": "#/definitions/models.TreeObservation" } }, "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" } } }, "models.UserApprove": { "type": "object", "properties": { "email": { "type": "string" }, "pass": { "type": "boolean" } } }, "models.UserChangePwd": { "type": "object", "properties": { "code": { "type": "string" }, "email": { "type": "string" }, "newPassword": { "type": "string" } } }, "models.UserLogin": { "type": "object", "properties": { "account": { "type": "string" }, "password": { "type": "string" } } }, "models.UserRegister": { "type": "object", "properties": { "aptitude": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" }, "phone": { "type": "string" }, "region": { "type": "string" }, "role": { "type": "integer" }, "username": { "type": "string" } } }, "utils.GinResponse": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": {} } } } }