models

package
v0.0.0-...-6215ed3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID      string `mapstructure:"id" json:"-" validate:"uuid_rfc4122"`
	Project string
	Date    int64  `mapstructure:"date" json:"-" validate:"required,number"`
	Content string `form:"content" binding:"required"`
}

func NewData

func NewData() *Data

func (*Data) IsValid

func (data *Data) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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