deletedAt

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagDeleted = 1
	FlagActived = 0
)
View Source
var File_cherry_protobuf_time_deletedAt_deletedAt_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeletedAt

type DeletedAt struct {

	// Represents seconds of UTC time since Unix epoch
	// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
	// 9999-12-31T23:59:59Z inclusive.
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// Non-negative fractions of a second at nanosecond resolution. Negative
	// second values with fractions must still have non-negative nanos values
	// that count forward in time. Must be from 0 to 999,999,999
	// inclusive.
	Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletedAt) DeleteClauses

func (*DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface

func (*DeletedAt) Descriptor deprecated

func (*DeletedAt) Descriptor() ([]byte, []int)

Deprecated: Use DeletedAt.ProtoReflect.Descriptor instead.

func (*DeletedAt) GetNanos

func (x *DeletedAt) GetNanos() int32

func (*DeletedAt) GetSeconds

func (x *DeletedAt) GetSeconds() int64

func (*DeletedAt) GormDataType added in v1.7.3

func (ts *DeletedAt) GormDataType() string

func (*DeletedAt) IsValid added in v1.7.3

func (x *DeletedAt) IsValid() bool

func (*DeletedAt) MarshalGQL

func (x *DeletedAt) MarshalGQL(w io.Writer)

func (*DeletedAt) MarshalJSON added in v1.8.3

func (t *DeletedAt) MarshalJSON() ([]byte, error)

func (*DeletedAt) ProtoMessage

func (*DeletedAt) ProtoMessage()

func (*DeletedAt) ProtoReflect

func (x *DeletedAt) ProtoReflect() protoreflect.Message

func (*DeletedAt) QueryClauses

func (*DeletedAt) QueryClauses(f *schema.Field) []clause.Interface

func (*DeletedAt) Reset

func (x *DeletedAt) Reset()

func (*DeletedAt) Scan

func (ts *DeletedAt) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*DeletedAt) String

func (x *DeletedAt) String() string

func (*DeletedAt) Time

func (t *DeletedAt) Time() time.Time

func (*DeletedAt) UnmarshalGQL

func (x *DeletedAt) UnmarshalGQL(v interface{}) error

func (*DeletedAt) UnmarshalJSON added in v1.8.3

func (t *DeletedAt) UnmarshalJSON(data []byte) error

func (*DeletedAt) UpdateClauses

func (*DeletedAt) UpdateClauses(f *schema.Field) []clause.Interface

func (*DeletedAt) Value

func (t *DeletedAt) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type DeletedAtInput

type DeletedAtInput = DeletedAt

type SoftDeleteDeleteClause

type SoftDeleteDeleteClause struct {
	Field         *schema.Field
	Flag          bool
	TimeType      schema.TimeType
	DeleteAtField *schema.Field
}

func (SoftDeleteDeleteClause) Build

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 {
	Field *schema.Field
}

func (SoftDeleteQueryClause) Build

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 {
	Field *schema.Field
}

func (SoftDeleteUpdateClause) Build

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

Jump to

Keyboard shortcuts

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