OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
28
app/Core/WorkStructure/Events/ElementTypeRegistered.php
Normal file
28
app/Core/WorkStructure/Events/ElementTypeRegistered.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\WorkStructure\Events;
|
||||
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Fired when element types are added to a structure.
|
||||
*/
|
||||
class ElementTypeRegistered
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param int $structureId The structure ID
|
||||
* @param string $typeKey The element type key
|
||||
* @param string $label The element label
|
||||
*/
|
||||
public function __construct(
|
||||
public int $structureId,
|
||||
public string $typeKey,
|
||||
public string $label
|
||||
) {}
|
||||
}
|
||||
28
app/Core/WorkStructure/Events/MappingCreated.php
Normal file
28
app/Core/WorkStructure/Events/MappingCreated.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\WorkStructure\Events;
|
||||
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Fired when cross-structure mappings are defined.
|
||||
*/
|
||||
class MappingCreated
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param int $sourceStructureId The source structure ID
|
||||
* @param int $targetStructureId The target structure ID
|
||||
* @param string $mappingType The mapping type (generates, equivalent, informs)
|
||||
*/
|
||||
public function __construct(
|
||||
public int $sourceStructureId,
|
||||
public int $targetStructureId,
|
||||
public string $mappingType
|
||||
) {}
|
||||
}
|
||||
28
app/Core/WorkStructure/Events/StructureRegistered.php
Normal file
28
app/Core/WorkStructure/Events/StructureRegistered.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\WorkStructure\Events;
|
||||
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Fired when a new work structure is registered.
|
||||
*/
|
||||
class StructureRegistered
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param int $structureId The registered structure ID
|
||||
* @param string $title The structure title
|
||||
* @param string $type The structure type (system, plugin, custom)
|
||||
*/
|
||||
public function __construct(
|
||||
public int $structureId,
|
||||
public string $title,
|
||||
public string $type
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user