Bitzsoft.Integrations.Ticketing.Zentao
1.0.1
dotnet add package Bitzsoft.Integrations.Ticketing.Zentao --version 1.0.1
NuGet\Install-Package Bitzsoft.Integrations.Ticketing.Zentao -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.Ticketing.Zentao" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Ticketing.Zentao" Version="1.0.1" />
<PackageReference Include="Bitzsoft.Integrations.Ticketing.Zentao" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.Ticketing.Zentao --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bitzsoft.Integrations.Ticketing.Zentao, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.Ticketing.Zentao@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.Ticketing.Zentao&version=1.0.1
#tool nuget:?package=Bitzsoft.Integrations.Ticketing.Zentao&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bitzsoft.Integrations.Ticketing.Zentao
禅道 Zentao 工单系统服务实现,实现 ITicketService 统一接口。
功能特性
- 创建工单(映射为禅道 bug:主题、步骤、优先级、标签)
- 查询单个工单详情
- 更新工单(主题、步骤、优先级)
- 分配工单给处理人(assignTo)
- 变更工单状态(activate / resolve / close)
- 添加工单评论/回复
- 查询工单列表(按状态、处理人过滤,分页)
- Session Token 鉴权(POST /api.php/v1/tokens 换 token),支持静态 Access Token
安装
dotnet add package Bitzsoft.Integrations.Ticketing.Zentao
配置
{
"Ticketing": {
"Zentao": {
"BaseUrl": "http://zentao.example.com/api.php/v1",
"UserName": "admin",
"Password": "your-password"
}
}
}
也可使用静态 Access Token(跳过 /tokens 换取流程):
{
"Ticketing": {
"Zentao": {
"BaseUrl": "http://zentao.example.com/api.php/v1",
"AccessToken": "your-access-token"
}
}
}
注册服务
services.AddZentaoTicket(configuration);
// 或单独注册
services.AddZentaoTicket(options =>
{
options.BaseUrl = "http://zentao.example.com/api.php/v1";
options.UserName = "admin";
options.Password = "your-password";
});
使用示例
public class HelpdeskService
{
private readonly ITicketService _ticketing;
public HelpdeskService(ITicketService ticketing)
=> _ticketing = ticketing;
public Task<TicketInfo> CreateAsync(string title, string steps)
=> _ticketing.CreateTicketAsync(new CreateTicketRequest
{
Subject = title,
Description = steps,
Priority = TicketPriority.High
});
}
鉴权说明
禅道 REST API(v1)鉴权流程:
- Session Token 模式(默认):以
account/password向/api.php/v1/tokens换取token, 之后业务请求以Token {session}头携带。Token 管理器自动缓存与刷新。 - Access Token 模式:直接使用静态 Access Token,跳过换取流程。
依赖
| 包 | 说明 |
|---|---|
| Bitzsoft.Integrations.Ticketing | 工单系统服务抽象层 |
| Bitzsoft.Integrations.Core | 公共基座 |
| Bitzsoft.Integrations.Compatibility | 多 TFM 兼容工具 |
| Bitzsoft.Integrations.RequestLogging | 出站请求审计日志 |
相关包
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.1)
- Bitzsoft.Integrations.Core (>= 1.0.1)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.1)
- Bitzsoft.Integrations.Ticketing (>= 1.0.1)
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
-
net5.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.1)
- Bitzsoft.Integrations.Core (>= 1.0.1)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.1)
- Bitzsoft.Integrations.Ticketing (>= 1.0.1)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 5.0.0)
-
net8.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.1)
- Bitzsoft.Integrations.Core (>= 1.0.1)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.1)
- Bitzsoft.Integrations.Ticketing (>= 1.0.1)
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Bitzsoft.Integrations.Ticketing.Zentao:
| Package | Downloads |
|---|---|
|
Bitzsoft.Integrations.Ticketing.All
工单系统服务聚合包 — 包含全部供应商实现(Zendesk / 禅道 Zentao / Freshdesk) |
GitHub repositories
This package is not used by any popular GitHub repositories.