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
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user