zhangxinlei1996 3 years ago
parent
commit
c1658b1e48
5 changed files with 6 additions and 0 deletions
  1. 1 0
      api/internal/logic/entinfologic.go
  2. 1 0
      api/internal/types/types.go
  3. 2 0
      api/userCenter.api
  4. 1 0
      entity/ent.go
  5. 1 0
      service/entService.go

+ 1 - 0
api/internal/logic/entinfologic.go

@@ -44,6 +44,7 @@ func (l *EntInfoLogic) EntInfo(req *types.CheckEntReq) (resp *types.EntInfoResp,
 		AuthState:        res.Data.AuthState,
 		ContactPerson:    res.Data.ContactPerson,
 		ContactPhone:     res.Data.ContactPhone,
+		AuthType:         res.Data.AuthType,
 	}
 	return &types.EntInfoResp{
 		Error_code: res.ErrorCode,

+ 1 - 0
api/internal/types/types.go

@@ -131,6 +131,7 @@ type EntInfo struct {
 	AuthState        int64  `json:"authStatus"`
 	ContactPerson    string `json:"contactPerson"`
 	ContactPhone     string `json:"contactPhone"`
+	AuthType         int64  `json:"authType"` //审核状态 1:待审核  2:审核通过 3:审核不通过
 }
 
 type ExamineInfoReq struct {

+ 2 - 0
api/userCenter.api

@@ -139,6 +139,8 @@ type (
 		AuthState        int64  `json:"authStatus"`
 		ContactPerson    string `json:"contactPerson"`
 		ContactPhone     string `json:"contactPhone"`
+		AuthType         int64  `json:"authType"` //审核状态 1:待审核  2:审核通过 3:审核不通过
+
 	}
 
 	//审核入参

+ 1 - 0
entity/ent.go

@@ -524,6 +524,7 @@ func (this *CheckEnt) Info() *EntInfoData {
 		info.AuthState = common.Int64All(data["auth_status"])
 		info.ContactPerson = common.ObjToString(data["linkman_name"])
 		info.ContactPhone = common.ObjToString(data["linkman_phone"])
+		info.AuthType = common.Int64All(data["audit_status"])
 	}
 	return &info
 }

+ 1 - 0
service/entService.go

@@ -248,6 +248,7 @@ func (this *EntService) Info(data *userCenter.CheckEntReq) (int64, string, *user
 		AuthState:        rdata.AuthState,
 		ContactPerson:    rdata.ContactPerson,
 		ContactPhone:     rdata.ContactPhone,
+		AuthType:         rdata.AuthType,
 	}
 	return entity.SuccessCode, "", entInfoData
 }