Browse Source

fix: 新增用户校验返回用户ID

hsun 4 days ago
parent
commit
0ce2d0d2a6
2 changed files with 3 additions and 1 deletions
  1. 2 1
      controllers/users.go
  2. 1 0
      models/response/users.go

+ 2 - 1
controllers/users.go

@@ -371,6 +371,7 @@ func (this *UsersController) CheckAdd() {
 	resp := new(response.UsersAddCheckResp)
 	resp.Tips = "校验通过"
 	if exist != nil {
+		resp.UserId = exist.UserId
 		// 试用客户
 		if exist.Status == models.UserStatusTrial {
 			resp.CheckResult = 1
@@ -711,7 +712,7 @@ func (this *UsersController) TransFormal() {
 	go func() {
 		recordOb := new(models.CompanyUserOperateRecord)
 		recordOb.UserId = userItem.UserId
-		recordOb.Remark = fmt.Sprintf("%s转正式", sysUser.SysRealName)
+		recordOb.Remark = fmt.Sprintf("%s试用转正式", sysUser.SysRealName)
 		recordOb.SysUserId = sysUser.SysUserId
 		recordOb.SysUserRealName = sysUser.SysRealName
 		recordOb.CreateTime = time.Now().Local()

+ 1 - 0
models/response/users.go

@@ -8,6 +8,7 @@ import (
 type UsersAddCheckResp struct {
 	CheckResult int    `description:"校验结果:0-通过;1-试用用户;2-个人投资者;3-机构投资者"`
 	Tips        string `description:"提示语"`
+	UserId      int    `description:"用户ID"`
 }
 
 type UsersPageListResp struct {