From 69c8144e9668645e76c996cb8ffd66de23c12ccb Mon Sep 17 00:00:00 2001 From: Maly Date: Sun, 6 Dec 2020 06:26:48 +0900 Subject: [PATCH] [MODIFY] #72 Add the outing_id in responses --- service/mapper/student_outing_mapper.py | 1 + service/student_outing_service.py | 1 + 2 files changed, 2 insertions(+) diff --git a/service/mapper/student_outing_mapper.py b/service/mapper/student_outing_mapper.py index 4d7b444..7526d16 100644 --- a/service/mapper/student_outing_mapper.py +++ b/service/mapper/student_outing_mapper.py @@ -13,6 +13,7 @@ def get_student_outings_mapper(self, outings: List["Outing"], start: int, end: i for outing in outings[start:end]: outing_proto = StudentOuting() + outing_proto.outing_id = outing.outing_uuid outing_proto.place = outing.place outing_proto.reason = outing.reason outing_proto.start_time = int(time.mktime(outing.start_time.timetuple())) diff --git a/service/student_outing_service.py b/service/student_outing_service.py index 5692dc2..e604138 100644 --- a/service/student_outing_service.py +++ b/service/student_outing_service.py @@ -63,6 +63,7 @@ def get_outing_inform(self, request: proto.GetOutingInformRequest, context): return proto.GetOutingInformResponse( status=200, + outing_id=outing.outing_uuid, place=outing.place, reason=outing.reason, start_time=int(mktime(outing.start_time.timetuple())),