OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View 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
) {}
}

View 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
) {}
}

View 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
) {}
}