feat: remove comment

This commit is contained in:
2025-12-26 15:15:54 +08:00
parent 1636a2652f
commit 29201ac796
3 changed files with 0 additions and 24 deletions

View File

@@ -16,10 +16,6 @@ import (
type HookFunc func(ctx *gin.Context, requestData []byte, responseData map[string]interface{}, cost int64)
// HookAfterResponseMiddleware 请求最终处理完成之后执行的中间件
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 11:55 2024/7/26
func HookAfterResponseMiddleware(hookFunc HookFunc) gin.HandlerFunc {
handleConfig := define.GetHttpHandleConfig()
return func(ctx *gin.Context) {

View File

@@ -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 {

View File

@@ -15,10 +15,6 @@ import (
)
// ValidateBlackIPMiddleware 验证黑名单IP的中间件
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 23:24 2022/6/25
func ValidateBlackIPMiddleware(code interface{}, httpCode int, validateFunc define.IsBlackIP) gin.HandlerFunc {
return func(ctx *gin.Context) {
if nil == validateFunc {
@@ -40,10 +36,6 @@ func ValidateBlackIPMiddleware(code interface{}, httpCode int, validateFunc defi
}
// ValidateWhiteIPMiddleware 是否白名单IP
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 23:33 2022/6/25
func ValidateWhiteIPMiddleware(code interface{}, httpCode int, validateFunc define.IsWhiteIP) gin.HandlerFunc {
return func(ctx *gin.Context) {
if nil == validateFunc {