web: add mark as spam buttons
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user