Add download qrcode to table

This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent 6b0daecd31
commit 5886272585
8 changed files with 107 additions and 15 deletions
+17
View File
@@ -73,3 +73,20 @@ pub enum LinkOverviewColumns {
Author,
Statistics,
}
#[derive(Clone, Deserialize, Serialize, Debug, PartialEq, Eq)]
pub struct QrCodeRequest {
pub link_id: String,
pub format: QrCodeFormat,
}
#[derive(Clone, Deserialize, Serialize, Debug, PartialEq, Eq)]
pub struct SvgQrCodeResponse {
pub svg: String,
}
#[derive(Clone, Deserialize, Serialize, Debug, PartialEq, Eq)]
pub enum QrCodeFormat {
Svg,
Png,
}