web: add mark as spam buttons

This commit is contained in:
2024-04-03 21:07:56 -07:00
parent 1b196a2703
commit 8abf9398e9
6 changed files with 210 additions and 1 deletions

View File

@@ -28,6 +28,22 @@ pub struct ShowThreadQuery;
)]
pub struct MarkReadMutation;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/schema.json",
query_path = "graphql/add_tag.graphql",
response_derives = "Debug"
)]
pub struct AddTagMutation;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/schema.json",
query_path = "graphql/remove_tag.graphql",
response_derives = "Debug"
)]
pub struct RemoveTagMutation;
pub async fn send_graphql<Body, Resp>(body: Body) -> Result<graphql_client::Response<Resp>, Error>
where
Body: Serialize,