From 84ae2c7481f2c7f3628613f5f3c8d0b60b6bccc0 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期五, 05 七月 2019 16:12:10 +0800
Subject: [PATCH] add picDesc
---
models/dbtables.go | 16 ++++++++--------
models/model.go | 6 +++---
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/models/dbtables.go b/models/dbtables.go
index 869beaa..2b56cbb 100644
--- a/models/dbtables.go
+++ b/models/dbtables.go
@@ -2,14 +2,14 @@
type Dbtables struct {
BaseEntity
- TableName string `json:"tableName" example:"搴曞簱123"` //琛ㄥ悕
- TableDesc string `json:"tableDesc" example:"搴曞簱鎻忚堪"` //鎻忚堪
- TableType string `json:"tableType" example:"person,car"` //浜哄憳琛�"person
- BwType string `json:"bwType" example:"榛戝悕鍗�:1,鐧藉悕鍗�:0"` //榛戝悕鍗曪細1锛岀櫧鍚嶅崟锛�0
- StartTime string `json:"startTime,omitempty" example:"2019-01-12 12:14:56"` //鏈夋晥鏈熷紑濮嬫椂闂�
- EndTime string `json:"endTime,omitempty" example:"2019-10-12 12:14:56"` //鏈夋晥鏈熺粨鏉熸椂闂�
- IsSync string `json:"isSync" example:"1:鍚屾搴擄紝2锛氭湰鍦板簱"` //鏄惁鏄悓姝ュ簱(1:鍚屾搴擄紝2锛氭湰鍦板簱)
- AnalyServerId string `json:"analyServerId" example:"鏈湴搴撴墍灞炵殑鍒嗘瀽璁惧id锛屽鏋滄槸鍚屾搴撳氨涓嶉渶瑕佽褰�"` // 鍒嗘瀽璁惧id(鏈湴搴撴墍灞炵殑鍒嗘瀽璁惧id锛屽鏋滄槸鍚屾搴撳氨涓嶉渶瑕佽褰�)
+ TableName string `json:"tableName,omitempty" example:"搴曞簱123"` //琛ㄥ悕
+ TableDesc string `json:"tableDesc,omitempty" example:"搴曞簱鎻忚堪"` //鎻忚堪
+ TableType string `json:"tableType,omitempty" example:"person,car"` //浜哄憳琛�"person
+ BwType string `json:"bwType,omitempty" example:"榛戝悕鍗�:1,鐧藉悕鍗�:0"` //榛戝悕鍗曪細1锛岀櫧鍚嶅崟锛�0
+ StartTime string `json:"startTime,omitempty" example:"2019-01-12 12:14:56"` //鏈夋晥鏈熷紑濮嬫椂闂�
+ EndTime string `json:"endTime,omitempty" example:"2019-10-12 12:14:56"` //鏈夋晥鏈熺粨鏉熸椂闂�
+ IsSync string `json:"isSync,omitempty" example:"1:鍚屾搴擄紝2锛氭湰鍦板簱"` //鏄惁鏄悓姝ュ簱(1:鍚屾搴擄紝2锛氭湰鍦板簱)
+ AnalyServerId string `json:"analyServerId,omitempty" example:"鏈湴搴撴墍灞炵殑鍒嗘瀽璁惧id锛屽鏋滄槸鍚屾搴撳氨涓嶉渶瑕佽褰�"` // 鍒嗘瀽璁惧id(鏈湴搴撴墍灞炵殑鍒嗘瀽璁惧id锛屽鏋滄槸鍚屾搴撳氨涓嶉渶瑕佽褰�)
}
//UploadFlag string `json:"uploadFlag,omitempty" example:"涓婁紶鏍囧織"` //
diff --git a/models/model.go b/models/model.go
index 38534c5..fec50f8 100644
--- a/models/model.go
+++ b/models/model.go
@@ -6,9 +6,9 @@
Id string `gorm:"primary_key" json:"id" example:"XeW0HmoBevddG23Ild5o"`
CreateTime string `json:"createTime,omitempty" example:""`
UpdateTime string `json:"updateTime,omitempty" example:""`
- CreateBy string `json:"createBy" example:""`
- IsDelete int `json:"isDelete" example:"0 鏈垹闄� 1宸插垹闄�"`
- Enable int `json:"enable" example:" 1鐢熸晥 0鏈敓鏁�"`
+ CreateBy string `json:"createBy,omitempty" example:""`
+ IsDelete int `json:"isDelete,omitempty" example:"0 鏈垹闄� 1宸插垹闄�"`
+ Enable int `json:"enable,omitempty" example:" 1鐢熸晥 0鏈敓鏁�"`
}
func (dp *BaseEntity) PriInsert() {
--
Gitblit v1.8.0