- PmHub介绍
- 项目管理
- 系统管理
- 流程管理
- 代码生成
- 定时任务
- 认证中心
- 技术派
- 通用文件上传接口POST
- 通用文件下载接口GET
- 通用文件下载接口POST
- 审批设置查询GET
- 审批人审批通过POST
- 本地登录-全局token获取POST
项目列表
POST
project/list
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
closeBeginTime
string
开始时间
closeEndTime
string
截止时间
keyword
string
搜索条件
pageNum
integer
必需
pageSize
integer
必需
projectType
integer
项目分类
published
integer
发布状态
stageCode
integer
必需
status
integer
必需
type
string
必需
示例
{
"closeBeginTime": "2022-12-19 00:00:00",
"closeEndTime": "2022-12-19 23:59:59",
"keyword": "项目名或者项目编号",
"pageNum": 1,
"pageSize": 10,
"projectType": 0,
"published": 0,
"stageCode": 1,
"status": 1,
"type": "collect"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:6880/project/list' \
--header 'Content-Type: application/json' \
--data-raw '{
"closeBeginTime": "2022-12-19 00:00:00",
"closeEndTime": "2022-12-19 23:59:59",
"keyword": "项目名或者项目编号",
"pageNum": 1,
"pageSize": 10,
"projectType": 0,
"published": 0,
"stageCode": 1,
"status": 1,
"type":"collect"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"msg": "操作成功",
"code": 200,
"data": {
"total": 1,
"list": [
{
"projectId": "0676f256f83c595dc97d14b4d5781aea",
"projectCode": "P20230804142431A001",
"projectName": "qyhtest",
"stageName": "项目立项阶段",
"status": 0,
"statusName": "未开始",
"projectType": 0,
"projectTypeName": "公开项目",
"published": 0,
"publishedName": "未发布",
"projectProcess": 0,
"userId": "1",
"nickName": "超级管理员",
"closeBeginTime": "2023-09-15 00:00:00",
"closeEndTime": "2023-09-30 00:00:00",
"createdTime": "2023-08-04 14:24:31",
"updatedTime": "2023-08-04 14:33:05",
"description": "qyh的测试项目",
"collected": true,
"openPrefix": 0,
"autoUpdateProcess": 0,
"openTaskPrivate": 0,
"msgNotify": 0,
"notifyDay": 2
}
],
"pageNum": 1,
"pageSize": 10,
"size": 1,
"startRow": 1,
"endRow": 1,
"pages": 1,
"prePage": 0,
"nextPage": 0,
"isFirstPage": true,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [
1
],
"navigateFirstPage": 1,
"navigateLastPage": 1
}
}
修改于 2024-03-02 16:00:16