From 133eaf088dc7431e17107aa8fc7aaced65e8c274 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Tue, 31 Mar 2020 21:41:24 +0800 Subject: [PATCH] Update dept.go --- models/dept.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/dept.go b/models/dept.go index 96ae8256..a7c439e1 100644 --- a/models/dept.go +++ b/models/dept.go @@ -36,7 +36,7 @@ type Dept struct { CreateTime string `json:"createTime" gorm:"column:create_time"` UpdateBy string `json:"updateBy" gorm:"column:update_by"` UpdateTime string `json:"updateTime" gorm:"column:update_time"` - DataScope string `json:"dataScope" gorm:"_"` + DataScope string `json:"dataScope" gorm:"-"` Params string `json:"params" gorm:"column:params"` IsDel string `json:"isDel" gorm:"column:is_del"` @@ -52,6 +52,7 @@ type DeptLable struct { func (e *Dept) Create() (Dept, error) { var doc Dept e.CreateTime = utils.GetCurrntTime() + e.UpdateTime = utils.GetCurrntTime() e.IsDel = "0" result := orm.Eloquent.Table("sys_dept").Create(&e) if result.Error != nil {