working on course comment

This commit is contained in:
2025-09-12 22:05:41 +03:30
parent 54b10d0d02
commit 09ef1b979e
12 changed files with 151 additions and 60 deletions
@@ -10,6 +10,7 @@ message CourseDTO {
Id languageId = 2;
string title = 3;
string image = 4;
string description = 5;
}
@@ -9,7 +9,7 @@ import "Proto/Shared.proto";
message GetAllCourseQuery{
Pagination pagination = 1;
}
message GetCourseByTitleQuery{
message GetCoursesByTitleQuery{
string title = 1;
}
@@ -17,6 +17,6 @@ service CourseGrpc {
rpc Create (CreateCourseCommand) returns (CourseDTO);
rpc Update (UpdateCourseCommand) returns (CourseDTO);
rpc GetAll (GetAllCourseQuery) returns (GetAllCourseDTO);
rpc GetByTitle (GetCourseByTitleQuery) returns (CourseDTO);
rpc GetByTitle (GetCoursesByTitleQuery) returns (CourseDTO);
rpc GetById (GetCourseByIdQuery) returns (CourseDTO);
}
@@ -0,0 +1,10 @@
using VizhTalk.BuildingBlocks.Domain.Contract;
namespace VizhTalk.Grpc.Learning.Course;
public sealed partial class GetAllCourseQuery : IQuery<GetAllCourseDTO>;
public sealed partial class GetCoursesByTitleQuery : IQuery<CourseDTO>;
public sealed partial class GetCourseByIdQuery : IQuery<CourseDTO>;