jason před 1 rokem
rodič
revize
b38b896a1f
3 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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