From ebe954dab1f8a58d86a0282960591acb05cee479 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 05 七月 2019 19:15:04 +0800
Subject: [PATCH] fix bug
---
models/model.go | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
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