feat: improve inquiry notification links
This commit is contained in:
@@ -13,6 +13,16 @@
|
|||||||
</MudButton>
|
</MudButton>
|
||||||
|
|
||||||
<MudPaper Class="pa-4 mt-4" Elevation="1">
|
<MudPaper Class="pa-4 mt-4" Elevation="1">
|
||||||
|
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween" Class="mb-4">
|
||||||
|
<MudText Typo="Typo.h5">문의 상세</MudText>
|
||||||
|
<MudButton Variant="Variant.Filled"
|
||||||
|
Color="Color.Primary"
|
||||||
|
Href="@($"/taxbaik/admin/inquiries/{InquiryId}")"
|
||||||
|
Target="_blank">
|
||||||
|
답변 링크 열기
|
||||||
|
</MudButton>
|
||||||
|
</MudStack>
|
||||||
|
|
||||||
<MudGrid>
|
<MudGrid>
|
||||||
<MudItem xs="12" md="6">
|
<MudItem xs="12" md="6">
|
||||||
<MudText Typo="Typo.subtitle1">이름</MudText>
|
<MudText Typo="Typo.subtitle1">이름</MudText>
|
||||||
@@ -32,7 +42,9 @@
|
|||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="12">
|
<MudItem xs="12">
|
||||||
<MudText Typo="Typo.subtitle1">메시지</MudText>
|
<MudText Typo="Typo.subtitle1">메시지</MudText>
|
||||||
<MudText>@inquiry.Message</MudText>
|
<MudPaper Class="pa-3 mt-2" Outlined="true">
|
||||||
|
<MudText Style="white-space: pre-wrap;">@inquiry.Message</MudText>
|
||||||
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="12">
|
<MudItem xs="12">
|
||||||
<MudText Typo="Typo.subtitle1">상태</MudText>
|
<MudText Typo="Typo.subtitle1">상태</MudText>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var adminLink = $"{_baseUrl}/admin/inquiries/{inquiryId}";
|
var adminLink = $"{_baseUrl}/admin/inquiries/{inquiryId}";
|
||||||
|
var summary = message.Length > 180 ? message[..180] + "..." : message;
|
||||||
var text = new StringBuilder()
|
var text = new StringBuilder()
|
||||||
.AppendLine("새 문의가 접수되었습니다.")
|
.AppendLine("새 문의가 접수되었습니다.")
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
@@ -34,8 +35,8 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
.AppendLine($"이름: {name}")
|
.AppendLine($"이름: {name}")
|
||||||
.AppendLine($"연락처: {phone}")
|
.AppendLine($"연락처: {phone}")
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
.AppendLine("내용:")
|
.AppendLine("내용 요약:")
|
||||||
.AppendLine(message)
|
.AppendLine(summary)
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
.AppendLine($"답변 링크: {adminLink}")
|
.AppendLine($"답변 링크: {adminLink}")
|
||||||
.ToString();
|
.ToString();
|
||||||
|
|||||||
Reference in New Issue
Block a user