Skip to content

使用php的Trait代码重用的机制,增加系统的灵活性和可扩展性。
trait在基类中大量使用,可以提高代码的复用性,减少代码的冗余度。

// 接收数据trait
tmcore/traits/DataTrait.php

// 返回错误trait
tmcore/traits/ErrorTrait.php

// 消息队列trait
tmcore/traits/JobTrait.php

// json工具trait
tmcore/traits/JsonTrait.php

// 数据库模型trait
tmcore/traits/ModelTrait.php

// 事务处理trait
tmcore/traits/TransTrait.php

Released under the Apache-2.0 License.