Documentation ¶
Index ¶
- type BaseModel
- type CreateModel
- type DeleteModel
- type Empty
- type NullInt64
- func (NullInt64) DeleteClauses(f *schema.Field) []clause.Interface
- func (n NullInt64) MarshalJSON() ([]byte, error)
- func (NullInt64) QueryClauses(f *schema.Field) []clause.Interface
- func (n *NullInt64) Scan(value any) error
- func (n *NullInt64) UnmarshalJSON(b []byte) error
- func (NullInt64) UpdateClauses(f *schema.Field) []clause.Interface
- func (n NullInt64) Value() (driver.Value, error)
- type PageOptions
- type Scopes
- type SoftDeleteDeleteClause
- type SoftDeleteQueryClause
- type SoftDeleteUpdateClause
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateModel ¶
type DeleteModel ¶
type DeleteModel struct { Id uint32 `json:"id" gorm:"primaryKey;autoIncrement;comment:主键ID"` CreatedAt int64 `json:"createdAt,omitempty" gorm:"index;comment:创建时间"` UpdatedAt int64 `json:"updatedAt,omitempty" gorm:"index;comment:修改时间"` DeletedAt NullInt64 `json:"deletedAt" gorm:"index;comment:删除时间"` }
type NullInt64 ¶
func (NullInt64) MarshalJSON ¶
func (*NullInt64) UnmarshalJSON ¶
type PageOptions ¶
type SoftDeleteDeleteClause ¶
type SoftDeleteDeleteClause struct { ZeroValue sql.NullString Field *schema.Field }
func (SoftDeleteDeleteClause) Build ¶
func (sd SoftDeleteDeleteClause) Build(clause.Builder)
func (SoftDeleteDeleteClause) MergeClause ¶
func (sd SoftDeleteDeleteClause) MergeClause(*clause.Clause)
func (SoftDeleteDeleteClause) ModifyStatement ¶
func (sd SoftDeleteDeleteClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteDeleteClause) Name ¶
func (sd SoftDeleteDeleteClause) Name() string
type SoftDeleteQueryClause ¶
type SoftDeleteQueryClause struct { ZeroValue sql.NullString Field *schema.Field }
func (SoftDeleteQueryClause) Build ¶
func (sd SoftDeleteQueryClause) Build(clause.Builder)
func (SoftDeleteQueryClause) MergeClause ¶
func (sd SoftDeleteQueryClause) MergeClause(*clause.Clause)
func (SoftDeleteQueryClause) ModifyStatement ¶
func (sd SoftDeleteQueryClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteQueryClause) Name ¶
func (sd SoftDeleteQueryClause) Name() string
type SoftDeleteUpdateClause ¶
type SoftDeleteUpdateClause struct { ZeroValue sql.NullString Field *schema.Field }
func (SoftDeleteUpdateClause) Build ¶
func (sd SoftDeleteUpdateClause) Build(clause.Builder)
func (SoftDeleteUpdateClause) MergeClause ¶
func (sd SoftDeleteUpdateClause) MergeClause(*clause.Clause)
func (SoftDeleteUpdateClause) ModifyStatement ¶
func (sd SoftDeleteUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteUpdateClause) Name ¶
func (sd SoftDeleteUpdateClause) Name() string
Click to show internal directories.
Click to hide internal directories.