Update sysuser.go

This commit is contained in:
wenjianzhang
2020-03-31 21:49:54 +08:00
committed by GitHub
parent 9a03eb8cc3
commit cf07fc735d
+2 -1
View File
@@ -74,7 +74,7 @@ type SysUserB struct {
Remark string `gorm:"column:remark" json:"remark"`
Params string `gorm:"column:params" json:"params"`
Status string `gorm:"column:status" json:"status"`
DataScope string `gorm:"_" json:"dataScope"`
DataScope string `gorm:"-" json:"dataScope"`
IsDel string `gorm:"column:is_del" json:"isDel"`
}
@@ -184,6 +184,7 @@ func (e *SysUser) Encrypt() (err error) {
//添加
func (e SysUser) Insert() (id int64, err error) {
e.CreateTime = utils.GetCurrntTime()
e.UpdateTime = utils.GetCurrntTime()
if err = e.Encrypt(); err != nil {
return
}