shao 3 days ago
parent
commit
0224e19eb5
2 changed files with 3 additions and 3 deletions
  1. 1 1
      rpc_idl
  2. 2 2
      service/protocol.go

+ 1 - 1
rpc_idl

@@ -1 +1 @@
-Subproject commit 0a599189f97baf0fbfe0328bb52dc0204333bfc0
+Subproject commit 69c0d69921d9a11c2a185993cf91496f2588c3e2

+ 2 - 2
service/protocol.go

@@ -47,7 +47,7 @@ func (s *ProtocolServer) GetPatientTypeList(ctx context.Context, in *pb.PatientT
 		return nil, status.Errorf(codes.Internal, "patient_type find err %v", err)
 	}
 	for _, pt := range res.GetPatientTypeList() {
-		pt.PatientTypeLocal = pt.PatientTypeName
+		pt.PatientTypeNameLocal = pt.PatientTypeName
 	}
 	return &res, nil
 }
@@ -68,7 +68,7 @@ func (s *ProtocolServer) GetBodyPartList(ctx context.Context, in *pb.BodyPartReq
 		return nil, status.Errorf(codes.Internal, "body_part find err %v", err)
 	}
 	for _, pt := range res.GetBodyPartList() {
-		pt.BodyPartLocal = pt.BodyPartName
+		pt.BodyPartNameLocal = pt.BodyPartName
 	}
 	return &res, nil
 }