优化结构

This commit is contained in:
Yvan
2026-08-28 09:44:11 +08:00
parent 279692375b
commit e997d9718e
26 changed files with 106 additions and 129 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ func requestUsesHTTPS(request *http.Request) bool {
return strings.EqualFold(strings.TrimSpace(forwarded), "https")
}
// SetTokenCookie is the shared transport-level cookie policy. It has no KRA
// business dependency, so handlers and middleware can use pkg/httpx directly.
// SetTokenCookie is the shared transport-level cookie policy for the admin API.
func SetTokenCookie(c *gin.Context, value string, maxAge int) {
if c == nil {
return