Подготовить HY2XS к production-сборке

This commit is contained in:
2026-04-25 23:13:12 +05:00
commit 84a4e94567
277 changed files with 26513 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
package vo
import (
"github.com/gin-gonic/gin"
"net/http"
)
type hysteria2Result struct {
Ok bool `json:"ok"`
Id string `json:"id"`
}
func Hysteria2AuthSuccess(id string, c *gin.Context) {
c.JSON(http.StatusOK, hysteria2Result{
Ok: true,
Id: id,
})
}
func Hysteria2AuthFail(id string, c *gin.Context) {
c.JSON(http.StatusOK, hysteria2Result{
Ok: false,
Id: id,
})
}
type Hysteria2SubscribeVo struct {
Url string `json:"url"`
QrCode []byte `json:"qrCode"`
}
type Hysteria2UrlVo struct {
Url string `json:"url"`
QrCode []byte `json:"qrCode"`
}
type Hysteria2AcmePathVo struct {
CrtPath string `json:"crtPath"`
KeyPath string `json:"keyPath"`
}