Skip to main content

openlark_platform/admin/v1/password/
mod.rs

1//! Password module
2
3use openlark_core::config::Config;
4
5pub mod reset;
6
7/// password 资源服务
8#[derive(Debug, Clone)]
9pub struct PasswordService {
10    config: Config,
11}
12
13impl PasswordService {
14    /// 创建新的 password 服务
15    pub fn new(config: Config) -> Self {
16        Self { config }
17    }
18
19    /// 重置密码
20    pub fn reset(&self) -> reset::ResetPasswordRequestBuilder {
21        reset::ResetPasswordRequestBuilder::new(self.config.clone())
22    }
23}