reply

package
v1.3.14 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the reply type in the database.
	Label = "reply"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCommentID holds the string denoting the comment_id field in the database.
	FieldCommentID = "comment_id"
	// FieldReply holds the string denoting the reply field in the database.
	FieldReply = "reply"
	// FieldAdminId holds the string denoting the adminid field in the database.
	FieldAdminId = "admin_id"
	// FieldAdminName holds the string denoting the adminname field in the database.
	FieldAdminName = "admin_name"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// EdgeComment holds the string denoting the comment edge name in mutations.
	EdgeComment = "comment"
	// Table holds the table name of the reply in the database.
	Table = "mms_reply"
	// CommentTable is the table that holds the comment relation/edge.
	CommentTable = "mms_reply"
	// CommentInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentInverseTable = "mms_comment"
	// CommentColumn is the table column denoting the comment relation/edge.
	CommentColumn = "comment_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// AdminIdValidator is a validator for the "adminId" field. It is called by the builders before save.
	AdminIdValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime time.Time
)

Columns holds all SQL columns for reply fields.

Functions

func AdminId

func AdminId(v string) predicate.Reply

AdminId applies equality check predicate on the "adminId" field. It's identical to AdminIdEQ.

func AdminIdContains

func AdminIdContains(v string) predicate.Reply

AdminIdContains applies the Contains predicate on the "adminId" field.

func AdminIdContainsFold

func AdminIdContainsFold(v string) predicate.Reply

AdminIdContainsFold applies the ContainsFold predicate on the "adminId" field.

func AdminIdEQ

func AdminIdEQ(v string) predicate.Reply

AdminIdEQ applies the EQ predicate on the "adminId" field.

func AdminIdEqualFold

func AdminIdEqualFold(v string) predicate.Reply

AdminIdEqualFold applies the EqualFold predicate on the "adminId" field.

func AdminIdGT

func AdminIdGT(v string) predicate.Reply

AdminIdGT applies the GT predicate on the "adminId" field.

func AdminIdGTE

func AdminIdGTE(v string) predicate.Reply

AdminIdGTE applies the GTE predicate on the "adminId" field.

func AdminIdHasPrefix

func AdminIdHasPrefix(v string) predicate.Reply

AdminIdHasPrefix applies the HasPrefix predicate on the "adminId" field.

func AdminIdHasSuffix

func AdminIdHasSuffix(v string) predicate.Reply

AdminIdHasSuffix applies the HasSuffix predicate on the "adminId" field.

func AdminIdIn

func AdminIdIn(vs ...string) predicate.Reply

AdminIdIn applies the In predicate on the "adminId" field.

func AdminIdLT

func AdminIdLT(v string) predicate.Reply

AdminIdLT applies the LT predicate on the "adminId" field.

func AdminIdLTE

func AdminIdLTE(v string) predicate.Reply

AdminIdLTE applies the LTE predicate on the "adminId" field.

func AdminIdNEQ

func AdminIdNEQ(v string) predicate.Reply

AdminIdNEQ applies the NEQ predicate on the "adminId" field.

func AdminIdNotIn

func AdminIdNotIn(vs ...string) predicate.Reply

AdminIdNotIn applies the NotIn predicate on the "adminId" field.

func AdminName

func AdminName(v string) predicate.Reply

AdminName applies equality check predicate on the "adminName" field. It's identical to AdminNameEQ.

func AdminNameContains

func AdminNameContains(v string) predicate.Reply

AdminNameContains applies the Contains predicate on the "adminName" field.

func AdminNameContainsFold

func AdminNameContainsFold(v string) predicate.Reply

AdminNameContainsFold applies the ContainsFold predicate on the "adminName" field.

func AdminNameEQ

func AdminNameEQ(v string) predicate.Reply

AdminNameEQ applies the EQ predicate on the "adminName" field.

func AdminNameEqualFold

func AdminNameEqualFold(v string) predicate.Reply

AdminNameEqualFold applies the EqualFold predicate on the "adminName" field.

func AdminNameGT

func AdminNameGT(v string) predicate.Reply

AdminNameGT applies the GT predicate on the "adminName" field.

func AdminNameGTE

func AdminNameGTE(v string) predicate.Reply

AdminNameGTE applies the GTE predicate on the "adminName" field.

func AdminNameHasPrefix

func AdminNameHasPrefix(v string) predicate.Reply

AdminNameHasPrefix applies the HasPrefix predicate on the "adminName" field.

func AdminNameHasSuffix

func AdminNameHasSuffix(v string) predicate.Reply

AdminNameHasSuffix applies the HasSuffix predicate on the "adminName" field.

func AdminNameIn

func AdminNameIn(vs ...string) predicate.Reply

AdminNameIn applies the In predicate on the "adminName" field.

func AdminNameLT

func AdminNameLT(v string) predicate.Reply

AdminNameLT applies the LT predicate on the "adminName" field.

func AdminNameLTE

func AdminNameLTE(v string) predicate.Reply

AdminNameLTE applies the LTE predicate on the "adminName" field.

func AdminNameNEQ

func AdminNameNEQ(v string) predicate.Reply

AdminNameNEQ applies the NEQ predicate on the "adminName" field.

func AdminNameNotIn

func AdminNameNotIn(vs ...string) predicate.Reply

AdminNameNotIn applies the NotIn predicate on the "adminName" field.

func And

func And(predicates ...predicate.Reply) predicate.Reply

And groups predicates with the AND operator between them.

func CommentID

func CommentID(v uint64) predicate.Reply

CommentID applies equality check predicate on the "comment_id" field. It's identical to CommentIDEQ.

func CommentIDEQ

func CommentIDEQ(v uint64) predicate.Reply

CommentIDEQ applies the EQ predicate on the "comment_id" field.

func CommentIDIn

func CommentIDIn(vs ...uint64) predicate.Reply

CommentIDIn applies the In predicate on the "comment_id" field.

func CommentIDNEQ

func CommentIDNEQ(v uint64) predicate.Reply

CommentIDNEQ applies the NEQ predicate on the "comment_id" field.

func CommentIDNotIn

func CommentIDNotIn(vs ...uint64) predicate.Reply

CommentIDNotIn applies the NotIn predicate on the "comment_id" field.

func CreateTime

func CreateTime(v time.Time) predicate.Reply

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Reply

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Reply

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Reply

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Reply

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Reply

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Reply

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Reply

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Reply

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Reply

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Reply

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Reply

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Reply

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Reply

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Reply

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Reply

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Reply

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Reply

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasComment

func HasComment() predicate.Reply

HasComment applies the HasEdge predicate on the "comment" edge.

func HasCommentWith

func HasCommentWith(preds ...predicate.Comment) predicate.Reply

HasCommentWith applies the HasEdge predicate on the "comment" edge with a given conditions (other predicates).

func ID

func ID(id uint64) predicate.Reply

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Reply

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Reply

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Reply

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Reply

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Reply

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Reply

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Reply

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Reply

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Reply) predicate.Reply

Or groups predicates with the OR operator between them.

func Reply

func Reply(v string) predicate.Reply

Reply applies equality check predicate on the "reply" field. It's identical to ReplyEQ.

func ReplyContains

func ReplyContains(v string) predicate.Reply

ReplyContains applies the Contains predicate on the "reply" field.

func ReplyContainsFold

func ReplyContainsFold(v string) predicate.Reply

ReplyContainsFold applies the ContainsFold predicate on the "reply" field.

func ReplyEQ

func ReplyEQ(v string) predicate.Reply

ReplyEQ applies the EQ predicate on the "reply" field.

func ReplyEqualFold

func ReplyEqualFold(v string) predicate.Reply

ReplyEqualFold applies the EqualFold predicate on the "reply" field.

func ReplyGT

func ReplyGT(v string) predicate.Reply

ReplyGT applies the GT predicate on the "reply" field.

func ReplyGTE

func ReplyGTE(v string) predicate.Reply

ReplyGTE applies the GTE predicate on the "reply" field.

func ReplyHasPrefix

func ReplyHasPrefix(v string) predicate.Reply

ReplyHasPrefix applies the HasPrefix predicate on the "reply" field.

func ReplyHasSuffix

func ReplyHasSuffix(v string) predicate.Reply

ReplyHasSuffix applies the HasSuffix predicate on the "reply" field.

func ReplyIn

func ReplyIn(vs ...string) predicate.Reply

ReplyIn applies the In predicate on the "reply" field.

func ReplyLT

func ReplyLT(v string) predicate.Reply

ReplyLT applies the LT predicate on the "reply" field.

func ReplyLTE

func ReplyLTE(v string) predicate.Reply

ReplyLTE applies the LTE predicate on the "reply" field.

func ReplyNEQ

func ReplyNEQ(v string) predicate.Reply

ReplyNEQ applies the NEQ predicate on the "reply" field.

func ReplyNotIn

func ReplyNotIn(vs ...string) predicate.Reply

ReplyNotIn applies the NotIn predicate on the "reply" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Reply

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Reply

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Reply

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Reply

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Reply

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Reply

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Reply

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Reply

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Reply

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Reply

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Reply

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Reply

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Reply

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Reply

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Reply

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Reply

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Reply

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Reply

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Reply queries.

func ByAdminId

func ByAdminId(opts ...sql.OrderTermOption) OrderOption

ByAdminId orders the results by the adminId field.

func ByAdminName

func ByAdminName(opts ...sql.OrderTermOption) OrderOption

ByAdminName orders the results by the adminName field.

func ByCommentField

func ByCommentField(field string, opts ...sql.OrderTermOption) OrderOption

ByCommentField orders the results by comment field.

func ByCommentID

func ByCommentID(opts ...sql.OrderTermOption) OrderOption

ByCommentID orders the results by the comment_id field.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByReply

func ByReply(opts ...sql.OrderTermOption) OrderOption

ByReply orders the results by the reply field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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