OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
28
app/Core/WorkStructure/Models/ElementDefinition.php
Normal file
28
app/Core/WorkStructure/Models/ElementDefinition.php
Normal 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;
|
||||
}
|
||||
24
app/Core/WorkStructure/Models/RelationshipDefinition.php
Normal file
24
app/Core/WorkStructure/Models/RelationshipDefinition.php
Normal 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;
|
||||
}
|
||||
24
app/Core/WorkStructure/Models/StructureMapping.php
Normal file
24
app/Core/WorkStructure/Models/StructureMapping.php
Normal 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;
|
||||
}
|
||||
31
app/Core/WorkStructure/Models/WorkStructure.php
Normal file
31
app/Core/WorkStructure/Models/WorkStructure.php
Normal 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 = [];
|
||||
}
|
||||
Reference in New Issue
Block a user