mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-26 19:36:01 +03:00
feat: define delete account db interface
This commit is contained in:
parent
4248959b13
commit
4bdbb52d8f
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
|
|||
|
||||
/// register a new user
|
||||
async fn register(&self, p: &Register) -> DBResult<()>;
|
||||
|
||||
/// delete a user
|
||||
async fn delete_user(&self, username: &str) -> DBResult<()>;
|
||||
}
|
||||
|
||||
/// Trait to clone MCDatabase
|
||||
|
|
Loading…
Reference in a new issue