getDeptInfo method

Future<DeptInfo> getDeptInfo({
  1. required String departmentID,
  2. String? operationID,
})

查询部门信息 departmentID 部门ID

Implementation

Future<DeptInfo> getDeptInfo({
  required String departmentID,
  String? operationID,
}) =>
    _channel
        .invokeMethod(
            'getDepartmentInfo',
            _buildParam({
              'departmentID': departmentID,
              'operationID': Utils.checkOperationID(operationID),
            }))
        .then((value) => Utils.toObj(value, (v) => DeptInfo.fromJson(v)));