DeptServiceAddDeptAsync Method

添加部门。

Definition

Namespace: QuickAdmin.Service.Admin
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.10
C#
public virtual Task<IServiceResult<long>> AddDeptAsync(
	long parentId,
	SysDeptInput input,
	CancellationToken cancellationToken = default
)

Parameters

parentId  long
所属部门 Id。
input  SysDeptInput
要添加的部门。
cancellationToken  CancellationToken  (Optional)
用于取消操作的令牌。

Return Value

TaskIServiceResultlong
Data 为新部门主键值的服务调用结果。

Implements

IDeptServiceAddDeptAsync(long, SysDeptInput, CancellationToken)

See Also