models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumanizeApprovalAction

func HumanizeApprovalAction(approvalAction ApprovalAction) string

Types

type Approval

type Approval struct {
	core.Model
	ApprovalAction      ApprovalAction   `gomonolith:"list" gomonolithform:"SelectFieldOptions"`
	ApprovalBy          string           `gomonolith:"list" gomonolithform:"ReadonlyField"`
	ApprovalDate        *time.Time       `gomonolith:"list" gomonolithform:"DatetimeReadonlyFieldOptions"`
	ContentType         core.ContentType `gomonolith:"list" gomonolithform:"ReadonlyField"`
	ContentTypeID       uint
	ModelPK             uint      `gomonolith:"list" gomonolithform:"ReadonlyField" gorm:"default:0"`
	ColumnName          string    `gomonolith:"list" gomonolithform:"ReadonlyField"`
	OldValue            string    `gomonolith:"list" gomonolithform:"ReadonlyField"`
	NewValue            string    `gomonolith:"list"`
	NewValueDescription string    `gomonolith:"list" gomonolithform:"ReadonlyField"`
	ChangedBy           string    `gomonolith:"list" gomonolithform:"ReadonlyField"`
	ChangeDate          time.Time `gomonolith:"list" gomonolithform:"DatetimeReadonlyFieldOptions"`
	UpdatedBy           string
}

Approval is a model that stores approval data

func (*Approval) String

func (a *Approval) String() string

type ApprovalAction

type ApprovalAction int

ApprovalAction is a selection of approval actions

func (ApprovalAction) Approved

func (ApprovalAction) Approved() ApprovalAction

Approved is an accepted change

func (ApprovalAction) Rejected

func (ApprovalAction) Rejected() ApprovalAction

Rejected is a rejected change

Jump to

Keyboard shortcuts

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