feat: добавил изменение промта для админа
Backend CI / build-and-test (push) Failing after 11m26s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Failing after 14m2s
Frontend CI / build-and-check (push) Failing after 19m55s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 14m7s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 14m59s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Failing after 15m0s

This commit is contained in:
2026-05-21 21:58:33 +03:00
parent 27a2811806
commit 935e4ed37a
22 changed files with 1880 additions and 15 deletions
+8
View File
@@ -11,10 +11,12 @@ import type {
PagedResult,
ReviewDto,
ReviewQuery,
ReviewPromptDto,
SyncResultDto,
SyncScheduleRequest,
SyncStatusDto,
TagDto,
UpdateReviewPromptRequest,
UserAchievementDto,
CurrentUserDto,
UserDto,
@@ -183,6 +185,12 @@ export const reviewsApi = {
method: 'POST',
body: JSON.stringify({ lectureId: Number(lectureId), rating, text }),
}),
getPrompt: () => apiRequest<ReviewPromptDto>('/reviews/llm-prompt'),
updatePrompt: (payload: UpdateReviewPromptRequest) =>
apiRequest<ReviewPromptDto>('/reviews/llm-prompt', {
method: 'PUT',
body: JSON.stringify(payload),
}),
listPage: listReviewsPage,
async list(query: ReviewQuery = { PageSize: 100 }) {
return (await listReviewsPage(query)).items
+9
View File
@@ -136,6 +136,15 @@ export interface ReviewDto {
createdAt: string
}
export interface ReviewPromptDto {
prompt: string
updatedAt?: string | null
}
export interface UpdateReviewPromptRequest {
prompt: string
}
export interface AchievementDto {
id: number
name?: string | null