基础服务模块,仅提供核心物品管理能力:
物品定义管理:
仓库系统:
基础服务:
// 添加物品到仓库
ItemService::addItem(
userId: int,
itemId: int,
quantity: int,
warehouse: string
);
// 仓库间转移物品
ItemService::transferItem(
userId: int,
itemId: int,
fromWarehouse: string,
toWarehouse: string,
quantity: int
);
// 获取仓库物品列表
ItemService::getWarehouseItems(
userId: int,
warehouse: string
);
| 模块 | 依赖类型 | 说明 |
|---|---|---|
| Game | 强依赖 | 仓库容量扩展依赖玩家等级 |
| Log | 弱依赖 | 物品操作日志记录(可选) |