pub trait DepartmentManager {
// Required methods
fn department_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn department_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn department_delete<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn department_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Vec<Department>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn department_sample_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentSimpleList>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn department_get<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Department>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
部门管理
Required Methods§
Sourcefn department_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
创建部门
Sourcefn department_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateDepartment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
更新部门
Sourcefn department_delete<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_delete<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
删除部门
Sourcefn department_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Vec<Department>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Vec<Department>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取部门列表
Sourcefn department_sample_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentSimpleList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_sample_list<'life0, 'async_trait>(
&'life0 self,
id: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<DepartmentSimpleList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取子部门ID列表
Sourcefn department_get<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Department>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn department_get<'life0, 'async_trait>(
&'life0 self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<DepartmentList<Department>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取单个部门详情