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
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
Click to show internal directories.
Click to hide internal directories.