forked from AxTps/Starlight_Lancher
feat:移除了弹窗,服务器添加sls
This commit is contained in:
16
packages/modrinth-content-management/src/provider/mod.rs
Normal file
16
packages/modrinth-content-management/src/provider/mod.rs
Normal file
@ -0,0 +1,16 @@
|
||||
use async_trait::async_trait;
|
||||
|
||||
use crate::model::{Error, Version};
|
||||
|
||||
#[async_trait]
|
||||
pub trait ContentMetadataProvider: Send + Sync {
|
||||
async fn get_version(
|
||||
&mut self,
|
||||
version_id: &str,
|
||||
) -> Result<Option<Version>, Error>;
|
||||
|
||||
async fn get_project_versions(
|
||||
&mut self,
|
||||
project_id: &str,
|
||||
) -> Result<Vec<Version>, Error>;
|
||||
}
|
||||
Reference in New Issue
Block a user