Browse Source

用户登录判断是否是潜在状态

xingzai 3 years ago
parent
commit
95489ba704
2 changed files with 4 additions and 0 deletions
  1. 3 0
      controllers/user.go
  2. 1 0
      models/user.go

+ 3 - 0
controllers/user.go

@@ -173,6 +173,9 @@ func (this *UserController) Login() {
 	resp := new(models.LoginResp)
 	resp.UserId = userId
 	resp.Authorization = token
+	if user.CompanyId == 1 {
+		resp.IsPotential = true
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp

+ 1 - 0
models/user.go

@@ -128,6 +128,7 @@ type LoginResp struct {
 	Status        string `description:"状态"`
 	EndDate       string `description:"到期日期"`
 	ProductName   string `description:"客户类型名称"`
+	IsPotential   bool   `description:"是否是潜在"`
 }
 
 type CheckStatusResp struct {