Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add media type field in resource file type #27

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Conversation

Bill2015
Copy link
Owner

This change can let me easily determine the resource type and generate a thumbnail for it.

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct ResourceFileDo {
    pub uuid: String,
    pub name: String,
    pub path: String,
    pub ext: Option<String>,
+   pub media_type: String,
}

@Bill2015 Bill2015 added the enhancement New feature or request label Feb 25, 2024
@Bill2015 Bill2015 added this to the First stable release milestone Feb 25, 2024
@Bill2015 Bill2015 merged commit 84d19da into master Mar 4, 2024
1 check passed
@Bill2015 Bill2015 deleted the develop-resource-type branch March 4, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant