Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Org) predicate.Org
- func CreateTime(v time.Time) predicate.Org
- func CreateTimeEQ(v time.Time) predicate.Org
- func CreateTimeGT(v time.Time) predicate.Org
- func CreateTimeGTE(v time.Time) predicate.Org
- func CreateTimeIn(vs ...time.Time) predicate.Org
- func CreateTimeLT(v time.Time) predicate.Org
- func CreateTimeLTE(v time.Time) predicate.Org
- func CreateTimeNEQ(v time.Time) predicate.Org
- func CreateTimeNotIn(vs ...time.Time) predicate.Org
- func DeleteTime(v int64) predicate.Org
- func DeleteTimeEQ(v int64) predicate.Org
- func DeleteTimeGT(v int64) predicate.Org
- func DeleteTimeGTE(v int64) predicate.Org
- func DeleteTimeIn(vs ...int64) predicate.Org
- func DeleteTimeLT(v int64) predicate.Org
- func DeleteTimeLTE(v int64) predicate.Org
- func DeleteTimeNEQ(v int64) predicate.Org
- func DeleteTimeNotIn(vs ...int64) predicate.Org
- func Description(v string) predicate.Org
- func DescriptionContains(v string) predicate.Org
- func DescriptionContainsFold(v string) predicate.Org
- func DescriptionEQ(v string) predicate.Org
- func DescriptionEqualFold(v string) predicate.Org
- func DescriptionGT(v string) predicate.Org
- func DescriptionGTE(v string) predicate.Org
- func DescriptionHasPrefix(v string) predicate.Org
- func DescriptionHasSuffix(v string) predicate.Org
- func DescriptionIn(vs ...string) predicate.Org
- func DescriptionIsNil() predicate.Org
- func DescriptionLT(v string) predicate.Org
- func DescriptionLTE(v string) predicate.Org
- func DescriptionNEQ(v string) predicate.Org
- func DescriptionNotIn(vs ...string) predicate.Org
- func DescriptionNotNil() predicate.Org
- func DisplayName(v string) predicate.Org
- func DisplayNameContains(v string) predicate.Org
- func DisplayNameContainsFold(v string) predicate.Org
- func DisplayNameEQ(v string) predicate.Org
- func DisplayNameEqualFold(v string) predicate.Org
- func DisplayNameGT(v string) predicate.Org
- func DisplayNameGTE(v string) predicate.Org
- func DisplayNameHasPrefix(v string) predicate.Org
- func DisplayNameHasSuffix(v string) predicate.Org
- func DisplayNameIn(vs ...string) predicate.Org
- func DisplayNameIsNil() predicate.Org
- func DisplayNameLT(v string) predicate.Org
- func DisplayNameLTE(v string) predicate.Org
- func DisplayNameNEQ(v string) predicate.Org
- func DisplayNameNotIn(vs ...string) predicate.Org
- func DisplayNameNotNil() predicate.Org
- func ID(id string) predicate.Org
- func IDContainsFold(id string) predicate.Org
- func IDEQ(id string) predicate.Org
- func IDEqualFold(id string) predicate.Org
- func IDGT(id string) predicate.Org
- func IDGTE(id string) predicate.Org
- func IDIn(ids ...string) predicate.Org
- func IDLT(id string) predicate.Org
- func IDLTE(id string) predicate.Org
- func IDNEQ(id string) predicate.Org
- func IDNotIn(ids ...string) predicate.Org
- func Logo(v string) predicate.Org
- func LogoContains(v string) predicate.Org
- func LogoContainsFold(v string) predicate.Org
- func LogoEQ(v string) predicate.Org
- func LogoEqualFold(v string) predicate.Org
- func LogoGT(v string) predicate.Org
- func LogoGTE(v string) predicate.Org
- func LogoHasPrefix(v string) predicate.Org
- func LogoHasSuffix(v string) predicate.Org
- func LogoIn(vs ...string) predicate.Org
- func LogoLT(v string) predicate.Org
- func LogoLTE(v string) predicate.Org
- func LogoNEQ(v string) predicate.Org
- func LogoNotIn(vs ...string) predicate.Org
- func Name(v string) predicate.Org
- func NameContains(v string) predicate.Org
- func NameContainsFold(v string) predicate.Org
- func NameEQ(v string) predicate.Org
- func NameEqualFold(v string) predicate.Org
- func NameGT(v string) predicate.Org
- func NameGTE(v string) predicate.Org
- func NameHasPrefix(v string) predicate.Org
- func NameHasSuffix(v string) predicate.Org
- func NameIn(vs ...string) predicate.Org
- func NameLT(v string) predicate.Org
- func NameLTE(v string) predicate.Org
- func NameNEQ(v string) predicate.Org
- func NameNotIn(vs ...string) predicate.Org
- func Not(p predicate.Org) predicate.Org
- func Or(predicates ...predicate.Org) predicate.Org
- func Status(v string) predicate.Org
- func StatusContains(v string) predicate.Org
- func StatusContainsFold(v string) predicate.Org
- func StatusEQ(v string) predicate.Org
- func StatusEqualFold(v string) predicate.Org
- func StatusGT(v string) predicate.Org
- func StatusGTE(v string) predicate.Org
- func StatusHasPrefix(v string) predicate.Org
- func StatusHasSuffix(v string) predicate.Org
- func StatusIn(vs ...string) predicate.Org
- func StatusLT(v string) predicate.Org
- func StatusLTE(v string) predicate.Org
- func StatusNEQ(v string) predicate.Org
- func StatusNotIn(vs ...string) predicate.Org
- func Type(v string) predicate.Org
- func TypeContains(v string) predicate.Org
- func TypeContainsFold(v string) predicate.Org
- func TypeEQ(v string) predicate.Org
- func TypeEqualFold(v string) predicate.Org
- func TypeGT(v string) predicate.Org
- func TypeGTE(v string) predicate.Org
- func TypeHasPrefix(v string) predicate.Org
- func TypeHasSuffix(v string) predicate.Org
- func TypeIn(vs ...string) predicate.Org
- func TypeLT(v string) predicate.Org
- func TypeLTE(v string) predicate.Org
- func TypeNEQ(v string) predicate.Org
- func TypeNotIn(vs ...string) predicate.Org
- func UpdateTime(v time.Time) predicate.Org
- func UpdateTimeEQ(v time.Time) predicate.Org
- func UpdateTimeGT(v time.Time) predicate.Org
- func UpdateTimeGTE(v time.Time) predicate.Org
- func UpdateTimeIn(vs ...time.Time) predicate.Org
- func UpdateTimeLT(v time.Time) predicate.Org
- func UpdateTimeLTE(v time.Time) predicate.Org
- func UpdateTimeNEQ(v time.Time) predicate.Org
- func UpdateTimeNotIn(vs ...time.Time) predicate.Org
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDeleteTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLogo(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the org type in the database. Label = "org" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDeleteTime holds the string denoting the delete_time field in the database. FieldDeleteTime = "delete_time" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldLogo holds the string denoting the logo field in the database. FieldLogo = "logo" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldType holds the string denoting the type field in the database. FieldType = "type" // Table holds the table name of the org in the database. Table = "totoro_org" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // DefaultDeleteTime holds the default value on creation for the "delete_time" field. DefaultDeleteTime int64 // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // LogoValidator is a validator for the "logo" field. It is called by the builders before save. LogoValidator func(string) error // StatusValidator is a validator for the "status" field. It is called by the builders before save. StatusValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/liukeshao/echo-admin/ent/runtime"
var Columns = []string{ FieldID, FieldDeleteTime, FieldCreateTime, FieldUpdateTime, FieldName, FieldDisplayName, FieldDescription, FieldLogo, FieldStatus, FieldType, }
Columns holds all SQL columns for org fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LogoContains ¶
LogoContains applies the Contains predicate on the "logo" field.
func LogoContainsFold ¶
LogoContainsFold applies the ContainsFold predicate on the "logo" field.
func LogoEqualFold ¶
LogoEqualFold applies the EqualFold predicate on the "logo" field.
func LogoHasPrefix ¶
LogoHasPrefix applies the HasPrefix predicate on the "logo" field.
func LogoHasSuffix ¶
LogoHasSuffix applies the HasSuffix predicate on the "logo" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Org queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDeleteTime ¶
func ByDeleteTime(opts ...sql.OrderTermOption) OrderOption
ByDeleteTime orders the results by the delete_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLogo ¶
func ByLogo(opts ...sql.OrderTermOption) OrderOption
ByLogo orders the results by the logo field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.