同步镜像日志列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\SyncImageLogModel::logList |
| 所属业务 | 产品管理 |
| 来源模块/系统 | 同步镜像日志模型 |
功能说明
同步镜像日志列表
调用示例
$param = ['keywords' => '示例关键字', 'page' => 1, 'limit' => 1, 'orderby' => 'id', 'sort' => 'string'];
$result = (new \app\common\model\SyncImageLogModel())->logList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.keywords | string | 否 | — | — | 关键字 |
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.orderby | string | 否 | — | — | 排序 id,create_time |
param.sort | string | 否 | — | — | 升/降序 asc,desc |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 同步镜像日志 |
list[].id | int | 同步镜像日志ID |
list[].product_id | int | 商品ID |
list[].name | string | 商品名称 |
list[].result | string | 同步结果 |
list[].create_time | int | 同步时间 |
count | int | 同步镜像日志总数 |
正常返回
{
"list": [
{
"id": 1,
"product_id": 1,
"name": "示例名称",
"result": "string",
"create_time": 1752984000
}
],
"count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |