From ee05107535521592f2d630062ee04fa0f9faf4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 23 Jul 2024 16:50:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Gin=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gin.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gin.go diff --git a/gin.go b/gin.go new file mode 100644 index 0000000..6a42642 --- /dev/null +++ b/gin.go @@ -0,0 +1,23 @@ +// Package consts ... +// +// Description : consts ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2024-07-23 16:46 +package consts + +const ( + GinRequestIDField = "request_id" // 请求ID + GinTraceIDField = "trace_id" // 追踪ID + GinStartRequestTimeField = "start_request_time" // 开始请求时间字段 + GinFinishRequestTimeField = "finish_request_time" // 开始请求时间字段 + GinResponseCodeField = "code" // 响应状态码字段 + GinResponseMessageField = "message" // 响应信息字段 + GinHandleRequestCostField = "cost" // 处理请求耗时字段 + GinResponseDataField = "data" // 响应数据字段 + GinResponseTraceIDField = "trace_id" // 响应TraceID字段 + GinResponseRequestIDField = "request_id" // 响应的请求ID字段 + GinRecordResponseDataField = "record_response_data" // 记录响应数据到上下文 + GinRecordRequestDataField = "record_request_data" // 记录请求数据到上下文 +)