fix🐛: Fix create when creating a new create_by Problem with by value of 0 (#688)
This commit is contained in:
1 parent
bb65e76219
commit
66c8eb5ee8
1 file changed
+2
-1
@@ -121,6 +121,7 @@ func (s *SysUserInsertReq) Generate(model *models.SysUser) {
|
|||||||
model.PostId = s.PostId
|
model.PostId = s.PostId
|
||||||
model.Remark = s.Remark
|
model.Remark = s.Remark
|
||||||
model.Status = s.Status
|
model.Status = s.Status
|
||||||
|
model.CreateBy = s.CreateBy
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SysUserInsertReq) GetId() interface{} {
|
func (s *SysUserInsertReq) GetId() interface{} {
|
||||||
@@ -185,4 +186,4 @@ func (s *SysUserById) GenerateM() (common.ActiveRecord, error) {
|
|||||||
type PassWord struct {
|
type PassWord struct {
|
||||||
NewPassword string `json:"newPassword" vd:"len($)>0"`
|
NewPassword string `json:"newPassword" vd:"len($)>0"`
|
||||||
OldPassword string `json:"oldPassword" vd:"len($)>0"`
|
OldPassword string `json:"oldPassword" vd:"len($)>0"`
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user