From 4e25dbfffef2030c8d7519854a48f3ec6975c918 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Sat, 22 Jun 2024 12:57:44 +0700 Subject: [PATCH] feat: FindByStudentIdRequest --- rpkm67/auth/user/v1/user.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rpkm67/auth/user/v1/user.proto b/rpkm67/auth/user/v1/user.proto index b7305ed..7c3de90 100644 --- a/rpkm67/auth/user/v1/user.proto +++ b/rpkm67/auth/user/v1/user.proto @@ -7,6 +7,7 @@ option go_package = "rpkm67/auth/user/v1"; service UserService { rpc Create(CreateUserRequest) returns (CreateUserResponse){} rpc FindOne(FindOneUserRequest) returns (FindOneUserResponse){} + rpc FindByStudentId(FindByStudentIdRequest) returns (FindByStudentIdResponse){} // rpc Update(UpdateUserRequest) returns (UpdateUserResponse){} // rpc Delete(DeleteRequest) returns (DeleteResponse){} } @@ -44,6 +45,15 @@ message FindOneUserResponse{ User user = 1; } +// FindByStudentId +message FindByStudentIdRequest{ + string studentId = 1; +} + +message FindByStudentIdResponse{ + User user = 1; +} + // Update // message UpdateUserRequest{ // string id = 1;