Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DlrSortMap map[mo.DlrSortField]string = map[mo.DlrSortField]string{ mo.DlrSortFieldId: "id", mo.DlrSortFieldCreatedAt: "created_at", mo.DlrSortFieldUpdatedAt: "updated_at", }
Functions ¶
This section is empty.
Types ¶
type Dlr ¶
type Dlr struct { tgorm.Model DlrData string `json:"dlr_data" gorm:"not null;default:''"` // DlrData is the dlr data of the dlr. DlrType int `json:"dlr_type" gorm:"not null;default:0"` // DlrType is the type of the dlr. DlrStatus int `json:"dlr_status" gorm:"not null;default:0"` // DlrStatus is the status of the dlr. Tags pq.StringArray `json:"tags" gorm:"type:text[]"` // Tags is the tags of the dlr. }
Dlr is a struct that represents the db mapper of a dlr basic values.
func NewDlrFromEntity ¶
NewDlrFromEntity creates a new *Dlr from entity.
Click to show internal directories.
Click to hide internal directories.