Add filtering by Tag to /images endpoint
This commit is contained in:
1 parent
de4041bd17
commit
7d05c9b8bf
3 files changed
+41
-9
No files matched your search
@@ -100,6 +100,19 @@ pub struct PhotosResponse {
|
||||
pub dirs: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct FilesRequest {
|
||||
pub path: String,
|
||||
pub tag_ids: Option<Vec<i32>>,
|
||||
pub tag_filter_mode: Option<FilterMode>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Deserialize)]
|
||||
pub enum FilterMode {
|
||||
Any,
|
||||
All,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ThumbnailRequest {
|
||||
pub path: String,
|
||||
|
||||
Reference in new issue
Block a user