script

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Name     string             `json:"name" binding:"required"`
	Code     string             `json:"code" binding:"required"`
	Enabled  *bool              `json:"enabled"`
	Priority int                `json:"priority"`
	Scope    models.ScriptScope `json:"scope"`
}

type Handler

type Handler struct{}

func (*Handler) Create

func (*Handler) Delete

func (h *Handler) Delete(c *app.Context, req api.IDPathRequest) (api.StatusResponse, error)

func (*Handler) Get

func (*Handler) List

func (*Handler) Update

func (h *Handler) Update(c *app.Context, req UpdateRequest) (models.AdminScript, error)

type ListRequest

type ListRequest struct {
	api.PaginationQuery
	Search string `form:"search"`
}

type UpdateRequest

type UpdateRequest struct {
	ID     string         `uri:"id" binding:"required"`
	Fields map[string]any `json:"-"`
}

func (*UpdateRequest) SetBodyMap

func (r *UpdateRequest) SetBodyMap(fields map[string]any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL