Appearance
获取巡检报告详情 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/routine/check/{id}/detail | GET | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | int | 1 | 记录编号 |
| title | int | 2024年第二季度 | 标题 |
| userId | int | 3 | 巡检人 |
| name | string | 张三 | 巡检人姓名 |
| projectId | int | 1 | 项目编号 |
| projectName | string | 智慧城市大数据平台 | 项目名称 |
| contents | string | 例行检查 | 巡检内容 |
| actionItems | string | 联系厂家 | 下一步计划 |
| exceptions | string | 没有发现异常 | 异常情况 |
| satisfaction | string | 满意 | 客户满意度反馈 |
| approvalStatus | enum | ApprovalStatus | 审批状态 |
| approvalComments | string | 1 | 审批人编号 |
| approvalUserId | int | 1 | 审批人ID |
| approvalUserName | string | 1 | 审批人 |
| createdAt | string | 2021-01-01 00:00:00 | 创建时间 |
| attachments | object_array | 附件列表 | |
| -> filename | string | 巡检结果报告.txt | 附件名 |
| -> path | string | https://xxx.com/hello.txt | 附件路径 |
TypeScript Result Example:
TypeScript
interface Attachments {
/** 附件名 */
filename: string;
/** 附件路径 */
path: string;
}
interface Result {
/** 记录编号 */
id: number;
/** 标题 */
title: number;
/** 巡检人 */
userId: number;
/** 巡检人姓名 */
name: string;
/** 项目编号 */
projectId: number;
/** 项目名称 */
projectName: string;
/** 巡检内容 */
contents: string;
/** 下一步计划 */
actionItems: string;
/** 异常情况 */
exceptions: string;
/** 客户满意度反馈 */
satisfaction: string;
/** 审批状态 */
approvalStatus: ResultApprovalStatus;
/** 审批人编号 */
approvalComments: string;
/** 审批人ID */
approvalUserId: number;
/** 审批人 */
approvalUserName: string;
/** 创建时间 */
createdAt: string;
/** 附件列表 */
attachments: Attachments[];
}
enum ResultApprovalStatus {
/** 审批通过 */
APPROVED = "APPROVED",
/** 审批拒绝 */
REJECTED = "REJECTED",
/** 审批中 */
PENDING = "PENDING"
}Enums
ApprovalStatus
| Const | Description |
|---|---|
| APPROVED | 审批通过 |
| REJECTED | 审批拒绝 |
| PENDING | 审批中 |