|
|
@@ -100,32 +100,27 @@ func UserIdentityList(c *gin.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
var resp interface{} |
|
|
|
switch enterprise.Kind { |
|
|
|
case enum.EnterpriseKindByCentralKitchenForSchool: |
|
|
|
//判断校企类型 |
|
|
|
if enterprise.Pvd == enum.EnterprisePvdForOnlinePayment && enterprise.Mode == enum.EnterpriseModeForSchool { |
|
|
|
resp, err = svc2.EnterpriseUserListByCentralKitchenForSchool(req) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
case enum.EnterpriseKindByCentralKitchenForFactory: |
|
|
|
break |
|
|
|
case enum.EnterpriseKindBySelfSupportForSchool: |
|
|
|
} |
|
|
|
if enterprise.Pvd == enum.EnterprisePvdForFaceScanPayment && enterprise.Mode == enum.EnterpriseModeForSchool { |
|
|
|
resp, err = svc2.EnterpriseUserListByCentralKitchenForSchool(req) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
case enum.EnterpriseKindBySelfSupportForFactory: |
|
|
|
break |
|
|
|
case enum.EnterpriseKindByNursingHome: |
|
|
|
} |
|
|
|
if enterprise.Kind == enum.EnterpriseKindByNursingHome { |
|
|
|
resp, err = svc2.EnterpriseUserListByNursingHome(req) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
break |
|
|
|
} |
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|
return |
|
|
|