项目管理域把项目(Project)与任务(Task)两类核心对象抽象为 IProjectManagementService,消费方通过 DI 注入接口即可,无需关心具体供应商。
统一接口
IProjectManagementService(命名空间 Bitzsoft.Integrations.ProjectManagement)定义 7 个方法:
| 方法 | 说明 |
|---|---|
CreateProjectAsync | 创建项目 |
ListProjectsAsync | 查询项目列表 |
CreateTaskAsync | 创建任务 |
GetTaskAsync | 查询单个任务 |
UpdateTaskAsync | 更新任务信息 |
CompleteTaskAsync | 完成任务 |
ListTasksAsync | 查询任务列表 |
接口还暴露 ProviderName 属性,返回运行时供应商名称(如 "Asana")。
包结构
Bitzsoft.Integrations.ProjectManagement/ ← 抽象层Bitzsoft.Integrations.ProjectManagement.All/ ← 聚合包(拉入全部 7 家)Bitzsoft.Integrations.ProjectManagement.Asana/Bitzsoft.Integrations.ProjectManagement.Teambition/Bitzsoft.Integrations.ProjectManagement.JiraCloud/ ← 适配器(只读)Bitzsoft.Integrations.ProjectManagement.Monday/Bitzsoft.Integrations.ProjectManagement.Trello/Bitzsoft.Integrations.ProjectManagement.Ones/Bitzsoft.Integrations.ProjectManagement.PingCode/供应商清单
| 供应商 | Provider ID | 鉴权 | 文档 |
|---|---|---|---|
| Asana | asana | Personal Access Token Bearer | asana.mdx |
| Teambition | teambition | AppKey + AppSecret 换 access_token(query) | teambition.mdx |
| Jira Cloud | jira-cloud | OAuth 2.0 (3LO)(适配器,只读) | jira-cloud.mdx |
| monday.com | monday | API Key Bearer(GraphQL,无 Bearer 前缀) | monday.mdx |
| Trello | trello | API Key + Token(query 参数) | trello.mdx |
| ONES | ones | email + password 换 token Bearer | ones.mdx |
| PingCode | pingcode | API Token Bearer | pingcode.mdx |