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,58 @@
<?php
namespace Leantime\Core\Domains;
/**
* Service Interface - Base interface for all services
*/
interface DomainRepository
{
/**
* patches the object by key.
*
* @param int $id Id of the object to be patched
* @param array $params Key=>value array where key represents the object field name and value the value.
* @return bool returns true on success, false on failure
*/
public function patch(int $id, array $params): bool;
/**
* updates the object by key.
*
* @param object|array $object expects the entire object to be updated as object or array
* @return array|bool Returns true on success, false on failure
*/
public function update(object|array $object): array|bool;
/**
* Creates a new object
*
* @param object|array $object Object or array to be created
* @return int|false Returns id of new element or false
*/
public function create(object|array $object): int|false;
/**
* Deletes object
*
* @param int $id Id of the object to be deleted
* @return bool Returns id of new element or false
*/
public function delete(int $id);
/**
* Gets 1 specific item
*
* @param int $id Id of the object to be retrieved
* @return object|array|false Returns object or array. False on failure or if item cannot be found
*/
public function get(int $id);
/**
* Get all items
*
* @param array|null $searchparams Search parameters
* @return array|false Returns array on success, false on failure. No results should return empty array
*/
public function query(?array $searchparams = null);
}