From aa91d7884e7fef55b47d6a4905596f72a5ef1ac3 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期六, 30 五月 2020 17:43:03 +0800 Subject: [PATCH] fix sdkType unTar --- models/model.go | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/models/model.go b/models/model.go index 38534c5..6292a5b 100644 --- a/models/model.go +++ b/models/model.go @@ -6,7 +6,7 @@ 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:""` + CreateBy string `json:"createBy,omitempty" example:""` IsDelete int `json:"isDelete" example:"0 鏈垹闄� 1宸插垹闄�"` Enable int `json:"enable" example:" 1鐢熸晥 0鏈敓鏁�"` } @@ -15,7 +15,6 @@ dp.CreateTime = time.Now().Format("2006-01-02 15:04:05") dp.CreateBy = "admin" dp.IsDelete = 0 - dp.Enable = 1 } func (dp *BaseEntity) PriUpdate() { -- Gitblit v1.8.0