models

package
v0.0.0-...-8231afe Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Code    int    `json:"errCode"`
	Message string `json:"errMessage"`
}

func (*ApiError) Error

func (apiError *ApiError) Error() string

type Field

type Field map[string]interface{}

type Fields

type Fields []Field

func (*Fields) Scan

func (ls *Fields) Scan(src any) error

func (Fields) Value

func (a Fields) Value() (driver.Value, error)

type Poll

type Poll struct {
	Id          *string    `json:"id,omitempty"`
	Name        *string    `json:"name,omitempty"`
	Fields      Fields     `json:"fields,omitempty"`
	CreatedBy   *string    `json:"created_by,omitempty"`
	LastUpdated *time.Time `json:"last_updated,omitempty"`
}

type User

type User struct {
	Id          *string    `json:"id"`
	Username    *string    `json:"username"`
	Email       *string    `json:"email"`
	Password    *string    `json:"password"`
	LastUpdated *time.Time `json:"last_updated"`
}

Jump to

Keyboard shortcuts

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