Bladeren bron

add respData

jason 1 jaar geleden
bovenliggende
commit
b38b896a1f
3 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 1 0
      impl/vehicle/a002.go
  2. 1 0
      impl/vehicle/v001.go
  3. 2 0
      impl/vehicle/v002.go

+ 1 - 0
impl/vehicle/a002.go

@@ -27,6 +27,7 @@ func A002(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 
 	err = adm.A04(ctx, "", "", vin, respData, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord

+ 1 - 0
impl/vehicle/v001.go

@@ -28,6 +28,7 @@ func V001(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 	isMatch, err := adm.V01(ctx, plateNo, plateType, owner, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
 		respData["is_match"] = isMatch
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord

+ 2 - 0
impl/vehicle/v002.go

@@ -28,12 +28,14 @@ func V002(ctx context.Context, req *apis.CommonReq, reply *apis.CommonReply) err
 	isMatch, err := adm.V01(ctx, plateNo, plateType, owner, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
 		respData["is_match"] = isMatch
+		reply.Data = respData
 	} else {
 		return errors.NoRecord
 	}
 
 	err = adm.A04(ctx, plateNo, plateType, "", respData, &reply.LReq, providerMap, consts.RANGEONE)
 	if err == nil {
+		reply.Data = respData
 		return nil
 	} else {
 		return errors.NoRecord