---
title: "获取设备命令日志"
method: POST
path: "/api/v1/things/device/msg/send-log/index"
tags: ["things/device/msg", "thingsDeviceMsg"]
---

# 获取设备命令日志

`POST /api/v1/things/device/msg/send-log/index`

## Request body

- DeviceMsgSendLogIndexReq
  - `actions` string[]
  - `areaID` string — 只有管理员有权限
  - `areaIDPath` string — 只有管理员有权限
  - `areaIDs` string[] — 只有管理员有权限
  - `dataID` string — 模糊查询
  - `dataIDs` string[] — 精确查询
  - `deviceName` string — 设备名
  - `groupIDPaths` string[] — 只有管理员有权限
  - `groupIDs` integer[] — 只有管理员有权限
  - `page` PageInfo
    - `orders` OrderBy[] — 排序
      - `field` string — 排序的字段名
      - `sort` integer — 排序方式：1 从小到大, 2 从大到小
    - `page` integer — 页码
    - `size` integer — 每页大小
  - `productCategoryID` integer — 只有管理员有权限
  - `productID` string — 产品id
  - `projectID` string — 只有管理员有权限
  - `resultCode` integer — 请求结果状态,200为成功
  - `timeEnd` string — 时间的结束(毫秒时间戳)
  - `timeStart` string — 获取时间的开始(毫秒时间戳)
  - `userID` string
  - `withUser` boolean — 同时返回用户信息

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` DeviceMsgSendLogIndexResp
    - `list` DeviceMsgSendLogInfo[], required — 数据
      - `account` string
      - `action` string — 操作类型 propertySend:属性控制 actionSend:操作控制 propertyGetReportSend:获取最新属性请求
      - `content` string — 操作的内容
      - `dataID` string — identify
      - `deviceName` string
      - `productID` string
      - `resultCode` integer — 请求结果状态,200为成功
      - `timestamp` string — 发生时间戳(毫秒时间戳)
      - `traceID` string — 服务器端事务id
      - `user` UserCore
        - `createdTime` string — 创建时间
        - `email` string — 邮箱
        - `headImg` string — 用户头像
        - `lastIP` string — 最后登录ip
        - `nickName` string — 用户的昵称
        - `phone` string — 手机号
        - `regIP` string — 注册ip
        - `userID` string — 用户id
        - `userName` string — 用户名(唯一)
      - `userID` string
    - `page` integer — 页码
    - `pageSize` integer — 每页大小
    - `total` integer
  - `msg` string

---

[API](https://skmtc.net/unitedrhino/apis/things-api.md) · [All operations](https://skmtc.net/unitedrhino/apis/things-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unitedrhino/things-api/versions/f3bdeb916389/schema)
