Skip to content
Malcolm edited this page Jul 8, 2016 · 1 revision

日志接口

主要举出大库和项目的日志接口。

获取大库日志列表

获取大库全部日志列表。

GET /owner/log/repositories/:repoId

Response

{
  "res": true,
  "data": [
    {
      "id": 41,
      "type": "AUDIT_OK",
      "scope": "repo",
      "loggerId": 1,
      "operation": "图标 {{icon:332}} 通过了审核",
      "createdAt": "2015-08-27T07:14:46.000Z",
      "updatedAt": "2015-08-27T07:14:46.000Z",
      "logCreator": {
        "id": 9,
        "name": "xiaohua.zhang",
        "actor": 1
      }
    }
  ]
}

获取项目日志列表

获取项目全部日志列表,项目成员均可访问。

GET /user/log/projects/:projectId

Response

{
  "res": true,
  "data": [
    {
      "id": 41,
      "type": "PROJECT_ADD",
      "scope": "project",
      "loggerId": 1,
      "operation": "项目 ${pro:123} 新增了图标 ${icon:12}、${icon:22}",
      "createdAt": "2015-08-27T07:14:46.000Z",
      "updatedAt": "2015-08-27T07:14:46.000Z",
      "logCreator": {
        "id": 9,
        "name": "xiaohua.zhang",
        "actor": 1
      }
    }
  ]
}
Clone this wiki locally