feat 获取新token

This commit is contained in:
cheche
2024-01-15 12:57:47 +08:00
parent 5b818c8e10
commit de74bc6868
3 changed files with 50 additions and 0 deletions

View File

@@ -51,4 +51,14 @@ public class AssignmentsController : ControllerBase
{
await _assignmentService.UpdateDeviceTaskStatusAsync(request);
}
/// <summary>
/// 获取新token
/// </summary>
/// <param name="taskId"></param>
/// <returns></returns>
[HttpGet("token")]
public async Task<string> Token(long taskId)
{
return await _assignmentService.Token(taskId);
}
}