feat: remove comment
This commit is contained in:
@@ -21,10 +21,6 @@ import (
|
||||
)
|
||||
|
||||
// InitRequest 初始化请求
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 23:08 2022/6/25
|
||||
func InitRequest() gin.HandlerFunc {
|
||||
return func(ctx *gin.Context) {
|
||||
httpHandleConfig := define.GetHttpHandleConfig()
|
||||
@@ -38,10 +34,6 @@ func InitRequest() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
// getRequestID 生成 request id
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 23:12 2022/6/25
|
||||
func getRequestID(ctx *gin.Context) string {
|
||||
return fmt.Sprintf(
|
||||
"%v-%v-%v-%v",
|
||||
@@ -53,10 +45,6 @@ func getRequestID(ctx *gin.Context) string {
|
||||
}
|
||||
|
||||
// getTraceID 生成 trace id
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 23:12 2022/6/25
|
||||
func getTraceID(ctx *gin.Context, requestID string) string {
|
||||
traceID := ctx.GetHeader("X-Forward-Trace-Id")
|
||||
if len(traceID) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user