增加robots.txt文件预防爬虫

This commit is contained in:
ayflying
2025-12-08 10:36:29 +08:00
parent 9fb0513703
commit 6b304efc0e
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package v1
import "github.com/gogf/gf/v2/frame/g"
type RobotsReq struct {
g.Meta `path:"/robots.txt" tags:"回调响应" method:"get" summary:"禁止爬虫"`
}
type RobotsRes struct {
}