数据库字段风格统一
This commit is contained in:
1 parent
098dfc4d1d
commit
6d187db36a
12 files changed
+128
-121
No files matched your search
+2
-2
@@ -29,7 +29,7 @@ type SysRole struct {
|
||||
Remark string `gorm:"column:remark" json:"remark"`
|
||||
Params string `gorm:"column:params" json:"params"`
|
||||
DataScope string `gorm:"-" json:"dataScope"`
|
||||
IsDel string `gorm:"column:is_del" json:"isDel"`
|
||||
IsDel int `gorm:"column:is_del" json:"isDel"`
|
||||
|
||||
Admin bool `gorm:"column:admin" json:"admin"`
|
||||
|
||||
@@ -119,7 +119,7 @@ func (role *SysRole) Insert() (id int64, err error) {
|
||||
role.CreateTime = utils.GetCurrntTime()
|
||||
role.UpdateBy = ""
|
||||
role.UpdateTime = utils.GetCurrntTime()
|
||||
role.IsDel = "0"
|
||||
role.IsDel = 0
|
||||
result := orm.Eloquent.Table("sys_role").Create(&role)
|
||||
if result.Error != nil {
|
||||
err = result.Error
|
||||
|
||||
Reference in new issue
Block a user