fix🐛: Fix create when creating a new create_by Problem with by value of 0 (#688)

This commit is contained in:
zhangwenjian committed 2022-08-18 07:26:56 +08:00
1 parent bb65e76219
commit 66c8eb5ee8
1 file changed
+2 -1
+2 -1
View File
@@ -121,6 +121,7 @@ func (s *SysUserInsertReq) Generate(model *models.SysUser) {
model.PostId = s.PostId
model.Remark = s.Remark
model.Status = s.Status
model.CreateBy = s.CreateBy
}
func (s *SysUserInsertReq) GetId() interface{} {
@@ -185,4 +186,4 @@ func (s *SysUserById) GenerateM() (common.ActiveRecord, error) {
type PassWord struct {
NewPassword string `json:"newPassword" vd:"len($)>0"`
OldPassword string `json:"oldPassword" vd:"len($)>0"`
}
}