-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from LuongXuanNhat/16.ChatAI
Test
- Loading branch information
Showing
85 changed files
with
1,742 additions
and
9,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# VietNamHistory | ||
<h5>The project is in the development stage</h5> | ||
## You can get all my materials for this project here : https://drive.google.com/drive/folders/1EUq5xxeMOWacea59xSQnLhdyWzs5yzZZ?usp=sharing | ||
<br/> | ||
## Description project at youtube: https://www.youtube.com/watch?v=NqTf46UVhHc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace VNH.Application.Common.Contants | ||
{ | ||
public static class ConstantNofication | ||
{ | ||
// Post | ||
public static string CommentPost(string name) | ||
{ | ||
return "[ "+name+" ]" + " đã bình luận một bài viết của bạn"; | ||
} | ||
public static string LikePost(string name) | ||
{ | ||
return "[ " + name + " ]" + " đã thích một bài viết của bạn"; | ||
} | ||
|
||
// Forum | ||
public static string CommentAnswer(string name) | ||
{ | ||
return "[ " + name + " ]" + " đã bình luận trong câu hỏi của bạn"; | ||
} | ||
public static string AnswerTheQuestion(string name) | ||
{ | ||
return "[ " + name + " ]" + " đã 'trả lời' một câu hỏi của bạn"; | ||
} | ||
public static string LikeQuestion(string name) | ||
{ | ||
return "[ " + name + " ]" + " đã tán thành một câu hỏi của bạn"; | ||
} | ||
public static string LikeAnswer(string name) | ||
{ | ||
return "[ " + name + " ]" + " đã 'tán thành' một câu trả lời của bạn"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
| ||
namespace VNH.Application.Common.Contants | ||
{ | ||
public static class ConstantUrl | ||
{ | ||
public const string UrlPostDetail = "/discover/"; | ||
public const string UrlQuestionDetail = "/forum/"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
VNH.Application/DTOs/Catalog/Notifications/NotificationDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace VNH.Application.DTOs.Catalog.Notifications | ||
{ | ||
public class NotificationDto | ||
{ | ||
public Guid? Id { get; set; } | ||
public Guid UserId { get; set; } | ||
public Guid? NotificationId { get; set; } = Guid.Empty; | ||
public Guid? IdObject { get; set; } | ||
public string? Content { get; set; } | ||
public DateTime? Date { get; set; } | ||
public string? Url { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
VNH.Application/Interfaces/Catalog/NotificationServices/INotificationService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VNH.Application.DTOs.Catalog.Notifications; | ||
using VNH.Application.DTOs.Common.ResponseNotification; | ||
using VNH.Domain.Entities; | ||
|
||
namespace VNH.Application.Implement.Catalog.NotificationServices | ||
{ | ||
public interface INotificationService | ||
{ | ||
Task<ApiResult<List<NotificationDto>>> GetAll(string userId); | ||
Task<ApiResult<NotificationDto>> Add(string title); | ||
Task AddNotificationDetail(NotificationDto notification); | ||
Task<ApiResult<NotificationDto>> Update(NotificationDto notification); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using AutoMapper; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VNH.Application.DTOs.Catalog.MultipleChoiceDto; | ||
using VNH.Domain.Entities; | ||
using VNH.Domain; | ||
using VNH.Application.DTOs.Catalog.Notifications; | ||
|
||
namespace VNH.Application.Mappers | ||
{ | ||
public class NotifiMapper : Profile | ||
{ | ||
public NotifiMapper() { | ||
CreateMap<NotificationDetail, NotificationDto>().ReverseMap(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace VNH.Domain.Entities | ||
{ | ||
public class ExamHistoryMultipleChoice | ||
{ | ||
[Key] | ||
public Guid Id { get; set; } | ||
public Guid ExamHistoryId { get; set; } | ||
public ExamHistory ExamHistory { get; set; } | ||
|
||
public Guid MultipleChoiceId { get; set; } | ||
public MultipleChoice MultipleChoice { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.