Initial 423down proxy service

This commit is contained in:
2026-05-12 07:58:30 +00:00
commit 6e6e836d09
14 changed files with 865 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
// response 是接口统一返回结构。
type response struct {
Ok bool `json:"ok"`
Error string `json:""`
Html string `json:"html"`
}
// createErr 将错误转换为接口统一响应。
func createErr(err error) response {
return response{
Ok: false,
Error: err.Error(),
}
}