mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(admin): add internal notes to reports (#3510)
This commit is contained in:
1 parent
2d8d130be1
commit
49a1ffabbe
30 files changed
+1138
-87
No files matched your search
@@ -5,8 +5,8 @@ use reqwest::Method;
|
||||
use crate::api::generated::{
|
||||
snowflake,
|
||||
types::{
|
||||
UpdateReportRequest, UpdateReportRequestOutcome, UpdateReportRequestResolution,
|
||||
UpdateReportRequestStatus,
|
||||
ReportNoteRequest, ReportNoteResponse, UpdateReportRequest, UpdateReportRequestOutcome,
|
||||
UpdateReportRequestResolution, UpdateReportRequestStatus,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -94,6 +94,20 @@ impl AdminApiClient {
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn annotate_report(
|
||||
&self,
|
||||
report_id: &str,
|
||||
body: String,
|
||||
) -> ApiResult<ReportNoteResponse> {
|
||||
self.send(
|
||||
Method::POST,
|
||||
&format!("/admin/reports/{}/notes", urlencoding::encode(report_id)),
|
||||
Some(&ReportNoteRequest { body }),
|
||||
None,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn delete_report(
|
||||
&self,
|
||||
report_id: &str,
|
||||
|
||||
Reference in new issue
Block a user