working on course comment
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user