Appearance
获取项目活动记录列表 API
| Path | Method | Created At |
|---|---|---|
| /api/projects/activities/paginate | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| project_id | string,size:24 | 项目不存在 |
| page | integer,min:1,max:100 | 页码必须是正整数 |
| page_size | integer,min:5,max:1000 | 每页数量必须是正整数 |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | string | 1 | 活动记录ID |
| projectId | string | 7da823 | 项目编号 |
| title | string | 技术对接会议 | 活动标题 |
| projectStage | string | STARTED | 项目阶段 |
| content | string | 讨论项目技术方案,明确接口规范 | 活动内容 |
| startTime | string | 2024-12-19 09:00:00 | 开始时间 |
| endTime | string | 2024-12-19 12:00:00 | 结束时间 |
| workHours | float | 8.5 | 工时 |
| participants | object_array | 参与人员 | |
| -> id | int | 1 | 用户编号 |
| -> name | string | 张三 | 姓名 |
| attachments | string | [{"name":"技术方案.pdf","url":"https://example.com/file1.pdf"}] | 附件 |
| createdAt | string | 2024-12-19 14:52:00 | 创建时间 |
| createdBy | int | 1 | 创建人 |
| createdByName | string | 李四 | 创建人姓名 |
| updatedAt | string | 2024-12-20 10:30:00 | 更新时间 |
| updatedBy | int | 2 | 更新人 |
| updatedByName | string | 王五 | 更新人姓名 |
TypeScript Result Example:
TypeScript
interface Participants {
/** 用户编号 */
id: number;
/** 姓名 */
name: string;
}
interface Result {
/** 活动记录ID */
id: string;
/** 项目编号 */
projectId: string;
/** 活动标题 */
title: string;
/** 项目阶段 */
projectStage: string;
/** 活动内容 */
content: string;
/** 开始时间 */
startTime: string;
/** 结束时间 */
endTime: string;
/** 工时 */
workHours: any;
/** 参与人员 */
participants: Participants[];
/** 附件 */
attachments: string;
/** 创建时间 */
createdAt: string;
/** 创建人 */
createdBy: number;
/** 创建人姓名 */
createdByName: string;
/** 更新时间 */
updatedAt: string;
/** 更新人 */
updatedBy: number;
/** 更新人姓名 */
updatedByName: string;
}