mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-24 14:35:46 +00:00
feat: def traits to record captcha fetch stats
This commit is contained in:
parent
851874f8cf
commit
0d395ea67e
@ -223,6 +223,15 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
|
|||||||
|
|
||||||
/// mark a notification read
|
/// mark a notification read
|
||||||
async fn mark_notification_read(&self, username: &str, id: i32) -> DBResult<()>;
|
async fn mark_notification_read(&self, username: &str, id: i32) -> DBResult<()>;
|
||||||
|
|
||||||
|
/// record PoWConfig fetches
|
||||||
|
async fn record_fetch(&self, key: &str) -> DBResult<()>;
|
||||||
|
|
||||||
|
/// record PoWConfig solves
|
||||||
|
async fn record_solve(&self, key: &str) -> DBResult<()>;
|
||||||
|
|
||||||
|
/// record PoWConfig confirms
|
||||||
|
async fn record_confirm(&self, key: &str) -> DBResult<()>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq)]
|
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user