Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from isd-sgcu/checkin
Browse files Browse the repository at this point in the history
feat: update checkin proto
  • Loading branch information
LiddleChild authored Jul 30, 2023
2 parents c5ffc6f + be7b2e5 commit 4bb7673
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions rpkm66/checkin/event/v1/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ message Event {
message UserEvent {
Event event = 1;
bool is_taken = 2;
int64 taken_at = 3;
}

service EventService {
rpc GetAllEvents(GetAllEventsRequest) returns (GetAllEventsResponse) {}
rpc GetEventById(GetEventByEventIdRequest) returns (GetEventByEventIdResponse) {}
rpc GetEventByEventId(GetEventByEventIdRequest) returns (GetEventByEventIdResponse) {}
rpc GetEventsByUserId(GetEventsByUserIdRequest) returns (GetEventsByUserIdResponse) {}
rpc GetEventsByNamespaceId(GetEventsByNamespaceRequestId) returns (GetEventsByNamespaceResponseId) {}
rpc GetEventsByNamespaceId(GetEventsByNamespaceIdRequest) returns (GetEventsByNamespaceIdResponse) {}
}

/*
Expand Down Expand Up @@ -57,10 +58,10 @@ message GetEventsByUserIdResponse {
/*
GetEventsByNamespaceId
*/
message GetEventsByNamespaceRequestId {
message GetEventsByNamespaceIdRequest {
string namespace_id = 1;
}

message GetEventsByNamespaceResponseId {
message GetEventsByNamespaceIdResponse {
repeated Event events = 1;
}
1 change: 0 additions & 1 deletion rpkm66/checkin/staff/v1/staff.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ message AddEventToUserResponse {
message GenerateSignInTokenRequest {
string staff_user_id = 1;
string event_id = 2;
int64 end_at = 3;
}

message GenerateSignInTokenResponse {
Expand Down
2 changes: 1 addition & 1 deletion rpkm66/checkin/user/v1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ message AddEventRequest {
}

message AddEventResponse {
rpkm66.checkin.event.v1.UserEvent event = 1;
rpkm66.checkin.event.v1.Event event = 1;
}

0 comments on commit 4bb7673

Please sign in to comment.