status

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status string
var (
	New           Status = "new"
	Approved      Status = "approved"
	PartiallyPaid Status = "partially paid"
	CheckedIn     Status = "checked in"
	Cancelled     Status = "cancelled"
	Waiting       Status = "waiting"
	Deleted       Status = "deleted"
)

type StatusChangeDto

type StatusChangeDto struct {
	Timestamp string `json:"timestamp"` // also gives registration date, and allows due date calculation
	Status    Status `json:"status"`
	Comment   string `json:"comment"` // e.g. cancel reason
}

type StatusDto

type StatusDto struct {
	Status Status `json:"status"`
}

type StatusHistoryDto

type StatusHistoryDto struct {
	Id uint `json:"id"` // badge number - informational only, never read

	// status history
	StatusHistory []StatusChangeDto `json:"status_history"`
}

Jump to

Keyboard shortcuts

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