未验证 提交 fab85686 编写于 作者: qd_lm's avatar qd_lm 提交者: GitHub

新增用户添加组织字段 (#505)

Co-authored-by: Nalickliming <alickliming@didi.global.com>
上级 74545012
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册