Proje: Okul.com.tr CRM · Hub: Okul.com.tr CRM — Domain

CRM Makale Yorumları Moderasyon

Status Değerleri (string)

UI etiketistatus değeri
Beklemede"null" (string — API’ye filter[status]=null gönderilir)
Onaylandı"1"
Reddedildi"0"

Approve/Reject Sistemi

  • ArticleCommentService.approve(id)PATCH /approve — body boş {}
  • ArticleCommentService.reject(id)PATCH /reject — body boş {}

Okul yorumlarından farklı: approve/reject’te approved_type veya reject_stage gönderilmez.

Onay Sistem Etkileri (ActionConfirmationDialog)

1. Customer.io'ya event gönderilecek (info)
2. B2B kullanıcısına bildirim gönderilecek (success)
3. B2C kullanıcısına e-posta/bildirim gönderilecek (success)
4. Yorum herkese açık olarak yayınlanacak (warning)

Red Sistem Etkileri

1. Yorum reddedilecek ve yayınlanmayacak (warning)
2. Customer.io'ya red eventi gönderilecek (info)
3. Kullanıcıya red bildirimi/e-postası gönderilecek (warning)

Filtreleme

API’de desteklenen filtreler: id, article_id, user_id, user_type_id, status, approved_by, trashed

trashed filtresi:

  • "with" → silinmişlerle birlikte
  • "only" → sadece silinmişler

Includes

includes: ['article', 'user', 'approvedBy']

Ayrım: Okul vs Makale Yorumları

Makale YorumlarıOkul Yorumları
approve body{} (boş){ approved_type: 'positive' }
reject body{} (boş){ reject_stage, reject_note? }
Status tipstring “0”/“1”/nullboolean/number/string (karmaşık)
comment_negativeYokVar