edit

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreate

func RenderCreate(_w _io.Writer) (err error)

Types

type CreateForm

type CreateForm struct {
	Word string `form:"word"`
	Root string `form:"root"`

	GenderNeutralTranslation string `form:"gender_neutral_translation"`
	FemaleTranslation        string `form:"female_translation"`
	MaleTranslation          string `form:"male_translation"`

	CompoundWords []string `form:"compound_words"`

	Definitions struct {
		Type               []sueno.WordType `form:"type"`
		Translation        []string         `form:"translation"`
		Definition         []string         `form:"definition"`
		Example            []string         `form:"example"`
		ExampleTranslation []string         `form:"example_translation"`
	} `form:"definitions"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(repo repository.Repository) *Handler

func (*Handler) Create

func (h *Handler) Create(gctx *gin.Context)

func (*Handler) ProcessCreate

func (h *Handler) ProcessCreate(gctx *gin.Context)

func (*Handler) ProcessDelete

func (h *Handler) ProcessDelete(gctx *gin.Context)

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(r *gin.RouterGroup)

Jump to

Keyboard shortcuts

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