mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
371 B
Go
23 lines
371 B
Go
package model
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
json "github.com/json-iterator/go"
|
|
)
|
|
|
|
var (
|
|
ErrInvalidID = errors.New("invalid id")
|
|
)
|
|
|
|
type AdminSettingsReq map[string]any
|
|
|
|
func (asr *AdminSettingsReq) Validate() error {
|
|
return nil
|
|
}
|
|
|
|
func (asr *AdminSettingsReq) Decode(ctx *gin.Context) error {
|
|
return json.NewDecoder(ctx.Request.Body).Decode(asr)
|
|
}
|