Skip to content

Commit

Permalink
feat: FindByStudentIdRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 22, 2024
1 parent 23ad78f commit 4e25dbf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rpkm67/auth/user/v1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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){}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4e25dbf

Please sign in to comment.