@@ -4,7 +4,7 @@ use std::{
44} ;
55
66use anyhow:: Result ;
7- use api_model:: orion :: log :: {
7+ use api_model:: buck2 :: types :: {
88 LogErrorResponse , LogEvent , LogLinesResponse , LogReadMode , TargetLogLinesResponse ,
99 TargetLogQuery , TaskHistoryQuery ,
1010} ;
@@ -263,10 +263,10 @@ pub async fn task_output_handler(
263263 ( "end" = Option <usize >, Query , description = "End line number" ) ,
264264 ) ,
265265 responses(
266- ( status = 200 , description = "History Log" , body = api_model:: orion :: log :: LogLinesResponse ) ,
267- ( status = 400 , description = "Invalid parameters" , body = api_model:: orion :: log :: LogErrorResponse ) ,
268- ( status = 404 , description = "Log file not found" , body = api_model:: orion :: log :: LogErrorResponse ) ,
269- ( status = 500 , description = "Failed to operate log file" , body = api_model:: orion :: log :: LogErrorResponse ) ,
266+ ( status = 200 , description = "History Log" , body = api_model:: buck2 :: types :: LogLinesResponse ) ,
267+ ( status = 400 , description = "Invalid parameters" , body = api_model:: buck2 :: types :: LogErrorResponse ) ,
268+ ( status = 404 , description = "Log file not found" , body = api_model:: buck2 :: types :: LogErrorResponse ) ,
269+ ( status = 500 , description = "Failed to operate log file" , body = api_model:: buck2 :: types :: LogErrorResponse ) ,
270270 )
271271) ]
272272pub async fn task_history_output_handler (
@@ -323,10 +323,10 @@ pub async fn task_history_output_handler(
323323 (
324324 status = 200 ,
325325 description = "Target log content" ,
326- body = api_model:: orion :: log :: TargetLogLinesResponse
326+ body = api_model:: buck2 :: types :: TargetLogLinesResponse
327327 ) ,
328- ( status = 404 , description = "Target or log not found" , body = api_model:: orion :: log :: LogErrorResponse ) ,
329- ( status = 500 , description = "Failed to read log" , body = api_model:: orion :: log :: LogErrorResponse )
328+ ( status = 404 , description = "Target or log not found" , body = api_model:: buck2 :: types :: LogErrorResponse ) ,
329+ ( status = 500 , description = "Failed to read log" , body = api_model:: buck2 :: types :: LogErrorResponse )
330330 )
331331) ]
332332pub async fn target_logs_handler (
0 commit comments