新增用户添加组织字段 (#505)
Co-authored-by: alickliming <alickliming@didi.global.com>
This commit is contained in:
parent
74545012ed
commit
fab8568633
|
@ -74,17 +74,18 @@ func userAddPost(c *gin.Context) {
|
|||
now := time.Now().Unix()
|
||||
b, _ := json.Marshal([]string{pass})
|
||||
u := models.User{
|
||||
Username: f.Username,
|
||||
Password: pass,
|
||||
Passwords: string(b),
|
||||
Dispname: f.Dispname,
|
||||
Phone: f.Phone,
|
||||
Email: f.Email,
|
||||
Im: f.Im,
|
||||
IsRoot: f.IsRoot,
|
||||
LeaderId: f.LeaderId,
|
||||
UpdatedAt: now,
|
||||
UUID: models.GenUUIDForUser(f.Username),
|
||||
Username: f.Username,
|
||||
Password: pass,
|
||||
Passwords: string(b),
|
||||
Dispname: f.Dispname,
|
||||
Phone: f.Phone,
|
||||
Email: f.Email,
|
||||
Im: f.Im,
|
||||
IsRoot: f.IsRoot,
|
||||
LeaderId: f.LeaderId,
|
||||
Organization: f.Organization,
|
||||
UpdatedAt: now,
|
||||
UUID: models.GenUUIDForUser(f.Username),
|
||||
}
|
||||
|
||||
if f.LeaderId != 0 {
|
||||
|
|
Loading…
Reference in New Issue