This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
summer-utils/tables/web/http-route-header.go

14 lines
388 B
Go
Raw Normal View History

2023-04-16 11:56:17 +01:00
package web
2023-04-16 13:22:04 +01:00
import "code.mrmelon54.com/melon/summer-utils/utils"
2023-04-16 11:56:17 +01:00
type HttpRouteHeader struct {
Id uint64 `json:"id" xorm:"pk autoincr"`
RouteId uint64 `json:"route_id"`
Key string `json:"key"`
Value *string `json:"value"`
}
func (h HttpRouteHeader) HeaderKey() string { return h.Key }
func (h HttpRouteHeader) HeaderValue() string { return utils.SString(h.Value) }