硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
621 B

<?php
$app = require __DIR__ . '/app.php';
/** @var \WeWork\Api\Department $department */
$department = $app->get('department');
try {
$department->create([
'name' => '广州研发中心',
'parentid' => 1,
'order' => 1,
'id' => 1024
]);
} catch (Exception $e) {
}
try {
$department->update([
'id' => 1024,
'name' => '广州研发中心',
]);
} catch (Exception $e) {
}
try {
$department->delete(1024);
} catch (Exception $e) {
}
try {
$department->list();
} catch (Exception $e) {
}
try {
$department->list(1);
} catch (Exception $e) {
}