geocore_models

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialiseDefaultResponses

func InitialiseDefaultResponses()

Types

type LoginDto

type LoginDto struct {
	UserName string `json:"username"`
	Password string `json:"password"`
}

type Owner

type Owner struct {
	gorm.Model
	Name string `gorm:"size:256; not null"`
}

type ResponseDto

type ResponseDto struct {
	Code        string // TODO: should change this to an enum in future?
	Description string
	IsError     bool
}

func GetDefaultErrorResponse

func GetDefaultErrorResponse() ResponseDto

func GetDefaultOkResponse

func GetDefaultOkResponse() ResponseDto

func SetError

func SetError(errorMessage string) ResponseDto

func SetNonError

func SetNonError(message string) ResponseDto

type UserDto

type UserDto struct {
	ExternalId string `json:"externalId"`
	OwnerId    uint   `json:"ownerId"`
	FirstName  string `json:"firstName"`
	LastName   string `json:"lastName"`
	Email      string `json:"email"`
}

Jump to

Keyboard shortcuts

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