feat: remove comment
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user