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-service-header.go
2023-04-16 11:56:17 +01:00

14 lines
402 B
Go

package web
import "code.mrmelon54.com/melon/summer/pkg/utils"
type HttpServiceHeader struct {
Id uint64 `json:"id" xorm:"pk autoincr"`
ServiceId uint64 `json:"service_id"`
Key string `json:"key"`
Value *string `json:"value"`
}
func (h HttpServiceHeader) HeaderKey() string { return h.Key }
func (h HttpServiceHeader) HeaderValue() string { return utils.SString(h.Value) }