From 2bccdd76da9afabd1af9f1a640c083d9881fb17f Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 09 六月 2020 14:56:09 +0800
Subject: [PATCH] add swagger
---
models/dbtablepersons.go | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/models/dbtablepersons.go b/models/dbtablepersons.go
index dd43f4b..d94b4eb 100644
--- a/models/dbtablepersons.go
+++ b/models/dbtablepersons.go
@@ -1,15 +1,29 @@
package models
-type Dbtablepersons struct {
+type Dbtablepersons struct {
BaseEntity
- TableId string `json:"tableId,omitempty" example:"搴撹〃id"`
- Feature string `json:"feature,omitempty" example:"浜鸿劯鐗瑰緛鍊�"`
- FaceUrl string `json:"faceUrl,omitempty" example:"鍥剧墖璺緞"`
- PersonName string `json:"personName,omitempty" example:"浜哄憳濮撳悕"`
- Age string `json:"age,omitempty" example:"骞撮緞"`
- Sex string `json:"sex,omitempty" example:"鎬у埆 鐢� 濂�"`
- Idcard string `json:"idcard,omitempty" example:"韬唤璇�"`
- PhoneNum string `json:"phoneNum,omitempty" example:"鎵嬫満鍙风爜"`
+ TableId string `json:"tableId,omitempty" example:"搴撹〃id"`
+ FaceFeature string `json:"faceFeature,omitempty" example:"浜鸿劯鐗瑰緛鍊�"`
+ PersonPicUrl string `json:"personPicUrl,omitempty" example:"鍥剧墖璺緞"`
+ PersonName string `json:"personName,omitempty" example:"浜哄憳濮撳悕"`
+ Age string `json:"age,omitempty" example:"骞撮緞"`
+ Sex string `json:"sex,omitempty" example:"鎬у埆 鐢� 濂�"`
+ IdCard string `json:"idCard,omitempty" example:"韬唤璇�"`
+ PhoneNum string `json:"phoneNum,omitempty" example:"鎵嬫満鍙风爜"`
MonitorLevel string `json:"monitorLevel,omitempty" example:"绛夌骇"`
+ PicDesc string `json:"picDesc,omitempty" example:"鐓х墖鏍囪瘑"`
+ Reserved string `json:"reserved,omitempty" example:"鍏朵粬"`
+
+ CarNo string `json:"carNo" example:"杞︾墝鍙�"`
+ CarPicUrls string `json:"carPicUrls" example:"杞﹁締鐓х墖"`
+ CarType int `json:"carType"`
+ CarBrand int `json:"carBrand"`
+ CarColor int `json:"carColor"`
+
+ FromServerId string `gorm:"column:fromServerId" json:"fromServerId,omitempty" example:"鍏ュ簱serverId"`
}
+type DbPersonsCompVo struct {
+ Dbtablepersons
+ CompareScore float64 `json:"compareScore"`
+}
--
Gitblit v1.8.0