Commit 0ad3341a authored by haoyanbin's avatar haoyanbin

username

parent 1a12c6a2
...@@ -116,11 +116,11 @@ func (e OrgTeamUser) Insert(c *gin.Context) { ...@@ -116,11 +116,11 @@ func (e OrgTeamUser) Insert(c *gin.Context) {
sSysUser := sService.SysUser{} sSysUser := sService.SysUser{}
reqSysUser := sDto.SysUserInsertReq{} reqSysUser := sDto.SysUserInsertReq{}
e.MakeContext(c).MakeOrm().MakeService(&sSysUser.Service) e.MakeContext(c).MakeOrm().MakeService(&sSysUser.Service)
reqSysUser.Username = req.UserName reqSysUser.Username = req.Username
reqSysUser.Password = "123456" reqSysUser.Password = "123456"
reqSysUser.NickName = req.Name reqSysUser.NickName = req.Name
reqSysUser.NickNameEn = req.NameEn reqSysUser.NickNameEn = req.NameEn
reqSysUser.Phone = req.UserName reqSysUser.Phone = req.Username
reqSysUser.RoleId = 1 reqSysUser.RoleId = 1
reqSysUser.Avatar = "" reqSysUser.Avatar = ""
reqSysUser.Sex = req.Sex reqSysUser.Sex = req.Sex
......
...@@ -38,7 +38,7 @@ type OrgTeamUserInsertReq struct { ...@@ -38,7 +38,7 @@ type OrgTeamUserInsertReq struct {
Sex string `json:"sex" comment:"性别"` Sex string `json:"sex" comment:"性别"`
UserImg string `json:"userImg" comment:"用户照片"` UserImg string `json:"userImg" comment:"用户照片"`
SignImg string `json:"signImg" comment:"签名照片"` SignImg string `json:"signImg" comment:"签名照片"`
UserName string `json:"userName" comment:"账号"` Username string `json:"username" comment:"账号"`
common.ControlBy common.ControlBy
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment