Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelGorm ¶
type ModelGorm struct { // ID primary key ID string `gorm:"primaryKey;column:id;type:varchar(64);not null;comment:ID" json:"id" bson:"_id,omitempty" form:"id" query:"id"` // CreatedAt create time CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // UpdatedAt update time UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` // DeletedAt delete time soft delete DeletedAt gorm.DeletedAt `gorm:"index" bson:"-" json:"-"` }
ModelGorm model gorm
func (*ModelGorm) BeforeCreate ¶ added in v0.0.2
type ModelProvider ¶
type ModelProvider string
ModelProvider model provider
const ( // ModelProviderMgm mgm model provider ModelProviderMgm ModelProvider = "mgm" // ModelProviderGorm gorm model provider ModelProviderGorm ModelProvider = "gorm" ModelProviderK8S ModelProvider = "k8s" )
func (ModelProvider) String ¶ added in v0.2.1
func (p ModelProvider) String() string
type Pagination ¶
type Pagination struct { Page int64 `form:"page" query:"page"` PageSize int64 `form:"pageSize" query:"pageSize"` }
Pagination pagination params
Click to show internal directories.
Click to hide internal directories.