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\Models;
/**
* ElementDefinition model — defines an element type within a structure
* (e.g., "milestone", "task", "goal").
*/
class ElementDefinition
{
public ?int $id = null;
public int $structureId = 0;
public string $typeKey = '';
public string $label = '';
public string $description = '';
public ?string $domainReference = null;
public int $sortOrder = 0;
public ?string $meta = null;
public ?string $createdAt = null;
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Leantime\Core\WorkStructure\Models;
/**
* RelationshipDefinition model — defines intra-structure relationships
* (e.g., "task belongs_to milestone").
*/
class RelationshipDefinition
{
public ?int $id = null;
public int $structureId = 0;
public int $fromElementId = 0;
public int $toElementId = 0;
public string $relationshipType = '';
public string $description = '';
public ?string $meta = null;
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Leantime\Core\WorkStructure\Models;
/**
* StructureMapping model — defines cross-structure element mappings
* (e.g., Logic Model "output" → Project "milestone").
*/
class StructureMapping
{
public ?int $id = null;
public int $sourceStructureId = 0;
public int $sourceElementId = 0;
public int $targetStructureId = 0;
public int $targetElementId = 0;
public string $mappingType = 'generates';
public ?string $meta = null;
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Leantime\Core\WorkStructure\Models;
/**
* WorkStructure model — defines a structure type (e.g., "Project", "Logic Model").
*/
class WorkStructure
{
public ?int $id = null;
public string $title = '';
public string $description = '';
public string $type = 'custom';
public ?int $createdBy = null;
public ?string $meta = null;
public ?string $createdAt = null;
public ?string $modifiedAt = null;
/** @var ElementDefinition[] */
public array $elements = [];
/** @var RelationshipDefinition[] */
public array $relationships = [];
}