Documentation ¶
Index ¶
- Variables
- type DeletedAt
- func (*DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface
- func (*DeletedAt) Descriptor() ([]byte, []int)deprecated
- func (x *DeletedAt) GetNanos() int32
- func (x *DeletedAt) GetSeconds() int64
- func (ts *DeletedAt) GormDataType() string
- func (x *DeletedAt) IsValid() bool
- func (x *DeletedAt) MarshalGQL(w io.Writer)
- func (*DeletedAt) ProtoMessage()
- func (x *DeletedAt) ProtoReflect() protoreflect.Message
- func (*DeletedAt) QueryClauses(f *schema.Field) []clause.Interface
- func (x *DeletedAt) Reset()
- func (ts *DeletedAt) Scan(value interface{}) error
- func (x *DeletedAt) String() string
- func (t *DeletedAt) Time() time.Time
- func (x *DeletedAt) UnmarshalGQL(v interface{}) error
- func (*DeletedAt) UpdateClauses(f *schema.Field) []clause.Interface
- func (t *DeletedAt) Value() (driver.Value, error)
- type DeletedAtInput
- type SoftDeleteDeleteClause
- type SoftDeleteQueryClause
- type SoftDeleteUpdateClause
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) Descriptor
deprecated
func (*DeletedAt) GetSeconds ¶
func (*DeletedAt) GormDataType ¶
func (*DeletedAt) MarshalGQL ¶
func (*DeletedAt) ProtoMessage ¶
func (*DeletedAt) ProtoMessage()
func (*DeletedAt) ProtoReflect ¶
func (x *DeletedAt) ProtoReflect() protoreflect.Message
func (*DeletedAt) UnmarshalGQL ¶
func (*DeletedAt) UpdateClauses ¶
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 (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 ¶
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 ¶
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.