Documentation
¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type CreateSysDictInput
- type CreateSysDictItemInput
- type CreateSysJwtBlockInput
- type CreateSysLoggingInput
- type CreateSysMenuActionInput
- type CreateSysMenuActionResourceInput
- type CreateSysMenuInput
- type CreateSysRoleInput
- type CreateSysRoleMenuInput
- type CreateSysUserInput
- type CreateSysUserRoleInput
- type CreateXxxDemoInput
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type SysDict
- type SysDictClient
- func (c *SysDictClient) Create() *SysDictCreate
- func (c *SysDictClient) CreateBulk(builders ...*SysDictCreate) *SysDictCreateBulk
- func (c *SysDictClient) Delete() *SysDictDelete
- func (c *SysDictClient) DeleteOne(sd *SysDict) *SysDictDeleteOne
- func (c *SysDictClient) DeleteOneID(id string) *SysDictDeleteOne
- func (c *SysDictClient) Get(ctx context.Context, id string) (*SysDict, error)
- func (c *SysDictClient) GetX(ctx context.Context, id string) *SysDict
- func (c *SysDictClient) Hooks() []Hook
- func (c *SysDictClient) Query() *SysDictQuery
- func (c *SysDictClient) Update() *SysDictUpdate
- func (c *SysDictClient) UpdateOne(sd *SysDict) *SysDictUpdateOne
- func (c *SysDictClient) UpdateOneID(id string) *SysDictUpdateOne
- func (c *SysDictClient) Use(hooks ...Hook)
- type SysDictCreate
- func (sdc *SysDictCreate) Mutation() *SysDictMutation
- func (sdc *SysDictCreate) Save(ctx context.Context) (*SysDict, error)
- func (sdc *SysDictCreate) SaveX(ctx context.Context) *SysDict
- func (sdc *SysDictCreate) SetCreatedAt(t time.Time) *SysDictCreate
- func (sdc *SysDictCreate) SetDeletedAt(t time.Time) *SysDictCreate
- func (sdc *SysDictCreate) SetID(s string) *SysDictCreate
- func (c *SysDictCreate) SetInput(i CreateSysDictInput) *SysDictCreate
- func (sdc *SysDictCreate) SetIsDel(b bool) *SysDictCreate
- func (sdc *SysDictCreate) SetMemo(s string) *SysDictCreate
- func (sdc *SysDictCreate) SetNameCn(s string) *SysDictCreate
- func (sdc *SysDictCreate) SetNameEn(s string) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableCreatedAt(t *time.Time) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableDeletedAt(t *time.Time) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableID(s *string) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableIsDel(b *bool) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableMemo(s *string) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableSort(i *int32) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableStatus(i *int16) *SysDictCreate
- func (sdc *SysDictCreate) SetNillableUpdatedAt(t *time.Time) *SysDictCreate
- func (sdc *SysDictCreate) SetSort(i int32) *SysDictCreate
- func (sdc *SysDictCreate) SetStatus(i int16) *SysDictCreate
- func (sdc *SysDictCreate) SetUpdatedAt(t time.Time) *SysDictCreate
- type SysDictCreateBulk
- type SysDictDelete
- type SysDictDeleteOne
- type SysDictGroupBy
- func (sdgb *SysDictGroupBy) Aggregate(fns ...AggregateFunc) *SysDictGroupBy
- func (sdgb *SysDictGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sdgb *SysDictGroupBy) BoolX(ctx context.Context) bool
- func (sdgb *SysDictGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sdgb *SysDictGroupBy) BoolsX(ctx context.Context) []bool
- func (sdgb *SysDictGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sdgb *SysDictGroupBy) Float64X(ctx context.Context) float64
- func (sdgb *SysDictGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sdgb *SysDictGroupBy) Float64sX(ctx context.Context) []float64
- func (sdgb *SysDictGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sdgb *SysDictGroupBy) IntX(ctx context.Context) int
- func (sdgb *SysDictGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sdgb *SysDictGroupBy) IntsX(ctx context.Context) []int
- func (sdgb *SysDictGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sdgb *SysDictGroupBy) ScanX(ctx context.Context, v interface{})
- func (sdgb *SysDictGroupBy) String(ctx context.Context) (_ string, err error)
- func (sdgb *SysDictGroupBy) StringX(ctx context.Context) string
- func (sdgb *SysDictGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sdgb *SysDictGroupBy) StringsX(ctx context.Context) []string
- type SysDictItem
- type SysDictItemClient
- func (c *SysDictItemClient) Create() *SysDictItemCreate
- func (c *SysDictItemClient) CreateBulk(builders ...*SysDictItemCreate) *SysDictItemCreateBulk
- func (c *SysDictItemClient) Delete() *SysDictItemDelete
- func (c *SysDictItemClient) DeleteOne(sdi *SysDictItem) *SysDictItemDeleteOne
- func (c *SysDictItemClient) DeleteOneID(id string) *SysDictItemDeleteOne
- func (c *SysDictItemClient) Get(ctx context.Context, id string) (*SysDictItem, error)
- func (c *SysDictItemClient) GetX(ctx context.Context, id string) *SysDictItem
- func (c *SysDictItemClient) Hooks() []Hook
- func (c *SysDictItemClient) Query() *SysDictItemQuery
- func (c *SysDictItemClient) Update() *SysDictItemUpdate
- func (c *SysDictItemClient) UpdateOne(sdi *SysDictItem) *SysDictItemUpdateOne
- func (c *SysDictItemClient) UpdateOneID(id string) *SysDictItemUpdateOne
- func (c *SysDictItemClient) Use(hooks ...Hook)
- type SysDictItemCreate
- func (sdic *SysDictItemCreate) Mutation() *SysDictItemMutation
- func (sdic *SysDictItemCreate) Save(ctx context.Context) (*SysDictItem, error)
- func (sdic *SysDictItemCreate) SaveX(ctx context.Context) *SysDictItem
- func (sdic *SysDictItemCreate) SetCreatedAt(t time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetDeletedAt(t time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetDictID(s string) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetID(s string) *SysDictItemCreate
- func (c *SysDictItemCreate) SetInput(i CreateSysDictItemInput) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetIsDel(b bool) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetLabel(s string) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetMemo(s string) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableCreatedAt(t *time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableDeletedAt(t *time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableID(s *string) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableIsDel(b *bool) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableMemo(s *string) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableSort(i *int32) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetNillableUpdatedAt(t *time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetSort(i int32) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetStatus(i int16) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetUpdatedAt(t time.Time) *SysDictItemCreate
- func (sdic *SysDictItemCreate) SetValue(i int) *SysDictItemCreate
- type SysDictItemCreateBulk
- type SysDictItemDelete
- type SysDictItemDeleteOne
- type SysDictItemGroupBy
- func (sdigb *SysDictItemGroupBy) Aggregate(fns ...AggregateFunc) *SysDictItemGroupBy
- func (sdigb *SysDictItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sdigb *SysDictItemGroupBy) BoolX(ctx context.Context) bool
- func (sdigb *SysDictItemGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sdigb *SysDictItemGroupBy) BoolsX(ctx context.Context) []bool
- func (sdigb *SysDictItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sdigb *SysDictItemGroupBy) Float64X(ctx context.Context) float64
- func (sdigb *SysDictItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sdigb *SysDictItemGroupBy) Float64sX(ctx context.Context) []float64
- func (sdigb *SysDictItemGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sdigb *SysDictItemGroupBy) IntX(ctx context.Context) int
- func (sdigb *SysDictItemGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sdigb *SysDictItemGroupBy) IntsX(ctx context.Context) []int
- func (sdigb *SysDictItemGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sdigb *SysDictItemGroupBy) ScanX(ctx context.Context, v interface{})
- func (sdigb *SysDictItemGroupBy) String(ctx context.Context) (_ string, err error)
- func (sdigb *SysDictItemGroupBy) StringX(ctx context.Context) string
- func (sdigb *SysDictItemGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sdigb *SysDictItemGroupBy) StringsX(ctx context.Context) []string
- type SysDictItemMutation
- func (m *SysDictItemMutation) AddField(name string, value ent.Value) error
- func (m *SysDictItemMutation) AddSort(i int32)
- func (m *SysDictItemMutation) AddStatus(i int16)
- func (m *SysDictItemMutation) AddValue(i int)
- func (m *SysDictItemMutation) AddedEdges() []string
- func (m *SysDictItemMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysDictItemMutation) AddedFields() []string
- func (m *SysDictItemMutation) AddedIDs(name string) []ent.Value
- func (m *SysDictItemMutation) AddedSort() (r int32, exists bool)
- func (m *SysDictItemMutation) AddedStatus() (r int16, exists bool)
- func (m *SysDictItemMutation) AddedValue() (r int, exists bool)
- func (m *SysDictItemMutation) ClearDeletedAt()
- func (m *SysDictItemMutation) ClearEdge(name string) error
- func (m *SysDictItemMutation) ClearField(name string) error
- func (m *SysDictItemMutation) ClearedEdges() []string
- func (m *SysDictItemMutation) ClearedFields() []string
- func (m SysDictItemMutation) Client() *Client
- func (m *SysDictItemMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysDictItemMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysDictItemMutation) DeletedAtCleared() bool
- func (m *SysDictItemMutation) DictID() (r string, exists bool)
- func (m *SysDictItemMutation) EdgeCleared(name string) bool
- func (m *SysDictItemMutation) Field(name string) (ent.Value, bool)
- func (m *SysDictItemMutation) FieldCleared(name string) bool
- func (m *SysDictItemMutation) Fields() []string
- func (m *SysDictItemMutation) ID() (id string, exists bool)
- func (m *SysDictItemMutation) IsDel() (r bool, exists bool)
- func (m *SysDictItemMutation) Label() (r string, exists bool)
- func (m *SysDictItemMutation) Memo() (r string, exists bool)
- func (m *SysDictItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysDictItemMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysDictItemMutation) OldDictID(ctx context.Context) (v string, err error)
- func (m *SysDictItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysDictItemMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysDictItemMutation) OldLabel(ctx context.Context) (v string, err error)
- func (m *SysDictItemMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysDictItemMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysDictItemMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysDictItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysDictItemMutation) OldValue(ctx context.Context) (v int, err error)
- func (m *SysDictItemMutation) Op() Op
- func (m *SysDictItemMutation) RemovedEdges() []string
- func (m *SysDictItemMutation) RemovedIDs(name string) []ent.Value
- func (m *SysDictItemMutation) ResetCreatedAt()
- func (m *SysDictItemMutation) ResetDeletedAt()
- func (m *SysDictItemMutation) ResetDictID()
- func (m *SysDictItemMutation) ResetEdge(name string) error
- func (m *SysDictItemMutation) ResetField(name string) error
- func (m *SysDictItemMutation) ResetIsDel()
- func (m *SysDictItemMutation) ResetLabel()
- func (m *SysDictItemMutation) ResetMemo()
- func (m *SysDictItemMutation) ResetSort()
- func (m *SysDictItemMutation) ResetStatus()
- func (m *SysDictItemMutation) ResetUpdatedAt()
- func (m *SysDictItemMutation) ResetValue()
- func (m *SysDictItemMutation) SetCreatedAt(t time.Time)
- func (m *SysDictItemMutation) SetDeletedAt(t time.Time)
- func (m *SysDictItemMutation) SetDictID(s string)
- func (m *SysDictItemMutation) SetField(name string, value ent.Value) error
- func (m *SysDictItemMutation) SetID(id string)
- func (m *SysDictItemMutation) SetIsDel(b bool)
- func (m *SysDictItemMutation) SetLabel(s string)
- func (m *SysDictItemMutation) SetMemo(s string)
- func (m *SysDictItemMutation) SetSort(i int32)
- func (m *SysDictItemMutation) SetStatus(i int16)
- func (m *SysDictItemMutation) SetUpdatedAt(t time.Time)
- func (m *SysDictItemMutation) SetValue(i int)
- func (m *SysDictItemMutation) Sort() (r int32, exists bool)
- func (m *SysDictItemMutation) Status() (r int16, exists bool)
- func (m SysDictItemMutation) Tx() (*Tx, error)
- func (m *SysDictItemMutation) Type() string
- func (m *SysDictItemMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SysDictItemMutation) Value() (r int, exists bool)
- type SysDictItemQuery
- func (sdiq *SysDictItemQuery) All(ctx context.Context) ([]*SysDictItem, error)
- func (sdiq *SysDictItemQuery) AllX(ctx context.Context) []*SysDictItem
- func (sdiq *SysDictItemQuery) Clone() *SysDictItemQuery
- func (sdiq *SysDictItemQuery) Count(ctx context.Context) (int, error)
- func (sdiq *SysDictItemQuery) CountX(ctx context.Context) int
- func (sdiq *SysDictItemQuery) Exist(ctx context.Context) (bool, error)
- func (sdiq *SysDictItemQuery) ExistX(ctx context.Context) bool
- func (sdiq *SysDictItemQuery) First(ctx context.Context) (*SysDictItem, error)
- func (sdiq *SysDictItemQuery) FirstID(ctx context.Context) (id string, err error)
- func (sdiq *SysDictItemQuery) FirstIDX(ctx context.Context) string
- func (sdiq *SysDictItemQuery) FirstX(ctx context.Context) *SysDictItem
- func (sdiq *SysDictItemQuery) GroupBy(field string, fields ...string) *SysDictItemGroupBy
- func (sdiq *SysDictItemQuery) IDs(ctx context.Context) ([]string, error)
- func (sdiq *SysDictItemQuery) IDsX(ctx context.Context) []string
- func (sdiq *SysDictItemQuery) Limit(limit int) *SysDictItemQuery
- func (sdiq *SysDictItemQuery) Offset(offset int) *SysDictItemQuery
- func (sdiq *SysDictItemQuery) Only(ctx context.Context) (*SysDictItem, error)
- func (sdiq *SysDictItemQuery) OnlyID(ctx context.Context) (id string, err error)
- func (sdiq *SysDictItemQuery) OnlyIDX(ctx context.Context) string
- func (sdiq *SysDictItemQuery) OnlyX(ctx context.Context) *SysDictItem
- func (sdiq *SysDictItemQuery) Order(o ...OrderFunc) *SysDictItemQuery
- func (sdiq *SysDictItemQuery) Select(field string, fields ...string) *SysDictItemSelect
- func (sdiq *SysDictItemQuery) Unique(unique bool) *SysDictItemQuery
- func (sdiq *SysDictItemQuery) Where(ps ...predicate.SysDictItem) *SysDictItemQuery
- type SysDictItemSelect
- func (sdis *SysDictItemSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sdis *SysDictItemSelect) BoolX(ctx context.Context) bool
- func (sdis *SysDictItemSelect) Bools(ctx context.Context) ([]bool, error)
- func (sdis *SysDictItemSelect) BoolsX(ctx context.Context) []bool
- func (sdis *SysDictItemSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sdis *SysDictItemSelect) Float64X(ctx context.Context) float64
- func (sdis *SysDictItemSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sdis *SysDictItemSelect) Float64sX(ctx context.Context) []float64
- func (sdis *SysDictItemSelect) Int(ctx context.Context) (_ int, err error)
- func (sdis *SysDictItemSelect) IntX(ctx context.Context) int
- func (sdis *SysDictItemSelect) Ints(ctx context.Context) ([]int, error)
- func (sdis *SysDictItemSelect) IntsX(ctx context.Context) []int
- func (sdis *SysDictItemSelect) Scan(ctx context.Context, v interface{}) error
- func (sdis *SysDictItemSelect) ScanX(ctx context.Context, v interface{})
- func (sdis *SysDictItemSelect) String(ctx context.Context) (_ string, err error)
- func (sdis *SysDictItemSelect) StringX(ctx context.Context) string
- func (sdis *SysDictItemSelect) Strings(ctx context.Context) ([]string, error)
- func (sdis *SysDictItemSelect) StringsX(ctx context.Context) []string
- type SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) AddSort(i int32) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) AddStatus(i int16) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) AddValue(i int) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) ClearDeletedAt() *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) Exec(ctx context.Context) error
- func (sdiu *SysDictItemUpdate) ExecX(ctx context.Context)
- func (sdiu *SysDictItemUpdate) Mutation() *SysDictItemMutation
- func (sdiu *SysDictItemUpdate) Save(ctx context.Context) (int, error)
- func (sdiu *SysDictItemUpdate) SaveX(ctx context.Context) int
- func (sdiu *SysDictItemUpdate) SetDeletedAt(t time.Time) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetDictID(s string) *SysDictItemUpdate
- func (u *SysDictItemUpdate) SetInput(i UpdateSysDictItemInput) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetIsDel(b bool) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetLabel(s string) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetMemo(s string) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetNillableDeletedAt(t *time.Time) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetNillableIsDel(b *bool) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetNillableMemo(s *string) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetNillableSort(i *int32) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetSort(i int32) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetStatus(i int16) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetUpdatedAt(t time.Time) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) SetValue(i int) *SysDictItemUpdate
- func (sdiu *SysDictItemUpdate) Where(ps ...predicate.SysDictItem) *SysDictItemUpdate
- type SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) AddSort(i int32) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) AddStatus(i int16) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) AddValue(i int) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) ClearDeletedAt() *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) Exec(ctx context.Context) error
- func (sdiuo *SysDictItemUpdateOne) ExecX(ctx context.Context)
- func (sdiuo *SysDictItemUpdateOne) Mutation() *SysDictItemMutation
- func (sdiuo *SysDictItemUpdateOne) Save(ctx context.Context) (*SysDictItem, error)
- func (sdiuo *SysDictItemUpdateOne) SaveX(ctx context.Context) *SysDictItem
- func (sdiuo *SysDictItemUpdateOne) Select(field string, fields ...string) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetDeletedAt(t time.Time) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetDictID(s string) *SysDictItemUpdateOne
- func (u *SysDictItemUpdateOne) SetInput(i UpdateSysDictItemInput) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetIsDel(b bool) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetLabel(s string) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetMemo(s string) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetNillableDeletedAt(t *time.Time) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetNillableIsDel(b *bool) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetNillableMemo(s *string) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetNillableSort(i *int32) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetSort(i int32) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetStatus(i int16) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetUpdatedAt(t time.Time) *SysDictItemUpdateOne
- func (sdiuo *SysDictItemUpdateOne) SetValue(i int) *SysDictItemUpdateOne
- type SysDictItems
- type SysDictMutation
- func (m *SysDictMutation) AddField(name string, value ent.Value) error
- func (m *SysDictMutation) AddSort(i int32)
- func (m *SysDictMutation) AddStatus(i int16)
- func (m *SysDictMutation) AddedEdges() []string
- func (m *SysDictMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysDictMutation) AddedFields() []string
- func (m *SysDictMutation) AddedIDs(name string) []ent.Value
- func (m *SysDictMutation) AddedSort() (r int32, exists bool)
- func (m *SysDictMutation) AddedStatus() (r int16, exists bool)
- func (m *SysDictMutation) ClearDeletedAt()
- func (m *SysDictMutation) ClearEdge(name string) error
- func (m *SysDictMutation) ClearField(name string) error
- func (m *SysDictMutation) ClearedEdges() []string
- func (m *SysDictMutation) ClearedFields() []string
- func (m SysDictMutation) Client() *Client
- func (m *SysDictMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysDictMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysDictMutation) DeletedAtCleared() bool
- func (m *SysDictMutation) EdgeCleared(name string) bool
- func (m *SysDictMutation) Field(name string) (ent.Value, bool)
- func (m *SysDictMutation) FieldCleared(name string) bool
- func (m *SysDictMutation) Fields() []string
- func (m *SysDictMutation) ID() (id string, exists bool)
- func (m *SysDictMutation) IsDel() (r bool, exists bool)
- func (m *SysDictMutation) Memo() (r string, exists bool)
- func (m *SysDictMutation) NameCn() (r string, exists bool)
- func (m *SysDictMutation) NameEn() (r string, exists bool)
- func (m *SysDictMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysDictMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysDictMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysDictMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysDictMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysDictMutation) OldNameCn(ctx context.Context) (v string, err error)
- func (m *SysDictMutation) OldNameEn(ctx context.Context) (v string, err error)
- func (m *SysDictMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysDictMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysDictMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysDictMutation) Op() Op
- func (m *SysDictMutation) RemovedEdges() []string
- func (m *SysDictMutation) RemovedIDs(name string) []ent.Value
- func (m *SysDictMutation) ResetCreatedAt()
- func (m *SysDictMutation) ResetDeletedAt()
- func (m *SysDictMutation) ResetEdge(name string) error
- func (m *SysDictMutation) ResetField(name string) error
- func (m *SysDictMutation) ResetIsDel()
- func (m *SysDictMutation) ResetMemo()
- func (m *SysDictMutation) ResetNameCn()
- func (m *SysDictMutation) ResetNameEn()
- func (m *SysDictMutation) ResetSort()
- func (m *SysDictMutation) ResetStatus()
- func (m *SysDictMutation) ResetUpdatedAt()
- func (m *SysDictMutation) SetCreatedAt(t time.Time)
- func (m *SysDictMutation) SetDeletedAt(t time.Time)
- func (m *SysDictMutation) SetField(name string, value ent.Value) error
- func (m *SysDictMutation) SetID(id string)
- func (m *SysDictMutation) SetIsDel(b bool)
- func (m *SysDictMutation) SetMemo(s string)
- func (m *SysDictMutation) SetNameCn(s string)
- func (m *SysDictMutation) SetNameEn(s string)
- func (m *SysDictMutation) SetSort(i int32)
- func (m *SysDictMutation) SetStatus(i int16)
- func (m *SysDictMutation) SetUpdatedAt(t time.Time)
- func (m *SysDictMutation) Sort() (r int32, exists bool)
- func (m *SysDictMutation) Status() (r int16, exists bool)
- func (m SysDictMutation) Tx() (*Tx, error)
- func (m *SysDictMutation) Type() string
- func (m *SysDictMutation) UpdatedAt() (r time.Time, exists bool)
- type SysDictQuery
- func (sdq *SysDictQuery) All(ctx context.Context) ([]*SysDict, error)
- func (sdq *SysDictQuery) AllX(ctx context.Context) []*SysDict
- func (sdq *SysDictQuery) Clone() *SysDictQuery
- func (sdq *SysDictQuery) Count(ctx context.Context) (int, error)
- func (sdq *SysDictQuery) CountX(ctx context.Context) int
- func (sdq *SysDictQuery) Exist(ctx context.Context) (bool, error)
- func (sdq *SysDictQuery) ExistX(ctx context.Context) bool
- func (sdq *SysDictQuery) First(ctx context.Context) (*SysDict, error)
- func (sdq *SysDictQuery) FirstID(ctx context.Context) (id string, err error)
- func (sdq *SysDictQuery) FirstIDX(ctx context.Context) string
- func (sdq *SysDictQuery) FirstX(ctx context.Context) *SysDict
- func (sdq *SysDictQuery) GroupBy(field string, fields ...string) *SysDictGroupBy
- func (sdq *SysDictQuery) IDs(ctx context.Context) ([]string, error)
- func (sdq *SysDictQuery) IDsX(ctx context.Context) []string
- func (sdq *SysDictQuery) Limit(limit int) *SysDictQuery
- func (sdq *SysDictQuery) Offset(offset int) *SysDictQuery
- func (sdq *SysDictQuery) Only(ctx context.Context) (*SysDict, error)
- func (sdq *SysDictQuery) OnlyID(ctx context.Context) (id string, err error)
- func (sdq *SysDictQuery) OnlyIDX(ctx context.Context) string
- func (sdq *SysDictQuery) OnlyX(ctx context.Context) *SysDict
- func (sdq *SysDictQuery) Order(o ...OrderFunc) *SysDictQuery
- func (sdq *SysDictQuery) Select(field string, fields ...string) *SysDictSelect
- func (sdq *SysDictQuery) Unique(unique bool) *SysDictQuery
- func (sdq *SysDictQuery) Where(ps ...predicate.SysDict) *SysDictQuery
- type SysDictSelect
- func (sds *SysDictSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sds *SysDictSelect) BoolX(ctx context.Context) bool
- func (sds *SysDictSelect) Bools(ctx context.Context) ([]bool, error)
- func (sds *SysDictSelect) BoolsX(ctx context.Context) []bool
- func (sds *SysDictSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sds *SysDictSelect) Float64X(ctx context.Context) float64
- func (sds *SysDictSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sds *SysDictSelect) Float64sX(ctx context.Context) []float64
- func (sds *SysDictSelect) Int(ctx context.Context) (_ int, err error)
- func (sds *SysDictSelect) IntX(ctx context.Context) int
- func (sds *SysDictSelect) Ints(ctx context.Context) ([]int, error)
- func (sds *SysDictSelect) IntsX(ctx context.Context) []int
- func (sds *SysDictSelect) Scan(ctx context.Context, v interface{}) error
- func (sds *SysDictSelect) ScanX(ctx context.Context, v interface{})
- func (sds *SysDictSelect) String(ctx context.Context) (_ string, err error)
- func (sds *SysDictSelect) StringX(ctx context.Context) string
- func (sds *SysDictSelect) Strings(ctx context.Context) ([]string, error)
- func (sds *SysDictSelect) StringsX(ctx context.Context) []string
- type SysDictUpdate
- func (sdu *SysDictUpdate) AddSort(i int32) *SysDictUpdate
- func (sdu *SysDictUpdate) AddStatus(i int16) *SysDictUpdate
- func (sdu *SysDictUpdate) ClearDeletedAt() *SysDictUpdate
- func (sdu *SysDictUpdate) Exec(ctx context.Context) error
- func (sdu *SysDictUpdate) ExecX(ctx context.Context)
- func (sdu *SysDictUpdate) Mutation() *SysDictMutation
- func (sdu *SysDictUpdate) Save(ctx context.Context) (int, error)
- func (sdu *SysDictUpdate) SaveX(ctx context.Context) int
- func (sdu *SysDictUpdate) SetDeletedAt(t time.Time) *SysDictUpdate
- func (u *SysDictUpdate) SetInput(i UpdateSysDictInput) *SysDictUpdate
- func (sdu *SysDictUpdate) SetIsDel(b bool) *SysDictUpdate
- func (sdu *SysDictUpdate) SetMemo(s string) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNameCn(s string) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNameEn(s string) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNillableDeletedAt(t *time.Time) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNillableIsDel(b *bool) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNillableMemo(s *string) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNillableSort(i *int32) *SysDictUpdate
- func (sdu *SysDictUpdate) SetNillableStatus(i *int16) *SysDictUpdate
- func (sdu *SysDictUpdate) SetSort(i int32) *SysDictUpdate
- func (sdu *SysDictUpdate) SetStatus(i int16) *SysDictUpdate
- func (sdu *SysDictUpdate) SetUpdatedAt(t time.Time) *SysDictUpdate
- func (sdu *SysDictUpdate) Where(ps ...predicate.SysDict) *SysDictUpdate
- type SysDictUpdateOne
- func (sduo *SysDictUpdateOne) AddSort(i int32) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) AddStatus(i int16) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) ClearDeletedAt() *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) Exec(ctx context.Context) error
- func (sduo *SysDictUpdateOne) ExecX(ctx context.Context)
- func (sduo *SysDictUpdateOne) Mutation() *SysDictMutation
- func (sduo *SysDictUpdateOne) Save(ctx context.Context) (*SysDict, error)
- func (sduo *SysDictUpdateOne) SaveX(ctx context.Context) *SysDict
- func (sduo *SysDictUpdateOne) Select(field string, fields ...string) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetDeletedAt(t time.Time) *SysDictUpdateOne
- func (u *SysDictUpdateOne) SetInput(i UpdateSysDictInput) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetIsDel(b bool) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetMemo(s string) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNameCn(s string) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNameEn(s string) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNillableDeletedAt(t *time.Time) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNillableIsDel(b *bool) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNillableMemo(s *string) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNillableSort(i *int32) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetNillableStatus(i *int16) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetSort(i int32) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetStatus(i int16) *SysDictUpdateOne
- func (sduo *SysDictUpdateOne) SetUpdatedAt(t time.Time) *SysDictUpdateOne
- type SysDicts
- type SysJwtBlock
- type SysJwtBlockClient
- func (c *SysJwtBlockClient) Create() *SysJwtBlockCreate
- func (c *SysJwtBlockClient) CreateBulk(builders ...*SysJwtBlockCreate) *SysJwtBlockCreateBulk
- func (c *SysJwtBlockClient) Delete() *SysJwtBlockDelete
- func (c *SysJwtBlockClient) DeleteOne(sjb *SysJwtBlock) *SysJwtBlockDeleteOne
- func (c *SysJwtBlockClient) DeleteOneID(id string) *SysJwtBlockDeleteOne
- func (c *SysJwtBlockClient) Get(ctx context.Context, id string) (*SysJwtBlock, error)
- func (c *SysJwtBlockClient) GetX(ctx context.Context, id string) *SysJwtBlock
- func (c *SysJwtBlockClient) Hooks() []Hook
- func (c *SysJwtBlockClient) Query() *SysJwtBlockQuery
- func (c *SysJwtBlockClient) Update() *SysJwtBlockUpdate
- func (c *SysJwtBlockClient) UpdateOne(sjb *SysJwtBlock) *SysJwtBlockUpdateOne
- func (c *SysJwtBlockClient) UpdateOneID(id string) *SysJwtBlockUpdateOne
- func (c *SysJwtBlockClient) Use(hooks ...Hook)
- type SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) Mutation() *SysJwtBlockMutation
- func (sjbc *SysJwtBlockCreate) Save(ctx context.Context) (*SysJwtBlock, error)
- func (sjbc *SysJwtBlockCreate) SaveX(ctx context.Context) *SysJwtBlock
- func (sjbc *SysJwtBlockCreate) SetCreatedAt(t time.Time) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetDeletedAt(t time.Time) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetID(s string) *SysJwtBlockCreate
- func (c *SysJwtBlockCreate) SetInput(i CreateSysJwtBlockInput) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetIsDel(b bool) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetJwt(s string) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetMemo(s string) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableCreatedAt(t *time.Time) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableDeletedAt(t *time.Time) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableID(s *string) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableIsDel(b *bool) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableMemo(s *string) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableStatus(i *int16) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetNillableUpdatedAt(t *time.Time) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetStatus(i int16) *SysJwtBlockCreate
- func (sjbc *SysJwtBlockCreate) SetUpdatedAt(t time.Time) *SysJwtBlockCreate
- type SysJwtBlockCreateBulk
- type SysJwtBlockDelete
- type SysJwtBlockDeleteOne
- type SysJwtBlockGroupBy
- func (sjbgb *SysJwtBlockGroupBy) Aggregate(fns ...AggregateFunc) *SysJwtBlockGroupBy
- func (sjbgb *SysJwtBlockGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sjbgb *SysJwtBlockGroupBy) BoolX(ctx context.Context) bool
- func (sjbgb *SysJwtBlockGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sjbgb *SysJwtBlockGroupBy) BoolsX(ctx context.Context) []bool
- func (sjbgb *SysJwtBlockGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sjbgb *SysJwtBlockGroupBy) Float64X(ctx context.Context) float64
- func (sjbgb *SysJwtBlockGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sjbgb *SysJwtBlockGroupBy) Float64sX(ctx context.Context) []float64
- func (sjbgb *SysJwtBlockGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sjbgb *SysJwtBlockGroupBy) IntX(ctx context.Context) int
- func (sjbgb *SysJwtBlockGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sjbgb *SysJwtBlockGroupBy) IntsX(ctx context.Context) []int
- func (sjbgb *SysJwtBlockGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sjbgb *SysJwtBlockGroupBy) ScanX(ctx context.Context, v interface{})
- func (sjbgb *SysJwtBlockGroupBy) String(ctx context.Context) (_ string, err error)
- func (sjbgb *SysJwtBlockGroupBy) StringX(ctx context.Context) string
- func (sjbgb *SysJwtBlockGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sjbgb *SysJwtBlockGroupBy) StringsX(ctx context.Context) []string
- type SysJwtBlockMutation
- func (m *SysJwtBlockMutation) AddField(name string, value ent.Value) error
- func (m *SysJwtBlockMutation) AddStatus(i int16)
- func (m *SysJwtBlockMutation) AddedEdges() []string
- func (m *SysJwtBlockMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysJwtBlockMutation) AddedFields() []string
- func (m *SysJwtBlockMutation) AddedIDs(name string) []ent.Value
- func (m *SysJwtBlockMutation) AddedStatus() (r int16, exists bool)
- func (m *SysJwtBlockMutation) ClearDeletedAt()
- func (m *SysJwtBlockMutation) ClearEdge(name string) error
- func (m *SysJwtBlockMutation) ClearField(name string) error
- func (m *SysJwtBlockMutation) ClearedEdges() []string
- func (m *SysJwtBlockMutation) ClearedFields() []string
- func (m SysJwtBlockMutation) Client() *Client
- func (m *SysJwtBlockMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysJwtBlockMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysJwtBlockMutation) DeletedAtCleared() bool
- func (m *SysJwtBlockMutation) EdgeCleared(name string) bool
- func (m *SysJwtBlockMutation) Field(name string) (ent.Value, bool)
- func (m *SysJwtBlockMutation) FieldCleared(name string) bool
- func (m *SysJwtBlockMutation) Fields() []string
- func (m *SysJwtBlockMutation) ID() (id string, exists bool)
- func (m *SysJwtBlockMutation) IsDel() (r bool, exists bool)
- func (m *SysJwtBlockMutation) Jwt() (r string, exists bool)
- func (m *SysJwtBlockMutation) Memo() (r string, exists bool)
- func (m *SysJwtBlockMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysJwtBlockMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysJwtBlockMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysJwtBlockMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysJwtBlockMutation) OldJwt(ctx context.Context) (v string, err error)
- func (m *SysJwtBlockMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysJwtBlockMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysJwtBlockMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysJwtBlockMutation) Op() Op
- func (m *SysJwtBlockMutation) RemovedEdges() []string
- func (m *SysJwtBlockMutation) RemovedIDs(name string) []ent.Value
- func (m *SysJwtBlockMutation) ResetCreatedAt()
- func (m *SysJwtBlockMutation) ResetDeletedAt()
- func (m *SysJwtBlockMutation) ResetEdge(name string) error
- func (m *SysJwtBlockMutation) ResetField(name string) error
- func (m *SysJwtBlockMutation) ResetIsDel()
- func (m *SysJwtBlockMutation) ResetJwt()
- func (m *SysJwtBlockMutation) ResetMemo()
- func (m *SysJwtBlockMutation) ResetStatus()
- func (m *SysJwtBlockMutation) ResetUpdatedAt()
- func (m *SysJwtBlockMutation) SetCreatedAt(t time.Time)
- func (m *SysJwtBlockMutation) SetDeletedAt(t time.Time)
- func (m *SysJwtBlockMutation) SetField(name string, value ent.Value) error
- func (m *SysJwtBlockMutation) SetID(id string)
- func (m *SysJwtBlockMutation) SetIsDel(b bool)
- func (m *SysJwtBlockMutation) SetJwt(s string)
- func (m *SysJwtBlockMutation) SetMemo(s string)
- func (m *SysJwtBlockMutation) SetStatus(i int16)
- func (m *SysJwtBlockMutation) SetUpdatedAt(t time.Time)
- func (m *SysJwtBlockMutation) Status() (r int16, exists bool)
- func (m SysJwtBlockMutation) Tx() (*Tx, error)
- func (m *SysJwtBlockMutation) Type() string
- func (m *SysJwtBlockMutation) UpdatedAt() (r time.Time, exists bool)
- type SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) All(ctx context.Context) ([]*SysJwtBlock, error)
- func (sjbq *SysJwtBlockQuery) AllX(ctx context.Context) []*SysJwtBlock
- func (sjbq *SysJwtBlockQuery) Clone() *SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) Count(ctx context.Context) (int, error)
- func (sjbq *SysJwtBlockQuery) CountX(ctx context.Context) int
- func (sjbq *SysJwtBlockQuery) Exist(ctx context.Context) (bool, error)
- func (sjbq *SysJwtBlockQuery) ExistX(ctx context.Context) bool
- func (sjbq *SysJwtBlockQuery) First(ctx context.Context) (*SysJwtBlock, error)
- func (sjbq *SysJwtBlockQuery) FirstID(ctx context.Context) (id string, err error)
- func (sjbq *SysJwtBlockQuery) FirstIDX(ctx context.Context) string
- func (sjbq *SysJwtBlockQuery) FirstX(ctx context.Context) *SysJwtBlock
- func (sjbq *SysJwtBlockQuery) GroupBy(field string, fields ...string) *SysJwtBlockGroupBy
- func (sjbq *SysJwtBlockQuery) IDs(ctx context.Context) ([]string, error)
- func (sjbq *SysJwtBlockQuery) IDsX(ctx context.Context) []string
- func (sjbq *SysJwtBlockQuery) Limit(limit int) *SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) Offset(offset int) *SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) Only(ctx context.Context) (*SysJwtBlock, error)
- func (sjbq *SysJwtBlockQuery) OnlyID(ctx context.Context) (id string, err error)
- func (sjbq *SysJwtBlockQuery) OnlyIDX(ctx context.Context) string
- func (sjbq *SysJwtBlockQuery) OnlyX(ctx context.Context) *SysJwtBlock
- func (sjbq *SysJwtBlockQuery) Order(o ...OrderFunc) *SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) Select(field string, fields ...string) *SysJwtBlockSelect
- func (sjbq *SysJwtBlockQuery) Unique(unique bool) *SysJwtBlockQuery
- func (sjbq *SysJwtBlockQuery) Where(ps ...predicate.SysJwtBlock) *SysJwtBlockQuery
- type SysJwtBlockSelect
- func (sjbs *SysJwtBlockSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sjbs *SysJwtBlockSelect) BoolX(ctx context.Context) bool
- func (sjbs *SysJwtBlockSelect) Bools(ctx context.Context) ([]bool, error)
- func (sjbs *SysJwtBlockSelect) BoolsX(ctx context.Context) []bool
- func (sjbs *SysJwtBlockSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sjbs *SysJwtBlockSelect) Float64X(ctx context.Context) float64
- func (sjbs *SysJwtBlockSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sjbs *SysJwtBlockSelect) Float64sX(ctx context.Context) []float64
- func (sjbs *SysJwtBlockSelect) Int(ctx context.Context) (_ int, err error)
- func (sjbs *SysJwtBlockSelect) IntX(ctx context.Context) int
- func (sjbs *SysJwtBlockSelect) Ints(ctx context.Context) ([]int, error)
- func (sjbs *SysJwtBlockSelect) IntsX(ctx context.Context) []int
- func (sjbs *SysJwtBlockSelect) Scan(ctx context.Context, v interface{}) error
- func (sjbs *SysJwtBlockSelect) ScanX(ctx context.Context, v interface{})
- func (sjbs *SysJwtBlockSelect) String(ctx context.Context) (_ string, err error)
- func (sjbs *SysJwtBlockSelect) StringX(ctx context.Context) string
- func (sjbs *SysJwtBlockSelect) Strings(ctx context.Context) ([]string, error)
- func (sjbs *SysJwtBlockSelect) StringsX(ctx context.Context) []string
- type SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) AddStatus(i int16) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) ClearDeletedAt() *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) Exec(ctx context.Context) error
- func (sjbu *SysJwtBlockUpdate) ExecX(ctx context.Context)
- func (sjbu *SysJwtBlockUpdate) Mutation() *SysJwtBlockMutation
- func (sjbu *SysJwtBlockUpdate) Save(ctx context.Context) (int, error)
- func (sjbu *SysJwtBlockUpdate) SaveX(ctx context.Context) int
- func (sjbu *SysJwtBlockUpdate) SetDeletedAt(t time.Time) *SysJwtBlockUpdate
- func (u *SysJwtBlockUpdate) SetInput(i UpdateSysJwtBlockInput) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetIsDel(b bool) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetJwt(s string) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetMemo(s string) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetNillableDeletedAt(t *time.Time) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetNillableIsDel(b *bool) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetNillableMemo(s *string) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetNillableStatus(i *int16) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetStatus(i int16) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) SetUpdatedAt(t time.Time) *SysJwtBlockUpdate
- func (sjbu *SysJwtBlockUpdate) Where(ps ...predicate.SysJwtBlock) *SysJwtBlockUpdate
- type SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) AddStatus(i int16) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) ClearDeletedAt() *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) Exec(ctx context.Context) error
- func (sjbuo *SysJwtBlockUpdateOne) ExecX(ctx context.Context)
- func (sjbuo *SysJwtBlockUpdateOne) Mutation() *SysJwtBlockMutation
- func (sjbuo *SysJwtBlockUpdateOne) Save(ctx context.Context) (*SysJwtBlock, error)
- func (sjbuo *SysJwtBlockUpdateOne) SaveX(ctx context.Context) *SysJwtBlock
- func (sjbuo *SysJwtBlockUpdateOne) Select(field string, fields ...string) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetDeletedAt(t time.Time) *SysJwtBlockUpdateOne
- func (u *SysJwtBlockUpdateOne) SetInput(i UpdateSysJwtBlockInput) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetIsDel(b bool) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetJwt(s string) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetMemo(s string) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetNillableDeletedAt(t *time.Time) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetNillableIsDel(b *bool) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetNillableMemo(s *string) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetNillableStatus(i *int16) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetStatus(i int16) *SysJwtBlockUpdateOne
- func (sjbuo *SysJwtBlockUpdateOne) SetUpdatedAt(t time.Time) *SysJwtBlockUpdateOne
- type SysJwtBlocks
- type SysLogging
- type SysLoggingClient
- func (c *SysLoggingClient) Create() *SysLoggingCreate
- func (c *SysLoggingClient) CreateBulk(builders ...*SysLoggingCreate) *SysLoggingCreateBulk
- func (c *SysLoggingClient) Delete() *SysLoggingDelete
- func (c *SysLoggingClient) DeleteOne(sl *SysLogging) *SysLoggingDeleteOne
- func (c *SysLoggingClient) DeleteOneID(id string) *SysLoggingDeleteOne
- func (c *SysLoggingClient) Get(ctx context.Context, id string) (*SysLogging, error)
- func (c *SysLoggingClient) GetX(ctx context.Context, id string) *SysLogging
- func (c *SysLoggingClient) Hooks() []Hook
- func (c *SysLoggingClient) Query() *SysLoggingQuery
- func (c *SysLoggingClient) Update() *SysLoggingUpdate
- func (c *SysLoggingClient) UpdateOne(sl *SysLogging) *SysLoggingUpdateOne
- func (c *SysLoggingClient) UpdateOneID(id string) *SysLoggingUpdateOne
- func (c *SysLoggingClient) Use(hooks ...Hook)
- type SysLoggingCreate
- func (slc *SysLoggingCreate) Mutation() *SysLoggingMutation
- func (slc *SysLoggingCreate) Save(ctx context.Context) (*SysLogging, error)
- func (slc *SysLoggingCreate) SaveX(ctx context.Context) *SysLogging
- func (slc *SysLoggingCreate) SetCreatedAt(t time.Time) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetData(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetErrorStack(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetID(s string) *SysLoggingCreate
- func (c *SysLoggingCreate) SetInput(i CreateSysLoggingInput) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetIsDel(b bool) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetLevel(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetMemo(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetMessage(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetNillableCreatedAt(t *time.Time) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetNillableData(s *string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetNillableID(s *string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetNillableIsDel(b *bool) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetNillableMemo(s *string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetTag(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetTraceID(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetUserID(s string) *SysLoggingCreate
- func (slc *SysLoggingCreate) SetVersion(s string) *SysLoggingCreate
- type SysLoggingCreateBulk
- type SysLoggingDelete
- type SysLoggingDeleteOne
- type SysLoggingGroupBy
- func (slgb *SysLoggingGroupBy) Aggregate(fns ...AggregateFunc) *SysLoggingGroupBy
- func (slgb *SysLoggingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (slgb *SysLoggingGroupBy) BoolX(ctx context.Context) bool
- func (slgb *SysLoggingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (slgb *SysLoggingGroupBy) BoolsX(ctx context.Context) []bool
- func (slgb *SysLoggingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (slgb *SysLoggingGroupBy) Float64X(ctx context.Context) float64
- func (slgb *SysLoggingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (slgb *SysLoggingGroupBy) Float64sX(ctx context.Context) []float64
- func (slgb *SysLoggingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (slgb *SysLoggingGroupBy) IntX(ctx context.Context) int
- func (slgb *SysLoggingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (slgb *SysLoggingGroupBy) IntsX(ctx context.Context) []int
- func (slgb *SysLoggingGroupBy) Scan(ctx context.Context, v interface{}) error
- func (slgb *SysLoggingGroupBy) ScanX(ctx context.Context, v interface{})
- func (slgb *SysLoggingGroupBy) String(ctx context.Context) (_ string, err error)
- func (slgb *SysLoggingGroupBy) StringX(ctx context.Context) string
- func (slgb *SysLoggingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (slgb *SysLoggingGroupBy) StringsX(ctx context.Context) []string
- type SysLoggingMutation
- func (m *SysLoggingMutation) AddField(name string, value ent.Value) error
- func (m *SysLoggingMutation) AddedEdges() []string
- func (m *SysLoggingMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysLoggingMutation) AddedFields() []string
- func (m *SysLoggingMutation) AddedIDs(name string) []ent.Value
- func (m *SysLoggingMutation) ClearData()
- func (m *SysLoggingMutation) ClearEdge(name string) error
- func (m *SysLoggingMutation) ClearField(name string) error
- func (m *SysLoggingMutation) ClearedEdges() []string
- func (m *SysLoggingMutation) ClearedFields() []string
- func (m SysLoggingMutation) Client() *Client
- func (m *SysLoggingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysLoggingMutation) Data() (r string, exists bool)
- func (m *SysLoggingMutation) DataCleared() bool
- func (m *SysLoggingMutation) EdgeCleared(name string) bool
- func (m *SysLoggingMutation) ErrorStack() (r string, exists bool)
- func (m *SysLoggingMutation) Field(name string) (ent.Value, bool)
- func (m *SysLoggingMutation) FieldCleared(name string) bool
- func (m *SysLoggingMutation) Fields() []string
- func (m *SysLoggingMutation) ID() (id string, exists bool)
- func (m *SysLoggingMutation) IsDel() (r bool, exists bool)
- func (m *SysLoggingMutation) Level() (r string, exists bool)
- func (m *SysLoggingMutation) Memo() (r string, exists bool)
- func (m *SysLoggingMutation) Message() (r string, exists bool)
- func (m *SysLoggingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysLoggingMutation) OldData(ctx context.Context) (v *string, err error)
- func (m *SysLoggingMutation) OldErrorStack(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysLoggingMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysLoggingMutation) OldLevel(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldMessage(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldTag(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldTraceID(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldUserID(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *SysLoggingMutation) Op() Op
- func (m *SysLoggingMutation) RemovedEdges() []string
- func (m *SysLoggingMutation) RemovedIDs(name string) []ent.Value
- func (m *SysLoggingMutation) ResetCreatedAt()
- func (m *SysLoggingMutation) ResetData()
- func (m *SysLoggingMutation) ResetEdge(name string) error
- func (m *SysLoggingMutation) ResetErrorStack()
- func (m *SysLoggingMutation) ResetField(name string) error
- func (m *SysLoggingMutation) ResetIsDel()
- func (m *SysLoggingMutation) ResetLevel()
- func (m *SysLoggingMutation) ResetMemo()
- func (m *SysLoggingMutation) ResetMessage()
- func (m *SysLoggingMutation) ResetTag()
- func (m *SysLoggingMutation) ResetTraceID()
- func (m *SysLoggingMutation) ResetUserID()
- func (m *SysLoggingMutation) ResetVersion()
- func (m *SysLoggingMutation) SetCreatedAt(t time.Time)
- func (m *SysLoggingMutation) SetData(s string)
- func (m *SysLoggingMutation) SetErrorStack(s string)
- func (m *SysLoggingMutation) SetField(name string, value ent.Value) error
- func (m *SysLoggingMutation) SetID(id string)
- func (m *SysLoggingMutation) SetIsDel(b bool)
- func (m *SysLoggingMutation) SetLevel(s string)
- func (m *SysLoggingMutation) SetMemo(s string)
- func (m *SysLoggingMutation) SetMessage(s string)
- func (m *SysLoggingMutation) SetTag(s string)
- func (m *SysLoggingMutation) SetTraceID(s string)
- func (m *SysLoggingMutation) SetUserID(s string)
- func (m *SysLoggingMutation) SetVersion(s string)
- func (m *SysLoggingMutation) Tag() (r string, exists bool)
- func (m *SysLoggingMutation) TraceID() (r string, exists bool)
- func (m SysLoggingMutation) Tx() (*Tx, error)
- func (m *SysLoggingMutation) Type() string
- func (m *SysLoggingMutation) UserID() (r string, exists bool)
- func (m *SysLoggingMutation) Version() (r string, exists bool)
- type SysLoggingQuery
- func (slq *SysLoggingQuery) All(ctx context.Context) ([]*SysLogging, error)
- func (slq *SysLoggingQuery) AllX(ctx context.Context) []*SysLogging
- func (slq *SysLoggingQuery) Clone() *SysLoggingQuery
- func (slq *SysLoggingQuery) Count(ctx context.Context) (int, error)
- func (slq *SysLoggingQuery) CountX(ctx context.Context) int
- func (slq *SysLoggingQuery) Exist(ctx context.Context) (bool, error)
- func (slq *SysLoggingQuery) ExistX(ctx context.Context) bool
- func (slq *SysLoggingQuery) First(ctx context.Context) (*SysLogging, error)
- func (slq *SysLoggingQuery) FirstID(ctx context.Context) (id string, err error)
- func (slq *SysLoggingQuery) FirstIDX(ctx context.Context) string
- func (slq *SysLoggingQuery) FirstX(ctx context.Context) *SysLogging
- func (slq *SysLoggingQuery) GroupBy(field string, fields ...string) *SysLoggingGroupBy
- func (slq *SysLoggingQuery) IDs(ctx context.Context) ([]string, error)
- func (slq *SysLoggingQuery) IDsX(ctx context.Context) []string
- func (slq *SysLoggingQuery) Limit(limit int) *SysLoggingQuery
- func (slq *SysLoggingQuery) Offset(offset int) *SysLoggingQuery
- func (slq *SysLoggingQuery) Only(ctx context.Context) (*SysLogging, error)
- func (slq *SysLoggingQuery) OnlyID(ctx context.Context) (id string, err error)
- func (slq *SysLoggingQuery) OnlyIDX(ctx context.Context) string
- func (slq *SysLoggingQuery) OnlyX(ctx context.Context) *SysLogging
- func (slq *SysLoggingQuery) Order(o ...OrderFunc) *SysLoggingQuery
- func (slq *SysLoggingQuery) Select(field string, fields ...string) *SysLoggingSelect
- func (slq *SysLoggingQuery) Unique(unique bool) *SysLoggingQuery
- func (slq *SysLoggingQuery) Where(ps ...predicate.SysLogging) *SysLoggingQuery
- type SysLoggingSelect
- func (sls *SysLoggingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sls *SysLoggingSelect) BoolX(ctx context.Context) bool
- func (sls *SysLoggingSelect) Bools(ctx context.Context) ([]bool, error)
- func (sls *SysLoggingSelect) BoolsX(ctx context.Context) []bool
- func (sls *SysLoggingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sls *SysLoggingSelect) Float64X(ctx context.Context) float64
- func (sls *SysLoggingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sls *SysLoggingSelect) Float64sX(ctx context.Context) []float64
- func (sls *SysLoggingSelect) Int(ctx context.Context) (_ int, err error)
- func (sls *SysLoggingSelect) IntX(ctx context.Context) int
- func (sls *SysLoggingSelect) Ints(ctx context.Context) ([]int, error)
- func (sls *SysLoggingSelect) IntsX(ctx context.Context) []int
- func (sls *SysLoggingSelect) Scan(ctx context.Context, v interface{}) error
- func (sls *SysLoggingSelect) ScanX(ctx context.Context, v interface{})
- func (sls *SysLoggingSelect) String(ctx context.Context) (_ string, err error)
- func (sls *SysLoggingSelect) StringX(ctx context.Context) string
- func (sls *SysLoggingSelect) Strings(ctx context.Context) ([]string, error)
- func (sls *SysLoggingSelect) StringsX(ctx context.Context) []string
- type SysLoggingUpdate
- func (slu *SysLoggingUpdate) Exec(ctx context.Context) error
- func (slu *SysLoggingUpdate) ExecX(ctx context.Context)
- func (slu *SysLoggingUpdate) Mutation() *SysLoggingMutation
- func (slu *SysLoggingUpdate) Save(ctx context.Context) (int, error)
- func (slu *SysLoggingUpdate) SaveX(ctx context.Context) int
- func (slu *SysLoggingUpdate) SetErrorStack(s string) *SysLoggingUpdate
- func (u *SysLoggingUpdate) SetInput(i UpdateSysLoggingInput) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetIsDel(b bool) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetLevel(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetMemo(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetMessage(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetNillableIsDel(b *bool) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetNillableMemo(s *string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetTag(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetTraceID(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetUserID(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) SetVersion(s string) *SysLoggingUpdate
- func (slu *SysLoggingUpdate) Where(ps ...predicate.SysLogging) *SysLoggingUpdate
- type SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) Exec(ctx context.Context) error
- func (sluo *SysLoggingUpdateOne) ExecX(ctx context.Context)
- func (sluo *SysLoggingUpdateOne) Mutation() *SysLoggingMutation
- func (sluo *SysLoggingUpdateOne) Save(ctx context.Context) (*SysLogging, error)
- func (sluo *SysLoggingUpdateOne) SaveX(ctx context.Context) *SysLogging
- func (sluo *SysLoggingUpdateOne) Select(field string, fields ...string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetErrorStack(s string) *SysLoggingUpdateOne
- func (u *SysLoggingUpdateOne) SetInput(i UpdateSysLoggingInput) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetIsDel(b bool) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetLevel(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetMemo(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetMessage(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetNillableIsDel(b *bool) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetNillableMemo(s *string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetTag(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetTraceID(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetUserID(s string) *SysLoggingUpdateOne
- func (sluo *SysLoggingUpdateOne) SetVersion(s string) *SysLoggingUpdateOne
- type SysLoggings
- type SysMenu
- type SysMenuAction
- type SysMenuActionClient
- func (c *SysMenuActionClient) Create() *SysMenuActionCreate
- func (c *SysMenuActionClient) CreateBulk(builders ...*SysMenuActionCreate) *SysMenuActionCreateBulk
- func (c *SysMenuActionClient) Delete() *SysMenuActionDelete
- func (c *SysMenuActionClient) DeleteOne(sma *SysMenuAction) *SysMenuActionDeleteOne
- func (c *SysMenuActionClient) DeleteOneID(id string) *SysMenuActionDeleteOne
- func (c *SysMenuActionClient) Get(ctx context.Context, id string) (*SysMenuAction, error)
- func (c *SysMenuActionClient) GetX(ctx context.Context, id string) *SysMenuAction
- func (c *SysMenuActionClient) Hooks() []Hook
- func (c *SysMenuActionClient) Query() *SysMenuActionQuery
- func (c *SysMenuActionClient) Update() *SysMenuActionUpdate
- func (c *SysMenuActionClient) UpdateOne(sma *SysMenuAction) *SysMenuActionUpdateOne
- func (c *SysMenuActionClient) UpdateOneID(id string) *SysMenuActionUpdateOne
- func (c *SysMenuActionClient) Use(hooks ...Hook)
- type SysMenuActionCreate
- func (smac *SysMenuActionCreate) Mutation() *SysMenuActionMutation
- func (smac *SysMenuActionCreate) Save(ctx context.Context) (*SysMenuAction, error)
- func (smac *SysMenuActionCreate) SaveX(ctx context.Context) *SysMenuAction
- func (smac *SysMenuActionCreate) SetCode(s string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetCreatedAt(t time.Time) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetDeletedAt(t time.Time) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetID(s string) *SysMenuActionCreate
- func (c *SysMenuActionCreate) SetInput(i CreateSysMenuActionInput) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetIsDel(b bool) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetMemo(s string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetMenuID(s string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetName(s string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableCreatedAt(t *time.Time) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableDeletedAt(t *time.Time) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableID(s *string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableIsDel(b *bool) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableMemo(s *string) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableSort(i *int32) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableStatus(i *int16) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetSort(i int32) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetStatus(i int16) *SysMenuActionCreate
- func (smac *SysMenuActionCreate) SetUpdatedAt(t time.Time) *SysMenuActionCreate
- type SysMenuActionCreateBulk
- type SysMenuActionDelete
- type SysMenuActionDeleteOne
- type SysMenuActionGroupBy
- func (smagb *SysMenuActionGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuActionGroupBy
- func (smagb *SysMenuActionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (smagb *SysMenuActionGroupBy) BoolX(ctx context.Context) bool
- func (smagb *SysMenuActionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (smagb *SysMenuActionGroupBy) BoolsX(ctx context.Context) []bool
- func (smagb *SysMenuActionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (smagb *SysMenuActionGroupBy) Float64X(ctx context.Context) float64
- func (smagb *SysMenuActionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (smagb *SysMenuActionGroupBy) Float64sX(ctx context.Context) []float64
- func (smagb *SysMenuActionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (smagb *SysMenuActionGroupBy) IntX(ctx context.Context) int
- func (smagb *SysMenuActionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (smagb *SysMenuActionGroupBy) IntsX(ctx context.Context) []int
- func (smagb *SysMenuActionGroupBy) Scan(ctx context.Context, v interface{}) error
- func (smagb *SysMenuActionGroupBy) ScanX(ctx context.Context, v interface{})
- func (smagb *SysMenuActionGroupBy) String(ctx context.Context) (_ string, err error)
- func (smagb *SysMenuActionGroupBy) StringX(ctx context.Context) string
- func (smagb *SysMenuActionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (smagb *SysMenuActionGroupBy) StringsX(ctx context.Context) []string
- type SysMenuActionMutation
- func (m *SysMenuActionMutation) AddField(name string, value ent.Value) error
- func (m *SysMenuActionMutation) AddSort(i int32)
- func (m *SysMenuActionMutation) AddStatus(i int16)
- func (m *SysMenuActionMutation) AddedEdges() []string
- func (m *SysMenuActionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysMenuActionMutation) AddedFields() []string
- func (m *SysMenuActionMutation) AddedIDs(name string) []ent.Value
- func (m *SysMenuActionMutation) AddedSort() (r int32, exists bool)
- func (m *SysMenuActionMutation) AddedStatus() (r int16, exists bool)
- func (m *SysMenuActionMutation) ClearDeletedAt()
- func (m *SysMenuActionMutation) ClearEdge(name string) error
- func (m *SysMenuActionMutation) ClearField(name string) error
- func (m *SysMenuActionMutation) ClearedEdges() []string
- func (m *SysMenuActionMutation) ClearedFields() []string
- func (m SysMenuActionMutation) Client() *Client
- func (m *SysMenuActionMutation) Code() (r string, exists bool)
- func (m *SysMenuActionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysMenuActionMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysMenuActionMutation) DeletedAtCleared() bool
- func (m *SysMenuActionMutation) EdgeCleared(name string) bool
- func (m *SysMenuActionMutation) Field(name string) (ent.Value, bool)
- func (m *SysMenuActionMutation) FieldCleared(name string) bool
- func (m *SysMenuActionMutation) Fields() []string
- func (m *SysMenuActionMutation) ID() (id string, exists bool)
- func (m *SysMenuActionMutation) IsDel() (r bool, exists bool)
- func (m *SysMenuActionMutation) Memo() (r string, exists bool)
- func (m *SysMenuActionMutation) MenuID() (r string, exists bool)
- func (m *SysMenuActionMutation) Name() (r string, exists bool)
- func (m *SysMenuActionMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *SysMenuActionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuActionMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysMenuActionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysMenuActionMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysMenuActionMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysMenuActionMutation) OldMenuID(ctx context.Context) (v string, err error)
- func (m *SysMenuActionMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SysMenuActionMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysMenuActionMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysMenuActionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuActionMutation) Op() Op
- func (m *SysMenuActionMutation) RemovedEdges() []string
- func (m *SysMenuActionMutation) RemovedIDs(name string) []ent.Value
- func (m *SysMenuActionMutation) ResetCode()
- func (m *SysMenuActionMutation) ResetCreatedAt()
- func (m *SysMenuActionMutation) ResetDeletedAt()
- func (m *SysMenuActionMutation) ResetEdge(name string) error
- func (m *SysMenuActionMutation) ResetField(name string) error
- func (m *SysMenuActionMutation) ResetIsDel()
- func (m *SysMenuActionMutation) ResetMemo()
- func (m *SysMenuActionMutation) ResetMenuID()
- func (m *SysMenuActionMutation) ResetName()
- func (m *SysMenuActionMutation) ResetSort()
- func (m *SysMenuActionMutation) ResetStatus()
- func (m *SysMenuActionMutation) ResetUpdatedAt()
- func (m *SysMenuActionMutation) SetCode(s string)
- func (m *SysMenuActionMutation) SetCreatedAt(t time.Time)
- func (m *SysMenuActionMutation) SetDeletedAt(t time.Time)
- func (m *SysMenuActionMutation) SetField(name string, value ent.Value) error
- func (m *SysMenuActionMutation) SetID(id string)
- func (m *SysMenuActionMutation) SetIsDel(b bool)
- func (m *SysMenuActionMutation) SetMemo(s string)
- func (m *SysMenuActionMutation) SetMenuID(s string)
- func (m *SysMenuActionMutation) SetName(s string)
- func (m *SysMenuActionMutation) SetSort(i int32)
- func (m *SysMenuActionMutation) SetStatus(i int16)
- func (m *SysMenuActionMutation) SetUpdatedAt(t time.Time)
- func (m *SysMenuActionMutation) Sort() (r int32, exists bool)
- func (m *SysMenuActionMutation) Status() (r int16, exists bool)
- func (m SysMenuActionMutation) Tx() (*Tx, error)
- func (m *SysMenuActionMutation) Type() string
- func (m *SysMenuActionMutation) UpdatedAt() (r time.Time, exists bool)
- type SysMenuActionQuery
- func (smaq *SysMenuActionQuery) All(ctx context.Context) ([]*SysMenuAction, error)
- func (smaq *SysMenuActionQuery) AllX(ctx context.Context) []*SysMenuAction
- func (smaq *SysMenuActionQuery) Clone() *SysMenuActionQuery
- func (smaq *SysMenuActionQuery) Count(ctx context.Context) (int, error)
- func (smaq *SysMenuActionQuery) CountX(ctx context.Context) int
- func (smaq *SysMenuActionQuery) Exist(ctx context.Context) (bool, error)
- func (smaq *SysMenuActionQuery) ExistX(ctx context.Context) bool
- func (smaq *SysMenuActionQuery) First(ctx context.Context) (*SysMenuAction, error)
- func (smaq *SysMenuActionQuery) FirstID(ctx context.Context) (id string, err error)
- func (smaq *SysMenuActionQuery) FirstIDX(ctx context.Context) string
- func (smaq *SysMenuActionQuery) FirstX(ctx context.Context) *SysMenuAction
- func (smaq *SysMenuActionQuery) GroupBy(field string, fields ...string) *SysMenuActionGroupBy
- func (smaq *SysMenuActionQuery) IDs(ctx context.Context) ([]string, error)
- func (smaq *SysMenuActionQuery) IDsX(ctx context.Context) []string
- func (smaq *SysMenuActionQuery) Limit(limit int) *SysMenuActionQuery
- func (smaq *SysMenuActionQuery) Offset(offset int) *SysMenuActionQuery
- func (smaq *SysMenuActionQuery) Only(ctx context.Context) (*SysMenuAction, error)
- func (smaq *SysMenuActionQuery) OnlyID(ctx context.Context) (id string, err error)
- func (smaq *SysMenuActionQuery) OnlyIDX(ctx context.Context) string
- func (smaq *SysMenuActionQuery) OnlyX(ctx context.Context) *SysMenuAction
- func (smaq *SysMenuActionQuery) Order(o ...OrderFunc) *SysMenuActionQuery
- func (smaq *SysMenuActionQuery) Select(field string, fields ...string) *SysMenuActionSelect
- func (smaq *SysMenuActionQuery) Unique(unique bool) *SysMenuActionQuery
- func (smaq *SysMenuActionQuery) Where(ps ...predicate.SysMenuAction) *SysMenuActionQuery
- type SysMenuActionResource
- type SysMenuActionResourceClient
- func (c *SysMenuActionResourceClient) Create() *SysMenuActionResourceCreate
- func (c *SysMenuActionResourceClient) CreateBulk(builders ...*SysMenuActionResourceCreate) *SysMenuActionResourceCreateBulk
- func (c *SysMenuActionResourceClient) Delete() *SysMenuActionResourceDelete
- func (c *SysMenuActionResourceClient) DeleteOne(smar *SysMenuActionResource) *SysMenuActionResourceDeleteOne
- func (c *SysMenuActionResourceClient) DeleteOneID(id string) *SysMenuActionResourceDeleteOne
- func (c *SysMenuActionResourceClient) Get(ctx context.Context, id string) (*SysMenuActionResource, error)
- func (c *SysMenuActionResourceClient) GetX(ctx context.Context, id string) *SysMenuActionResource
- func (c *SysMenuActionResourceClient) Hooks() []Hook
- func (c *SysMenuActionResourceClient) Query() *SysMenuActionResourceQuery
- func (c *SysMenuActionResourceClient) Update() *SysMenuActionResourceUpdate
- func (c *SysMenuActionResourceClient) UpdateOne(smar *SysMenuActionResource) *SysMenuActionResourceUpdateOne
- func (c *SysMenuActionResourceClient) UpdateOneID(id string) *SysMenuActionResourceUpdateOne
- func (c *SysMenuActionResourceClient) Use(hooks ...Hook)
- type SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) Mutation() *SysMenuActionResourceMutation
- func (smarc *SysMenuActionResourceCreate) Save(ctx context.Context) (*SysMenuActionResource, error)
- func (smarc *SysMenuActionResourceCreate) SaveX(ctx context.Context) *SysMenuActionResource
- func (smarc *SysMenuActionResourceCreate) SetActionID(s string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetCreatedAt(t time.Time) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetDeletedAt(t time.Time) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetID(s string) *SysMenuActionResourceCreate
- func (c *SysMenuActionResourceCreate) SetInput(i CreateSysMenuActionResourceInput) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetIsDel(b bool) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetMemo(s string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetMethod(s string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableCreatedAt(t *time.Time) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableID(s *string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableIsDel(b *bool) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableMemo(s *string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableSort(i *int32) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableStatus(i *int16) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetPath(s string) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetSort(i int32) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetStatus(i int16) *SysMenuActionResourceCreate
- func (smarc *SysMenuActionResourceCreate) SetUpdatedAt(t time.Time) *SysMenuActionResourceCreate
- type SysMenuActionResourceCreateBulk
- type SysMenuActionResourceDelete
- type SysMenuActionResourceDeleteOne
- type SysMenuActionResourceGroupBy
- func (smargb *SysMenuActionResourceGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuActionResourceGroupBy
- func (smargb *SysMenuActionResourceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (smargb *SysMenuActionResourceGroupBy) BoolX(ctx context.Context) bool
- func (smargb *SysMenuActionResourceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (smargb *SysMenuActionResourceGroupBy) BoolsX(ctx context.Context) []bool
- func (smargb *SysMenuActionResourceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (smargb *SysMenuActionResourceGroupBy) Float64X(ctx context.Context) float64
- func (smargb *SysMenuActionResourceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (smargb *SysMenuActionResourceGroupBy) Float64sX(ctx context.Context) []float64
- func (smargb *SysMenuActionResourceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (smargb *SysMenuActionResourceGroupBy) IntX(ctx context.Context) int
- func (smargb *SysMenuActionResourceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (smargb *SysMenuActionResourceGroupBy) IntsX(ctx context.Context) []int
- func (smargb *SysMenuActionResourceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (smargb *SysMenuActionResourceGroupBy) ScanX(ctx context.Context, v interface{})
- func (smargb *SysMenuActionResourceGroupBy) String(ctx context.Context) (_ string, err error)
- func (smargb *SysMenuActionResourceGroupBy) StringX(ctx context.Context) string
- func (smargb *SysMenuActionResourceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (smargb *SysMenuActionResourceGroupBy) StringsX(ctx context.Context) []string
- type SysMenuActionResourceMutation
- func (m *SysMenuActionResourceMutation) ActionID() (r string, exists bool)
- func (m *SysMenuActionResourceMutation) AddField(name string, value ent.Value) error
- func (m *SysMenuActionResourceMutation) AddSort(i int32)
- func (m *SysMenuActionResourceMutation) AddStatus(i int16)
- func (m *SysMenuActionResourceMutation) AddedEdges() []string
- func (m *SysMenuActionResourceMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysMenuActionResourceMutation) AddedFields() []string
- func (m *SysMenuActionResourceMutation) AddedIDs(name string) []ent.Value
- func (m *SysMenuActionResourceMutation) AddedSort() (r int32, exists bool)
- func (m *SysMenuActionResourceMutation) AddedStatus() (r int16, exists bool)
- func (m *SysMenuActionResourceMutation) ClearDeletedAt()
- func (m *SysMenuActionResourceMutation) ClearEdge(name string) error
- func (m *SysMenuActionResourceMutation) ClearField(name string) error
- func (m *SysMenuActionResourceMutation) ClearedEdges() []string
- func (m *SysMenuActionResourceMutation) ClearedFields() []string
- func (m SysMenuActionResourceMutation) Client() *Client
- func (m *SysMenuActionResourceMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysMenuActionResourceMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysMenuActionResourceMutation) DeletedAtCleared() bool
- func (m *SysMenuActionResourceMutation) EdgeCleared(name string) bool
- func (m *SysMenuActionResourceMutation) Field(name string) (ent.Value, bool)
- func (m *SysMenuActionResourceMutation) FieldCleared(name string) bool
- func (m *SysMenuActionResourceMutation) Fields() []string
- func (m *SysMenuActionResourceMutation) ID() (id string, exists bool)
- func (m *SysMenuActionResourceMutation) IsDel() (r bool, exists bool)
- func (m *SysMenuActionResourceMutation) Memo() (r string, exists bool)
- func (m *SysMenuActionResourceMutation) Method() (r string, exists bool)
- func (m *SysMenuActionResourceMutation) OldActionID(ctx context.Context) (v string, err error)
- func (m *SysMenuActionResourceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuActionResourceMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysMenuActionResourceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysMenuActionResourceMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysMenuActionResourceMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysMenuActionResourceMutation) OldMethod(ctx context.Context) (v string, err error)
- func (m *SysMenuActionResourceMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *SysMenuActionResourceMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysMenuActionResourceMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysMenuActionResourceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuActionResourceMutation) Op() Op
- func (m *SysMenuActionResourceMutation) Path() (r string, exists bool)
- func (m *SysMenuActionResourceMutation) RemovedEdges() []string
- func (m *SysMenuActionResourceMutation) RemovedIDs(name string) []ent.Value
- func (m *SysMenuActionResourceMutation) ResetActionID()
- func (m *SysMenuActionResourceMutation) ResetCreatedAt()
- func (m *SysMenuActionResourceMutation) ResetDeletedAt()
- func (m *SysMenuActionResourceMutation) ResetEdge(name string) error
- func (m *SysMenuActionResourceMutation) ResetField(name string) error
- func (m *SysMenuActionResourceMutation) ResetIsDel()
- func (m *SysMenuActionResourceMutation) ResetMemo()
- func (m *SysMenuActionResourceMutation) ResetMethod()
- func (m *SysMenuActionResourceMutation) ResetPath()
- func (m *SysMenuActionResourceMutation) ResetSort()
- func (m *SysMenuActionResourceMutation) ResetStatus()
- func (m *SysMenuActionResourceMutation) ResetUpdatedAt()
- func (m *SysMenuActionResourceMutation) SetActionID(s string)
- func (m *SysMenuActionResourceMutation) SetCreatedAt(t time.Time)
- func (m *SysMenuActionResourceMutation) SetDeletedAt(t time.Time)
- func (m *SysMenuActionResourceMutation) SetField(name string, value ent.Value) error
- func (m *SysMenuActionResourceMutation) SetID(id string)
- func (m *SysMenuActionResourceMutation) SetIsDel(b bool)
- func (m *SysMenuActionResourceMutation) SetMemo(s string)
- func (m *SysMenuActionResourceMutation) SetMethod(s string)
- func (m *SysMenuActionResourceMutation) SetPath(s string)
- func (m *SysMenuActionResourceMutation) SetSort(i int32)
- func (m *SysMenuActionResourceMutation) SetStatus(i int16)
- func (m *SysMenuActionResourceMutation) SetUpdatedAt(t time.Time)
- func (m *SysMenuActionResourceMutation) Sort() (r int32, exists bool)
- func (m *SysMenuActionResourceMutation) Status() (r int16, exists bool)
- func (m SysMenuActionResourceMutation) Tx() (*Tx, error)
- func (m *SysMenuActionResourceMutation) Type() string
- func (m *SysMenuActionResourceMutation) UpdatedAt() (r time.Time, exists bool)
- type SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) All(ctx context.Context) ([]*SysMenuActionResource, error)
- func (smarq *SysMenuActionResourceQuery) AllX(ctx context.Context) []*SysMenuActionResource
- func (smarq *SysMenuActionResourceQuery) Clone() *SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) Count(ctx context.Context) (int, error)
- func (smarq *SysMenuActionResourceQuery) CountX(ctx context.Context) int
- func (smarq *SysMenuActionResourceQuery) Exist(ctx context.Context) (bool, error)
- func (smarq *SysMenuActionResourceQuery) ExistX(ctx context.Context) bool
- func (smarq *SysMenuActionResourceQuery) First(ctx context.Context) (*SysMenuActionResource, error)
- func (smarq *SysMenuActionResourceQuery) FirstID(ctx context.Context) (id string, err error)
- func (smarq *SysMenuActionResourceQuery) FirstIDX(ctx context.Context) string
- func (smarq *SysMenuActionResourceQuery) FirstX(ctx context.Context) *SysMenuActionResource
- func (smarq *SysMenuActionResourceQuery) GroupBy(field string, fields ...string) *SysMenuActionResourceGroupBy
- func (smarq *SysMenuActionResourceQuery) IDs(ctx context.Context) ([]string, error)
- func (smarq *SysMenuActionResourceQuery) IDsX(ctx context.Context) []string
- func (smarq *SysMenuActionResourceQuery) Limit(limit int) *SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) Offset(offset int) *SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) Only(ctx context.Context) (*SysMenuActionResource, error)
- func (smarq *SysMenuActionResourceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (smarq *SysMenuActionResourceQuery) OnlyIDX(ctx context.Context) string
- func (smarq *SysMenuActionResourceQuery) OnlyX(ctx context.Context) *SysMenuActionResource
- func (smarq *SysMenuActionResourceQuery) Order(o ...OrderFunc) *SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) Select(field string, fields ...string) *SysMenuActionResourceSelect
- func (smarq *SysMenuActionResourceQuery) Unique(unique bool) *SysMenuActionResourceQuery
- func (smarq *SysMenuActionResourceQuery) Where(ps ...predicate.SysMenuActionResource) *SysMenuActionResourceQuery
- type SysMenuActionResourceSelect
- func (smars *SysMenuActionResourceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (smars *SysMenuActionResourceSelect) BoolX(ctx context.Context) bool
- func (smars *SysMenuActionResourceSelect) Bools(ctx context.Context) ([]bool, error)
- func (smars *SysMenuActionResourceSelect) BoolsX(ctx context.Context) []bool
- func (smars *SysMenuActionResourceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (smars *SysMenuActionResourceSelect) Float64X(ctx context.Context) float64
- func (smars *SysMenuActionResourceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (smars *SysMenuActionResourceSelect) Float64sX(ctx context.Context) []float64
- func (smars *SysMenuActionResourceSelect) Int(ctx context.Context) (_ int, err error)
- func (smars *SysMenuActionResourceSelect) IntX(ctx context.Context) int
- func (smars *SysMenuActionResourceSelect) Ints(ctx context.Context) ([]int, error)
- func (smars *SysMenuActionResourceSelect) IntsX(ctx context.Context) []int
- func (smars *SysMenuActionResourceSelect) Scan(ctx context.Context, v interface{}) error
- func (smars *SysMenuActionResourceSelect) ScanX(ctx context.Context, v interface{})
- func (smars *SysMenuActionResourceSelect) String(ctx context.Context) (_ string, err error)
- func (smars *SysMenuActionResourceSelect) StringX(ctx context.Context) string
- func (smars *SysMenuActionResourceSelect) Strings(ctx context.Context) ([]string, error)
- func (smars *SysMenuActionResourceSelect) StringsX(ctx context.Context) []string
- type SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) AddSort(i int32) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) AddStatus(i int16) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) ClearDeletedAt() *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) Exec(ctx context.Context) error
- func (smaru *SysMenuActionResourceUpdate) ExecX(ctx context.Context)
- func (smaru *SysMenuActionResourceUpdate) Mutation() *SysMenuActionResourceMutation
- func (smaru *SysMenuActionResourceUpdate) Save(ctx context.Context) (int, error)
- func (smaru *SysMenuActionResourceUpdate) SaveX(ctx context.Context) int
- func (smaru *SysMenuActionResourceUpdate) SetActionID(s string) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetDeletedAt(t time.Time) *SysMenuActionResourceUpdate
- func (u *SysMenuActionResourceUpdate) SetInput(i UpdateSysMenuActionResourceInput) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetIsDel(b bool) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetMemo(s string) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetMethod(s string) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetNillableIsDel(b *bool) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetNillableMemo(s *string) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetNillableSort(i *int32) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetNillableStatus(i *int16) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetPath(s string) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetSort(i int32) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetStatus(i int16) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) SetUpdatedAt(t time.Time) *SysMenuActionResourceUpdate
- func (smaru *SysMenuActionResourceUpdate) Where(ps ...predicate.SysMenuActionResource) *SysMenuActionResourceUpdate
- type SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) AddSort(i int32) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) AddStatus(i int16) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) ClearDeletedAt() *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) Exec(ctx context.Context) error
- func (smaruo *SysMenuActionResourceUpdateOne) ExecX(ctx context.Context)
- func (smaruo *SysMenuActionResourceUpdateOne) Mutation() *SysMenuActionResourceMutation
- func (smaruo *SysMenuActionResourceUpdateOne) Save(ctx context.Context) (*SysMenuActionResource, error)
- func (smaruo *SysMenuActionResourceUpdateOne) SaveX(ctx context.Context) *SysMenuActionResource
- func (smaruo *SysMenuActionResourceUpdateOne) Select(field string, fields ...string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetActionID(s string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetDeletedAt(t time.Time) *SysMenuActionResourceUpdateOne
- func (u *SysMenuActionResourceUpdateOne) SetInput(i UpdateSysMenuActionResourceInput) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetIsDel(b bool) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetMemo(s string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetMethod(s string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetNillableIsDel(b *bool) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetNillableMemo(s *string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetNillableSort(i *int32) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetNillableStatus(i *int16) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetPath(s string) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetSort(i int32) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetStatus(i int16) *SysMenuActionResourceUpdateOne
- func (smaruo *SysMenuActionResourceUpdateOne) SetUpdatedAt(t time.Time) *SysMenuActionResourceUpdateOne
- type SysMenuActionResources
- type SysMenuActionSelect
- func (smas *SysMenuActionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (smas *SysMenuActionSelect) BoolX(ctx context.Context) bool
- func (smas *SysMenuActionSelect) Bools(ctx context.Context) ([]bool, error)
- func (smas *SysMenuActionSelect) BoolsX(ctx context.Context) []bool
- func (smas *SysMenuActionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (smas *SysMenuActionSelect) Float64X(ctx context.Context) float64
- func (smas *SysMenuActionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (smas *SysMenuActionSelect) Float64sX(ctx context.Context) []float64
- func (smas *SysMenuActionSelect) Int(ctx context.Context) (_ int, err error)
- func (smas *SysMenuActionSelect) IntX(ctx context.Context) int
- func (smas *SysMenuActionSelect) Ints(ctx context.Context) ([]int, error)
- func (smas *SysMenuActionSelect) IntsX(ctx context.Context) []int
- func (smas *SysMenuActionSelect) Scan(ctx context.Context, v interface{}) error
- func (smas *SysMenuActionSelect) ScanX(ctx context.Context, v interface{})
- func (smas *SysMenuActionSelect) String(ctx context.Context) (_ string, err error)
- func (smas *SysMenuActionSelect) StringX(ctx context.Context) string
- func (smas *SysMenuActionSelect) Strings(ctx context.Context) ([]string, error)
- func (smas *SysMenuActionSelect) StringsX(ctx context.Context) []string
- type SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) AddSort(i int32) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) AddStatus(i int16) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) ClearDeletedAt() *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) Exec(ctx context.Context) error
- func (smau *SysMenuActionUpdate) ExecX(ctx context.Context)
- func (smau *SysMenuActionUpdate) Mutation() *SysMenuActionMutation
- func (smau *SysMenuActionUpdate) Save(ctx context.Context) (int, error)
- func (smau *SysMenuActionUpdate) SaveX(ctx context.Context) int
- func (smau *SysMenuActionUpdate) SetCode(s string) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetDeletedAt(t time.Time) *SysMenuActionUpdate
- func (u *SysMenuActionUpdate) SetInput(i UpdateSysMenuActionInput) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetIsDel(b bool) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetMemo(s string) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetMenuID(s string) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetName(s string) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetNillableIsDel(b *bool) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetNillableMemo(s *string) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetNillableSort(i *int32) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetNillableStatus(i *int16) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetSort(i int32) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetStatus(i int16) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) SetUpdatedAt(t time.Time) *SysMenuActionUpdate
- func (smau *SysMenuActionUpdate) Where(ps ...predicate.SysMenuAction) *SysMenuActionUpdate
- type SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) AddSort(i int32) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) AddStatus(i int16) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) ClearDeletedAt() *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) Exec(ctx context.Context) error
- func (smauo *SysMenuActionUpdateOne) ExecX(ctx context.Context)
- func (smauo *SysMenuActionUpdateOne) Mutation() *SysMenuActionMutation
- func (smauo *SysMenuActionUpdateOne) Save(ctx context.Context) (*SysMenuAction, error)
- func (smauo *SysMenuActionUpdateOne) SaveX(ctx context.Context) *SysMenuAction
- func (smauo *SysMenuActionUpdateOne) Select(field string, fields ...string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetCode(s string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetDeletedAt(t time.Time) *SysMenuActionUpdateOne
- func (u *SysMenuActionUpdateOne) SetInput(i UpdateSysMenuActionInput) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetIsDel(b bool) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetMemo(s string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetMenuID(s string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetName(s string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetNillableIsDel(b *bool) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetNillableMemo(s *string) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetNillableSort(i *int32) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetNillableStatus(i *int16) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetSort(i int32) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetStatus(i int16) *SysMenuActionUpdateOne
- func (smauo *SysMenuActionUpdateOne) SetUpdatedAt(t time.Time) *SysMenuActionUpdateOne
- type SysMenuActions
- type SysMenuClient
- func (c *SysMenuClient) Create() *SysMenuCreate
- func (c *SysMenuClient) CreateBulk(builders ...*SysMenuCreate) *SysMenuCreateBulk
- func (c *SysMenuClient) Delete() *SysMenuDelete
- func (c *SysMenuClient) DeleteOne(sm *SysMenu) *SysMenuDeleteOne
- func (c *SysMenuClient) DeleteOneID(id string) *SysMenuDeleteOne
- func (c *SysMenuClient) Get(ctx context.Context, id string) (*SysMenu, error)
- func (c *SysMenuClient) GetX(ctx context.Context, id string) *SysMenu
- func (c *SysMenuClient) Hooks() []Hook
- func (c *SysMenuClient) Query() *SysMenuQuery
- func (c *SysMenuClient) Update() *SysMenuUpdate
- func (c *SysMenuClient) UpdateOne(sm *SysMenu) *SysMenuUpdateOne
- func (c *SysMenuClient) UpdateOneID(id string) *SysMenuUpdateOne
- func (c *SysMenuClient) Use(hooks ...Hook)
- type SysMenuCreate
- func (smc *SysMenuCreate) Mutation() *SysMenuMutation
- func (smc *SysMenuCreate) Save(ctx context.Context) (*SysMenu, error)
- func (smc *SysMenuCreate) SaveX(ctx context.Context) *SysMenu
- func (smc *SysMenuCreate) SetCreatedAt(t time.Time) *SysMenuCreate
- func (smc *SysMenuCreate) SetDeletedAt(t time.Time) *SysMenuCreate
- func (smc *SysMenuCreate) SetID(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetIcon(s string) *SysMenuCreate
- func (c *SysMenuCreate) SetInput(i CreateSysMenuInput) *SysMenuCreate
- func (smc *SysMenuCreate) SetIsDel(b bool) *SysMenuCreate
- func (smc *SysMenuCreate) SetIsShow(b bool) *SysMenuCreate
- func (smc *SysMenuCreate) SetMemo(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetName(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableCreatedAt(t *time.Time) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableDeletedAt(t *time.Time) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableID(s *string) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableIsDel(b *bool) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableIsShow(b *bool) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableMemo(s *string) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableParentID(s *string) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableParentPath(s *string) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableSort(i *int32) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableStatus(i *int16) *SysMenuCreate
- func (smc *SysMenuCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuCreate
- func (smc *SysMenuCreate) SetParentID(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetParentPath(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetRouter(s string) *SysMenuCreate
- func (smc *SysMenuCreate) SetSort(i int32) *SysMenuCreate
- func (smc *SysMenuCreate) SetStatus(i int16) *SysMenuCreate
- func (smc *SysMenuCreate) SetUpdatedAt(t time.Time) *SysMenuCreate
- type SysMenuCreateBulk
- type SysMenuDelete
- type SysMenuDeleteOne
- type SysMenuGroupBy
- func (smgb *SysMenuGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuGroupBy
- func (smgb *SysMenuGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (smgb *SysMenuGroupBy) BoolX(ctx context.Context) bool
- func (smgb *SysMenuGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (smgb *SysMenuGroupBy) BoolsX(ctx context.Context) []bool
- func (smgb *SysMenuGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (smgb *SysMenuGroupBy) Float64X(ctx context.Context) float64
- func (smgb *SysMenuGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (smgb *SysMenuGroupBy) Float64sX(ctx context.Context) []float64
- func (smgb *SysMenuGroupBy) Int(ctx context.Context) (_ int, err error)
- func (smgb *SysMenuGroupBy) IntX(ctx context.Context) int
- func (smgb *SysMenuGroupBy) Ints(ctx context.Context) ([]int, error)
- func (smgb *SysMenuGroupBy) IntsX(ctx context.Context) []int
- func (smgb *SysMenuGroupBy) Scan(ctx context.Context, v interface{}) error
- func (smgb *SysMenuGroupBy) ScanX(ctx context.Context, v interface{})
- func (smgb *SysMenuGroupBy) String(ctx context.Context) (_ string, err error)
- func (smgb *SysMenuGroupBy) StringX(ctx context.Context) string
- func (smgb *SysMenuGroupBy) Strings(ctx context.Context) ([]string, error)
- func (smgb *SysMenuGroupBy) StringsX(ctx context.Context) []string
- type SysMenuMutation
- func (m *SysMenuMutation) AddField(name string, value ent.Value) error
- func (m *SysMenuMutation) AddSort(i int32)
- func (m *SysMenuMutation) AddStatus(i int16)
- func (m *SysMenuMutation) AddedEdges() []string
- func (m *SysMenuMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysMenuMutation) AddedFields() []string
- func (m *SysMenuMutation) AddedIDs(name string) []ent.Value
- func (m *SysMenuMutation) AddedSort() (r int32, exists bool)
- func (m *SysMenuMutation) AddedStatus() (r int16, exists bool)
- func (m *SysMenuMutation) ClearDeletedAt()
- func (m *SysMenuMutation) ClearEdge(name string) error
- func (m *SysMenuMutation) ClearField(name string) error
- func (m *SysMenuMutation) ClearParentID()
- func (m *SysMenuMutation) ClearParentPath()
- func (m *SysMenuMutation) ClearedEdges() []string
- func (m *SysMenuMutation) ClearedFields() []string
- func (m SysMenuMutation) Client() *Client
- func (m *SysMenuMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysMenuMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysMenuMutation) DeletedAtCleared() bool
- func (m *SysMenuMutation) EdgeCleared(name string) bool
- func (m *SysMenuMutation) Field(name string) (ent.Value, bool)
- func (m *SysMenuMutation) FieldCleared(name string) bool
- func (m *SysMenuMutation) Fields() []string
- func (m *SysMenuMutation) ID() (id string, exists bool)
- func (m *SysMenuMutation) Icon() (r string, exists bool)
- func (m *SysMenuMutation) IsDel() (r bool, exists bool)
- func (m *SysMenuMutation) IsShow() (r bool, exists bool)
- func (m *SysMenuMutation) Memo() (r string, exists bool)
- func (m *SysMenuMutation) Name() (r string, exists bool)
- func (m *SysMenuMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysMenuMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysMenuMutation) OldIcon(ctx context.Context) (v string, err error)
- func (m *SysMenuMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysMenuMutation) OldIsShow(ctx context.Context) (v bool, err error)
- func (m *SysMenuMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysMenuMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SysMenuMutation) OldParentID(ctx context.Context) (v *string, err error)
- func (m *SysMenuMutation) OldParentPath(ctx context.Context) (v *string, err error)
- func (m *SysMenuMutation) OldRouter(ctx context.Context) (v string, err error)
- func (m *SysMenuMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysMenuMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysMenuMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysMenuMutation) Op() Op
- func (m *SysMenuMutation) ParentID() (r string, exists bool)
- func (m *SysMenuMutation) ParentIDCleared() bool
- func (m *SysMenuMutation) ParentPath() (r string, exists bool)
- func (m *SysMenuMutation) ParentPathCleared() bool
- func (m *SysMenuMutation) RemovedEdges() []string
- func (m *SysMenuMutation) RemovedIDs(name string) []ent.Value
- func (m *SysMenuMutation) ResetCreatedAt()
- func (m *SysMenuMutation) ResetDeletedAt()
- func (m *SysMenuMutation) ResetEdge(name string) error
- func (m *SysMenuMutation) ResetField(name string) error
- func (m *SysMenuMutation) ResetIcon()
- func (m *SysMenuMutation) ResetIsDel()
- func (m *SysMenuMutation) ResetIsShow()
- func (m *SysMenuMutation) ResetMemo()
- func (m *SysMenuMutation) ResetName()
- func (m *SysMenuMutation) ResetParentID()
- func (m *SysMenuMutation) ResetParentPath()
- func (m *SysMenuMutation) ResetRouter()
- func (m *SysMenuMutation) ResetSort()
- func (m *SysMenuMutation) ResetStatus()
- func (m *SysMenuMutation) ResetUpdatedAt()
- func (m *SysMenuMutation) Router() (r string, exists bool)
- func (m *SysMenuMutation) SetCreatedAt(t time.Time)
- func (m *SysMenuMutation) SetDeletedAt(t time.Time)
- func (m *SysMenuMutation) SetField(name string, value ent.Value) error
- func (m *SysMenuMutation) SetID(id string)
- func (m *SysMenuMutation) SetIcon(s string)
- func (m *SysMenuMutation) SetIsDel(b bool)
- func (m *SysMenuMutation) SetIsShow(b bool)
- func (m *SysMenuMutation) SetMemo(s string)
- func (m *SysMenuMutation) SetName(s string)
- func (m *SysMenuMutation) SetParentID(s string)
- func (m *SysMenuMutation) SetParentPath(s string)
- func (m *SysMenuMutation) SetRouter(s string)
- func (m *SysMenuMutation) SetSort(i int32)
- func (m *SysMenuMutation) SetStatus(i int16)
- func (m *SysMenuMutation) SetUpdatedAt(t time.Time)
- func (m *SysMenuMutation) Sort() (r int32, exists bool)
- func (m *SysMenuMutation) Status() (r int16, exists bool)
- func (m SysMenuMutation) Tx() (*Tx, error)
- func (m *SysMenuMutation) Type() string
- func (m *SysMenuMutation) UpdatedAt() (r time.Time, exists bool)
- type SysMenuQuery
- func (smq *SysMenuQuery) All(ctx context.Context) ([]*SysMenu, error)
- func (smq *SysMenuQuery) AllX(ctx context.Context) []*SysMenu
- func (smq *SysMenuQuery) Clone() *SysMenuQuery
- func (smq *SysMenuQuery) Count(ctx context.Context) (int, error)
- func (smq *SysMenuQuery) CountX(ctx context.Context) int
- func (smq *SysMenuQuery) Exist(ctx context.Context) (bool, error)
- func (smq *SysMenuQuery) ExistX(ctx context.Context) bool
- func (smq *SysMenuQuery) First(ctx context.Context) (*SysMenu, error)
- func (smq *SysMenuQuery) FirstID(ctx context.Context) (id string, err error)
- func (smq *SysMenuQuery) FirstIDX(ctx context.Context) string
- func (smq *SysMenuQuery) FirstX(ctx context.Context) *SysMenu
- func (smq *SysMenuQuery) GroupBy(field string, fields ...string) *SysMenuGroupBy
- func (smq *SysMenuQuery) IDs(ctx context.Context) ([]string, error)
- func (smq *SysMenuQuery) IDsX(ctx context.Context) []string
- func (smq *SysMenuQuery) Limit(limit int) *SysMenuQuery
- func (smq *SysMenuQuery) Offset(offset int) *SysMenuQuery
- func (smq *SysMenuQuery) Only(ctx context.Context) (*SysMenu, error)
- func (smq *SysMenuQuery) OnlyID(ctx context.Context) (id string, err error)
- func (smq *SysMenuQuery) OnlyIDX(ctx context.Context) string
- func (smq *SysMenuQuery) OnlyX(ctx context.Context) *SysMenu
- func (smq *SysMenuQuery) Order(o ...OrderFunc) *SysMenuQuery
- func (smq *SysMenuQuery) Select(field string, fields ...string) *SysMenuSelect
- func (smq *SysMenuQuery) Unique(unique bool) *SysMenuQuery
- func (smq *SysMenuQuery) Where(ps ...predicate.SysMenu) *SysMenuQuery
- type SysMenuSelect
- func (sms *SysMenuSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sms *SysMenuSelect) BoolX(ctx context.Context) bool
- func (sms *SysMenuSelect) Bools(ctx context.Context) ([]bool, error)
- func (sms *SysMenuSelect) BoolsX(ctx context.Context) []bool
- func (sms *SysMenuSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sms *SysMenuSelect) Float64X(ctx context.Context) float64
- func (sms *SysMenuSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sms *SysMenuSelect) Float64sX(ctx context.Context) []float64
- func (sms *SysMenuSelect) Int(ctx context.Context) (_ int, err error)
- func (sms *SysMenuSelect) IntX(ctx context.Context) int
- func (sms *SysMenuSelect) Ints(ctx context.Context) ([]int, error)
- func (sms *SysMenuSelect) IntsX(ctx context.Context) []int
- func (sms *SysMenuSelect) Scan(ctx context.Context, v interface{}) error
- func (sms *SysMenuSelect) ScanX(ctx context.Context, v interface{})
- func (sms *SysMenuSelect) String(ctx context.Context) (_ string, err error)
- func (sms *SysMenuSelect) StringX(ctx context.Context) string
- func (sms *SysMenuSelect) Strings(ctx context.Context) ([]string, error)
- func (sms *SysMenuSelect) StringsX(ctx context.Context) []string
- type SysMenuUpdate
- func (smu *SysMenuUpdate) AddSort(i int32) *SysMenuUpdate
- func (smu *SysMenuUpdate) AddStatus(i int16) *SysMenuUpdate
- func (smu *SysMenuUpdate) ClearDeletedAt() *SysMenuUpdate
- func (smu *SysMenuUpdate) ClearParentID() *SysMenuUpdate
- func (smu *SysMenuUpdate) ClearParentPath() *SysMenuUpdate
- func (smu *SysMenuUpdate) Exec(ctx context.Context) error
- func (smu *SysMenuUpdate) ExecX(ctx context.Context)
- func (smu *SysMenuUpdate) Mutation() *SysMenuMutation
- func (smu *SysMenuUpdate) Save(ctx context.Context) (int, error)
- func (smu *SysMenuUpdate) SaveX(ctx context.Context) int
- func (smu *SysMenuUpdate) SetDeletedAt(t time.Time) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetIcon(s string) *SysMenuUpdate
- func (u *SysMenuUpdate) SetInput(i UpdateSysMenuInput) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetIsDel(b bool) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetIsShow(b bool) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetMemo(s string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetName(s string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableIsDel(b *bool) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableIsShow(b *bool) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableMemo(s *string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableParentID(s *string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableParentPath(s *string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableSort(i *int32) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetNillableStatus(i *int16) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetParentID(s string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetParentPath(s string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetRouter(s string) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetSort(i int32) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetStatus(i int16) *SysMenuUpdate
- func (smu *SysMenuUpdate) SetUpdatedAt(t time.Time) *SysMenuUpdate
- func (smu *SysMenuUpdate) Where(ps ...predicate.SysMenu) *SysMenuUpdate
- type SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) AddSort(i int32) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) AddStatus(i int16) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) ClearDeletedAt() *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) ClearParentID() *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) ClearParentPath() *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) Exec(ctx context.Context) error
- func (smuo *SysMenuUpdateOne) ExecX(ctx context.Context)
- func (smuo *SysMenuUpdateOne) Mutation() *SysMenuMutation
- func (smuo *SysMenuUpdateOne) Save(ctx context.Context) (*SysMenu, error)
- func (smuo *SysMenuUpdateOne) SaveX(ctx context.Context) *SysMenu
- func (smuo *SysMenuUpdateOne) Select(field string, fields ...string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetDeletedAt(t time.Time) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetIcon(s string) *SysMenuUpdateOne
- func (u *SysMenuUpdateOne) SetInput(i UpdateSysMenuInput) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetIsDel(b bool) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetIsShow(b bool) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetMemo(s string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetName(s string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableIsDel(b *bool) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableIsShow(b *bool) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableMemo(s *string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableParentID(s *string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableParentPath(s *string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableSort(i *int32) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetNillableStatus(i *int16) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetParentID(s string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetParentPath(s string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetRouter(s string) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetSort(i int32) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetStatus(i int16) *SysMenuUpdateOne
- func (smuo *SysMenuUpdateOne) SetUpdatedAt(t time.Time) *SysMenuUpdateOne
- type SysMenus
- type SysRole
- type SysRoleClient
- func (c *SysRoleClient) Create() *SysRoleCreate
- func (c *SysRoleClient) CreateBulk(builders ...*SysRoleCreate) *SysRoleCreateBulk
- func (c *SysRoleClient) Delete() *SysRoleDelete
- func (c *SysRoleClient) DeleteOne(sr *SysRole) *SysRoleDeleteOne
- func (c *SysRoleClient) DeleteOneID(id string) *SysRoleDeleteOne
- func (c *SysRoleClient) Get(ctx context.Context, id string) (*SysRole, error)
- func (c *SysRoleClient) GetX(ctx context.Context, id string) *SysRole
- func (c *SysRoleClient) Hooks() []Hook
- func (c *SysRoleClient) Query() *SysRoleQuery
- func (c *SysRoleClient) Update() *SysRoleUpdate
- func (c *SysRoleClient) UpdateOne(sr *SysRole) *SysRoleUpdateOne
- func (c *SysRoleClient) UpdateOneID(id string) *SysRoleUpdateOne
- func (c *SysRoleClient) Use(hooks ...Hook)
- type SysRoleCreate
- func (src *SysRoleCreate) Mutation() *SysRoleMutation
- func (src *SysRoleCreate) Save(ctx context.Context) (*SysRole, error)
- func (src *SysRoleCreate) SaveX(ctx context.Context) *SysRole
- func (src *SysRoleCreate) SetCreatedAt(t time.Time) *SysRoleCreate
- func (src *SysRoleCreate) SetDeletedAt(t time.Time) *SysRoleCreate
- func (src *SysRoleCreate) SetID(s string) *SysRoleCreate
- func (c *SysRoleCreate) SetInput(i CreateSysRoleInput) *SysRoleCreate
- func (src *SysRoleCreate) SetIsDel(b bool) *SysRoleCreate
- func (src *SysRoleCreate) SetMemo(s string) *SysRoleCreate
- func (src *SysRoleCreate) SetName(s string) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableCreatedAt(t *time.Time) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableDeletedAt(t *time.Time) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableID(s *string) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableIsDel(b *bool) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableMemo(s *string) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableSort(i *int32) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableStatus(i *int16) *SysRoleCreate
- func (src *SysRoleCreate) SetNillableUpdatedAt(t *time.Time) *SysRoleCreate
- func (src *SysRoleCreate) SetSort(i int32) *SysRoleCreate
- func (src *SysRoleCreate) SetStatus(i int16) *SysRoleCreate
- func (src *SysRoleCreate) SetUpdatedAt(t time.Time) *SysRoleCreate
- type SysRoleCreateBulk
- type SysRoleDelete
- type SysRoleDeleteOne
- type SysRoleGroupBy
- func (srgb *SysRoleGroupBy) Aggregate(fns ...AggregateFunc) *SysRoleGroupBy
- func (srgb *SysRoleGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (srgb *SysRoleGroupBy) BoolX(ctx context.Context) bool
- func (srgb *SysRoleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (srgb *SysRoleGroupBy) BoolsX(ctx context.Context) []bool
- func (srgb *SysRoleGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (srgb *SysRoleGroupBy) Float64X(ctx context.Context) float64
- func (srgb *SysRoleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (srgb *SysRoleGroupBy) Float64sX(ctx context.Context) []float64
- func (srgb *SysRoleGroupBy) Int(ctx context.Context) (_ int, err error)
- func (srgb *SysRoleGroupBy) IntX(ctx context.Context) int
- func (srgb *SysRoleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (srgb *SysRoleGroupBy) IntsX(ctx context.Context) []int
- func (srgb *SysRoleGroupBy) Scan(ctx context.Context, v interface{}) error
- func (srgb *SysRoleGroupBy) ScanX(ctx context.Context, v interface{})
- func (srgb *SysRoleGroupBy) String(ctx context.Context) (_ string, err error)
- func (srgb *SysRoleGroupBy) StringX(ctx context.Context) string
- func (srgb *SysRoleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (srgb *SysRoleGroupBy) StringsX(ctx context.Context) []string
- type SysRoleMenu
- type SysRoleMenuClient
- func (c *SysRoleMenuClient) Create() *SysRoleMenuCreate
- func (c *SysRoleMenuClient) CreateBulk(builders ...*SysRoleMenuCreate) *SysRoleMenuCreateBulk
- func (c *SysRoleMenuClient) Delete() *SysRoleMenuDelete
- func (c *SysRoleMenuClient) DeleteOne(srm *SysRoleMenu) *SysRoleMenuDeleteOne
- func (c *SysRoleMenuClient) DeleteOneID(id string) *SysRoleMenuDeleteOne
- func (c *SysRoleMenuClient) Get(ctx context.Context, id string) (*SysRoleMenu, error)
- func (c *SysRoleMenuClient) GetX(ctx context.Context, id string) *SysRoleMenu
- func (c *SysRoleMenuClient) Hooks() []Hook
- func (c *SysRoleMenuClient) Query() *SysRoleMenuQuery
- func (c *SysRoleMenuClient) Update() *SysRoleMenuUpdate
- func (c *SysRoleMenuClient) UpdateOne(srm *SysRoleMenu) *SysRoleMenuUpdateOne
- func (c *SysRoleMenuClient) UpdateOneID(id string) *SysRoleMenuUpdateOne
- func (c *SysRoleMenuClient) Use(hooks ...Hook)
- type SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) Mutation() *SysRoleMenuMutation
- func (srmc *SysRoleMenuCreate) Save(ctx context.Context) (*SysRoleMenu, error)
- func (srmc *SysRoleMenuCreate) SaveX(ctx context.Context) *SysRoleMenu
- func (srmc *SysRoleMenuCreate) SetActionID(s string) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetCreatedAt(t time.Time) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetDeletedAt(t time.Time) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetID(s string) *SysRoleMenuCreate
- func (c *SysRoleMenuCreate) SetInput(i CreateSysRoleMenuInput) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetIsDel(b bool) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetMenuID(s string) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableActionID(s *string) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableCreatedAt(t *time.Time) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableDeletedAt(t *time.Time) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableID(s *string) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableIsDel(b *bool) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetNillableUpdatedAt(t *time.Time) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetRoleID(s string) *SysRoleMenuCreate
- func (srmc *SysRoleMenuCreate) SetUpdatedAt(t time.Time) *SysRoleMenuCreate
- type SysRoleMenuCreateBulk
- type SysRoleMenuDelete
- type SysRoleMenuDeleteOne
- type SysRoleMenuGroupBy
- func (srmgb *SysRoleMenuGroupBy) Aggregate(fns ...AggregateFunc) *SysRoleMenuGroupBy
- func (srmgb *SysRoleMenuGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (srmgb *SysRoleMenuGroupBy) BoolX(ctx context.Context) bool
- func (srmgb *SysRoleMenuGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (srmgb *SysRoleMenuGroupBy) BoolsX(ctx context.Context) []bool
- func (srmgb *SysRoleMenuGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (srmgb *SysRoleMenuGroupBy) Float64X(ctx context.Context) float64
- func (srmgb *SysRoleMenuGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (srmgb *SysRoleMenuGroupBy) Float64sX(ctx context.Context) []float64
- func (srmgb *SysRoleMenuGroupBy) Int(ctx context.Context) (_ int, err error)
- func (srmgb *SysRoleMenuGroupBy) IntX(ctx context.Context) int
- func (srmgb *SysRoleMenuGroupBy) Ints(ctx context.Context) ([]int, error)
- func (srmgb *SysRoleMenuGroupBy) IntsX(ctx context.Context) []int
- func (srmgb *SysRoleMenuGroupBy) Scan(ctx context.Context, v interface{}) error
- func (srmgb *SysRoleMenuGroupBy) ScanX(ctx context.Context, v interface{})
- func (srmgb *SysRoleMenuGroupBy) String(ctx context.Context) (_ string, err error)
- func (srmgb *SysRoleMenuGroupBy) StringX(ctx context.Context) string
- func (srmgb *SysRoleMenuGroupBy) Strings(ctx context.Context) ([]string, error)
- func (srmgb *SysRoleMenuGroupBy) StringsX(ctx context.Context) []string
- type SysRoleMenuMutation
- func (m *SysRoleMenuMutation) ActionID() (r string, exists bool)
- func (m *SysRoleMenuMutation) ActionIDCleared() bool
- func (m *SysRoleMenuMutation) AddField(name string, value ent.Value) error
- func (m *SysRoleMenuMutation) AddedEdges() []string
- func (m *SysRoleMenuMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysRoleMenuMutation) AddedFields() []string
- func (m *SysRoleMenuMutation) AddedIDs(name string) []ent.Value
- func (m *SysRoleMenuMutation) ClearActionID()
- func (m *SysRoleMenuMutation) ClearDeletedAt()
- func (m *SysRoleMenuMutation) ClearEdge(name string) error
- func (m *SysRoleMenuMutation) ClearField(name string) error
- func (m *SysRoleMenuMutation) ClearedEdges() []string
- func (m *SysRoleMenuMutation) ClearedFields() []string
- func (m SysRoleMenuMutation) Client() *Client
- func (m *SysRoleMenuMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysRoleMenuMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysRoleMenuMutation) DeletedAtCleared() bool
- func (m *SysRoleMenuMutation) EdgeCleared(name string) bool
- func (m *SysRoleMenuMutation) Field(name string) (ent.Value, bool)
- func (m *SysRoleMenuMutation) FieldCleared(name string) bool
- func (m *SysRoleMenuMutation) Fields() []string
- func (m *SysRoleMenuMutation) ID() (id string, exists bool)
- func (m *SysRoleMenuMutation) IsDel() (r bool, exists bool)
- func (m *SysRoleMenuMutation) MenuID() (r string, exists bool)
- func (m *SysRoleMenuMutation) OldActionID(ctx context.Context) (v *string, err error)
- func (m *SysRoleMenuMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysRoleMenuMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysRoleMenuMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysRoleMenuMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysRoleMenuMutation) OldMenuID(ctx context.Context) (v string, err error)
- func (m *SysRoleMenuMutation) OldRoleID(ctx context.Context) (v string, err error)
- func (m *SysRoleMenuMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysRoleMenuMutation) Op() Op
- func (m *SysRoleMenuMutation) RemovedEdges() []string
- func (m *SysRoleMenuMutation) RemovedIDs(name string) []ent.Value
- func (m *SysRoleMenuMutation) ResetActionID()
- func (m *SysRoleMenuMutation) ResetCreatedAt()
- func (m *SysRoleMenuMutation) ResetDeletedAt()
- func (m *SysRoleMenuMutation) ResetEdge(name string) error
- func (m *SysRoleMenuMutation) ResetField(name string) error
- func (m *SysRoleMenuMutation) ResetIsDel()
- func (m *SysRoleMenuMutation) ResetMenuID()
- func (m *SysRoleMenuMutation) ResetRoleID()
- func (m *SysRoleMenuMutation) ResetUpdatedAt()
- func (m *SysRoleMenuMutation) RoleID() (r string, exists bool)
- func (m *SysRoleMenuMutation) SetActionID(s string)
- func (m *SysRoleMenuMutation) SetCreatedAt(t time.Time)
- func (m *SysRoleMenuMutation) SetDeletedAt(t time.Time)
- func (m *SysRoleMenuMutation) SetField(name string, value ent.Value) error
- func (m *SysRoleMenuMutation) SetID(id string)
- func (m *SysRoleMenuMutation) SetIsDel(b bool)
- func (m *SysRoleMenuMutation) SetMenuID(s string)
- func (m *SysRoleMenuMutation) SetRoleID(s string)
- func (m *SysRoleMenuMutation) SetUpdatedAt(t time.Time)
- func (m SysRoleMenuMutation) Tx() (*Tx, error)
- func (m *SysRoleMenuMutation) Type() string
- func (m *SysRoleMenuMutation) UpdatedAt() (r time.Time, exists bool)
- type SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) All(ctx context.Context) ([]*SysRoleMenu, error)
- func (srmq *SysRoleMenuQuery) AllX(ctx context.Context) []*SysRoleMenu
- func (srmq *SysRoleMenuQuery) Clone() *SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) Count(ctx context.Context) (int, error)
- func (srmq *SysRoleMenuQuery) CountX(ctx context.Context) int
- func (srmq *SysRoleMenuQuery) Exist(ctx context.Context) (bool, error)
- func (srmq *SysRoleMenuQuery) ExistX(ctx context.Context) bool
- func (srmq *SysRoleMenuQuery) First(ctx context.Context) (*SysRoleMenu, error)
- func (srmq *SysRoleMenuQuery) FirstID(ctx context.Context) (id string, err error)
- func (srmq *SysRoleMenuQuery) FirstIDX(ctx context.Context) string
- func (srmq *SysRoleMenuQuery) FirstX(ctx context.Context) *SysRoleMenu
- func (srmq *SysRoleMenuQuery) GroupBy(field string, fields ...string) *SysRoleMenuGroupBy
- func (srmq *SysRoleMenuQuery) IDs(ctx context.Context) ([]string, error)
- func (srmq *SysRoleMenuQuery) IDsX(ctx context.Context) []string
- func (srmq *SysRoleMenuQuery) Limit(limit int) *SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) Offset(offset int) *SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) Only(ctx context.Context) (*SysRoleMenu, error)
- func (srmq *SysRoleMenuQuery) OnlyID(ctx context.Context) (id string, err error)
- func (srmq *SysRoleMenuQuery) OnlyIDX(ctx context.Context) string
- func (srmq *SysRoleMenuQuery) OnlyX(ctx context.Context) *SysRoleMenu
- func (srmq *SysRoleMenuQuery) Order(o ...OrderFunc) *SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) Select(field string, fields ...string) *SysRoleMenuSelect
- func (srmq *SysRoleMenuQuery) Unique(unique bool) *SysRoleMenuQuery
- func (srmq *SysRoleMenuQuery) Where(ps ...predicate.SysRoleMenu) *SysRoleMenuQuery
- type SysRoleMenuSelect
- func (srms *SysRoleMenuSelect) Bool(ctx context.Context) (_ bool, err error)
- func (srms *SysRoleMenuSelect) BoolX(ctx context.Context) bool
- func (srms *SysRoleMenuSelect) Bools(ctx context.Context) ([]bool, error)
- func (srms *SysRoleMenuSelect) BoolsX(ctx context.Context) []bool
- func (srms *SysRoleMenuSelect) Float64(ctx context.Context) (_ float64, err error)
- func (srms *SysRoleMenuSelect) Float64X(ctx context.Context) float64
- func (srms *SysRoleMenuSelect) Float64s(ctx context.Context) ([]float64, error)
- func (srms *SysRoleMenuSelect) Float64sX(ctx context.Context) []float64
- func (srms *SysRoleMenuSelect) Int(ctx context.Context) (_ int, err error)
- func (srms *SysRoleMenuSelect) IntX(ctx context.Context) int
- func (srms *SysRoleMenuSelect) Ints(ctx context.Context) ([]int, error)
- func (srms *SysRoleMenuSelect) IntsX(ctx context.Context) []int
- func (srms *SysRoleMenuSelect) Scan(ctx context.Context, v interface{}) error
- func (srms *SysRoleMenuSelect) ScanX(ctx context.Context, v interface{})
- func (srms *SysRoleMenuSelect) String(ctx context.Context) (_ string, err error)
- func (srms *SysRoleMenuSelect) StringX(ctx context.Context) string
- func (srms *SysRoleMenuSelect) Strings(ctx context.Context) ([]string, error)
- func (srms *SysRoleMenuSelect) StringsX(ctx context.Context) []string
- type SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) ClearActionID() *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) ClearDeletedAt() *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) Exec(ctx context.Context) error
- func (srmu *SysRoleMenuUpdate) ExecX(ctx context.Context)
- func (srmu *SysRoleMenuUpdate) Mutation() *SysRoleMenuMutation
- func (srmu *SysRoleMenuUpdate) Save(ctx context.Context) (int, error)
- func (srmu *SysRoleMenuUpdate) SaveX(ctx context.Context) int
- func (srmu *SysRoleMenuUpdate) SetActionID(s string) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetDeletedAt(t time.Time) *SysRoleMenuUpdate
- func (u *SysRoleMenuUpdate) SetInput(i UpdateSysRoleMenuInput) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetIsDel(b bool) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetMenuID(s string) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetNillableActionID(s *string) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetNillableDeletedAt(t *time.Time) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetNillableIsDel(b *bool) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetRoleID(s string) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) SetUpdatedAt(t time.Time) *SysRoleMenuUpdate
- func (srmu *SysRoleMenuUpdate) Where(ps ...predicate.SysRoleMenu) *SysRoleMenuUpdate
- type SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) ClearActionID() *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) ClearDeletedAt() *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) Exec(ctx context.Context) error
- func (srmuo *SysRoleMenuUpdateOne) ExecX(ctx context.Context)
- func (srmuo *SysRoleMenuUpdateOne) Mutation() *SysRoleMenuMutation
- func (srmuo *SysRoleMenuUpdateOne) Save(ctx context.Context) (*SysRoleMenu, error)
- func (srmuo *SysRoleMenuUpdateOne) SaveX(ctx context.Context) *SysRoleMenu
- func (srmuo *SysRoleMenuUpdateOne) Select(field string, fields ...string) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetActionID(s string) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetDeletedAt(t time.Time) *SysRoleMenuUpdateOne
- func (u *SysRoleMenuUpdateOne) SetInput(i UpdateSysRoleMenuInput) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetIsDel(b bool) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetMenuID(s string) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetNillableActionID(s *string) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetNillableDeletedAt(t *time.Time) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetNillableIsDel(b *bool) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetRoleID(s string) *SysRoleMenuUpdateOne
- func (srmuo *SysRoleMenuUpdateOne) SetUpdatedAt(t time.Time) *SysRoleMenuUpdateOne
- type SysRoleMenus
- type SysRoleMutation
- func (m *SysRoleMutation) AddField(name string, value ent.Value) error
- func (m *SysRoleMutation) AddSort(i int32)
- func (m *SysRoleMutation) AddStatus(i int16)
- func (m *SysRoleMutation) AddedEdges() []string
- func (m *SysRoleMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysRoleMutation) AddedFields() []string
- func (m *SysRoleMutation) AddedIDs(name string) []ent.Value
- func (m *SysRoleMutation) AddedSort() (r int32, exists bool)
- func (m *SysRoleMutation) AddedStatus() (r int16, exists bool)
- func (m *SysRoleMutation) ClearDeletedAt()
- func (m *SysRoleMutation) ClearEdge(name string) error
- func (m *SysRoleMutation) ClearField(name string) error
- func (m *SysRoleMutation) ClearedEdges() []string
- func (m *SysRoleMutation) ClearedFields() []string
- func (m SysRoleMutation) Client() *Client
- func (m *SysRoleMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysRoleMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysRoleMutation) DeletedAtCleared() bool
- func (m *SysRoleMutation) EdgeCleared(name string) bool
- func (m *SysRoleMutation) Field(name string) (ent.Value, bool)
- func (m *SysRoleMutation) FieldCleared(name string) bool
- func (m *SysRoleMutation) Fields() []string
- func (m *SysRoleMutation) ID() (id string, exists bool)
- func (m *SysRoleMutation) IsDel() (r bool, exists bool)
- func (m *SysRoleMutation) Memo() (r string, exists bool)
- func (m *SysRoleMutation) Name() (r string, exists bool)
- func (m *SysRoleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysRoleMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysRoleMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysRoleMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysRoleMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *SysRoleMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SysRoleMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysRoleMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysRoleMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysRoleMutation) Op() Op
- func (m *SysRoleMutation) RemovedEdges() []string
- func (m *SysRoleMutation) RemovedIDs(name string) []ent.Value
- func (m *SysRoleMutation) ResetCreatedAt()
- func (m *SysRoleMutation) ResetDeletedAt()
- func (m *SysRoleMutation) ResetEdge(name string) error
- func (m *SysRoleMutation) ResetField(name string) error
- func (m *SysRoleMutation) ResetIsDel()
- func (m *SysRoleMutation) ResetMemo()
- func (m *SysRoleMutation) ResetName()
- func (m *SysRoleMutation) ResetSort()
- func (m *SysRoleMutation) ResetStatus()
- func (m *SysRoleMutation) ResetUpdatedAt()
- func (m *SysRoleMutation) SetCreatedAt(t time.Time)
- func (m *SysRoleMutation) SetDeletedAt(t time.Time)
- func (m *SysRoleMutation) SetField(name string, value ent.Value) error
- func (m *SysRoleMutation) SetID(id string)
- func (m *SysRoleMutation) SetIsDel(b bool)
- func (m *SysRoleMutation) SetMemo(s string)
- func (m *SysRoleMutation) SetName(s string)
- func (m *SysRoleMutation) SetSort(i int32)
- func (m *SysRoleMutation) SetStatus(i int16)
- func (m *SysRoleMutation) SetUpdatedAt(t time.Time)
- func (m *SysRoleMutation) Sort() (r int32, exists bool)
- func (m *SysRoleMutation) Status() (r int16, exists bool)
- func (m SysRoleMutation) Tx() (*Tx, error)
- func (m *SysRoleMutation) Type() string
- func (m *SysRoleMutation) UpdatedAt() (r time.Time, exists bool)
- type SysRoleQuery
- func (srq *SysRoleQuery) All(ctx context.Context) ([]*SysRole, error)
- func (srq *SysRoleQuery) AllX(ctx context.Context) []*SysRole
- func (srq *SysRoleQuery) Clone() *SysRoleQuery
- func (srq *SysRoleQuery) Count(ctx context.Context) (int, error)
- func (srq *SysRoleQuery) CountX(ctx context.Context) int
- func (srq *SysRoleQuery) Exist(ctx context.Context) (bool, error)
- func (srq *SysRoleQuery) ExistX(ctx context.Context) bool
- func (srq *SysRoleQuery) First(ctx context.Context) (*SysRole, error)
- func (srq *SysRoleQuery) FirstID(ctx context.Context) (id string, err error)
- func (srq *SysRoleQuery) FirstIDX(ctx context.Context) string
- func (srq *SysRoleQuery) FirstX(ctx context.Context) *SysRole
- func (srq *SysRoleQuery) GroupBy(field string, fields ...string) *SysRoleGroupBy
- func (srq *SysRoleQuery) IDs(ctx context.Context) ([]string, error)
- func (srq *SysRoleQuery) IDsX(ctx context.Context) []string
- func (srq *SysRoleQuery) Limit(limit int) *SysRoleQuery
- func (srq *SysRoleQuery) Offset(offset int) *SysRoleQuery
- func (srq *SysRoleQuery) Only(ctx context.Context) (*SysRole, error)
- func (srq *SysRoleQuery) OnlyID(ctx context.Context) (id string, err error)
- func (srq *SysRoleQuery) OnlyIDX(ctx context.Context) string
- func (srq *SysRoleQuery) OnlyX(ctx context.Context) *SysRole
- func (srq *SysRoleQuery) Order(o ...OrderFunc) *SysRoleQuery
- func (srq *SysRoleQuery) Select(field string, fields ...string) *SysRoleSelect
- func (srq *SysRoleQuery) Unique(unique bool) *SysRoleQuery
- func (srq *SysRoleQuery) Where(ps ...predicate.SysRole) *SysRoleQuery
- type SysRoleSelect
- func (srs *SysRoleSelect) Bool(ctx context.Context) (_ bool, err error)
- func (srs *SysRoleSelect) BoolX(ctx context.Context) bool
- func (srs *SysRoleSelect) Bools(ctx context.Context) ([]bool, error)
- func (srs *SysRoleSelect) BoolsX(ctx context.Context) []bool
- func (srs *SysRoleSelect) Float64(ctx context.Context) (_ float64, err error)
- func (srs *SysRoleSelect) Float64X(ctx context.Context) float64
- func (srs *SysRoleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (srs *SysRoleSelect) Float64sX(ctx context.Context) []float64
- func (srs *SysRoleSelect) Int(ctx context.Context) (_ int, err error)
- func (srs *SysRoleSelect) IntX(ctx context.Context) int
- func (srs *SysRoleSelect) Ints(ctx context.Context) ([]int, error)
- func (srs *SysRoleSelect) IntsX(ctx context.Context) []int
- func (srs *SysRoleSelect) Scan(ctx context.Context, v interface{}) error
- func (srs *SysRoleSelect) ScanX(ctx context.Context, v interface{})
- func (srs *SysRoleSelect) String(ctx context.Context) (_ string, err error)
- func (srs *SysRoleSelect) StringX(ctx context.Context) string
- func (srs *SysRoleSelect) Strings(ctx context.Context) ([]string, error)
- func (srs *SysRoleSelect) StringsX(ctx context.Context) []string
- type SysRoleUpdate
- func (sru *SysRoleUpdate) AddSort(i int32) *SysRoleUpdate
- func (sru *SysRoleUpdate) AddStatus(i int16) *SysRoleUpdate
- func (sru *SysRoleUpdate) ClearDeletedAt() *SysRoleUpdate
- func (sru *SysRoleUpdate) Exec(ctx context.Context) error
- func (sru *SysRoleUpdate) ExecX(ctx context.Context)
- func (sru *SysRoleUpdate) Mutation() *SysRoleMutation
- func (sru *SysRoleUpdate) Save(ctx context.Context) (int, error)
- func (sru *SysRoleUpdate) SaveX(ctx context.Context) int
- func (sru *SysRoleUpdate) SetDeletedAt(t time.Time) *SysRoleUpdate
- func (u *SysRoleUpdate) SetInput(i UpdateSysRoleInput) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetIsDel(b bool) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetMemo(s string) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetName(s string) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetNillableDeletedAt(t *time.Time) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetNillableIsDel(b *bool) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetNillableMemo(s *string) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetNillableSort(i *int32) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetNillableStatus(i *int16) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetSort(i int32) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetStatus(i int16) *SysRoleUpdate
- func (sru *SysRoleUpdate) SetUpdatedAt(t time.Time) *SysRoleUpdate
- func (sru *SysRoleUpdate) Where(ps ...predicate.SysRole) *SysRoleUpdate
- type SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) AddSort(i int32) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) AddStatus(i int16) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) ClearDeletedAt() *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) Exec(ctx context.Context) error
- func (sruo *SysRoleUpdateOne) ExecX(ctx context.Context)
- func (sruo *SysRoleUpdateOne) Mutation() *SysRoleMutation
- func (sruo *SysRoleUpdateOne) Save(ctx context.Context) (*SysRole, error)
- func (sruo *SysRoleUpdateOne) SaveX(ctx context.Context) *SysRole
- func (sruo *SysRoleUpdateOne) Select(field string, fields ...string) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetDeletedAt(t time.Time) *SysRoleUpdateOne
- func (u *SysRoleUpdateOne) SetInput(i UpdateSysRoleInput) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetIsDel(b bool) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetMemo(s string) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetName(s string) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetNillableDeletedAt(t *time.Time) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetNillableIsDel(b *bool) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetNillableMemo(s *string) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetNillableSort(i *int32) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetNillableStatus(i *int16) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetSort(i int32) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetStatus(i int16) *SysRoleUpdateOne
- func (sruo *SysRoleUpdateOne) SetUpdatedAt(t time.Time) *SysRoleUpdateOne
- type SysRoles
- type SysUser
- type SysUserClient
- func (c *SysUserClient) Create() *SysUserCreate
- func (c *SysUserClient) CreateBulk(builders ...*SysUserCreate) *SysUserCreateBulk
- func (c *SysUserClient) Delete() *SysUserDelete
- func (c *SysUserClient) DeleteOne(su *SysUser) *SysUserDeleteOne
- func (c *SysUserClient) DeleteOneID(id string) *SysUserDeleteOne
- func (c *SysUserClient) Get(ctx context.Context, id string) (*SysUser, error)
- func (c *SysUserClient) GetX(ctx context.Context, id string) *SysUser
- func (c *SysUserClient) Hooks() []Hook
- func (c *SysUserClient) Query() *SysUserQuery
- func (c *SysUserClient) Update() *SysUserUpdate
- func (c *SysUserClient) UpdateOne(su *SysUser) *SysUserUpdateOne
- func (c *SysUserClient) UpdateOneID(id string) *SysUserUpdateOne
- func (c *SysUserClient) Use(hooks ...Hook)
- type SysUserCreate
- func (suc *SysUserCreate) Mutation() *SysUserMutation
- func (suc *SysUserCreate) Save(ctx context.Context) (*SysUser, error)
- func (suc *SysUserCreate) SaveX(ctx context.Context) *SysUser
- func (suc *SysUserCreate) SetCreatedAt(t time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetDeletedAt(t time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetEmail(s string) *SysUserCreate
- func (suc *SysUserCreate) SetFirstName(s string) *SysUserCreate
- func (suc *SysUserCreate) SetID(s string) *SysUserCreate
- func (c *SysUserCreate) SetInput(i CreateSysUserInput) *SysUserCreate
- func (suc *SysUserCreate) SetIsDel(b bool) *SysUserCreate
- func (suc *SysUserCreate) SetLastName(s string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableCreatedAt(t *time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetNillableDeletedAt(t *time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetNillableFirstName(s *string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableID(s *string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableIsDel(b *bool) *SysUserCreate
- func (suc *SysUserCreate) SetNillableLastName(s *string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableRealName(s *string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableSalt(s *string) *SysUserCreate
- func (suc *SysUserCreate) SetNillableSort(i *int32) *SysUserCreate
- func (suc *SysUserCreate) SetNillableStatus(i *int16) *SysUserCreate
- func (suc *SysUserCreate) SetNillableUpdatedAt(t *time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetPassword(s string) *SysUserCreate
- func (suc *SysUserCreate) SetPhone(s string) *SysUserCreate
- func (suc *SysUserCreate) SetRealName(s string) *SysUserCreate
- func (suc *SysUserCreate) SetSalt(s string) *SysUserCreate
- func (suc *SysUserCreate) SetSort(i int32) *SysUserCreate
- func (suc *SysUserCreate) SetStatus(i int16) *SysUserCreate
- func (suc *SysUserCreate) SetUpdatedAt(t time.Time) *SysUserCreate
- func (suc *SysUserCreate) SetUserName(s string) *SysUserCreate
- type SysUserCreateBulk
- type SysUserDelete
- type SysUserDeleteOne
- type SysUserGroupBy
- func (sugb *SysUserGroupBy) Aggregate(fns ...AggregateFunc) *SysUserGroupBy
- func (sugb *SysUserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sugb *SysUserGroupBy) BoolX(ctx context.Context) bool
- func (sugb *SysUserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sugb *SysUserGroupBy) BoolsX(ctx context.Context) []bool
- func (sugb *SysUserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sugb *SysUserGroupBy) Float64X(ctx context.Context) float64
- func (sugb *SysUserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sugb *SysUserGroupBy) Float64sX(ctx context.Context) []float64
- func (sugb *SysUserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sugb *SysUserGroupBy) IntX(ctx context.Context) int
- func (sugb *SysUserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sugb *SysUserGroupBy) IntsX(ctx context.Context) []int
- func (sugb *SysUserGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sugb *SysUserGroupBy) ScanX(ctx context.Context, v interface{})
- func (sugb *SysUserGroupBy) String(ctx context.Context) (_ string, err error)
- func (sugb *SysUserGroupBy) StringX(ctx context.Context) string
- func (sugb *SysUserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sugb *SysUserGroupBy) StringsX(ctx context.Context) []string
- type SysUserMutation
- func (m *SysUserMutation) AddField(name string, value ent.Value) error
- func (m *SysUserMutation) AddSort(i int32)
- func (m *SysUserMutation) AddStatus(i int16)
- func (m *SysUserMutation) AddedEdges() []string
- func (m *SysUserMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysUserMutation) AddedFields() []string
- func (m *SysUserMutation) AddedIDs(name string) []ent.Value
- func (m *SysUserMutation) AddedSort() (r int32, exists bool)
- func (m *SysUserMutation) AddedStatus() (r int16, exists bool)
- func (m *SysUserMutation) ClearDeletedAt()
- func (m *SysUserMutation) ClearEdge(name string) error
- func (m *SysUserMutation) ClearField(name string) error
- func (m *SysUserMutation) ClearFirstName()
- func (m *SysUserMutation) ClearLastName()
- func (m *SysUserMutation) ClearRealName()
- func (m *SysUserMutation) ClearedEdges() []string
- func (m *SysUserMutation) ClearedFields() []string
- func (m SysUserMutation) Client() *Client
- func (m *SysUserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysUserMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysUserMutation) DeletedAtCleared() bool
- func (m *SysUserMutation) EdgeCleared(name string) bool
- func (m *SysUserMutation) Email() (r string, exists bool)
- func (m *SysUserMutation) Field(name string) (ent.Value, bool)
- func (m *SysUserMutation) FieldCleared(name string) bool
- func (m *SysUserMutation) Fields() []string
- func (m *SysUserMutation) FirstName() (r string, exists bool)
- func (m *SysUserMutation) FirstNameCleared() bool
- func (m *SysUserMutation) ID() (id string, exists bool)
- func (m *SysUserMutation) IsDel() (r bool, exists bool)
- func (m *SysUserMutation) LastName() (r string, exists bool)
- func (m *SysUserMutation) LastNameCleared() bool
- func (m *SysUserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysUserMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysUserMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *SysUserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysUserMutation) OldFirstName(ctx context.Context) (v *string, err error)
- func (m *SysUserMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysUserMutation) OldLastName(ctx context.Context) (v *string, err error)
- func (m *SysUserMutation) OldPassword(ctx context.Context) (v string, err error)
- func (m *SysUserMutation) OldPhone(ctx context.Context) (v string, err error)
- func (m *SysUserMutation) OldRealName(ctx context.Context) (v *string, err error)
- func (m *SysUserMutation) OldSalt(ctx context.Context) (v string, err error)
- func (m *SysUserMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *SysUserMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *SysUserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysUserMutation) OldUserName(ctx context.Context) (v string, err error)
- func (m *SysUserMutation) Op() Op
- func (m *SysUserMutation) Password() (r string, exists bool)
- func (m *SysUserMutation) Phone() (r string, exists bool)
- func (m *SysUserMutation) RealName() (r string, exists bool)
- func (m *SysUserMutation) RealNameCleared() bool
- func (m *SysUserMutation) RemovedEdges() []string
- func (m *SysUserMutation) RemovedIDs(name string) []ent.Value
- func (m *SysUserMutation) ResetCreatedAt()
- func (m *SysUserMutation) ResetDeletedAt()
- func (m *SysUserMutation) ResetEdge(name string) error
- func (m *SysUserMutation) ResetEmail()
- func (m *SysUserMutation) ResetField(name string) error
- func (m *SysUserMutation) ResetFirstName()
- func (m *SysUserMutation) ResetIsDel()
- func (m *SysUserMutation) ResetLastName()
- func (m *SysUserMutation) ResetPassword()
- func (m *SysUserMutation) ResetPhone()
- func (m *SysUserMutation) ResetRealName()
- func (m *SysUserMutation) ResetSalt()
- func (m *SysUserMutation) ResetSort()
- func (m *SysUserMutation) ResetStatus()
- func (m *SysUserMutation) ResetUpdatedAt()
- func (m *SysUserMutation) ResetUserName()
- func (m *SysUserMutation) Salt() (r string, exists bool)
- func (m *SysUserMutation) SetCreatedAt(t time.Time)
- func (m *SysUserMutation) SetDeletedAt(t time.Time)
- func (m *SysUserMutation) SetEmail(s string)
- func (m *SysUserMutation) SetField(name string, value ent.Value) error
- func (m *SysUserMutation) SetFirstName(s string)
- func (m *SysUserMutation) SetID(id string)
- func (m *SysUserMutation) SetIsDel(b bool)
- func (m *SysUserMutation) SetLastName(s string)
- func (m *SysUserMutation) SetPassword(s string)
- func (m *SysUserMutation) SetPhone(s string)
- func (m *SysUserMutation) SetRealName(s string)
- func (m *SysUserMutation) SetSalt(s string)
- func (m *SysUserMutation) SetSort(i int32)
- func (m *SysUserMutation) SetStatus(i int16)
- func (m *SysUserMutation) SetUpdatedAt(t time.Time)
- func (m *SysUserMutation) SetUserName(s string)
- func (m *SysUserMutation) Sort() (r int32, exists bool)
- func (m *SysUserMutation) Status() (r int16, exists bool)
- func (m SysUserMutation) Tx() (*Tx, error)
- func (m *SysUserMutation) Type() string
- func (m *SysUserMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SysUserMutation) UserName() (r string, exists bool)
- type SysUserQuery
- func (suq *SysUserQuery) All(ctx context.Context) ([]*SysUser, error)
- func (suq *SysUserQuery) AllX(ctx context.Context) []*SysUser
- func (suq *SysUserQuery) Clone() *SysUserQuery
- func (suq *SysUserQuery) Count(ctx context.Context) (int, error)
- func (suq *SysUserQuery) CountX(ctx context.Context) int
- func (suq *SysUserQuery) Exist(ctx context.Context) (bool, error)
- func (suq *SysUserQuery) ExistX(ctx context.Context) bool
- func (suq *SysUserQuery) First(ctx context.Context) (*SysUser, error)
- func (suq *SysUserQuery) FirstID(ctx context.Context) (id string, err error)
- func (suq *SysUserQuery) FirstIDX(ctx context.Context) string
- func (suq *SysUserQuery) FirstX(ctx context.Context) *SysUser
- func (suq *SysUserQuery) GroupBy(field string, fields ...string) *SysUserGroupBy
- func (suq *SysUserQuery) IDs(ctx context.Context) ([]string, error)
- func (suq *SysUserQuery) IDsX(ctx context.Context) []string
- func (suq *SysUserQuery) Limit(limit int) *SysUserQuery
- func (suq *SysUserQuery) Offset(offset int) *SysUserQuery
- func (suq *SysUserQuery) Only(ctx context.Context) (*SysUser, error)
- func (suq *SysUserQuery) OnlyID(ctx context.Context) (id string, err error)
- func (suq *SysUserQuery) OnlyIDX(ctx context.Context) string
- func (suq *SysUserQuery) OnlyX(ctx context.Context) *SysUser
- func (suq *SysUserQuery) Order(o ...OrderFunc) *SysUserQuery
- func (suq *SysUserQuery) Select(field string, fields ...string) *SysUserSelect
- func (suq *SysUserQuery) Unique(unique bool) *SysUserQuery
- func (suq *SysUserQuery) Where(ps ...predicate.SysUser) *SysUserQuery
- type SysUserRole
- type SysUserRoleClient
- func (c *SysUserRoleClient) Create() *SysUserRoleCreate
- func (c *SysUserRoleClient) CreateBulk(builders ...*SysUserRoleCreate) *SysUserRoleCreateBulk
- func (c *SysUserRoleClient) Delete() *SysUserRoleDelete
- func (c *SysUserRoleClient) DeleteOne(sur *SysUserRole) *SysUserRoleDeleteOne
- func (c *SysUserRoleClient) DeleteOneID(id string) *SysUserRoleDeleteOne
- func (c *SysUserRoleClient) Get(ctx context.Context, id string) (*SysUserRole, error)
- func (c *SysUserRoleClient) GetX(ctx context.Context, id string) *SysUserRole
- func (c *SysUserRoleClient) Hooks() []Hook
- func (c *SysUserRoleClient) Query() *SysUserRoleQuery
- func (c *SysUserRoleClient) Update() *SysUserRoleUpdate
- func (c *SysUserRoleClient) UpdateOne(sur *SysUserRole) *SysUserRoleUpdateOne
- func (c *SysUserRoleClient) UpdateOneID(id string) *SysUserRoleUpdateOne
- func (c *SysUserRoleClient) Use(hooks ...Hook)
- type SysUserRoleCreate
- func (surc *SysUserRoleCreate) Mutation() *SysUserRoleMutation
- func (surc *SysUserRoleCreate) Save(ctx context.Context) (*SysUserRole, error)
- func (surc *SysUserRoleCreate) SaveX(ctx context.Context) *SysUserRole
- func (surc *SysUserRoleCreate) SetCreatedAt(t time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetDeletedAt(t time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetID(s string) *SysUserRoleCreate
- func (c *SysUserRoleCreate) SetInput(i CreateSysUserRoleInput) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetIsDel(b bool) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetNillableCreatedAt(t *time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetNillableDeletedAt(t *time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetNillableID(s *string) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetNillableIsDel(b *bool) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetNillableUpdatedAt(t *time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetRoleID(s string) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetUpdatedAt(t time.Time) *SysUserRoleCreate
- func (surc *SysUserRoleCreate) SetUserID(s string) *SysUserRoleCreate
- type SysUserRoleCreateBulk
- type SysUserRoleDelete
- type SysUserRoleDeleteOne
- type SysUserRoleGroupBy
- func (surgb *SysUserRoleGroupBy) Aggregate(fns ...AggregateFunc) *SysUserRoleGroupBy
- func (surgb *SysUserRoleGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (surgb *SysUserRoleGroupBy) BoolX(ctx context.Context) bool
- func (surgb *SysUserRoleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (surgb *SysUserRoleGroupBy) BoolsX(ctx context.Context) []bool
- func (surgb *SysUserRoleGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (surgb *SysUserRoleGroupBy) Float64X(ctx context.Context) float64
- func (surgb *SysUserRoleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (surgb *SysUserRoleGroupBy) Float64sX(ctx context.Context) []float64
- func (surgb *SysUserRoleGroupBy) Int(ctx context.Context) (_ int, err error)
- func (surgb *SysUserRoleGroupBy) IntX(ctx context.Context) int
- func (surgb *SysUserRoleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (surgb *SysUserRoleGroupBy) IntsX(ctx context.Context) []int
- func (surgb *SysUserRoleGroupBy) Scan(ctx context.Context, v interface{}) error
- func (surgb *SysUserRoleGroupBy) ScanX(ctx context.Context, v interface{})
- func (surgb *SysUserRoleGroupBy) String(ctx context.Context) (_ string, err error)
- func (surgb *SysUserRoleGroupBy) StringX(ctx context.Context) string
- func (surgb *SysUserRoleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (surgb *SysUserRoleGroupBy) StringsX(ctx context.Context) []string
- type SysUserRoleMutation
- func (m *SysUserRoleMutation) AddField(name string, value ent.Value) error
- func (m *SysUserRoleMutation) AddedEdges() []string
- func (m *SysUserRoleMutation) AddedField(name string) (ent.Value, bool)
- func (m *SysUserRoleMutation) AddedFields() []string
- func (m *SysUserRoleMutation) AddedIDs(name string) []ent.Value
- func (m *SysUserRoleMutation) ClearDeletedAt()
- func (m *SysUserRoleMutation) ClearEdge(name string) error
- func (m *SysUserRoleMutation) ClearField(name string) error
- func (m *SysUserRoleMutation) ClearedEdges() []string
- func (m *SysUserRoleMutation) ClearedFields() []string
- func (m SysUserRoleMutation) Client() *Client
- func (m *SysUserRoleMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SysUserRoleMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SysUserRoleMutation) DeletedAtCleared() bool
- func (m *SysUserRoleMutation) EdgeCleared(name string) bool
- func (m *SysUserRoleMutation) Field(name string) (ent.Value, bool)
- func (m *SysUserRoleMutation) FieldCleared(name string) bool
- func (m *SysUserRoleMutation) Fields() []string
- func (m *SysUserRoleMutation) ID() (id string, exists bool)
- func (m *SysUserRoleMutation) IsDel() (r bool, exists bool)
- func (m *SysUserRoleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysUserRoleMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SysUserRoleMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SysUserRoleMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *SysUserRoleMutation) OldRoleID(ctx context.Context) (v string, err error)
- func (m *SysUserRoleMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SysUserRoleMutation) OldUserID(ctx context.Context) (v string, err error)
- func (m *SysUserRoleMutation) Op() Op
- func (m *SysUserRoleMutation) RemovedEdges() []string
- func (m *SysUserRoleMutation) RemovedIDs(name string) []ent.Value
- func (m *SysUserRoleMutation) ResetCreatedAt()
- func (m *SysUserRoleMutation) ResetDeletedAt()
- func (m *SysUserRoleMutation) ResetEdge(name string) error
- func (m *SysUserRoleMutation) ResetField(name string) error
- func (m *SysUserRoleMutation) ResetIsDel()
- func (m *SysUserRoleMutation) ResetRoleID()
- func (m *SysUserRoleMutation) ResetUpdatedAt()
- func (m *SysUserRoleMutation) ResetUserID()
- func (m *SysUserRoleMutation) RoleID() (r string, exists bool)
- func (m *SysUserRoleMutation) SetCreatedAt(t time.Time)
- func (m *SysUserRoleMutation) SetDeletedAt(t time.Time)
- func (m *SysUserRoleMutation) SetField(name string, value ent.Value) error
- func (m *SysUserRoleMutation) SetID(id string)
- func (m *SysUserRoleMutation) SetIsDel(b bool)
- func (m *SysUserRoleMutation) SetRoleID(s string)
- func (m *SysUserRoleMutation) SetUpdatedAt(t time.Time)
- func (m *SysUserRoleMutation) SetUserID(s string)
- func (m SysUserRoleMutation) Tx() (*Tx, error)
- func (m *SysUserRoleMutation) Type() string
- func (m *SysUserRoleMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SysUserRoleMutation) UserID() (r string, exists bool)
- type SysUserRoleQuery
- func (surq *SysUserRoleQuery) All(ctx context.Context) ([]*SysUserRole, error)
- func (surq *SysUserRoleQuery) AllX(ctx context.Context) []*SysUserRole
- func (surq *SysUserRoleQuery) Clone() *SysUserRoleQuery
- func (surq *SysUserRoleQuery) Count(ctx context.Context) (int, error)
- func (surq *SysUserRoleQuery) CountX(ctx context.Context) int
- func (surq *SysUserRoleQuery) Exist(ctx context.Context) (bool, error)
- func (surq *SysUserRoleQuery) ExistX(ctx context.Context) bool
- func (surq *SysUserRoleQuery) First(ctx context.Context) (*SysUserRole, error)
- func (surq *SysUserRoleQuery) FirstID(ctx context.Context) (id string, err error)
- func (surq *SysUserRoleQuery) FirstIDX(ctx context.Context) string
- func (surq *SysUserRoleQuery) FirstX(ctx context.Context) *SysUserRole
- func (surq *SysUserRoleQuery) GroupBy(field string, fields ...string) *SysUserRoleGroupBy
- func (surq *SysUserRoleQuery) IDs(ctx context.Context) ([]string, error)
- func (surq *SysUserRoleQuery) IDsX(ctx context.Context) []string
- func (surq *SysUserRoleQuery) Limit(limit int) *SysUserRoleQuery
- func (surq *SysUserRoleQuery) Offset(offset int) *SysUserRoleQuery
- func (surq *SysUserRoleQuery) Only(ctx context.Context) (*SysUserRole, error)
- func (surq *SysUserRoleQuery) OnlyID(ctx context.Context) (id string, err error)
- func (surq *SysUserRoleQuery) OnlyIDX(ctx context.Context) string
- func (surq *SysUserRoleQuery) OnlyX(ctx context.Context) *SysUserRole
- func (surq *SysUserRoleQuery) Order(o ...OrderFunc) *SysUserRoleQuery
- func (surq *SysUserRoleQuery) Select(field string, fields ...string) *SysUserRoleSelect
- func (surq *SysUserRoleQuery) Unique(unique bool) *SysUserRoleQuery
- func (surq *SysUserRoleQuery) Where(ps ...predicate.SysUserRole) *SysUserRoleQuery
- type SysUserRoleSelect
- func (surs *SysUserRoleSelect) Bool(ctx context.Context) (_ bool, err error)
- func (surs *SysUserRoleSelect) BoolX(ctx context.Context) bool
- func (surs *SysUserRoleSelect) Bools(ctx context.Context) ([]bool, error)
- func (surs *SysUserRoleSelect) BoolsX(ctx context.Context) []bool
- func (surs *SysUserRoleSelect) Float64(ctx context.Context) (_ float64, err error)
- func (surs *SysUserRoleSelect) Float64X(ctx context.Context) float64
- func (surs *SysUserRoleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (surs *SysUserRoleSelect) Float64sX(ctx context.Context) []float64
- func (surs *SysUserRoleSelect) Int(ctx context.Context) (_ int, err error)
- func (surs *SysUserRoleSelect) IntX(ctx context.Context) int
- func (surs *SysUserRoleSelect) Ints(ctx context.Context) ([]int, error)
- func (surs *SysUserRoleSelect) IntsX(ctx context.Context) []int
- func (surs *SysUserRoleSelect) Scan(ctx context.Context, v interface{}) error
- func (surs *SysUserRoleSelect) ScanX(ctx context.Context, v interface{})
- func (surs *SysUserRoleSelect) String(ctx context.Context) (_ string, err error)
- func (surs *SysUserRoleSelect) StringX(ctx context.Context) string
- func (surs *SysUserRoleSelect) Strings(ctx context.Context) ([]string, error)
- func (surs *SysUserRoleSelect) StringsX(ctx context.Context) []string
- type SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) ClearDeletedAt() *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) Exec(ctx context.Context) error
- func (suru *SysUserRoleUpdate) ExecX(ctx context.Context)
- func (suru *SysUserRoleUpdate) Mutation() *SysUserRoleMutation
- func (suru *SysUserRoleUpdate) Save(ctx context.Context) (int, error)
- func (suru *SysUserRoleUpdate) SaveX(ctx context.Context) int
- func (suru *SysUserRoleUpdate) SetDeletedAt(t time.Time) *SysUserRoleUpdate
- func (u *SysUserRoleUpdate) SetInput(i UpdateSysUserRoleInput) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetIsDel(b bool) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetNillableDeletedAt(t *time.Time) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetNillableIsDel(b *bool) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetRoleID(s string) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetUpdatedAt(t time.Time) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) SetUserID(s string) *SysUserRoleUpdate
- func (suru *SysUserRoleUpdate) Where(ps ...predicate.SysUserRole) *SysUserRoleUpdate
- type SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) ClearDeletedAt() *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) Exec(ctx context.Context) error
- func (suruo *SysUserRoleUpdateOne) ExecX(ctx context.Context)
- func (suruo *SysUserRoleUpdateOne) Mutation() *SysUserRoleMutation
- func (suruo *SysUserRoleUpdateOne) Save(ctx context.Context) (*SysUserRole, error)
- func (suruo *SysUserRoleUpdateOne) SaveX(ctx context.Context) *SysUserRole
- func (suruo *SysUserRoleUpdateOne) Select(field string, fields ...string) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetDeletedAt(t time.Time) *SysUserRoleUpdateOne
- func (u *SysUserRoleUpdateOne) SetInput(i UpdateSysUserRoleInput) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetIsDel(b bool) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetNillableDeletedAt(t *time.Time) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetNillableIsDel(b *bool) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetRoleID(s string) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetUpdatedAt(t time.Time) *SysUserRoleUpdateOne
- func (suruo *SysUserRoleUpdateOne) SetUserID(s string) *SysUserRoleUpdateOne
- type SysUserRoles
- type SysUserSelect
- func (sus *SysUserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (sus *SysUserSelect) BoolX(ctx context.Context) bool
- func (sus *SysUserSelect) Bools(ctx context.Context) ([]bool, error)
- func (sus *SysUserSelect) BoolsX(ctx context.Context) []bool
- func (sus *SysUserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (sus *SysUserSelect) Float64X(ctx context.Context) float64
- func (sus *SysUserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (sus *SysUserSelect) Float64sX(ctx context.Context) []float64
- func (sus *SysUserSelect) Int(ctx context.Context) (_ int, err error)
- func (sus *SysUserSelect) IntX(ctx context.Context) int
- func (sus *SysUserSelect) Ints(ctx context.Context) ([]int, error)
- func (sus *SysUserSelect) IntsX(ctx context.Context) []int
- func (sus *SysUserSelect) Scan(ctx context.Context, v interface{}) error
- func (sus *SysUserSelect) ScanX(ctx context.Context, v interface{})
- func (sus *SysUserSelect) String(ctx context.Context) (_ string, err error)
- func (sus *SysUserSelect) StringX(ctx context.Context) string
- func (sus *SysUserSelect) Strings(ctx context.Context) ([]string, error)
- func (sus *SysUserSelect) StringsX(ctx context.Context) []string
- type SysUserUpdate
- func (suu *SysUserUpdate) AddSort(i int32) *SysUserUpdate
- func (suu *SysUserUpdate) AddStatus(i int16) *SysUserUpdate
- func (suu *SysUserUpdate) ClearDeletedAt() *SysUserUpdate
- func (suu *SysUserUpdate) ClearFirstName() *SysUserUpdate
- func (suu *SysUserUpdate) ClearLastName() *SysUserUpdate
- func (suu *SysUserUpdate) ClearRealName() *SysUserUpdate
- func (suu *SysUserUpdate) Exec(ctx context.Context) error
- func (suu *SysUserUpdate) ExecX(ctx context.Context)
- func (suu *SysUserUpdate) Mutation() *SysUserMutation
- func (suu *SysUserUpdate) Save(ctx context.Context) (int, error)
- func (suu *SysUserUpdate) SaveX(ctx context.Context) int
- func (suu *SysUserUpdate) SetDeletedAt(t time.Time) *SysUserUpdate
- func (suu *SysUserUpdate) SetEmail(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetFirstName(s string) *SysUserUpdate
- func (u *SysUserUpdate) SetInput(i UpdateSysUserInput) *SysUserUpdate
- func (suu *SysUserUpdate) SetIsDel(b bool) *SysUserUpdate
- func (suu *SysUserUpdate) SetLastName(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableDeletedAt(t *time.Time) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableFirstName(s *string) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableIsDel(b *bool) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableLastName(s *string) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableRealName(s *string) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableSalt(s *string) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableSort(i *int32) *SysUserUpdate
- func (suu *SysUserUpdate) SetNillableStatus(i *int16) *SysUserUpdate
- func (suu *SysUserUpdate) SetPassword(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetPhone(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetRealName(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetSalt(s string) *SysUserUpdate
- func (suu *SysUserUpdate) SetSort(i int32) *SysUserUpdate
- func (suu *SysUserUpdate) SetStatus(i int16) *SysUserUpdate
- func (suu *SysUserUpdate) SetUpdatedAt(t time.Time) *SysUserUpdate
- func (suu *SysUserUpdate) Where(ps ...predicate.SysUser) *SysUserUpdate
- type SysUserUpdateOne
- func (suuo *SysUserUpdateOne) AddSort(i int32) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) AddStatus(i int16) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) ClearDeletedAt() *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) ClearFirstName() *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) ClearLastName() *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) ClearRealName() *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) Exec(ctx context.Context) error
- func (suuo *SysUserUpdateOne) ExecX(ctx context.Context)
- func (suuo *SysUserUpdateOne) Mutation() *SysUserMutation
- func (suuo *SysUserUpdateOne) Save(ctx context.Context) (*SysUser, error)
- func (suuo *SysUserUpdateOne) SaveX(ctx context.Context) *SysUser
- func (suuo *SysUserUpdateOne) Select(field string, fields ...string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetDeletedAt(t time.Time) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetEmail(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetFirstName(s string) *SysUserUpdateOne
- func (u *SysUserUpdateOne) SetInput(i UpdateSysUserInput) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetIsDel(b bool) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetLastName(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableDeletedAt(t *time.Time) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableFirstName(s *string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableIsDel(b *bool) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableLastName(s *string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableRealName(s *string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableSalt(s *string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableSort(i *int32) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetNillableStatus(i *int16) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetPassword(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetPhone(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetRealName(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetSalt(s string) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetSort(i int32) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetStatus(i int16) *SysUserUpdateOne
- func (suuo *SysUserUpdateOne) SetUpdatedAt(t time.Time) *SysUserUpdateOne
- type SysUsers
- type Tx
- type UpdateSysDictInput
- type UpdateSysDictItemInput
- type UpdateSysJwtBlockInput
- type UpdateSysLoggingInput
- type UpdateSysMenuActionInput
- type UpdateSysMenuActionResourceInput
- type UpdateSysMenuInput
- type UpdateSysRoleInput
- type UpdateSysRoleMenuInput
- type UpdateSysUserInput
- type UpdateSysUserRoleInput
- type UpdateXxxDemoInput
- type ValidationError
- type Value
- type XxxDemo
- type XxxDemoClient
- func (c *XxxDemoClient) Create() *XxxDemoCreate
- func (c *XxxDemoClient) CreateBulk(builders ...*XxxDemoCreate) *XxxDemoCreateBulk
- func (c *XxxDemoClient) Delete() *XxxDemoDelete
- func (c *XxxDemoClient) DeleteOne(xd *XxxDemo) *XxxDemoDeleteOne
- func (c *XxxDemoClient) DeleteOneID(id string) *XxxDemoDeleteOne
- func (c *XxxDemoClient) Get(ctx context.Context, id string) (*XxxDemo, error)
- func (c *XxxDemoClient) GetX(ctx context.Context, id string) *XxxDemo
- func (c *XxxDemoClient) Hooks() []Hook
- func (c *XxxDemoClient) Query() *XxxDemoQuery
- func (c *XxxDemoClient) Update() *XxxDemoUpdate
- func (c *XxxDemoClient) UpdateOne(xd *XxxDemo) *XxxDemoUpdateOne
- func (c *XxxDemoClient) UpdateOneID(id string) *XxxDemoUpdateOne
- func (c *XxxDemoClient) Use(hooks ...Hook)
- type XxxDemoCreate
- func (xdc *XxxDemoCreate) Mutation() *XxxDemoMutation
- func (xdc *XxxDemoCreate) Save(ctx context.Context) (*XxxDemo, error)
- func (xdc *XxxDemoCreate) SaveX(ctx context.Context) *XxxDemo
- func (xdc *XxxDemoCreate) SetCode(s string) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetCreatedAt(t time.Time) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetDeletedAt(t time.Time) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetID(s string) *XxxDemoCreate
- func (c *XxxDemoCreate) SetInput(i CreateXxxDemoInput) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetIsDel(b bool) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetMemo(s string) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetName(s string) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableCreatedAt(t *time.Time) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableDeletedAt(t *time.Time) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableID(s *string) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableIsDel(b *bool) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableMemo(s *string) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableSort(i *int32) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableStatus(i *int16) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetNillableUpdatedAt(t *time.Time) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetSort(i int32) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetStatus(i int16) *XxxDemoCreate
- func (xdc *XxxDemoCreate) SetUpdatedAt(t time.Time) *XxxDemoCreate
- type XxxDemoCreateBulk
- type XxxDemoDelete
- type XxxDemoDeleteOne
- type XxxDemoGroupBy
- func (xdgb *XxxDemoGroupBy) Aggregate(fns ...AggregateFunc) *XxxDemoGroupBy
- func (xdgb *XxxDemoGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (xdgb *XxxDemoGroupBy) BoolX(ctx context.Context) bool
- func (xdgb *XxxDemoGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (xdgb *XxxDemoGroupBy) BoolsX(ctx context.Context) []bool
- func (xdgb *XxxDemoGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (xdgb *XxxDemoGroupBy) Float64X(ctx context.Context) float64
- func (xdgb *XxxDemoGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (xdgb *XxxDemoGroupBy) Float64sX(ctx context.Context) []float64
- func (xdgb *XxxDemoGroupBy) Int(ctx context.Context) (_ int, err error)
- func (xdgb *XxxDemoGroupBy) IntX(ctx context.Context) int
- func (xdgb *XxxDemoGroupBy) Ints(ctx context.Context) ([]int, error)
- func (xdgb *XxxDemoGroupBy) IntsX(ctx context.Context) []int
- func (xdgb *XxxDemoGroupBy) Scan(ctx context.Context, v interface{}) error
- func (xdgb *XxxDemoGroupBy) ScanX(ctx context.Context, v interface{})
- func (xdgb *XxxDemoGroupBy) String(ctx context.Context) (_ string, err error)
- func (xdgb *XxxDemoGroupBy) StringX(ctx context.Context) string
- func (xdgb *XxxDemoGroupBy) Strings(ctx context.Context) ([]string, error)
- func (xdgb *XxxDemoGroupBy) StringsX(ctx context.Context) []string
- type XxxDemoMutation
- func (m *XxxDemoMutation) AddField(name string, value ent.Value) error
- func (m *XxxDemoMutation) AddSort(i int32)
- func (m *XxxDemoMutation) AddStatus(i int16)
- func (m *XxxDemoMutation) AddedEdges() []string
- func (m *XxxDemoMutation) AddedField(name string) (ent.Value, bool)
- func (m *XxxDemoMutation) AddedFields() []string
- func (m *XxxDemoMutation) AddedIDs(name string) []ent.Value
- func (m *XxxDemoMutation) AddedSort() (r int32, exists bool)
- func (m *XxxDemoMutation) AddedStatus() (r int16, exists bool)
- func (m *XxxDemoMutation) ClearDeletedAt()
- func (m *XxxDemoMutation) ClearEdge(name string) error
- func (m *XxxDemoMutation) ClearField(name string) error
- func (m *XxxDemoMutation) ClearedEdges() []string
- func (m *XxxDemoMutation) ClearedFields() []string
- func (m XxxDemoMutation) Client() *Client
- func (m *XxxDemoMutation) Code() (r string, exists bool)
- func (m *XxxDemoMutation) CreatedAt() (r time.Time, exists bool)
- func (m *XxxDemoMutation) DeletedAt() (r time.Time, exists bool)
- func (m *XxxDemoMutation) DeletedAtCleared() bool
- func (m *XxxDemoMutation) EdgeCleared(name string) bool
- func (m *XxxDemoMutation) Field(name string) (ent.Value, bool)
- func (m *XxxDemoMutation) FieldCleared(name string) bool
- func (m *XxxDemoMutation) Fields() []string
- func (m *XxxDemoMutation) ID() (id string, exists bool)
- func (m *XxxDemoMutation) IsDel() (r bool, exists bool)
- func (m *XxxDemoMutation) Memo() (r string, exists bool)
- func (m *XxxDemoMutation) Name() (r string, exists bool)
- func (m *XxxDemoMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *XxxDemoMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *XxxDemoMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *XxxDemoMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *XxxDemoMutation) OldIsDel(ctx context.Context) (v bool, err error)
- func (m *XxxDemoMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *XxxDemoMutation) OldName(ctx context.Context) (v string, err error)
- func (m *XxxDemoMutation) OldSort(ctx context.Context) (v int32, err error)
- func (m *XxxDemoMutation) OldStatus(ctx context.Context) (v int16, err error)
- func (m *XxxDemoMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *XxxDemoMutation) Op() Op
- func (m *XxxDemoMutation) RemovedEdges() []string
- func (m *XxxDemoMutation) RemovedIDs(name string) []ent.Value
- func (m *XxxDemoMutation) ResetCode()
- func (m *XxxDemoMutation) ResetCreatedAt()
- func (m *XxxDemoMutation) ResetDeletedAt()
- func (m *XxxDemoMutation) ResetEdge(name string) error
- func (m *XxxDemoMutation) ResetField(name string) error
- func (m *XxxDemoMutation) ResetIsDel()
- func (m *XxxDemoMutation) ResetMemo()
- func (m *XxxDemoMutation) ResetName()
- func (m *XxxDemoMutation) ResetSort()
- func (m *XxxDemoMutation) ResetStatus()
- func (m *XxxDemoMutation) ResetUpdatedAt()
- func (m *XxxDemoMutation) SetCode(s string)
- func (m *XxxDemoMutation) SetCreatedAt(t time.Time)
- func (m *XxxDemoMutation) SetDeletedAt(t time.Time)
- func (m *XxxDemoMutation) SetField(name string, value ent.Value) error
- func (m *XxxDemoMutation) SetID(id string)
- func (m *XxxDemoMutation) SetIsDel(b bool)
- func (m *XxxDemoMutation) SetMemo(s string)
- func (m *XxxDemoMutation) SetName(s string)
- func (m *XxxDemoMutation) SetSort(i int32)
- func (m *XxxDemoMutation) SetStatus(i int16)
- func (m *XxxDemoMutation) SetUpdatedAt(t time.Time)
- func (m *XxxDemoMutation) Sort() (r int32, exists bool)
- func (m *XxxDemoMutation) Status() (r int16, exists bool)
- func (m XxxDemoMutation) Tx() (*Tx, error)
- func (m *XxxDemoMutation) Type() string
- func (m *XxxDemoMutation) UpdatedAt() (r time.Time, exists bool)
- type XxxDemoQuery
- func (xdq *XxxDemoQuery) All(ctx context.Context) ([]*XxxDemo, error)
- func (xdq *XxxDemoQuery) AllX(ctx context.Context) []*XxxDemo
- func (xdq *XxxDemoQuery) Clone() *XxxDemoQuery
- func (xdq *XxxDemoQuery) Count(ctx context.Context) (int, error)
- func (xdq *XxxDemoQuery) CountX(ctx context.Context) int
- func (xdq *XxxDemoQuery) Exist(ctx context.Context) (bool, error)
- func (xdq *XxxDemoQuery) ExistX(ctx context.Context) bool
- func (xdq *XxxDemoQuery) First(ctx context.Context) (*XxxDemo, error)
- func (xdq *XxxDemoQuery) FirstID(ctx context.Context) (id string, err error)
- func (xdq *XxxDemoQuery) FirstIDX(ctx context.Context) string
- func (xdq *XxxDemoQuery) FirstX(ctx context.Context) *XxxDemo
- func (xdq *XxxDemoQuery) GroupBy(field string, fields ...string) *XxxDemoGroupBy
- func (xdq *XxxDemoQuery) IDs(ctx context.Context) ([]string, error)
- func (xdq *XxxDemoQuery) IDsX(ctx context.Context) []string
- func (xdq *XxxDemoQuery) Limit(limit int) *XxxDemoQuery
- func (xdq *XxxDemoQuery) Offset(offset int) *XxxDemoQuery
- func (xdq *XxxDemoQuery) Only(ctx context.Context) (*XxxDemo, error)
- func (xdq *XxxDemoQuery) OnlyID(ctx context.Context) (id string, err error)
- func (xdq *XxxDemoQuery) OnlyIDX(ctx context.Context) string
- func (xdq *XxxDemoQuery) OnlyX(ctx context.Context) *XxxDemo
- func (xdq *XxxDemoQuery) Order(o ...OrderFunc) *XxxDemoQuery
- func (xdq *XxxDemoQuery) Select(field string, fields ...string) *XxxDemoSelect
- func (xdq *XxxDemoQuery) Unique(unique bool) *XxxDemoQuery
- func (xdq *XxxDemoQuery) Where(ps ...predicate.XxxDemo) *XxxDemoQuery
- type XxxDemoSelect
- func (xds *XxxDemoSelect) Bool(ctx context.Context) (_ bool, err error)
- func (xds *XxxDemoSelect) BoolX(ctx context.Context) bool
- func (xds *XxxDemoSelect) Bools(ctx context.Context) ([]bool, error)
- func (xds *XxxDemoSelect) BoolsX(ctx context.Context) []bool
- func (xds *XxxDemoSelect) Float64(ctx context.Context) (_ float64, err error)
- func (xds *XxxDemoSelect) Float64X(ctx context.Context) float64
- func (xds *XxxDemoSelect) Float64s(ctx context.Context) ([]float64, error)
- func (xds *XxxDemoSelect) Float64sX(ctx context.Context) []float64
- func (xds *XxxDemoSelect) Int(ctx context.Context) (_ int, err error)
- func (xds *XxxDemoSelect) IntX(ctx context.Context) int
- func (xds *XxxDemoSelect) Ints(ctx context.Context) ([]int, error)
- func (xds *XxxDemoSelect) IntsX(ctx context.Context) []int
- func (xds *XxxDemoSelect) Scan(ctx context.Context, v interface{}) error
- func (xds *XxxDemoSelect) ScanX(ctx context.Context, v interface{})
- func (xds *XxxDemoSelect) String(ctx context.Context) (_ string, err error)
- func (xds *XxxDemoSelect) StringX(ctx context.Context) string
- func (xds *XxxDemoSelect) Strings(ctx context.Context) ([]string, error)
- func (xds *XxxDemoSelect) StringsX(ctx context.Context) []string
- type XxxDemoUpdate
- func (xdu *XxxDemoUpdate) AddSort(i int32) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) AddStatus(i int16) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) ClearDeletedAt() *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) Exec(ctx context.Context) error
- func (xdu *XxxDemoUpdate) ExecX(ctx context.Context)
- func (xdu *XxxDemoUpdate) Mutation() *XxxDemoMutation
- func (xdu *XxxDemoUpdate) Save(ctx context.Context) (int, error)
- func (xdu *XxxDemoUpdate) SaveX(ctx context.Context) int
- func (xdu *XxxDemoUpdate) SetCode(s string) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetDeletedAt(t time.Time) *XxxDemoUpdate
- func (u *XxxDemoUpdate) SetInput(i UpdateXxxDemoInput) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetIsDel(b bool) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetMemo(s string) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetName(s string) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetNillableDeletedAt(t *time.Time) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetNillableIsDel(b *bool) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetNillableMemo(s *string) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetNillableSort(i *int32) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetNillableStatus(i *int16) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetSort(i int32) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetStatus(i int16) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) SetUpdatedAt(t time.Time) *XxxDemoUpdate
- func (xdu *XxxDemoUpdate) Where(ps ...predicate.XxxDemo) *XxxDemoUpdate
- type XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) AddSort(i int32) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) AddStatus(i int16) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) ClearDeletedAt() *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) Exec(ctx context.Context) error
- func (xduo *XxxDemoUpdateOne) ExecX(ctx context.Context)
- func (xduo *XxxDemoUpdateOne) Mutation() *XxxDemoMutation
- func (xduo *XxxDemoUpdateOne) Save(ctx context.Context) (*XxxDemo, error)
- func (xduo *XxxDemoUpdateOne) SaveX(ctx context.Context) *XxxDemo
- func (xduo *XxxDemoUpdateOne) Select(field string, fields ...string) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetCode(s string) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetDeletedAt(t time.Time) *XxxDemoUpdateOne
- func (u *XxxDemoUpdateOne) SetInput(i UpdateXxxDemoInput) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetIsDel(b bool) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetMemo(s string) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetName(s string) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetNillableDeletedAt(t *time.Time) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetNillableIsDel(b *bool) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetNillableMemo(s *string) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetNillableSort(i *int32) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetNillableStatus(i *int16) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetSort(i int32) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetStatus(i int16) *XxxDemoUpdateOne
- func (xduo *XxxDemoUpdateOne) SetUpdatedAt(t time.Time) *XxxDemoUpdateOne
- type XxxDemos
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeSysDict = "SysDict" TypeSysDictItem = "SysDictItem" TypeSysJwtBlock = "SysJwtBlock" TypeSysLogging = "SysLogging" TypeSysMenu = "SysMenu" TypeSysMenuAction = "SysMenuAction" TypeSysMenuActionResource = "SysMenuActionResource" TypeSysRole = "SysRole" TypeSysRoleMenu = "SysRoleMenu" TypeSysUser = "SysUser" TypeSysUserRole = "SysUserRole" TypeXxxDemo = "XxxDemo" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validaton error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // SysDict is the client for interacting with the SysDict builders. SysDict *SysDictClient // SysDictItem is the client for interacting with the SysDictItem builders. SysDictItem *SysDictItemClient // SysJwtBlock is the client for interacting with the SysJwtBlock builders. SysJwtBlock *SysJwtBlockClient // SysLogging is the client for interacting with the SysLogging builders. SysLogging *SysLoggingClient // SysMenu is the client for interacting with the SysMenu builders. SysMenu *SysMenuClient // SysMenuAction is the client for interacting with the SysMenuAction builders. SysMenuAction *SysMenuActionClient // SysMenuActionResource is the client for interacting with the SysMenuActionResource builders. SysMenuActionResource *SysMenuActionResourceClient // SysRole is the client for interacting with the SysRole builders. SysRole *SysRoleClient // SysRoleMenu is the client for interacting with the SysRoleMenu builders. SysRoleMenu *SysRoleMenuClient // SysUser is the client for interacting with the SysUser builders. SysUser *SysUserClient // SysUserRole is the client for interacting with the SysUserRole builders. SysUserRole *SysUserRoleClient // XxxDemo is the client for interacting with the XxxDemo builders. XxxDemo *XxxDemoClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). SysDict. Query(). Count(ctx)
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type CreateSysDictInput ¶
type CreateSysDictInput struct { IsDel *bool Memo *string Sort *int32 CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Status *int16 NameCn string NameEn string }
CreateSysDictInput represents a mutation input for creating sysdicts.
func (*CreateSysDictInput) Mutate ¶
func (i *CreateSysDictInput) Mutate(m *SysDictCreate)
Mutate applies the CreateSysDictInput on the SysDictCreate builder.
type CreateSysDictItemInput ¶
type CreateSysDictItemInput struct { IsDel *bool Memo *string Sort *int32 CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Label string Value int Status int16 DictID string }
CreateSysDictItemInput represents a mutation input for creating sysdictitems.
func (*CreateSysDictItemInput) Mutate ¶
func (i *CreateSysDictItemInput) Mutate(m *SysDictItemCreate)
Mutate applies the CreateSysDictItemInput on the SysDictItemCreate builder.
type CreateSysJwtBlockInput ¶
type CreateSysJwtBlockInput struct { IsDel *bool Memo *string CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Status *int16 Jwt string }
CreateSysJwtBlockInput represents a mutation input for creating sysjwtblocks.
func (*CreateSysJwtBlockInput) Mutate ¶
func (i *CreateSysJwtBlockInput) Mutate(m *SysJwtBlockCreate)
Mutate applies the CreateSysJwtBlockInput on the SysJwtBlockCreate builder.
type CreateSysLoggingInput ¶
type CreateSysLoggingInput struct { IsDel *bool Memo *string Level string TraceID string UserID string Tag string Version string Message string Data *string ErrorStack string CreatedAt *time.Time }
CreateSysLoggingInput represents a mutation input for creating sysloggings.
func (*CreateSysLoggingInput) Mutate ¶
func (i *CreateSysLoggingInput) Mutate(m *SysLoggingCreate)
Mutate applies the CreateSysLoggingInput on the SysLoggingCreate builder.
type CreateSysMenuActionInput ¶
type CreateSysMenuActionInput struct { IsDel *bool Sort *int32 Status *int16 Memo *string CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time MenuID string Code string Name string }
CreateSysMenuActionInput represents a mutation input for creating sysmenuactions.
func (*CreateSysMenuActionInput) Mutate ¶
func (i *CreateSysMenuActionInput) Mutate(m *SysMenuActionCreate)
Mutate applies the CreateSysMenuActionInput on the SysMenuActionCreate builder.
type CreateSysMenuActionResourceInput ¶
type CreateSysMenuActionResourceInput struct { IsDel *bool Sort *int32 Memo *string CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Status *int16 Method string Path string ActionID string }
CreateSysMenuActionResourceInput represents a mutation input for creating sysmenuactionresources.
func (*CreateSysMenuActionResourceInput) Mutate ¶
func (i *CreateSysMenuActionResourceInput) Mutate(m *SysMenuActionResourceCreate)
Mutate applies the CreateSysMenuActionResourceInput on the SysMenuActionResourceCreate builder.
type CreateSysMenuInput ¶
type CreateSysMenuInput struct { IsDel *bool Memo *string Sort *int32 CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Status *int16 Name string Icon string Router string IsShow *bool ParentID *string ParentPath *string }
CreateSysMenuInput represents a mutation input for creating sysmenus.
func (*CreateSysMenuInput) Mutate ¶
func (i *CreateSysMenuInput) Mutate(m *SysMenuCreate)
Mutate applies the CreateSysMenuInput on the SysMenuCreate builder.
type CreateSysRoleInput ¶
type CreateSysRoleInput struct { IsDel *bool Status *int16 Sort *int32 Memo *string CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Name string }
CreateSysRoleInput represents a mutation input for creating sysroles.
func (*CreateSysRoleInput) Mutate ¶
func (i *CreateSysRoleInput) Mutate(m *SysRoleCreate)
Mutate applies the CreateSysRoleInput on the SysRoleCreate builder.
type CreateSysRoleMenuInput ¶
type CreateSysRoleMenuInput struct { IsDel *bool CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time RoleID string MenuID string ActionID *string }
CreateSysRoleMenuInput represents a mutation input for creating sysrolemenus.
func (*CreateSysRoleMenuInput) Mutate ¶
func (i *CreateSysRoleMenuInput) Mutate(m *SysRoleMenuCreate)
Mutate applies the CreateSysRoleMenuInput on the SysRoleMenuCreate builder.
type CreateSysUserInput ¶
type CreateSysUserInput struct { IsDel *bool Sort *int32 CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Status *int16 UserName string RealName *string FirstName *string LastName *string Password string Email string Phone string Salt *string }
CreateSysUserInput represents a mutation input for creating sysusers.
func (*CreateSysUserInput) Mutate ¶
func (i *CreateSysUserInput) Mutate(m *SysUserCreate)
Mutate applies the CreateSysUserInput on the SysUserCreate builder.
type CreateSysUserRoleInput ¶
type CreateSysUserRoleInput struct { IsDel *bool CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time UserID string RoleID string }
CreateSysUserRoleInput represents a mutation input for creating sysuserroles.
func (*CreateSysUserRoleInput) Mutate ¶
func (i *CreateSysUserRoleInput) Mutate(m *SysUserRoleCreate)
Mutate applies the CreateSysUserRoleInput on the SysUserRoleCreate builder.
type CreateXxxDemoInput ¶
type CreateXxxDemoInput struct { IsDel *bool Memo *string Sort *int32 CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Code string Name string Status *int16 }
CreateXxxDemoInput represents a mutation input for creating xxxdemos.
func (*CreateXxxDemoInput) Mutate ¶
func (i *CreateXxxDemoInput) Mutate(m *XxxDemoCreate)
Mutate applies the CreateXxxDemoInput on the XxxDemoCreate builder.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollbacker method.
type SysDict ¶
type SysDict struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // NameCn holds the value of the "name_cn" field. // 字典名(中) NameCn string `json:"name_cn,omitempty"` // NameEn holds the value of the "name_en" field. // 字典名(英) NameEn string `json:"name_en,omitempty"` // contains filtered or unexported fields }
SysDict is the model entity for the SysDict schema.
func (*SysDict) Unwrap ¶
Unwrap unwraps the SysDict entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysDict) Update ¶
func (sd *SysDict) Update() *SysDictUpdateOne
Update returns a builder for updating this SysDict. Note that you need to call SysDict.Unwrap() before calling this method if this SysDict was returned from a transaction, and the transaction was committed or rolled back.
type SysDictClient ¶
type SysDictClient struct {
// contains filtered or unexported fields
}
SysDictClient is a client for the SysDict schema.
func NewSysDictClient ¶
func NewSysDictClient(c config) *SysDictClient
NewSysDictClient returns a client for the SysDict from the given config.
func (*SysDictClient) Create ¶
func (c *SysDictClient) Create() *SysDictCreate
Create returns a create builder for SysDict.
func (*SysDictClient) CreateBulk ¶
func (c *SysDictClient) CreateBulk(builders ...*SysDictCreate) *SysDictCreateBulk
CreateBulk returns a builder for creating a bulk of SysDict entities.
func (*SysDictClient) Delete ¶
func (c *SysDictClient) Delete() *SysDictDelete
Delete returns a delete builder for SysDict.
func (*SysDictClient) DeleteOne ¶
func (c *SysDictClient) DeleteOne(sd *SysDict) *SysDictDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysDictClient) DeleteOneID ¶
func (c *SysDictClient) DeleteOneID(id string) *SysDictDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysDictClient) GetX ¶
func (c *SysDictClient) GetX(ctx context.Context, id string) *SysDict
GetX is like Get, but panics if an error occurs.
func (*SysDictClient) Hooks ¶
func (c *SysDictClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysDictClient) Query ¶
func (c *SysDictClient) Query() *SysDictQuery
Query returns a query builder for SysDict.
func (*SysDictClient) Update ¶
func (c *SysDictClient) Update() *SysDictUpdate
Update returns an update builder for SysDict.
func (*SysDictClient) UpdateOne ¶
func (c *SysDictClient) UpdateOne(sd *SysDict) *SysDictUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysDictClient) UpdateOneID ¶
func (c *SysDictClient) UpdateOneID(id string) *SysDictUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysDictClient) Use ¶
func (c *SysDictClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysdict.Hooks(f(g(h())))`.
type SysDictCreate ¶
type SysDictCreate struct {
// contains filtered or unexported fields
}
SysDictCreate is the builder for creating a SysDict entity.
func (*SysDictCreate) Mutation ¶
func (sdc *SysDictCreate) Mutation() *SysDictMutation
Mutation returns the SysDictMutation object of the builder.
func (*SysDictCreate) Save ¶
func (sdc *SysDictCreate) Save(ctx context.Context) (*SysDict, error)
Save creates the SysDict in the database.
func (*SysDictCreate) SaveX ¶
func (sdc *SysDictCreate) SaveX(ctx context.Context) *SysDict
SaveX calls Save and panics if Save returns an error.
func (*SysDictCreate) SetCreatedAt ¶
func (sdc *SysDictCreate) SetCreatedAt(t time.Time) *SysDictCreate
SetCreatedAt sets the "created_at" field.
func (*SysDictCreate) SetDeletedAt ¶
func (sdc *SysDictCreate) SetDeletedAt(t time.Time) *SysDictCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysDictCreate) SetID ¶
func (sdc *SysDictCreate) SetID(s string) *SysDictCreate
SetID sets the "id" field.
func (*SysDictCreate) SetInput ¶
func (c *SysDictCreate) SetInput(i CreateSysDictInput) *SysDictCreate
SetInput applies the change-set in the CreateSysDictInput on the create builder.
func (*SysDictCreate) SetIsDel ¶
func (sdc *SysDictCreate) SetIsDel(b bool) *SysDictCreate
SetIsDel sets the "is_del" field.
func (*SysDictCreate) SetMemo ¶
func (sdc *SysDictCreate) SetMemo(s string) *SysDictCreate
SetMemo sets the "memo" field.
func (*SysDictCreate) SetNameCn ¶
func (sdc *SysDictCreate) SetNameCn(s string) *SysDictCreate
SetNameCn sets the "name_cn" field.
func (*SysDictCreate) SetNameEn ¶
func (sdc *SysDictCreate) SetNameEn(s string) *SysDictCreate
SetNameEn sets the "name_en" field.
func (*SysDictCreate) SetNillableCreatedAt ¶
func (sdc *SysDictCreate) SetNillableCreatedAt(t *time.Time) *SysDictCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysDictCreate) SetNillableDeletedAt ¶
func (sdc *SysDictCreate) SetNillableDeletedAt(t *time.Time) *SysDictCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictCreate) SetNillableID ¶
func (sdc *SysDictCreate) SetNillableID(s *string) *SysDictCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysDictCreate) SetNillableIsDel ¶
func (sdc *SysDictCreate) SetNillableIsDel(b *bool) *SysDictCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictCreate) SetNillableMemo ¶
func (sdc *SysDictCreate) SetNillableMemo(s *string) *SysDictCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictCreate) SetNillableSort ¶
func (sdc *SysDictCreate) SetNillableSort(i *int32) *SysDictCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictCreate) SetNillableStatus ¶
func (sdc *SysDictCreate) SetNillableStatus(i *int16) *SysDictCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysDictCreate) SetNillableUpdatedAt ¶
func (sdc *SysDictCreate) SetNillableUpdatedAt(t *time.Time) *SysDictCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysDictCreate) SetSort ¶
func (sdc *SysDictCreate) SetSort(i int32) *SysDictCreate
SetSort sets the "sort" field.
func (*SysDictCreate) SetStatus ¶
func (sdc *SysDictCreate) SetStatus(i int16) *SysDictCreate
SetStatus sets the "status" field.
func (*SysDictCreate) SetUpdatedAt ¶
func (sdc *SysDictCreate) SetUpdatedAt(t time.Time) *SysDictCreate
SetUpdatedAt sets the "updated_at" field.
type SysDictCreateBulk ¶
type SysDictCreateBulk struct {
// contains filtered or unexported fields
}
SysDictCreateBulk is the builder for creating many SysDict entities in bulk.
type SysDictDelete ¶
type SysDictDelete struct {
// contains filtered or unexported fields
}
SysDictDelete is the builder for deleting a SysDict entity.
func (*SysDictDelete) Exec ¶
func (sdd *SysDictDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysDictDelete) ExecX ¶
func (sdd *SysDictDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysDictDelete) Where ¶
func (sdd *SysDictDelete) Where(ps ...predicate.SysDict) *SysDictDelete
Where adds a new predicate to the SysDictDelete builder.
type SysDictDeleteOne ¶
type SysDictDeleteOne struct {
// contains filtered or unexported fields
}
SysDictDeleteOne is the builder for deleting a single SysDict entity.
func (*SysDictDeleteOne) Exec ¶
func (sddo *SysDictDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysDictDeleteOne) ExecX ¶
func (sddo *SysDictDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysDictGroupBy ¶
type SysDictGroupBy struct {
// contains filtered or unexported fields
}
SysDictGroupBy is the group-by builder for SysDict entities.
func (*SysDictGroupBy) Aggregate ¶
func (sdgb *SysDictGroupBy) Aggregate(fns ...AggregateFunc) *SysDictGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysDictGroupBy) Bool ¶
func (sdgb *SysDictGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) BoolX ¶
func (sdgb *SysDictGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysDictGroupBy) Bools ¶
func (sdgb *SysDictGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) BoolsX ¶
func (sdgb *SysDictGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysDictGroupBy) Float64 ¶
func (sdgb *SysDictGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) Float64X ¶
func (sdgb *SysDictGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysDictGroupBy) Float64s ¶
func (sdgb *SysDictGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) Float64sX ¶
func (sdgb *SysDictGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysDictGroupBy) Int ¶
func (sdgb *SysDictGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) IntX ¶
func (sdgb *SysDictGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysDictGroupBy) Ints ¶
func (sdgb *SysDictGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) IntsX ¶
func (sdgb *SysDictGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysDictGroupBy) Scan ¶
func (sdgb *SysDictGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysDictGroupBy) ScanX ¶
func (sdgb *SysDictGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysDictGroupBy) String ¶
func (sdgb *SysDictGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictGroupBy) StringX ¶
func (sdgb *SysDictGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysDictItem ¶
type SysDictItem struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Label holds the value of the "label" field. // 显示值 Label string `json:"label,omitempty"` // Value holds the value of the "value" field. // 字典值 Value int `json:"value,omitempty"` // Status holds the value of the "status" field. // 启用状态 Status int16 `json:"status,omitempty"` // DictID holds the value of the "dict_id" field. // sys_dict.id DictID string `json:"dict_id,omitempty"` // contains filtered or unexported fields }
SysDictItem is the model entity for the SysDictItem schema.
func (*SysDictItem) String ¶
func (sdi *SysDictItem) String() string
String implements the fmt.Stringer.
func (*SysDictItem) Unwrap ¶
func (sdi *SysDictItem) Unwrap() *SysDictItem
Unwrap unwraps the SysDictItem entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysDictItem) Update ¶
func (sdi *SysDictItem) Update() *SysDictItemUpdateOne
Update returns a builder for updating this SysDictItem. Note that you need to call SysDictItem.Unwrap() before calling this method if this SysDictItem was returned from a transaction, and the transaction was committed or rolled back.
type SysDictItemClient ¶
type SysDictItemClient struct {
// contains filtered or unexported fields
}
SysDictItemClient is a client for the SysDictItem schema.
func NewSysDictItemClient ¶
func NewSysDictItemClient(c config) *SysDictItemClient
NewSysDictItemClient returns a client for the SysDictItem from the given config.
func (*SysDictItemClient) Create ¶
func (c *SysDictItemClient) Create() *SysDictItemCreate
Create returns a create builder for SysDictItem.
func (*SysDictItemClient) CreateBulk ¶
func (c *SysDictItemClient) CreateBulk(builders ...*SysDictItemCreate) *SysDictItemCreateBulk
CreateBulk returns a builder for creating a bulk of SysDictItem entities.
func (*SysDictItemClient) Delete ¶
func (c *SysDictItemClient) Delete() *SysDictItemDelete
Delete returns a delete builder for SysDictItem.
func (*SysDictItemClient) DeleteOne ¶
func (c *SysDictItemClient) DeleteOne(sdi *SysDictItem) *SysDictItemDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysDictItemClient) DeleteOneID ¶
func (c *SysDictItemClient) DeleteOneID(id string) *SysDictItemDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysDictItemClient) Get ¶
func (c *SysDictItemClient) Get(ctx context.Context, id string) (*SysDictItem, error)
Get returns a SysDictItem entity by its id.
func (*SysDictItemClient) GetX ¶
func (c *SysDictItemClient) GetX(ctx context.Context, id string) *SysDictItem
GetX is like Get, but panics if an error occurs.
func (*SysDictItemClient) Hooks ¶
func (c *SysDictItemClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysDictItemClient) Query ¶
func (c *SysDictItemClient) Query() *SysDictItemQuery
Query returns a query builder for SysDictItem.
func (*SysDictItemClient) Update ¶
func (c *SysDictItemClient) Update() *SysDictItemUpdate
Update returns an update builder for SysDictItem.
func (*SysDictItemClient) UpdateOne ¶
func (c *SysDictItemClient) UpdateOne(sdi *SysDictItem) *SysDictItemUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysDictItemClient) UpdateOneID ¶
func (c *SysDictItemClient) UpdateOneID(id string) *SysDictItemUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysDictItemClient) Use ¶
func (c *SysDictItemClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysdictitem.Hooks(f(g(h())))`.
type SysDictItemCreate ¶
type SysDictItemCreate struct {
// contains filtered or unexported fields
}
SysDictItemCreate is the builder for creating a SysDictItem entity.
func (*SysDictItemCreate) Mutation ¶
func (sdic *SysDictItemCreate) Mutation() *SysDictItemMutation
Mutation returns the SysDictItemMutation object of the builder.
func (*SysDictItemCreate) Save ¶
func (sdic *SysDictItemCreate) Save(ctx context.Context) (*SysDictItem, error)
Save creates the SysDictItem in the database.
func (*SysDictItemCreate) SaveX ¶
func (sdic *SysDictItemCreate) SaveX(ctx context.Context) *SysDictItem
SaveX calls Save and panics if Save returns an error.
func (*SysDictItemCreate) SetCreatedAt ¶
func (sdic *SysDictItemCreate) SetCreatedAt(t time.Time) *SysDictItemCreate
SetCreatedAt sets the "created_at" field.
func (*SysDictItemCreate) SetDeletedAt ¶
func (sdic *SysDictItemCreate) SetDeletedAt(t time.Time) *SysDictItemCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysDictItemCreate) SetDictID ¶
func (sdic *SysDictItemCreate) SetDictID(s string) *SysDictItemCreate
SetDictID sets the "dict_id" field.
func (*SysDictItemCreate) SetID ¶
func (sdic *SysDictItemCreate) SetID(s string) *SysDictItemCreate
SetID sets the "id" field.
func (*SysDictItemCreate) SetInput ¶
func (c *SysDictItemCreate) SetInput(i CreateSysDictItemInput) *SysDictItemCreate
SetInput applies the change-set in the CreateSysDictItemInput on the create builder.
func (*SysDictItemCreate) SetIsDel ¶
func (sdic *SysDictItemCreate) SetIsDel(b bool) *SysDictItemCreate
SetIsDel sets the "is_del" field.
func (*SysDictItemCreate) SetLabel ¶
func (sdic *SysDictItemCreate) SetLabel(s string) *SysDictItemCreate
SetLabel sets the "label" field.
func (*SysDictItemCreate) SetMemo ¶
func (sdic *SysDictItemCreate) SetMemo(s string) *SysDictItemCreate
SetMemo sets the "memo" field.
func (*SysDictItemCreate) SetNillableCreatedAt ¶
func (sdic *SysDictItemCreate) SetNillableCreatedAt(t *time.Time) *SysDictItemCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableDeletedAt ¶
func (sdic *SysDictItemCreate) SetNillableDeletedAt(t *time.Time) *SysDictItemCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableID ¶
func (sdic *SysDictItemCreate) SetNillableID(s *string) *SysDictItemCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableIsDel ¶
func (sdic *SysDictItemCreate) SetNillableIsDel(b *bool) *SysDictItemCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableMemo ¶
func (sdic *SysDictItemCreate) SetNillableMemo(s *string) *SysDictItemCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableSort ¶
func (sdic *SysDictItemCreate) SetNillableSort(i *int32) *SysDictItemCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictItemCreate) SetNillableUpdatedAt ¶
func (sdic *SysDictItemCreate) SetNillableUpdatedAt(t *time.Time) *SysDictItemCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysDictItemCreate) SetSort ¶
func (sdic *SysDictItemCreate) SetSort(i int32) *SysDictItemCreate
SetSort sets the "sort" field.
func (*SysDictItemCreate) SetStatus ¶
func (sdic *SysDictItemCreate) SetStatus(i int16) *SysDictItemCreate
SetStatus sets the "status" field.
func (*SysDictItemCreate) SetUpdatedAt ¶
func (sdic *SysDictItemCreate) SetUpdatedAt(t time.Time) *SysDictItemCreate
SetUpdatedAt sets the "updated_at" field.
func (*SysDictItemCreate) SetValue ¶
func (sdic *SysDictItemCreate) SetValue(i int) *SysDictItemCreate
SetValue sets the "value" field.
type SysDictItemCreateBulk ¶
type SysDictItemCreateBulk struct {
// contains filtered or unexported fields
}
SysDictItemCreateBulk is the builder for creating many SysDictItem entities in bulk.
func (*SysDictItemCreateBulk) Save ¶
func (sdicb *SysDictItemCreateBulk) Save(ctx context.Context) ([]*SysDictItem, error)
Save creates the SysDictItem entities in the database.
func (*SysDictItemCreateBulk) SaveX ¶
func (sdicb *SysDictItemCreateBulk) SaveX(ctx context.Context) []*SysDictItem
SaveX is like Save, but panics if an error occurs.
type SysDictItemDelete ¶
type SysDictItemDelete struct {
// contains filtered or unexported fields
}
SysDictItemDelete is the builder for deleting a SysDictItem entity.
func (*SysDictItemDelete) Exec ¶
func (sdid *SysDictItemDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysDictItemDelete) ExecX ¶
func (sdid *SysDictItemDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysDictItemDelete) Where ¶
func (sdid *SysDictItemDelete) Where(ps ...predicate.SysDictItem) *SysDictItemDelete
Where adds a new predicate to the SysDictItemDelete builder.
type SysDictItemDeleteOne ¶
type SysDictItemDeleteOne struct {
// contains filtered or unexported fields
}
SysDictItemDeleteOne is the builder for deleting a single SysDictItem entity.
func (*SysDictItemDeleteOne) Exec ¶
func (sdido *SysDictItemDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysDictItemDeleteOne) ExecX ¶
func (sdido *SysDictItemDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysDictItemGroupBy ¶
type SysDictItemGroupBy struct {
// contains filtered or unexported fields
}
SysDictItemGroupBy is the group-by builder for SysDictItem entities.
func (*SysDictItemGroupBy) Aggregate ¶
func (sdigb *SysDictItemGroupBy) Aggregate(fns ...AggregateFunc) *SysDictItemGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysDictItemGroupBy) Bool ¶
func (sdigb *SysDictItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) BoolX ¶
func (sdigb *SysDictItemGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysDictItemGroupBy) Bools ¶
func (sdigb *SysDictItemGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) BoolsX ¶
func (sdigb *SysDictItemGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysDictItemGroupBy) Float64 ¶
func (sdigb *SysDictItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) Float64X ¶
func (sdigb *SysDictItemGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysDictItemGroupBy) Float64s ¶
func (sdigb *SysDictItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) Float64sX ¶
func (sdigb *SysDictItemGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysDictItemGroupBy) Int ¶
func (sdigb *SysDictItemGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) IntX ¶
func (sdigb *SysDictItemGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysDictItemGroupBy) Ints ¶
func (sdigb *SysDictItemGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) IntsX ¶
func (sdigb *SysDictItemGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysDictItemGroupBy) Scan ¶
func (sdigb *SysDictItemGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysDictItemGroupBy) ScanX ¶
func (sdigb *SysDictItemGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysDictItemGroupBy) String ¶
func (sdigb *SysDictItemGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysDictItemGroupBy) StringX ¶
func (sdigb *SysDictItemGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysDictItemMutation ¶
type SysDictItemMutation struct {
// contains filtered or unexported fields
}
SysDictItemMutation represents an operation that mutates the SysDictItem nodes in the graph.
func (*SysDictItemMutation) AddField ¶
func (m *SysDictItemMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysDictItemMutation) AddSort ¶
func (m *SysDictItemMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysDictItemMutation) AddStatus ¶
func (m *SysDictItemMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysDictItemMutation) AddValue ¶
func (m *SysDictItemMutation) AddValue(i int)
AddValue adds i to the "value" field.
func (*SysDictItemMutation) AddedEdges ¶
func (m *SysDictItemMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysDictItemMutation) AddedField ¶
func (m *SysDictItemMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysDictItemMutation) AddedFields ¶
func (m *SysDictItemMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysDictItemMutation) AddedIDs ¶
func (m *SysDictItemMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysDictItemMutation) AddedSort ¶
func (m *SysDictItemMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysDictItemMutation) AddedStatus ¶
func (m *SysDictItemMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysDictItemMutation) AddedValue ¶
func (m *SysDictItemMutation) AddedValue() (r int, exists bool)
AddedValue returns the value that was added to the "value" field in this mutation.
func (*SysDictItemMutation) ClearDeletedAt ¶
func (m *SysDictItemMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictItemMutation) ClearEdge ¶
func (m *SysDictItemMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysDictItemMutation) ClearField ¶
func (m *SysDictItemMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysDictItemMutation) ClearedEdges ¶
func (m *SysDictItemMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysDictItemMutation) ClearedFields ¶
func (m *SysDictItemMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysDictItemMutation) Client ¶
func (m SysDictItemMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysDictItemMutation) CreatedAt ¶
func (m *SysDictItemMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysDictItemMutation) DeletedAt ¶
func (m *SysDictItemMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysDictItemMutation) DeletedAtCleared ¶
func (m *SysDictItemMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysDictItemMutation) DictID ¶
func (m *SysDictItemMutation) DictID() (r string, exists bool)
DictID returns the value of the "dict_id" field in the mutation.
func (*SysDictItemMutation) EdgeCleared ¶
func (m *SysDictItemMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysDictItemMutation) Field ¶
func (m *SysDictItemMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysDictItemMutation) FieldCleared ¶
func (m *SysDictItemMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysDictItemMutation) Fields ¶
func (m *SysDictItemMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysDictItemMutation) ID ¶
func (m *SysDictItemMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysDictItemMutation) IsDel ¶
func (m *SysDictItemMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysDictItemMutation) Label ¶
func (m *SysDictItemMutation) Label() (r string, exists bool)
Label returns the value of the "label" field in the mutation.
func (*SysDictItemMutation) Memo ¶
func (m *SysDictItemMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysDictItemMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldDictID ¶
func (m *SysDictItemMutation) OldDictID(ctx context.Context) (v string, err error)
OldDictID returns the old "dict_id" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysDictItemMutation) OldIsDel ¶
func (m *SysDictItemMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldLabel ¶
func (m *SysDictItemMutation) OldLabel(ctx context.Context) (v string, err error)
OldLabel returns the old "label" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldMemo ¶
func (m *SysDictItemMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldSort ¶
func (m *SysDictItemMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldStatus ¶
func (m *SysDictItemMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) OldValue ¶
func (m *SysDictItemMutation) OldValue(ctx context.Context) (v int, err error)
OldValue returns the old "value" field's value of the SysDictItem entity. If the SysDictItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictItemMutation) Op ¶
func (m *SysDictItemMutation) Op() Op
Op returns the operation name.
func (*SysDictItemMutation) RemovedEdges ¶
func (m *SysDictItemMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysDictItemMutation) RemovedIDs ¶
func (m *SysDictItemMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysDictItemMutation) ResetCreatedAt ¶
func (m *SysDictItemMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysDictItemMutation) ResetDeletedAt ¶
func (m *SysDictItemMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysDictItemMutation) ResetDictID ¶
func (m *SysDictItemMutation) ResetDictID()
ResetDictID resets all changes to the "dict_id" field.
func (*SysDictItemMutation) ResetEdge ¶
func (m *SysDictItemMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysDictItemMutation) ResetField ¶
func (m *SysDictItemMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysDictItemMutation) ResetIsDel ¶
func (m *SysDictItemMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysDictItemMutation) ResetLabel ¶
func (m *SysDictItemMutation) ResetLabel()
ResetLabel resets all changes to the "label" field.
func (*SysDictItemMutation) ResetMemo ¶
func (m *SysDictItemMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysDictItemMutation) ResetSort ¶
func (m *SysDictItemMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysDictItemMutation) ResetStatus ¶
func (m *SysDictItemMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysDictItemMutation) ResetUpdatedAt ¶
func (m *SysDictItemMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysDictItemMutation) ResetValue ¶
func (m *SysDictItemMutation) ResetValue()
ResetValue resets all changes to the "value" field.
func (*SysDictItemMutation) SetCreatedAt ¶
func (m *SysDictItemMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysDictItemMutation) SetDeletedAt ¶
func (m *SysDictItemMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysDictItemMutation) SetDictID ¶
func (m *SysDictItemMutation) SetDictID(s string)
SetDictID sets the "dict_id" field.
func (*SysDictItemMutation) SetField ¶
func (m *SysDictItemMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysDictItemMutation) SetID ¶
func (m *SysDictItemMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysDictItem entities.
func (*SysDictItemMutation) SetIsDel ¶
func (m *SysDictItemMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysDictItemMutation) SetLabel ¶
func (m *SysDictItemMutation) SetLabel(s string)
SetLabel sets the "label" field.
func (*SysDictItemMutation) SetMemo ¶
func (m *SysDictItemMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysDictItemMutation) SetSort ¶
func (m *SysDictItemMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysDictItemMutation) SetStatus ¶
func (m *SysDictItemMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysDictItemMutation) SetUpdatedAt ¶
func (m *SysDictItemMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysDictItemMutation) SetValue ¶
func (m *SysDictItemMutation) SetValue(i int)
SetValue sets the "value" field.
func (*SysDictItemMutation) Sort ¶
func (m *SysDictItemMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysDictItemMutation) Status ¶
func (m *SysDictItemMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysDictItemMutation) Tx ¶
func (m SysDictItemMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysDictItemMutation) Type ¶
func (m *SysDictItemMutation) Type() string
Type returns the node type of this mutation (SysDictItem).
func (*SysDictItemMutation) UpdatedAt ¶
func (m *SysDictItemMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SysDictItemMutation) Value ¶
func (m *SysDictItemMutation) Value() (r int, exists bool)
Value returns the value of the "value" field in the mutation.
type SysDictItemQuery ¶
type SysDictItemQuery struct {
// contains filtered or unexported fields
}
SysDictItemQuery is the builder for querying SysDictItem entities.
func (*SysDictItemQuery) All ¶
func (sdiq *SysDictItemQuery) All(ctx context.Context) ([]*SysDictItem, error)
All executes the query and returns a list of SysDictItems.
func (*SysDictItemQuery) AllX ¶
func (sdiq *SysDictItemQuery) AllX(ctx context.Context) []*SysDictItem
AllX is like All, but panics if an error occurs.
func (*SysDictItemQuery) Clone ¶
func (sdiq *SysDictItemQuery) Clone() *SysDictItemQuery
Clone returns a duplicate of the SysDictItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysDictItemQuery) Count ¶
func (sdiq *SysDictItemQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysDictItemQuery) CountX ¶
func (sdiq *SysDictItemQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysDictItemQuery) Exist ¶
func (sdiq *SysDictItemQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysDictItemQuery) ExistX ¶
func (sdiq *SysDictItemQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysDictItemQuery) First ¶
func (sdiq *SysDictItemQuery) First(ctx context.Context) (*SysDictItem, error)
First returns the first SysDictItem entity from the query. Returns a *NotFoundError when no SysDictItem was found.
func (*SysDictItemQuery) FirstID ¶
func (sdiq *SysDictItemQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysDictItem ID from the query. Returns a *NotFoundError when no SysDictItem ID was found.
func (*SysDictItemQuery) FirstIDX ¶
func (sdiq *SysDictItemQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysDictItemQuery) FirstX ¶
func (sdiq *SysDictItemQuery) FirstX(ctx context.Context) *SysDictItem
FirstX is like First, but panics if an error occurs.
func (*SysDictItemQuery) GroupBy ¶
func (sdiq *SysDictItemQuery) GroupBy(field string, fields ...string) *SysDictItemGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysDictItem.Query(). GroupBy(sysdictitem.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysDictItemQuery) IDs ¶
func (sdiq *SysDictItemQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysDictItem IDs.
func (*SysDictItemQuery) IDsX ¶
func (sdiq *SysDictItemQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysDictItemQuery) Limit ¶
func (sdiq *SysDictItemQuery) Limit(limit int) *SysDictItemQuery
Limit adds a limit step to the query.
func (*SysDictItemQuery) Offset ¶
func (sdiq *SysDictItemQuery) Offset(offset int) *SysDictItemQuery
Offset adds an offset step to the query.
func (*SysDictItemQuery) Only ¶
func (sdiq *SysDictItemQuery) Only(ctx context.Context) (*SysDictItem, error)
Only returns a single SysDictItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysDictItem entity is not found. Returns a *NotFoundError when no SysDictItem entities are found.
func (*SysDictItemQuery) OnlyID ¶
func (sdiq *SysDictItemQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysDictItem ID in the query. Returns a *NotSingularError when exactly one SysDictItem ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysDictItemQuery) OnlyIDX ¶
func (sdiq *SysDictItemQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysDictItemQuery) OnlyX ¶
func (sdiq *SysDictItemQuery) OnlyX(ctx context.Context) *SysDictItem
OnlyX is like Only, but panics if an error occurs.
func (*SysDictItemQuery) Order ¶
func (sdiq *SysDictItemQuery) Order(o ...OrderFunc) *SysDictItemQuery
Order adds an order step to the query.
func (*SysDictItemQuery) Select ¶
func (sdiq *SysDictItemQuery) Select(field string, fields ...string) *SysDictItemSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysDictItem.Query(). Select(sysdictitem.FieldIsDel). Scan(ctx, &v)
func (*SysDictItemQuery) Unique ¶
func (sdiq *SysDictItemQuery) Unique(unique bool) *SysDictItemQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysDictItemQuery) Where ¶
func (sdiq *SysDictItemQuery) Where(ps ...predicate.SysDictItem) *SysDictItemQuery
Where adds a new predicate for the SysDictItemQuery builder.
type SysDictItemSelect ¶
type SysDictItemSelect struct { *SysDictItemQuery // contains filtered or unexported fields }
SysDictItemSelect is the builder for selecting fields of SysDictItem entities.
func (*SysDictItemSelect) Bool ¶
func (sdis *SysDictItemSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) BoolX ¶
func (sdis *SysDictItemSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysDictItemSelect) Bools ¶
func (sdis *SysDictItemSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) BoolsX ¶
func (sdis *SysDictItemSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysDictItemSelect) Float64 ¶
func (sdis *SysDictItemSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) Float64X ¶
func (sdis *SysDictItemSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysDictItemSelect) Float64s ¶
func (sdis *SysDictItemSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) Float64sX ¶
func (sdis *SysDictItemSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysDictItemSelect) Int ¶
func (sdis *SysDictItemSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) IntX ¶
func (sdis *SysDictItemSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysDictItemSelect) Ints ¶
func (sdis *SysDictItemSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) IntsX ¶
func (sdis *SysDictItemSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysDictItemSelect) Scan ¶
func (sdis *SysDictItemSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysDictItemSelect) ScanX ¶
func (sdis *SysDictItemSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysDictItemSelect) String ¶
func (sdis *SysDictItemSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysDictItemSelect) StringX ¶
func (sdis *SysDictItemSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysDictItemUpdate ¶
type SysDictItemUpdate struct {
// contains filtered or unexported fields
}
SysDictItemUpdate is the builder for updating SysDictItem entities.
func (*SysDictItemUpdate) AddSort ¶
func (sdiu *SysDictItemUpdate) AddSort(i int32) *SysDictItemUpdate
AddSort adds i to the "sort" field.
func (*SysDictItemUpdate) AddStatus ¶
func (sdiu *SysDictItemUpdate) AddStatus(i int16) *SysDictItemUpdate
AddStatus adds i to the "status" field.
func (*SysDictItemUpdate) AddValue ¶
func (sdiu *SysDictItemUpdate) AddValue(i int) *SysDictItemUpdate
AddValue adds i to the "value" field.
func (*SysDictItemUpdate) ClearDeletedAt ¶
func (sdiu *SysDictItemUpdate) ClearDeletedAt() *SysDictItemUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictItemUpdate) Exec ¶
func (sdiu *SysDictItemUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysDictItemUpdate) ExecX ¶
func (sdiu *SysDictItemUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysDictItemUpdate) Mutation ¶
func (sdiu *SysDictItemUpdate) Mutation() *SysDictItemMutation
Mutation returns the SysDictItemMutation object of the builder.
func (*SysDictItemUpdate) Save ¶
func (sdiu *SysDictItemUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysDictItemUpdate) SaveX ¶
func (sdiu *SysDictItemUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysDictItemUpdate) SetDeletedAt ¶
func (sdiu *SysDictItemUpdate) SetDeletedAt(t time.Time) *SysDictItemUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysDictItemUpdate) SetDictID ¶
func (sdiu *SysDictItemUpdate) SetDictID(s string) *SysDictItemUpdate
SetDictID sets the "dict_id" field.
func (*SysDictItemUpdate) SetInput ¶
func (u *SysDictItemUpdate) SetInput(i UpdateSysDictItemInput) *SysDictItemUpdate
SetInput applies the change-set in the UpdateSysDictItemInput on the update builder.
func (*SysDictItemUpdate) SetIsDel ¶
func (sdiu *SysDictItemUpdate) SetIsDel(b bool) *SysDictItemUpdate
SetIsDel sets the "is_del" field.
func (*SysDictItemUpdate) SetLabel ¶
func (sdiu *SysDictItemUpdate) SetLabel(s string) *SysDictItemUpdate
SetLabel sets the "label" field.
func (*SysDictItemUpdate) SetMemo ¶
func (sdiu *SysDictItemUpdate) SetMemo(s string) *SysDictItemUpdate
SetMemo sets the "memo" field.
func (*SysDictItemUpdate) SetNillableDeletedAt ¶
func (sdiu *SysDictItemUpdate) SetNillableDeletedAt(t *time.Time) *SysDictItemUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictItemUpdate) SetNillableIsDel ¶
func (sdiu *SysDictItemUpdate) SetNillableIsDel(b *bool) *SysDictItemUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictItemUpdate) SetNillableMemo ¶
func (sdiu *SysDictItemUpdate) SetNillableMemo(s *string) *SysDictItemUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictItemUpdate) SetNillableSort ¶
func (sdiu *SysDictItemUpdate) SetNillableSort(i *int32) *SysDictItemUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictItemUpdate) SetSort ¶
func (sdiu *SysDictItemUpdate) SetSort(i int32) *SysDictItemUpdate
SetSort sets the "sort" field.
func (*SysDictItemUpdate) SetStatus ¶
func (sdiu *SysDictItemUpdate) SetStatus(i int16) *SysDictItemUpdate
SetStatus sets the "status" field.
func (*SysDictItemUpdate) SetUpdatedAt ¶
func (sdiu *SysDictItemUpdate) SetUpdatedAt(t time.Time) *SysDictItemUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysDictItemUpdate) SetValue ¶
func (sdiu *SysDictItemUpdate) SetValue(i int) *SysDictItemUpdate
SetValue sets the "value" field.
func (*SysDictItemUpdate) Where ¶
func (sdiu *SysDictItemUpdate) Where(ps ...predicate.SysDictItem) *SysDictItemUpdate
Where adds a new predicate for the SysDictItemUpdate builder.
type SysDictItemUpdateOne ¶
type SysDictItemUpdateOne struct {
// contains filtered or unexported fields
}
SysDictItemUpdateOne is the builder for updating a single SysDictItem entity.
func (*SysDictItemUpdateOne) AddSort ¶
func (sdiuo *SysDictItemUpdateOne) AddSort(i int32) *SysDictItemUpdateOne
AddSort adds i to the "sort" field.
func (*SysDictItemUpdateOne) AddStatus ¶
func (sdiuo *SysDictItemUpdateOne) AddStatus(i int16) *SysDictItemUpdateOne
AddStatus adds i to the "status" field.
func (*SysDictItemUpdateOne) AddValue ¶
func (sdiuo *SysDictItemUpdateOne) AddValue(i int) *SysDictItemUpdateOne
AddValue adds i to the "value" field.
func (*SysDictItemUpdateOne) ClearDeletedAt ¶
func (sdiuo *SysDictItemUpdateOne) ClearDeletedAt() *SysDictItemUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictItemUpdateOne) Exec ¶
func (sdiuo *SysDictItemUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysDictItemUpdateOne) ExecX ¶
func (sdiuo *SysDictItemUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysDictItemUpdateOne) Mutation ¶
func (sdiuo *SysDictItemUpdateOne) Mutation() *SysDictItemMutation
Mutation returns the SysDictItemMutation object of the builder.
func (*SysDictItemUpdateOne) Save ¶
func (sdiuo *SysDictItemUpdateOne) Save(ctx context.Context) (*SysDictItem, error)
Save executes the query and returns the updated SysDictItem entity.
func (*SysDictItemUpdateOne) SaveX ¶
func (sdiuo *SysDictItemUpdateOne) SaveX(ctx context.Context) *SysDictItem
SaveX is like Save, but panics if an error occurs.
func (*SysDictItemUpdateOne) Select ¶
func (sdiuo *SysDictItemUpdateOne) Select(field string, fields ...string) *SysDictItemUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysDictItemUpdateOne) SetDeletedAt ¶
func (sdiuo *SysDictItemUpdateOne) SetDeletedAt(t time.Time) *SysDictItemUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysDictItemUpdateOne) SetDictID ¶
func (sdiuo *SysDictItemUpdateOne) SetDictID(s string) *SysDictItemUpdateOne
SetDictID sets the "dict_id" field.
func (*SysDictItemUpdateOne) SetInput ¶
func (u *SysDictItemUpdateOne) SetInput(i UpdateSysDictItemInput) *SysDictItemUpdateOne
SetInput applies the change-set in the UpdateSysDictItemInput on the update-one builder.
func (*SysDictItemUpdateOne) SetIsDel ¶
func (sdiuo *SysDictItemUpdateOne) SetIsDel(b bool) *SysDictItemUpdateOne
SetIsDel sets the "is_del" field.
func (*SysDictItemUpdateOne) SetLabel ¶
func (sdiuo *SysDictItemUpdateOne) SetLabel(s string) *SysDictItemUpdateOne
SetLabel sets the "label" field.
func (*SysDictItemUpdateOne) SetMemo ¶
func (sdiuo *SysDictItemUpdateOne) SetMemo(s string) *SysDictItemUpdateOne
SetMemo sets the "memo" field.
func (*SysDictItemUpdateOne) SetNillableDeletedAt ¶
func (sdiuo *SysDictItemUpdateOne) SetNillableDeletedAt(t *time.Time) *SysDictItemUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictItemUpdateOne) SetNillableIsDel ¶
func (sdiuo *SysDictItemUpdateOne) SetNillableIsDel(b *bool) *SysDictItemUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictItemUpdateOne) SetNillableMemo ¶
func (sdiuo *SysDictItemUpdateOne) SetNillableMemo(s *string) *SysDictItemUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictItemUpdateOne) SetNillableSort ¶
func (sdiuo *SysDictItemUpdateOne) SetNillableSort(i *int32) *SysDictItemUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictItemUpdateOne) SetSort ¶
func (sdiuo *SysDictItemUpdateOne) SetSort(i int32) *SysDictItemUpdateOne
SetSort sets the "sort" field.
func (*SysDictItemUpdateOne) SetStatus ¶
func (sdiuo *SysDictItemUpdateOne) SetStatus(i int16) *SysDictItemUpdateOne
SetStatus sets the "status" field.
func (*SysDictItemUpdateOne) SetUpdatedAt ¶
func (sdiuo *SysDictItemUpdateOne) SetUpdatedAt(t time.Time) *SysDictItemUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SysDictItemUpdateOne) SetValue ¶
func (sdiuo *SysDictItemUpdateOne) SetValue(i int) *SysDictItemUpdateOne
SetValue sets the "value" field.
type SysDictItems ¶
type SysDictItems []*SysDictItem
SysDictItems is a parsable slice of SysDictItem.
type SysDictMutation ¶
type SysDictMutation struct {
// contains filtered or unexported fields
}
SysDictMutation represents an operation that mutates the SysDict nodes in the graph.
func (*SysDictMutation) AddField ¶
func (m *SysDictMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysDictMutation) AddSort ¶
func (m *SysDictMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysDictMutation) AddStatus ¶
func (m *SysDictMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysDictMutation) AddedEdges ¶
func (m *SysDictMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysDictMutation) AddedField ¶
func (m *SysDictMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysDictMutation) AddedFields ¶
func (m *SysDictMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysDictMutation) AddedIDs ¶
func (m *SysDictMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysDictMutation) AddedSort ¶
func (m *SysDictMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysDictMutation) AddedStatus ¶
func (m *SysDictMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysDictMutation) ClearDeletedAt ¶
func (m *SysDictMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictMutation) ClearEdge ¶
func (m *SysDictMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysDictMutation) ClearField ¶
func (m *SysDictMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysDictMutation) ClearedEdges ¶
func (m *SysDictMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysDictMutation) ClearedFields ¶
func (m *SysDictMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysDictMutation) Client ¶
func (m SysDictMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysDictMutation) CreatedAt ¶
func (m *SysDictMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysDictMutation) DeletedAt ¶
func (m *SysDictMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysDictMutation) DeletedAtCleared ¶
func (m *SysDictMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysDictMutation) EdgeCleared ¶
func (m *SysDictMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysDictMutation) Field ¶
func (m *SysDictMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysDictMutation) FieldCleared ¶
func (m *SysDictMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysDictMutation) Fields ¶
func (m *SysDictMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysDictMutation) ID ¶
func (m *SysDictMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysDictMutation) IsDel ¶
func (m *SysDictMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysDictMutation) Memo ¶
func (m *SysDictMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysDictMutation) NameCn ¶
func (m *SysDictMutation) NameCn() (r string, exists bool)
NameCn returns the value of the "name_cn" field in the mutation.
func (*SysDictMutation) NameEn ¶
func (m *SysDictMutation) NameEn() (r string, exists bool)
NameEn returns the value of the "name_en" field in the mutation.
func (*SysDictMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysDictMutation) OldIsDel ¶
func (m *SysDictMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldMemo ¶
func (m *SysDictMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldNameCn ¶
func (m *SysDictMutation) OldNameCn(ctx context.Context) (v string, err error)
OldNameCn returns the old "name_cn" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldNameEn ¶
func (m *SysDictMutation) OldNameEn(ctx context.Context) (v string, err error)
OldNameEn returns the old "name_en" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldSort ¶
func (m *SysDictMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldStatus ¶
func (m *SysDictMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysDict entity. If the SysDict object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysDictMutation) RemovedEdges ¶
func (m *SysDictMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysDictMutation) RemovedIDs ¶
func (m *SysDictMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysDictMutation) ResetCreatedAt ¶
func (m *SysDictMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysDictMutation) ResetDeletedAt ¶
func (m *SysDictMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysDictMutation) ResetEdge ¶
func (m *SysDictMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysDictMutation) ResetField ¶
func (m *SysDictMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysDictMutation) ResetIsDel ¶
func (m *SysDictMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysDictMutation) ResetMemo ¶
func (m *SysDictMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysDictMutation) ResetNameCn ¶
func (m *SysDictMutation) ResetNameCn()
ResetNameCn resets all changes to the "name_cn" field.
func (*SysDictMutation) ResetNameEn ¶
func (m *SysDictMutation) ResetNameEn()
ResetNameEn resets all changes to the "name_en" field.
func (*SysDictMutation) ResetSort ¶
func (m *SysDictMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysDictMutation) ResetStatus ¶
func (m *SysDictMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysDictMutation) ResetUpdatedAt ¶
func (m *SysDictMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysDictMutation) SetCreatedAt ¶
func (m *SysDictMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysDictMutation) SetDeletedAt ¶
func (m *SysDictMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysDictMutation) SetField ¶
func (m *SysDictMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysDictMutation) SetID ¶
func (m *SysDictMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysDict entities.
func (*SysDictMutation) SetIsDel ¶
func (m *SysDictMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysDictMutation) SetMemo ¶
func (m *SysDictMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysDictMutation) SetNameCn ¶
func (m *SysDictMutation) SetNameCn(s string)
SetNameCn sets the "name_cn" field.
func (*SysDictMutation) SetNameEn ¶
func (m *SysDictMutation) SetNameEn(s string)
SetNameEn sets the "name_en" field.
func (*SysDictMutation) SetSort ¶
func (m *SysDictMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysDictMutation) SetStatus ¶
func (m *SysDictMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysDictMutation) SetUpdatedAt ¶
func (m *SysDictMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysDictMutation) Sort ¶
func (m *SysDictMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysDictMutation) Status ¶
func (m *SysDictMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysDictMutation) Tx ¶
func (m SysDictMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysDictMutation) Type ¶
func (m *SysDictMutation) Type() string
Type returns the node type of this mutation (SysDict).
type SysDictQuery ¶
type SysDictQuery struct {
// contains filtered or unexported fields
}
SysDictQuery is the builder for querying SysDict entities.
func (*SysDictQuery) All ¶
func (sdq *SysDictQuery) All(ctx context.Context) ([]*SysDict, error)
All executes the query and returns a list of SysDicts.
func (*SysDictQuery) AllX ¶
func (sdq *SysDictQuery) AllX(ctx context.Context) []*SysDict
AllX is like All, but panics if an error occurs.
func (*SysDictQuery) Clone ¶
func (sdq *SysDictQuery) Clone() *SysDictQuery
Clone returns a duplicate of the SysDictQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysDictQuery) Count ¶
func (sdq *SysDictQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysDictQuery) CountX ¶
func (sdq *SysDictQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysDictQuery) Exist ¶
func (sdq *SysDictQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysDictQuery) ExistX ¶
func (sdq *SysDictQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysDictQuery) First ¶
func (sdq *SysDictQuery) First(ctx context.Context) (*SysDict, error)
First returns the first SysDict entity from the query. Returns a *NotFoundError when no SysDict was found.
func (*SysDictQuery) FirstID ¶
func (sdq *SysDictQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysDict ID from the query. Returns a *NotFoundError when no SysDict ID was found.
func (*SysDictQuery) FirstIDX ¶
func (sdq *SysDictQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysDictQuery) FirstX ¶
func (sdq *SysDictQuery) FirstX(ctx context.Context) *SysDict
FirstX is like First, but panics if an error occurs.
func (*SysDictQuery) GroupBy ¶
func (sdq *SysDictQuery) GroupBy(field string, fields ...string) *SysDictGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysDict.Query(). GroupBy(sysdict.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysDictQuery) IDs ¶
func (sdq *SysDictQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysDict IDs.
func (*SysDictQuery) IDsX ¶
func (sdq *SysDictQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysDictQuery) Limit ¶
func (sdq *SysDictQuery) Limit(limit int) *SysDictQuery
Limit adds a limit step to the query.
func (*SysDictQuery) Offset ¶
func (sdq *SysDictQuery) Offset(offset int) *SysDictQuery
Offset adds an offset step to the query.
func (*SysDictQuery) Only ¶
func (sdq *SysDictQuery) Only(ctx context.Context) (*SysDict, error)
Only returns a single SysDict entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysDict entity is not found. Returns a *NotFoundError when no SysDict entities are found.
func (*SysDictQuery) OnlyID ¶
func (sdq *SysDictQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysDict ID in the query. Returns a *NotSingularError when exactly one SysDict ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysDictQuery) OnlyIDX ¶
func (sdq *SysDictQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysDictQuery) OnlyX ¶
func (sdq *SysDictQuery) OnlyX(ctx context.Context) *SysDict
OnlyX is like Only, but panics if an error occurs.
func (*SysDictQuery) Order ¶
func (sdq *SysDictQuery) Order(o ...OrderFunc) *SysDictQuery
Order adds an order step to the query.
func (*SysDictQuery) Select ¶
func (sdq *SysDictQuery) Select(field string, fields ...string) *SysDictSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysDict.Query(). Select(sysdict.FieldIsDel). Scan(ctx, &v)
func (*SysDictQuery) Unique ¶
func (sdq *SysDictQuery) Unique(unique bool) *SysDictQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysDictQuery) Where ¶
func (sdq *SysDictQuery) Where(ps ...predicate.SysDict) *SysDictQuery
Where adds a new predicate for the SysDictQuery builder.
type SysDictSelect ¶
type SysDictSelect struct { *SysDictQuery // contains filtered or unexported fields }
SysDictSelect is the builder for selecting fields of SysDict entities.
func (*SysDictSelect) Bool ¶
func (sds *SysDictSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) BoolX ¶
func (sds *SysDictSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysDictSelect) Bools ¶
func (sds *SysDictSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) BoolsX ¶
func (sds *SysDictSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysDictSelect) Float64 ¶
func (sds *SysDictSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) Float64X ¶
func (sds *SysDictSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysDictSelect) Float64s ¶
func (sds *SysDictSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) Float64sX ¶
func (sds *SysDictSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysDictSelect) Int ¶
func (sds *SysDictSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) IntX ¶
func (sds *SysDictSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysDictSelect) Ints ¶
func (sds *SysDictSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) IntsX ¶
func (sds *SysDictSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysDictSelect) Scan ¶
func (sds *SysDictSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysDictSelect) ScanX ¶
func (sds *SysDictSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysDictSelect) String ¶
func (sds *SysDictSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysDictSelect) StringX ¶
func (sds *SysDictSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysDictUpdate ¶
type SysDictUpdate struct {
// contains filtered or unexported fields
}
SysDictUpdate is the builder for updating SysDict entities.
func (*SysDictUpdate) AddSort ¶
func (sdu *SysDictUpdate) AddSort(i int32) *SysDictUpdate
AddSort adds i to the "sort" field.
func (*SysDictUpdate) AddStatus ¶
func (sdu *SysDictUpdate) AddStatus(i int16) *SysDictUpdate
AddStatus adds i to the "status" field.
func (*SysDictUpdate) ClearDeletedAt ¶
func (sdu *SysDictUpdate) ClearDeletedAt() *SysDictUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictUpdate) Exec ¶
func (sdu *SysDictUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysDictUpdate) ExecX ¶
func (sdu *SysDictUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysDictUpdate) Mutation ¶
func (sdu *SysDictUpdate) Mutation() *SysDictMutation
Mutation returns the SysDictMutation object of the builder.
func (*SysDictUpdate) Save ¶
func (sdu *SysDictUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysDictUpdate) SaveX ¶
func (sdu *SysDictUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysDictUpdate) SetDeletedAt ¶
func (sdu *SysDictUpdate) SetDeletedAt(t time.Time) *SysDictUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysDictUpdate) SetInput ¶
func (u *SysDictUpdate) SetInput(i UpdateSysDictInput) *SysDictUpdate
SetInput applies the change-set in the UpdateSysDictInput on the update builder.
func (*SysDictUpdate) SetIsDel ¶
func (sdu *SysDictUpdate) SetIsDel(b bool) *SysDictUpdate
SetIsDel sets the "is_del" field.
func (*SysDictUpdate) SetMemo ¶
func (sdu *SysDictUpdate) SetMemo(s string) *SysDictUpdate
SetMemo sets the "memo" field.
func (*SysDictUpdate) SetNameCn ¶
func (sdu *SysDictUpdate) SetNameCn(s string) *SysDictUpdate
SetNameCn sets the "name_cn" field.
func (*SysDictUpdate) SetNameEn ¶
func (sdu *SysDictUpdate) SetNameEn(s string) *SysDictUpdate
SetNameEn sets the "name_en" field.
func (*SysDictUpdate) SetNillableDeletedAt ¶
func (sdu *SysDictUpdate) SetNillableDeletedAt(t *time.Time) *SysDictUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictUpdate) SetNillableIsDel ¶
func (sdu *SysDictUpdate) SetNillableIsDel(b *bool) *SysDictUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictUpdate) SetNillableMemo ¶
func (sdu *SysDictUpdate) SetNillableMemo(s *string) *SysDictUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictUpdate) SetNillableSort ¶
func (sdu *SysDictUpdate) SetNillableSort(i *int32) *SysDictUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictUpdate) SetNillableStatus ¶
func (sdu *SysDictUpdate) SetNillableStatus(i *int16) *SysDictUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysDictUpdate) SetSort ¶
func (sdu *SysDictUpdate) SetSort(i int32) *SysDictUpdate
SetSort sets the "sort" field.
func (*SysDictUpdate) SetStatus ¶
func (sdu *SysDictUpdate) SetStatus(i int16) *SysDictUpdate
SetStatus sets the "status" field.
func (*SysDictUpdate) SetUpdatedAt ¶
func (sdu *SysDictUpdate) SetUpdatedAt(t time.Time) *SysDictUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysDictUpdate) Where ¶
func (sdu *SysDictUpdate) Where(ps ...predicate.SysDict) *SysDictUpdate
Where adds a new predicate for the SysDictUpdate builder.
type SysDictUpdateOne ¶
type SysDictUpdateOne struct {
// contains filtered or unexported fields
}
SysDictUpdateOne is the builder for updating a single SysDict entity.
func (*SysDictUpdateOne) AddSort ¶
func (sduo *SysDictUpdateOne) AddSort(i int32) *SysDictUpdateOne
AddSort adds i to the "sort" field.
func (*SysDictUpdateOne) AddStatus ¶
func (sduo *SysDictUpdateOne) AddStatus(i int16) *SysDictUpdateOne
AddStatus adds i to the "status" field.
func (*SysDictUpdateOne) ClearDeletedAt ¶
func (sduo *SysDictUpdateOne) ClearDeletedAt() *SysDictUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysDictUpdateOne) Exec ¶
func (sduo *SysDictUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysDictUpdateOne) ExecX ¶
func (sduo *SysDictUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysDictUpdateOne) Mutation ¶
func (sduo *SysDictUpdateOne) Mutation() *SysDictMutation
Mutation returns the SysDictMutation object of the builder.
func (*SysDictUpdateOne) Save ¶
func (sduo *SysDictUpdateOne) Save(ctx context.Context) (*SysDict, error)
Save executes the query and returns the updated SysDict entity.
func (*SysDictUpdateOne) SaveX ¶
func (sduo *SysDictUpdateOne) SaveX(ctx context.Context) *SysDict
SaveX is like Save, but panics if an error occurs.
func (*SysDictUpdateOne) Select ¶
func (sduo *SysDictUpdateOne) Select(field string, fields ...string) *SysDictUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysDictUpdateOne) SetDeletedAt ¶
func (sduo *SysDictUpdateOne) SetDeletedAt(t time.Time) *SysDictUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysDictUpdateOne) SetInput ¶
func (u *SysDictUpdateOne) SetInput(i UpdateSysDictInput) *SysDictUpdateOne
SetInput applies the change-set in the UpdateSysDictInput on the update-one builder.
func (*SysDictUpdateOne) SetIsDel ¶
func (sduo *SysDictUpdateOne) SetIsDel(b bool) *SysDictUpdateOne
SetIsDel sets the "is_del" field.
func (*SysDictUpdateOne) SetMemo ¶
func (sduo *SysDictUpdateOne) SetMemo(s string) *SysDictUpdateOne
SetMemo sets the "memo" field.
func (*SysDictUpdateOne) SetNameCn ¶
func (sduo *SysDictUpdateOne) SetNameCn(s string) *SysDictUpdateOne
SetNameCn sets the "name_cn" field.
func (*SysDictUpdateOne) SetNameEn ¶
func (sduo *SysDictUpdateOne) SetNameEn(s string) *SysDictUpdateOne
SetNameEn sets the "name_en" field.
func (*SysDictUpdateOne) SetNillableDeletedAt ¶
func (sduo *SysDictUpdateOne) SetNillableDeletedAt(t *time.Time) *SysDictUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysDictUpdateOne) SetNillableIsDel ¶
func (sduo *SysDictUpdateOne) SetNillableIsDel(b *bool) *SysDictUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysDictUpdateOne) SetNillableMemo ¶
func (sduo *SysDictUpdateOne) SetNillableMemo(s *string) *SysDictUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysDictUpdateOne) SetNillableSort ¶
func (sduo *SysDictUpdateOne) SetNillableSort(i *int32) *SysDictUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysDictUpdateOne) SetNillableStatus ¶
func (sduo *SysDictUpdateOne) SetNillableStatus(i *int16) *SysDictUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysDictUpdateOne) SetSort ¶
func (sduo *SysDictUpdateOne) SetSort(i int32) *SysDictUpdateOne
SetSort sets the "sort" field.
func (*SysDictUpdateOne) SetStatus ¶
func (sduo *SysDictUpdateOne) SetStatus(i int16) *SysDictUpdateOne
SetStatus sets the "status" field.
func (*SysDictUpdateOne) SetUpdatedAt ¶
func (sduo *SysDictUpdateOne) SetUpdatedAt(t time.Time) *SysDictUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysJwtBlock ¶
type SysJwtBlock struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // Jwt holds the value of the "jwt" field. // jwt Jwt string `json:"jwt,omitempty"` // contains filtered or unexported fields }
SysJwtBlock is the model entity for the SysJwtBlock schema.
func (*SysJwtBlock) String ¶
func (sjb *SysJwtBlock) String() string
String implements the fmt.Stringer.
func (*SysJwtBlock) Unwrap ¶
func (sjb *SysJwtBlock) Unwrap() *SysJwtBlock
Unwrap unwraps the SysJwtBlock entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysJwtBlock) Update ¶
func (sjb *SysJwtBlock) Update() *SysJwtBlockUpdateOne
Update returns a builder for updating this SysJwtBlock. Note that you need to call SysJwtBlock.Unwrap() before calling this method if this SysJwtBlock was returned from a transaction, and the transaction was committed or rolled back.
type SysJwtBlockClient ¶
type SysJwtBlockClient struct {
// contains filtered or unexported fields
}
SysJwtBlockClient is a client for the SysJwtBlock schema.
func NewSysJwtBlockClient ¶
func NewSysJwtBlockClient(c config) *SysJwtBlockClient
NewSysJwtBlockClient returns a client for the SysJwtBlock from the given config.
func (*SysJwtBlockClient) Create ¶
func (c *SysJwtBlockClient) Create() *SysJwtBlockCreate
Create returns a create builder for SysJwtBlock.
func (*SysJwtBlockClient) CreateBulk ¶
func (c *SysJwtBlockClient) CreateBulk(builders ...*SysJwtBlockCreate) *SysJwtBlockCreateBulk
CreateBulk returns a builder for creating a bulk of SysJwtBlock entities.
func (*SysJwtBlockClient) Delete ¶
func (c *SysJwtBlockClient) Delete() *SysJwtBlockDelete
Delete returns a delete builder for SysJwtBlock.
func (*SysJwtBlockClient) DeleteOne ¶
func (c *SysJwtBlockClient) DeleteOne(sjb *SysJwtBlock) *SysJwtBlockDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysJwtBlockClient) DeleteOneID ¶
func (c *SysJwtBlockClient) DeleteOneID(id string) *SysJwtBlockDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysJwtBlockClient) Get ¶
func (c *SysJwtBlockClient) Get(ctx context.Context, id string) (*SysJwtBlock, error)
Get returns a SysJwtBlock entity by its id.
func (*SysJwtBlockClient) GetX ¶
func (c *SysJwtBlockClient) GetX(ctx context.Context, id string) *SysJwtBlock
GetX is like Get, but panics if an error occurs.
func (*SysJwtBlockClient) Hooks ¶
func (c *SysJwtBlockClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysJwtBlockClient) Query ¶
func (c *SysJwtBlockClient) Query() *SysJwtBlockQuery
Query returns a query builder for SysJwtBlock.
func (*SysJwtBlockClient) Update ¶
func (c *SysJwtBlockClient) Update() *SysJwtBlockUpdate
Update returns an update builder for SysJwtBlock.
func (*SysJwtBlockClient) UpdateOne ¶
func (c *SysJwtBlockClient) UpdateOne(sjb *SysJwtBlock) *SysJwtBlockUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysJwtBlockClient) UpdateOneID ¶
func (c *SysJwtBlockClient) UpdateOneID(id string) *SysJwtBlockUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysJwtBlockClient) Use ¶
func (c *SysJwtBlockClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysjwtblock.Hooks(f(g(h())))`.
type SysJwtBlockCreate ¶
type SysJwtBlockCreate struct {
// contains filtered or unexported fields
}
SysJwtBlockCreate is the builder for creating a SysJwtBlock entity.
func (*SysJwtBlockCreate) Mutation ¶
func (sjbc *SysJwtBlockCreate) Mutation() *SysJwtBlockMutation
Mutation returns the SysJwtBlockMutation object of the builder.
func (*SysJwtBlockCreate) Save ¶
func (sjbc *SysJwtBlockCreate) Save(ctx context.Context) (*SysJwtBlock, error)
Save creates the SysJwtBlock in the database.
func (*SysJwtBlockCreate) SaveX ¶
func (sjbc *SysJwtBlockCreate) SaveX(ctx context.Context) *SysJwtBlock
SaveX calls Save and panics if Save returns an error.
func (*SysJwtBlockCreate) SetCreatedAt ¶
func (sjbc *SysJwtBlockCreate) SetCreatedAt(t time.Time) *SysJwtBlockCreate
SetCreatedAt sets the "created_at" field.
func (*SysJwtBlockCreate) SetDeletedAt ¶
func (sjbc *SysJwtBlockCreate) SetDeletedAt(t time.Time) *SysJwtBlockCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysJwtBlockCreate) SetID ¶
func (sjbc *SysJwtBlockCreate) SetID(s string) *SysJwtBlockCreate
SetID sets the "id" field.
func (*SysJwtBlockCreate) SetInput ¶
func (c *SysJwtBlockCreate) SetInput(i CreateSysJwtBlockInput) *SysJwtBlockCreate
SetInput applies the change-set in the CreateSysJwtBlockInput on the create builder.
func (*SysJwtBlockCreate) SetIsDel ¶
func (sjbc *SysJwtBlockCreate) SetIsDel(b bool) *SysJwtBlockCreate
SetIsDel sets the "is_del" field.
func (*SysJwtBlockCreate) SetJwt ¶
func (sjbc *SysJwtBlockCreate) SetJwt(s string) *SysJwtBlockCreate
SetJwt sets the "jwt" field.
func (*SysJwtBlockCreate) SetMemo ¶
func (sjbc *SysJwtBlockCreate) SetMemo(s string) *SysJwtBlockCreate
SetMemo sets the "memo" field.
func (*SysJwtBlockCreate) SetNillableCreatedAt ¶
func (sjbc *SysJwtBlockCreate) SetNillableCreatedAt(t *time.Time) *SysJwtBlockCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableDeletedAt ¶
func (sjbc *SysJwtBlockCreate) SetNillableDeletedAt(t *time.Time) *SysJwtBlockCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableID ¶
func (sjbc *SysJwtBlockCreate) SetNillableID(s *string) *SysJwtBlockCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableIsDel ¶
func (sjbc *SysJwtBlockCreate) SetNillableIsDel(b *bool) *SysJwtBlockCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableMemo ¶
func (sjbc *SysJwtBlockCreate) SetNillableMemo(s *string) *SysJwtBlockCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableStatus ¶
func (sjbc *SysJwtBlockCreate) SetNillableStatus(i *int16) *SysJwtBlockCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysJwtBlockCreate) SetNillableUpdatedAt ¶
func (sjbc *SysJwtBlockCreate) SetNillableUpdatedAt(t *time.Time) *SysJwtBlockCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysJwtBlockCreate) SetStatus ¶
func (sjbc *SysJwtBlockCreate) SetStatus(i int16) *SysJwtBlockCreate
SetStatus sets the "status" field.
func (*SysJwtBlockCreate) SetUpdatedAt ¶
func (sjbc *SysJwtBlockCreate) SetUpdatedAt(t time.Time) *SysJwtBlockCreate
SetUpdatedAt sets the "updated_at" field.
type SysJwtBlockCreateBulk ¶
type SysJwtBlockCreateBulk struct {
// contains filtered or unexported fields
}
SysJwtBlockCreateBulk is the builder for creating many SysJwtBlock entities in bulk.
func (*SysJwtBlockCreateBulk) Save ¶
func (sjbcb *SysJwtBlockCreateBulk) Save(ctx context.Context) ([]*SysJwtBlock, error)
Save creates the SysJwtBlock entities in the database.
func (*SysJwtBlockCreateBulk) SaveX ¶
func (sjbcb *SysJwtBlockCreateBulk) SaveX(ctx context.Context) []*SysJwtBlock
SaveX is like Save, but panics if an error occurs.
type SysJwtBlockDelete ¶
type SysJwtBlockDelete struct {
// contains filtered or unexported fields
}
SysJwtBlockDelete is the builder for deleting a SysJwtBlock entity.
func (*SysJwtBlockDelete) Exec ¶
func (sjbd *SysJwtBlockDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysJwtBlockDelete) ExecX ¶
func (sjbd *SysJwtBlockDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysJwtBlockDelete) Where ¶
func (sjbd *SysJwtBlockDelete) Where(ps ...predicate.SysJwtBlock) *SysJwtBlockDelete
Where adds a new predicate to the SysJwtBlockDelete builder.
type SysJwtBlockDeleteOne ¶
type SysJwtBlockDeleteOne struct {
// contains filtered or unexported fields
}
SysJwtBlockDeleteOne is the builder for deleting a single SysJwtBlock entity.
func (*SysJwtBlockDeleteOne) Exec ¶
func (sjbdo *SysJwtBlockDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysJwtBlockDeleteOne) ExecX ¶
func (sjbdo *SysJwtBlockDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysJwtBlockGroupBy ¶
type SysJwtBlockGroupBy struct {
// contains filtered or unexported fields
}
SysJwtBlockGroupBy is the group-by builder for SysJwtBlock entities.
func (*SysJwtBlockGroupBy) Aggregate ¶
func (sjbgb *SysJwtBlockGroupBy) Aggregate(fns ...AggregateFunc) *SysJwtBlockGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysJwtBlockGroupBy) Bool ¶
func (sjbgb *SysJwtBlockGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) BoolX ¶
func (sjbgb *SysJwtBlockGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Bools ¶
func (sjbgb *SysJwtBlockGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) BoolsX ¶
func (sjbgb *SysJwtBlockGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Float64 ¶
func (sjbgb *SysJwtBlockGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) Float64X ¶
func (sjbgb *SysJwtBlockGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Float64s ¶
func (sjbgb *SysJwtBlockGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) Float64sX ¶
func (sjbgb *SysJwtBlockGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Int ¶
func (sjbgb *SysJwtBlockGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) IntX ¶
func (sjbgb *SysJwtBlockGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Ints ¶
func (sjbgb *SysJwtBlockGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) IntsX ¶
func (sjbgb *SysJwtBlockGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysJwtBlockGroupBy) Scan ¶
func (sjbgb *SysJwtBlockGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysJwtBlockGroupBy) ScanX ¶
func (sjbgb *SysJwtBlockGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysJwtBlockGroupBy) String ¶
func (sjbgb *SysJwtBlockGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysJwtBlockGroupBy) StringX ¶
func (sjbgb *SysJwtBlockGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysJwtBlockMutation ¶
type SysJwtBlockMutation struct {
// contains filtered or unexported fields
}
SysJwtBlockMutation represents an operation that mutates the SysJwtBlock nodes in the graph.
func (*SysJwtBlockMutation) AddField ¶
func (m *SysJwtBlockMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysJwtBlockMutation) AddStatus ¶
func (m *SysJwtBlockMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysJwtBlockMutation) AddedEdges ¶
func (m *SysJwtBlockMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysJwtBlockMutation) AddedField ¶
func (m *SysJwtBlockMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysJwtBlockMutation) AddedFields ¶
func (m *SysJwtBlockMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysJwtBlockMutation) AddedIDs ¶
func (m *SysJwtBlockMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysJwtBlockMutation) AddedStatus ¶
func (m *SysJwtBlockMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysJwtBlockMutation) ClearDeletedAt ¶
func (m *SysJwtBlockMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysJwtBlockMutation) ClearEdge ¶
func (m *SysJwtBlockMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysJwtBlockMutation) ClearField ¶
func (m *SysJwtBlockMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysJwtBlockMutation) ClearedEdges ¶
func (m *SysJwtBlockMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysJwtBlockMutation) ClearedFields ¶
func (m *SysJwtBlockMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysJwtBlockMutation) Client ¶
func (m SysJwtBlockMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysJwtBlockMutation) CreatedAt ¶
func (m *SysJwtBlockMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysJwtBlockMutation) DeletedAt ¶
func (m *SysJwtBlockMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysJwtBlockMutation) DeletedAtCleared ¶
func (m *SysJwtBlockMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysJwtBlockMutation) EdgeCleared ¶
func (m *SysJwtBlockMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysJwtBlockMutation) Field ¶
func (m *SysJwtBlockMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysJwtBlockMutation) FieldCleared ¶
func (m *SysJwtBlockMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysJwtBlockMutation) Fields ¶
func (m *SysJwtBlockMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysJwtBlockMutation) ID ¶
func (m *SysJwtBlockMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysJwtBlockMutation) IsDel ¶
func (m *SysJwtBlockMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysJwtBlockMutation) Jwt ¶
func (m *SysJwtBlockMutation) Jwt() (r string, exists bool)
Jwt returns the value of the "jwt" field in the mutation.
func (*SysJwtBlockMutation) Memo ¶
func (m *SysJwtBlockMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysJwtBlockMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysJwtBlockMutation) OldIsDel ¶
func (m *SysJwtBlockMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldJwt ¶
func (m *SysJwtBlockMutation) OldJwt(ctx context.Context) (v string, err error)
OldJwt returns the old "jwt" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldMemo ¶
func (m *SysJwtBlockMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldStatus ¶
func (m *SysJwtBlockMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysJwtBlock entity. If the SysJwtBlock object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysJwtBlockMutation) Op ¶
func (m *SysJwtBlockMutation) Op() Op
Op returns the operation name.
func (*SysJwtBlockMutation) RemovedEdges ¶
func (m *SysJwtBlockMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysJwtBlockMutation) RemovedIDs ¶
func (m *SysJwtBlockMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysJwtBlockMutation) ResetCreatedAt ¶
func (m *SysJwtBlockMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysJwtBlockMutation) ResetDeletedAt ¶
func (m *SysJwtBlockMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysJwtBlockMutation) ResetEdge ¶
func (m *SysJwtBlockMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysJwtBlockMutation) ResetField ¶
func (m *SysJwtBlockMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysJwtBlockMutation) ResetIsDel ¶
func (m *SysJwtBlockMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysJwtBlockMutation) ResetJwt ¶
func (m *SysJwtBlockMutation) ResetJwt()
ResetJwt resets all changes to the "jwt" field.
func (*SysJwtBlockMutation) ResetMemo ¶
func (m *SysJwtBlockMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysJwtBlockMutation) ResetStatus ¶
func (m *SysJwtBlockMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysJwtBlockMutation) ResetUpdatedAt ¶
func (m *SysJwtBlockMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysJwtBlockMutation) SetCreatedAt ¶
func (m *SysJwtBlockMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysJwtBlockMutation) SetDeletedAt ¶
func (m *SysJwtBlockMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysJwtBlockMutation) SetField ¶
func (m *SysJwtBlockMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysJwtBlockMutation) SetID ¶
func (m *SysJwtBlockMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysJwtBlock entities.
func (*SysJwtBlockMutation) SetIsDel ¶
func (m *SysJwtBlockMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysJwtBlockMutation) SetJwt ¶
func (m *SysJwtBlockMutation) SetJwt(s string)
SetJwt sets the "jwt" field.
func (*SysJwtBlockMutation) SetMemo ¶
func (m *SysJwtBlockMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysJwtBlockMutation) SetStatus ¶
func (m *SysJwtBlockMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysJwtBlockMutation) SetUpdatedAt ¶
func (m *SysJwtBlockMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysJwtBlockMutation) Status ¶
func (m *SysJwtBlockMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysJwtBlockMutation) Tx ¶
func (m SysJwtBlockMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysJwtBlockMutation) Type ¶
func (m *SysJwtBlockMutation) Type() string
Type returns the node type of this mutation (SysJwtBlock).
type SysJwtBlockQuery ¶
type SysJwtBlockQuery struct {
// contains filtered or unexported fields
}
SysJwtBlockQuery is the builder for querying SysJwtBlock entities.
func (*SysJwtBlockQuery) All ¶
func (sjbq *SysJwtBlockQuery) All(ctx context.Context) ([]*SysJwtBlock, error)
All executes the query and returns a list of SysJwtBlocks.
func (*SysJwtBlockQuery) AllX ¶
func (sjbq *SysJwtBlockQuery) AllX(ctx context.Context) []*SysJwtBlock
AllX is like All, but panics if an error occurs.
func (*SysJwtBlockQuery) Clone ¶
func (sjbq *SysJwtBlockQuery) Clone() *SysJwtBlockQuery
Clone returns a duplicate of the SysJwtBlockQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysJwtBlockQuery) Count ¶
func (sjbq *SysJwtBlockQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysJwtBlockQuery) CountX ¶
func (sjbq *SysJwtBlockQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysJwtBlockQuery) Exist ¶
func (sjbq *SysJwtBlockQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysJwtBlockQuery) ExistX ¶
func (sjbq *SysJwtBlockQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysJwtBlockQuery) First ¶
func (sjbq *SysJwtBlockQuery) First(ctx context.Context) (*SysJwtBlock, error)
First returns the first SysJwtBlock entity from the query. Returns a *NotFoundError when no SysJwtBlock was found.
func (*SysJwtBlockQuery) FirstID ¶
func (sjbq *SysJwtBlockQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysJwtBlock ID from the query. Returns a *NotFoundError when no SysJwtBlock ID was found.
func (*SysJwtBlockQuery) FirstIDX ¶
func (sjbq *SysJwtBlockQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysJwtBlockQuery) FirstX ¶
func (sjbq *SysJwtBlockQuery) FirstX(ctx context.Context) *SysJwtBlock
FirstX is like First, but panics if an error occurs.
func (*SysJwtBlockQuery) GroupBy ¶
func (sjbq *SysJwtBlockQuery) GroupBy(field string, fields ...string) *SysJwtBlockGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysJwtBlock.Query(). GroupBy(sysjwtblock.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysJwtBlockQuery) IDs ¶
func (sjbq *SysJwtBlockQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysJwtBlock IDs.
func (*SysJwtBlockQuery) IDsX ¶
func (sjbq *SysJwtBlockQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysJwtBlockQuery) Limit ¶
func (sjbq *SysJwtBlockQuery) Limit(limit int) *SysJwtBlockQuery
Limit adds a limit step to the query.
func (*SysJwtBlockQuery) Offset ¶
func (sjbq *SysJwtBlockQuery) Offset(offset int) *SysJwtBlockQuery
Offset adds an offset step to the query.
func (*SysJwtBlockQuery) Only ¶
func (sjbq *SysJwtBlockQuery) Only(ctx context.Context) (*SysJwtBlock, error)
Only returns a single SysJwtBlock entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysJwtBlock entity is not found. Returns a *NotFoundError when no SysJwtBlock entities are found.
func (*SysJwtBlockQuery) OnlyID ¶
func (sjbq *SysJwtBlockQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysJwtBlock ID in the query. Returns a *NotSingularError when exactly one SysJwtBlock ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysJwtBlockQuery) OnlyIDX ¶
func (sjbq *SysJwtBlockQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysJwtBlockQuery) OnlyX ¶
func (sjbq *SysJwtBlockQuery) OnlyX(ctx context.Context) *SysJwtBlock
OnlyX is like Only, but panics if an error occurs.
func (*SysJwtBlockQuery) Order ¶
func (sjbq *SysJwtBlockQuery) Order(o ...OrderFunc) *SysJwtBlockQuery
Order adds an order step to the query.
func (*SysJwtBlockQuery) Select ¶
func (sjbq *SysJwtBlockQuery) Select(field string, fields ...string) *SysJwtBlockSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysJwtBlock.Query(). Select(sysjwtblock.FieldIsDel). Scan(ctx, &v)
func (*SysJwtBlockQuery) Unique ¶
func (sjbq *SysJwtBlockQuery) Unique(unique bool) *SysJwtBlockQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysJwtBlockQuery) Where ¶
func (sjbq *SysJwtBlockQuery) Where(ps ...predicate.SysJwtBlock) *SysJwtBlockQuery
Where adds a new predicate for the SysJwtBlockQuery builder.
type SysJwtBlockSelect ¶
type SysJwtBlockSelect struct { *SysJwtBlockQuery // contains filtered or unexported fields }
SysJwtBlockSelect is the builder for selecting fields of SysJwtBlock entities.
func (*SysJwtBlockSelect) Bool ¶
func (sjbs *SysJwtBlockSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) BoolX ¶
func (sjbs *SysJwtBlockSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysJwtBlockSelect) Bools ¶
func (sjbs *SysJwtBlockSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) BoolsX ¶
func (sjbs *SysJwtBlockSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysJwtBlockSelect) Float64 ¶
func (sjbs *SysJwtBlockSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) Float64X ¶
func (sjbs *SysJwtBlockSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysJwtBlockSelect) Float64s ¶
func (sjbs *SysJwtBlockSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) Float64sX ¶
func (sjbs *SysJwtBlockSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysJwtBlockSelect) Int ¶
func (sjbs *SysJwtBlockSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) IntX ¶
func (sjbs *SysJwtBlockSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysJwtBlockSelect) Ints ¶
func (sjbs *SysJwtBlockSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) IntsX ¶
func (sjbs *SysJwtBlockSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysJwtBlockSelect) Scan ¶
func (sjbs *SysJwtBlockSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysJwtBlockSelect) ScanX ¶
func (sjbs *SysJwtBlockSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysJwtBlockSelect) String ¶
func (sjbs *SysJwtBlockSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysJwtBlockSelect) StringX ¶
func (sjbs *SysJwtBlockSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysJwtBlockUpdate ¶
type SysJwtBlockUpdate struct {
// contains filtered or unexported fields
}
SysJwtBlockUpdate is the builder for updating SysJwtBlock entities.
func (*SysJwtBlockUpdate) AddStatus ¶
func (sjbu *SysJwtBlockUpdate) AddStatus(i int16) *SysJwtBlockUpdate
AddStatus adds i to the "status" field.
func (*SysJwtBlockUpdate) ClearDeletedAt ¶
func (sjbu *SysJwtBlockUpdate) ClearDeletedAt() *SysJwtBlockUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysJwtBlockUpdate) Exec ¶
func (sjbu *SysJwtBlockUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysJwtBlockUpdate) ExecX ¶
func (sjbu *SysJwtBlockUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysJwtBlockUpdate) Mutation ¶
func (sjbu *SysJwtBlockUpdate) Mutation() *SysJwtBlockMutation
Mutation returns the SysJwtBlockMutation object of the builder.
func (*SysJwtBlockUpdate) Save ¶
func (sjbu *SysJwtBlockUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysJwtBlockUpdate) SaveX ¶
func (sjbu *SysJwtBlockUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysJwtBlockUpdate) SetDeletedAt ¶
func (sjbu *SysJwtBlockUpdate) SetDeletedAt(t time.Time) *SysJwtBlockUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysJwtBlockUpdate) SetInput ¶
func (u *SysJwtBlockUpdate) SetInput(i UpdateSysJwtBlockInput) *SysJwtBlockUpdate
SetInput applies the change-set in the UpdateSysJwtBlockInput on the update builder.
func (*SysJwtBlockUpdate) SetIsDel ¶
func (sjbu *SysJwtBlockUpdate) SetIsDel(b bool) *SysJwtBlockUpdate
SetIsDel sets the "is_del" field.
func (*SysJwtBlockUpdate) SetJwt ¶
func (sjbu *SysJwtBlockUpdate) SetJwt(s string) *SysJwtBlockUpdate
SetJwt sets the "jwt" field.
func (*SysJwtBlockUpdate) SetMemo ¶
func (sjbu *SysJwtBlockUpdate) SetMemo(s string) *SysJwtBlockUpdate
SetMemo sets the "memo" field.
func (*SysJwtBlockUpdate) SetNillableDeletedAt ¶
func (sjbu *SysJwtBlockUpdate) SetNillableDeletedAt(t *time.Time) *SysJwtBlockUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysJwtBlockUpdate) SetNillableIsDel ¶
func (sjbu *SysJwtBlockUpdate) SetNillableIsDel(b *bool) *SysJwtBlockUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysJwtBlockUpdate) SetNillableMemo ¶
func (sjbu *SysJwtBlockUpdate) SetNillableMemo(s *string) *SysJwtBlockUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysJwtBlockUpdate) SetNillableStatus ¶
func (sjbu *SysJwtBlockUpdate) SetNillableStatus(i *int16) *SysJwtBlockUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysJwtBlockUpdate) SetStatus ¶
func (sjbu *SysJwtBlockUpdate) SetStatus(i int16) *SysJwtBlockUpdate
SetStatus sets the "status" field.
func (*SysJwtBlockUpdate) SetUpdatedAt ¶
func (sjbu *SysJwtBlockUpdate) SetUpdatedAt(t time.Time) *SysJwtBlockUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysJwtBlockUpdate) Where ¶
func (sjbu *SysJwtBlockUpdate) Where(ps ...predicate.SysJwtBlock) *SysJwtBlockUpdate
Where adds a new predicate for the SysJwtBlockUpdate builder.
type SysJwtBlockUpdateOne ¶
type SysJwtBlockUpdateOne struct {
// contains filtered or unexported fields
}
SysJwtBlockUpdateOne is the builder for updating a single SysJwtBlock entity.
func (*SysJwtBlockUpdateOne) AddStatus ¶
func (sjbuo *SysJwtBlockUpdateOne) AddStatus(i int16) *SysJwtBlockUpdateOne
AddStatus adds i to the "status" field.
func (*SysJwtBlockUpdateOne) ClearDeletedAt ¶
func (sjbuo *SysJwtBlockUpdateOne) ClearDeletedAt() *SysJwtBlockUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysJwtBlockUpdateOne) Exec ¶
func (sjbuo *SysJwtBlockUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysJwtBlockUpdateOne) ExecX ¶
func (sjbuo *SysJwtBlockUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysJwtBlockUpdateOne) Mutation ¶
func (sjbuo *SysJwtBlockUpdateOne) Mutation() *SysJwtBlockMutation
Mutation returns the SysJwtBlockMutation object of the builder.
func (*SysJwtBlockUpdateOne) Save ¶
func (sjbuo *SysJwtBlockUpdateOne) Save(ctx context.Context) (*SysJwtBlock, error)
Save executes the query and returns the updated SysJwtBlock entity.
func (*SysJwtBlockUpdateOne) SaveX ¶
func (sjbuo *SysJwtBlockUpdateOne) SaveX(ctx context.Context) *SysJwtBlock
SaveX is like Save, but panics if an error occurs.
func (*SysJwtBlockUpdateOne) Select ¶
func (sjbuo *SysJwtBlockUpdateOne) Select(field string, fields ...string) *SysJwtBlockUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysJwtBlockUpdateOne) SetDeletedAt ¶
func (sjbuo *SysJwtBlockUpdateOne) SetDeletedAt(t time.Time) *SysJwtBlockUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysJwtBlockUpdateOne) SetInput ¶
func (u *SysJwtBlockUpdateOne) SetInput(i UpdateSysJwtBlockInput) *SysJwtBlockUpdateOne
SetInput applies the change-set in the UpdateSysJwtBlockInput on the update-one builder.
func (*SysJwtBlockUpdateOne) SetIsDel ¶
func (sjbuo *SysJwtBlockUpdateOne) SetIsDel(b bool) *SysJwtBlockUpdateOne
SetIsDel sets the "is_del" field.
func (*SysJwtBlockUpdateOne) SetJwt ¶
func (sjbuo *SysJwtBlockUpdateOne) SetJwt(s string) *SysJwtBlockUpdateOne
SetJwt sets the "jwt" field.
func (*SysJwtBlockUpdateOne) SetMemo ¶
func (sjbuo *SysJwtBlockUpdateOne) SetMemo(s string) *SysJwtBlockUpdateOne
SetMemo sets the "memo" field.
func (*SysJwtBlockUpdateOne) SetNillableDeletedAt ¶
func (sjbuo *SysJwtBlockUpdateOne) SetNillableDeletedAt(t *time.Time) *SysJwtBlockUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysJwtBlockUpdateOne) SetNillableIsDel ¶
func (sjbuo *SysJwtBlockUpdateOne) SetNillableIsDel(b *bool) *SysJwtBlockUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysJwtBlockUpdateOne) SetNillableMemo ¶
func (sjbuo *SysJwtBlockUpdateOne) SetNillableMemo(s *string) *SysJwtBlockUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysJwtBlockUpdateOne) SetNillableStatus ¶
func (sjbuo *SysJwtBlockUpdateOne) SetNillableStatus(i *int16) *SysJwtBlockUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysJwtBlockUpdateOne) SetStatus ¶
func (sjbuo *SysJwtBlockUpdateOne) SetStatus(i int16) *SysJwtBlockUpdateOne
SetStatus sets the "status" field.
func (*SysJwtBlockUpdateOne) SetUpdatedAt ¶
func (sjbuo *SysJwtBlockUpdateOne) SetUpdatedAt(t time.Time) *SysJwtBlockUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysJwtBlocks ¶
type SysJwtBlocks []*SysJwtBlock
SysJwtBlocks is a parsable slice of SysJwtBlock.
type SysLogging ¶
type SysLogging struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // Level holds the value of the "level" field. // 日志级别 Level string `json:"level,omitempty"` // TraceID holds the value of the "trace_id" field. // 跟踪ID TraceID string `json:"trace_id,omitempty"` // UserID holds the value of the "user_id" field. // 用户ID UserID string `json:"user_id,omitempty"` // Tag holds the value of the "tag" field. // Tag Tag string `json:"tag,omitempty"` // Version holds the value of the "version" field. // 版本号 Version string `json:"version,omitempty"` // Message holds the value of the "message" field. // 消息 Message string `json:"message,omitempty"` // Data holds the value of the "data" field. // 日志数据(json string) Data *string `json:"data,omitempty"` // ErrorStack holds the value of the "error_stack" field. // 日志数据(json string) ErrorStack string `json:"error_stack,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // contains filtered or unexported fields }
SysLogging is the model entity for the SysLogging schema.
func (*SysLogging) String ¶
func (sl *SysLogging) String() string
String implements the fmt.Stringer.
func (*SysLogging) Unwrap ¶
func (sl *SysLogging) Unwrap() *SysLogging
Unwrap unwraps the SysLogging entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysLogging) Update ¶
func (sl *SysLogging) Update() *SysLoggingUpdateOne
Update returns a builder for updating this SysLogging. Note that you need to call SysLogging.Unwrap() before calling this method if this SysLogging was returned from a transaction, and the transaction was committed or rolled back.
type SysLoggingClient ¶
type SysLoggingClient struct {
// contains filtered or unexported fields
}
SysLoggingClient is a client for the SysLogging schema.
func NewSysLoggingClient ¶
func NewSysLoggingClient(c config) *SysLoggingClient
NewSysLoggingClient returns a client for the SysLogging from the given config.
func (*SysLoggingClient) Create ¶
func (c *SysLoggingClient) Create() *SysLoggingCreate
Create returns a create builder for SysLogging.
func (*SysLoggingClient) CreateBulk ¶
func (c *SysLoggingClient) CreateBulk(builders ...*SysLoggingCreate) *SysLoggingCreateBulk
CreateBulk returns a builder for creating a bulk of SysLogging entities.
func (*SysLoggingClient) Delete ¶
func (c *SysLoggingClient) Delete() *SysLoggingDelete
Delete returns a delete builder for SysLogging.
func (*SysLoggingClient) DeleteOne ¶
func (c *SysLoggingClient) DeleteOne(sl *SysLogging) *SysLoggingDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysLoggingClient) DeleteOneID ¶
func (c *SysLoggingClient) DeleteOneID(id string) *SysLoggingDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysLoggingClient) Get ¶
func (c *SysLoggingClient) Get(ctx context.Context, id string) (*SysLogging, error)
Get returns a SysLogging entity by its id.
func (*SysLoggingClient) GetX ¶
func (c *SysLoggingClient) GetX(ctx context.Context, id string) *SysLogging
GetX is like Get, but panics if an error occurs.
func (*SysLoggingClient) Hooks ¶
func (c *SysLoggingClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysLoggingClient) Query ¶
func (c *SysLoggingClient) Query() *SysLoggingQuery
Query returns a query builder for SysLogging.
func (*SysLoggingClient) Update ¶
func (c *SysLoggingClient) Update() *SysLoggingUpdate
Update returns an update builder for SysLogging.
func (*SysLoggingClient) UpdateOne ¶
func (c *SysLoggingClient) UpdateOne(sl *SysLogging) *SysLoggingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysLoggingClient) UpdateOneID ¶
func (c *SysLoggingClient) UpdateOneID(id string) *SysLoggingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysLoggingClient) Use ¶
func (c *SysLoggingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `syslogging.Hooks(f(g(h())))`.
type SysLoggingCreate ¶
type SysLoggingCreate struct {
// contains filtered or unexported fields
}
SysLoggingCreate is the builder for creating a SysLogging entity.
func (*SysLoggingCreate) Mutation ¶
func (slc *SysLoggingCreate) Mutation() *SysLoggingMutation
Mutation returns the SysLoggingMutation object of the builder.
func (*SysLoggingCreate) Save ¶
func (slc *SysLoggingCreate) Save(ctx context.Context) (*SysLogging, error)
Save creates the SysLogging in the database.
func (*SysLoggingCreate) SaveX ¶
func (slc *SysLoggingCreate) SaveX(ctx context.Context) *SysLogging
SaveX calls Save and panics if Save returns an error.
func (*SysLoggingCreate) SetCreatedAt ¶
func (slc *SysLoggingCreate) SetCreatedAt(t time.Time) *SysLoggingCreate
SetCreatedAt sets the "created_at" field.
func (*SysLoggingCreate) SetData ¶
func (slc *SysLoggingCreate) SetData(s string) *SysLoggingCreate
SetData sets the "data" field.
func (*SysLoggingCreate) SetErrorStack ¶
func (slc *SysLoggingCreate) SetErrorStack(s string) *SysLoggingCreate
SetErrorStack sets the "error_stack" field.
func (*SysLoggingCreate) SetID ¶
func (slc *SysLoggingCreate) SetID(s string) *SysLoggingCreate
SetID sets the "id" field.
func (*SysLoggingCreate) SetInput ¶
func (c *SysLoggingCreate) SetInput(i CreateSysLoggingInput) *SysLoggingCreate
SetInput applies the change-set in the CreateSysLoggingInput on the create builder.
func (*SysLoggingCreate) SetIsDel ¶
func (slc *SysLoggingCreate) SetIsDel(b bool) *SysLoggingCreate
SetIsDel sets the "is_del" field.
func (*SysLoggingCreate) SetLevel ¶
func (slc *SysLoggingCreate) SetLevel(s string) *SysLoggingCreate
SetLevel sets the "level" field.
func (*SysLoggingCreate) SetMemo ¶
func (slc *SysLoggingCreate) SetMemo(s string) *SysLoggingCreate
SetMemo sets the "memo" field.
func (*SysLoggingCreate) SetMessage ¶
func (slc *SysLoggingCreate) SetMessage(s string) *SysLoggingCreate
SetMessage sets the "message" field.
func (*SysLoggingCreate) SetNillableCreatedAt ¶
func (slc *SysLoggingCreate) SetNillableCreatedAt(t *time.Time) *SysLoggingCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysLoggingCreate) SetNillableData ¶
func (slc *SysLoggingCreate) SetNillableData(s *string) *SysLoggingCreate
SetNillableData sets the "data" field if the given value is not nil.
func (*SysLoggingCreate) SetNillableID ¶
func (slc *SysLoggingCreate) SetNillableID(s *string) *SysLoggingCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysLoggingCreate) SetNillableIsDel ¶
func (slc *SysLoggingCreate) SetNillableIsDel(b *bool) *SysLoggingCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysLoggingCreate) SetNillableMemo ¶
func (slc *SysLoggingCreate) SetNillableMemo(s *string) *SysLoggingCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysLoggingCreate) SetTag ¶
func (slc *SysLoggingCreate) SetTag(s string) *SysLoggingCreate
SetTag sets the "tag" field.
func (*SysLoggingCreate) SetTraceID ¶
func (slc *SysLoggingCreate) SetTraceID(s string) *SysLoggingCreate
SetTraceID sets the "trace_id" field.
func (*SysLoggingCreate) SetUserID ¶
func (slc *SysLoggingCreate) SetUserID(s string) *SysLoggingCreate
SetUserID sets the "user_id" field.
func (*SysLoggingCreate) SetVersion ¶
func (slc *SysLoggingCreate) SetVersion(s string) *SysLoggingCreate
SetVersion sets the "version" field.
type SysLoggingCreateBulk ¶
type SysLoggingCreateBulk struct {
// contains filtered or unexported fields
}
SysLoggingCreateBulk is the builder for creating many SysLogging entities in bulk.
func (*SysLoggingCreateBulk) Save ¶
func (slcb *SysLoggingCreateBulk) Save(ctx context.Context) ([]*SysLogging, error)
Save creates the SysLogging entities in the database.
func (*SysLoggingCreateBulk) SaveX ¶
func (slcb *SysLoggingCreateBulk) SaveX(ctx context.Context) []*SysLogging
SaveX is like Save, but panics if an error occurs.
type SysLoggingDelete ¶
type SysLoggingDelete struct {
// contains filtered or unexported fields
}
SysLoggingDelete is the builder for deleting a SysLogging entity.
func (*SysLoggingDelete) Exec ¶
func (sld *SysLoggingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysLoggingDelete) ExecX ¶
func (sld *SysLoggingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysLoggingDelete) Where ¶
func (sld *SysLoggingDelete) Where(ps ...predicate.SysLogging) *SysLoggingDelete
Where adds a new predicate to the SysLoggingDelete builder.
type SysLoggingDeleteOne ¶
type SysLoggingDeleteOne struct {
// contains filtered or unexported fields
}
SysLoggingDeleteOne is the builder for deleting a single SysLogging entity.
func (*SysLoggingDeleteOne) Exec ¶
func (sldo *SysLoggingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysLoggingDeleteOne) ExecX ¶
func (sldo *SysLoggingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysLoggingGroupBy ¶
type SysLoggingGroupBy struct {
// contains filtered or unexported fields
}
SysLoggingGroupBy is the group-by builder for SysLogging entities.
func (*SysLoggingGroupBy) Aggregate ¶
func (slgb *SysLoggingGroupBy) Aggregate(fns ...AggregateFunc) *SysLoggingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysLoggingGroupBy) Bool ¶
func (slgb *SysLoggingGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) BoolX ¶
func (slgb *SysLoggingGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysLoggingGroupBy) Bools ¶
func (slgb *SysLoggingGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) BoolsX ¶
func (slgb *SysLoggingGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysLoggingGroupBy) Float64 ¶
func (slgb *SysLoggingGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) Float64X ¶
func (slgb *SysLoggingGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysLoggingGroupBy) Float64s ¶
func (slgb *SysLoggingGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) Float64sX ¶
func (slgb *SysLoggingGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysLoggingGroupBy) Int ¶
func (slgb *SysLoggingGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) IntX ¶
func (slgb *SysLoggingGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysLoggingGroupBy) Ints ¶
func (slgb *SysLoggingGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) IntsX ¶
func (slgb *SysLoggingGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysLoggingGroupBy) Scan ¶
func (slgb *SysLoggingGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysLoggingGroupBy) ScanX ¶
func (slgb *SysLoggingGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysLoggingGroupBy) String ¶
func (slgb *SysLoggingGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysLoggingGroupBy) StringX ¶
func (slgb *SysLoggingGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysLoggingMutation ¶
type SysLoggingMutation struct {
// contains filtered or unexported fields
}
SysLoggingMutation represents an operation that mutates the SysLogging nodes in the graph.
func (*SysLoggingMutation) AddField ¶
func (m *SysLoggingMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysLoggingMutation) AddedEdges ¶
func (m *SysLoggingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysLoggingMutation) AddedField ¶
func (m *SysLoggingMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysLoggingMutation) AddedFields ¶
func (m *SysLoggingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysLoggingMutation) AddedIDs ¶
func (m *SysLoggingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysLoggingMutation) ClearData ¶
func (m *SysLoggingMutation) ClearData()
ClearData clears the value of the "data" field.
func (*SysLoggingMutation) ClearEdge ¶
func (m *SysLoggingMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysLoggingMutation) ClearField ¶
func (m *SysLoggingMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysLoggingMutation) ClearedEdges ¶
func (m *SysLoggingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysLoggingMutation) ClearedFields ¶
func (m *SysLoggingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysLoggingMutation) Client ¶
func (m SysLoggingMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysLoggingMutation) CreatedAt ¶
func (m *SysLoggingMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysLoggingMutation) Data ¶
func (m *SysLoggingMutation) Data() (r string, exists bool)
Data returns the value of the "data" field in the mutation.
func (*SysLoggingMutation) DataCleared ¶
func (m *SysLoggingMutation) DataCleared() bool
DataCleared returns if the "data" field was cleared in this mutation.
func (*SysLoggingMutation) EdgeCleared ¶
func (m *SysLoggingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysLoggingMutation) ErrorStack ¶
func (m *SysLoggingMutation) ErrorStack() (r string, exists bool)
ErrorStack returns the value of the "error_stack" field in the mutation.
func (*SysLoggingMutation) Field ¶
func (m *SysLoggingMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysLoggingMutation) FieldCleared ¶
func (m *SysLoggingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysLoggingMutation) Fields ¶
func (m *SysLoggingMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysLoggingMutation) ID ¶
func (m *SysLoggingMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysLoggingMutation) IsDel ¶
func (m *SysLoggingMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysLoggingMutation) Level ¶
func (m *SysLoggingMutation) Level() (r string, exists bool)
Level returns the value of the "level" field in the mutation.
func (*SysLoggingMutation) Memo ¶
func (m *SysLoggingMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysLoggingMutation) Message ¶
func (m *SysLoggingMutation) Message() (r string, exists bool)
Message returns the value of the "message" field in the mutation.
func (*SysLoggingMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldData ¶
func (m *SysLoggingMutation) OldData(ctx context.Context) (v *string, err error)
OldData returns the old "data" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldErrorStack ¶
func (m *SysLoggingMutation) OldErrorStack(ctx context.Context) (v string, err error)
OldErrorStack returns the old "error_stack" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysLoggingMutation) OldIsDel ¶
func (m *SysLoggingMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldLevel ¶
func (m *SysLoggingMutation) OldLevel(ctx context.Context) (v string, err error)
OldLevel returns the old "level" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldMemo ¶
func (m *SysLoggingMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldMessage ¶
func (m *SysLoggingMutation) OldMessage(ctx context.Context) (v string, err error)
OldMessage returns the old "message" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldTag ¶
func (m *SysLoggingMutation) OldTag(ctx context.Context) (v string, err error)
OldTag returns the old "tag" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldTraceID ¶
func (m *SysLoggingMutation) OldTraceID(ctx context.Context) (v string, err error)
OldTraceID returns the old "trace_id" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldUserID ¶
func (m *SysLoggingMutation) OldUserID(ctx context.Context) (v string, err error)
OldUserID returns the old "user_id" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) OldVersion ¶
func (m *SysLoggingMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the SysLogging entity. If the SysLogging object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysLoggingMutation) RemovedEdges ¶
func (m *SysLoggingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysLoggingMutation) RemovedIDs ¶
func (m *SysLoggingMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysLoggingMutation) ResetCreatedAt ¶
func (m *SysLoggingMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysLoggingMutation) ResetData ¶
func (m *SysLoggingMutation) ResetData()
ResetData resets all changes to the "data" field.
func (*SysLoggingMutation) ResetEdge ¶
func (m *SysLoggingMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysLoggingMutation) ResetErrorStack ¶
func (m *SysLoggingMutation) ResetErrorStack()
ResetErrorStack resets all changes to the "error_stack" field.
func (*SysLoggingMutation) ResetField ¶
func (m *SysLoggingMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysLoggingMutation) ResetIsDel ¶
func (m *SysLoggingMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysLoggingMutation) ResetLevel ¶
func (m *SysLoggingMutation) ResetLevel()
ResetLevel resets all changes to the "level" field.
func (*SysLoggingMutation) ResetMemo ¶
func (m *SysLoggingMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysLoggingMutation) ResetMessage ¶
func (m *SysLoggingMutation) ResetMessage()
ResetMessage resets all changes to the "message" field.
func (*SysLoggingMutation) ResetTag ¶
func (m *SysLoggingMutation) ResetTag()
ResetTag resets all changes to the "tag" field.
func (*SysLoggingMutation) ResetTraceID ¶
func (m *SysLoggingMutation) ResetTraceID()
ResetTraceID resets all changes to the "trace_id" field.
func (*SysLoggingMutation) ResetUserID ¶
func (m *SysLoggingMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*SysLoggingMutation) ResetVersion ¶
func (m *SysLoggingMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*SysLoggingMutation) SetCreatedAt ¶
func (m *SysLoggingMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysLoggingMutation) SetData ¶
func (m *SysLoggingMutation) SetData(s string)
SetData sets the "data" field.
func (*SysLoggingMutation) SetErrorStack ¶
func (m *SysLoggingMutation) SetErrorStack(s string)
SetErrorStack sets the "error_stack" field.
func (*SysLoggingMutation) SetField ¶
func (m *SysLoggingMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysLoggingMutation) SetID ¶
func (m *SysLoggingMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysLogging entities.
func (*SysLoggingMutation) SetIsDel ¶
func (m *SysLoggingMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysLoggingMutation) SetLevel ¶
func (m *SysLoggingMutation) SetLevel(s string)
SetLevel sets the "level" field.
func (*SysLoggingMutation) SetMemo ¶
func (m *SysLoggingMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysLoggingMutation) SetMessage ¶
func (m *SysLoggingMutation) SetMessage(s string)
SetMessage sets the "message" field.
func (*SysLoggingMutation) SetTag ¶
func (m *SysLoggingMutation) SetTag(s string)
SetTag sets the "tag" field.
func (*SysLoggingMutation) SetTraceID ¶
func (m *SysLoggingMutation) SetTraceID(s string)
SetTraceID sets the "trace_id" field.
func (*SysLoggingMutation) SetUserID ¶
func (m *SysLoggingMutation) SetUserID(s string)
SetUserID sets the "user_id" field.
func (*SysLoggingMutation) SetVersion ¶
func (m *SysLoggingMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*SysLoggingMutation) Tag ¶
func (m *SysLoggingMutation) Tag() (r string, exists bool)
Tag returns the value of the "tag" field in the mutation.
func (*SysLoggingMutation) TraceID ¶
func (m *SysLoggingMutation) TraceID() (r string, exists bool)
TraceID returns the value of the "trace_id" field in the mutation.
func (SysLoggingMutation) Tx ¶
func (m SysLoggingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysLoggingMutation) Type ¶
func (m *SysLoggingMutation) Type() string
Type returns the node type of this mutation (SysLogging).
func (*SysLoggingMutation) UserID ¶
func (m *SysLoggingMutation) UserID() (r string, exists bool)
UserID returns the value of the "user_id" field in the mutation.
func (*SysLoggingMutation) Version ¶
func (m *SysLoggingMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
type SysLoggingQuery ¶
type SysLoggingQuery struct {
// contains filtered or unexported fields
}
SysLoggingQuery is the builder for querying SysLogging entities.
func (*SysLoggingQuery) All ¶
func (slq *SysLoggingQuery) All(ctx context.Context) ([]*SysLogging, error)
All executes the query and returns a list of SysLoggings.
func (*SysLoggingQuery) AllX ¶
func (slq *SysLoggingQuery) AllX(ctx context.Context) []*SysLogging
AllX is like All, but panics if an error occurs.
func (*SysLoggingQuery) Clone ¶
func (slq *SysLoggingQuery) Clone() *SysLoggingQuery
Clone returns a duplicate of the SysLoggingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysLoggingQuery) Count ¶
func (slq *SysLoggingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysLoggingQuery) CountX ¶
func (slq *SysLoggingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysLoggingQuery) Exist ¶
func (slq *SysLoggingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysLoggingQuery) ExistX ¶
func (slq *SysLoggingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysLoggingQuery) First ¶
func (slq *SysLoggingQuery) First(ctx context.Context) (*SysLogging, error)
First returns the first SysLogging entity from the query. Returns a *NotFoundError when no SysLogging was found.
func (*SysLoggingQuery) FirstID ¶
func (slq *SysLoggingQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysLogging ID from the query. Returns a *NotFoundError when no SysLogging ID was found.
func (*SysLoggingQuery) FirstIDX ¶
func (slq *SysLoggingQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysLoggingQuery) FirstX ¶
func (slq *SysLoggingQuery) FirstX(ctx context.Context) *SysLogging
FirstX is like First, but panics if an error occurs.
func (*SysLoggingQuery) GroupBy ¶
func (slq *SysLoggingQuery) GroupBy(field string, fields ...string) *SysLoggingGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysLogging.Query(). GroupBy(syslogging.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysLoggingQuery) IDs ¶
func (slq *SysLoggingQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysLogging IDs.
func (*SysLoggingQuery) IDsX ¶
func (slq *SysLoggingQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysLoggingQuery) Limit ¶
func (slq *SysLoggingQuery) Limit(limit int) *SysLoggingQuery
Limit adds a limit step to the query.
func (*SysLoggingQuery) Offset ¶
func (slq *SysLoggingQuery) Offset(offset int) *SysLoggingQuery
Offset adds an offset step to the query.
func (*SysLoggingQuery) Only ¶
func (slq *SysLoggingQuery) Only(ctx context.Context) (*SysLogging, error)
Only returns a single SysLogging entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysLogging entity is not found. Returns a *NotFoundError when no SysLogging entities are found.
func (*SysLoggingQuery) OnlyID ¶
func (slq *SysLoggingQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysLogging ID in the query. Returns a *NotSingularError when exactly one SysLogging ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysLoggingQuery) OnlyIDX ¶
func (slq *SysLoggingQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysLoggingQuery) OnlyX ¶
func (slq *SysLoggingQuery) OnlyX(ctx context.Context) *SysLogging
OnlyX is like Only, but panics if an error occurs.
func (*SysLoggingQuery) Order ¶
func (slq *SysLoggingQuery) Order(o ...OrderFunc) *SysLoggingQuery
Order adds an order step to the query.
func (*SysLoggingQuery) Select ¶
func (slq *SysLoggingQuery) Select(field string, fields ...string) *SysLoggingSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysLogging.Query(). Select(syslogging.FieldIsDel). Scan(ctx, &v)
func (*SysLoggingQuery) Unique ¶
func (slq *SysLoggingQuery) Unique(unique bool) *SysLoggingQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysLoggingQuery) Where ¶
func (slq *SysLoggingQuery) Where(ps ...predicate.SysLogging) *SysLoggingQuery
Where adds a new predicate for the SysLoggingQuery builder.
type SysLoggingSelect ¶
type SysLoggingSelect struct { *SysLoggingQuery // contains filtered or unexported fields }
SysLoggingSelect is the builder for selecting fields of SysLogging entities.
func (*SysLoggingSelect) Bool ¶
func (sls *SysLoggingSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) BoolX ¶
func (sls *SysLoggingSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysLoggingSelect) Bools ¶
func (sls *SysLoggingSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) BoolsX ¶
func (sls *SysLoggingSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysLoggingSelect) Float64 ¶
func (sls *SysLoggingSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) Float64X ¶
func (sls *SysLoggingSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysLoggingSelect) Float64s ¶
func (sls *SysLoggingSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) Float64sX ¶
func (sls *SysLoggingSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysLoggingSelect) Int ¶
func (sls *SysLoggingSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) IntX ¶
func (sls *SysLoggingSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysLoggingSelect) Ints ¶
func (sls *SysLoggingSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) IntsX ¶
func (sls *SysLoggingSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysLoggingSelect) Scan ¶
func (sls *SysLoggingSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysLoggingSelect) ScanX ¶
func (sls *SysLoggingSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysLoggingSelect) String ¶
func (sls *SysLoggingSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysLoggingSelect) StringX ¶
func (sls *SysLoggingSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysLoggingUpdate ¶
type SysLoggingUpdate struct {
// contains filtered or unexported fields
}
SysLoggingUpdate is the builder for updating SysLogging entities.
func (*SysLoggingUpdate) Exec ¶
func (slu *SysLoggingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysLoggingUpdate) ExecX ¶
func (slu *SysLoggingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysLoggingUpdate) Mutation ¶
func (slu *SysLoggingUpdate) Mutation() *SysLoggingMutation
Mutation returns the SysLoggingMutation object of the builder.
func (*SysLoggingUpdate) Save ¶
func (slu *SysLoggingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysLoggingUpdate) SaveX ¶
func (slu *SysLoggingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysLoggingUpdate) SetErrorStack ¶
func (slu *SysLoggingUpdate) SetErrorStack(s string) *SysLoggingUpdate
SetErrorStack sets the "error_stack" field.
func (*SysLoggingUpdate) SetInput ¶
func (u *SysLoggingUpdate) SetInput(i UpdateSysLoggingInput) *SysLoggingUpdate
SetInput applies the change-set in the UpdateSysLoggingInput on the update builder.
func (*SysLoggingUpdate) SetIsDel ¶
func (slu *SysLoggingUpdate) SetIsDel(b bool) *SysLoggingUpdate
SetIsDel sets the "is_del" field.
func (*SysLoggingUpdate) SetLevel ¶
func (slu *SysLoggingUpdate) SetLevel(s string) *SysLoggingUpdate
SetLevel sets the "level" field.
func (*SysLoggingUpdate) SetMemo ¶
func (slu *SysLoggingUpdate) SetMemo(s string) *SysLoggingUpdate
SetMemo sets the "memo" field.
func (*SysLoggingUpdate) SetMessage ¶
func (slu *SysLoggingUpdate) SetMessage(s string) *SysLoggingUpdate
SetMessage sets the "message" field.
func (*SysLoggingUpdate) SetNillableIsDel ¶
func (slu *SysLoggingUpdate) SetNillableIsDel(b *bool) *SysLoggingUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysLoggingUpdate) SetNillableMemo ¶
func (slu *SysLoggingUpdate) SetNillableMemo(s *string) *SysLoggingUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysLoggingUpdate) SetTag ¶
func (slu *SysLoggingUpdate) SetTag(s string) *SysLoggingUpdate
SetTag sets the "tag" field.
func (*SysLoggingUpdate) SetTraceID ¶
func (slu *SysLoggingUpdate) SetTraceID(s string) *SysLoggingUpdate
SetTraceID sets the "trace_id" field.
func (*SysLoggingUpdate) SetUserID ¶
func (slu *SysLoggingUpdate) SetUserID(s string) *SysLoggingUpdate
SetUserID sets the "user_id" field.
func (*SysLoggingUpdate) SetVersion ¶
func (slu *SysLoggingUpdate) SetVersion(s string) *SysLoggingUpdate
SetVersion sets the "version" field.
func (*SysLoggingUpdate) Where ¶
func (slu *SysLoggingUpdate) Where(ps ...predicate.SysLogging) *SysLoggingUpdate
Where adds a new predicate for the SysLoggingUpdate builder.
type SysLoggingUpdateOne ¶
type SysLoggingUpdateOne struct {
// contains filtered or unexported fields
}
SysLoggingUpdateOne is the builder for updating a single SysLogging entity.
func (*SysLoggingUpdateOne) Exec ¶
func (sluo *SysLoggingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysLoggingUpdateOne) ExecX ¶
func (sluo *SysLoggingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysLoggingUpdateOne) Mutation ¶
func (sluo *SysLoggingUpdateOne) Mutation() *SysLoggingMutation
Mutation returns the SysLoggingMutation object of the builder.
func (*SysLoggingUpdateOne) Save ¶
func (sluo *SysLoggingUpdateOne) Save(ctx context.Context) (*SysLogging, error)
Save executes the query and returns the updated SysLogging entity.
func (*SysLoggingUpdateOne) SaveX ¶
func (sluo *SysLoggingUpdateOne) SaveX(ctx context.Context) *SysLogging
SaveX is like Save, but panics if an error occurs.
func (*SysLoggingUpdateOne) Select ¶
func (sluo *SysLoggingUpdateOne) Select(field string, fields ...string) *SysLoggingUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysLoggingUpdateOne) SetErrorStack ¶
func (sluo *SysLoggingUpdateOne) SetErrorStack(s string) *SysLoggingUpdateOne
SetErrorStack sets the "error_stack" field.
func (*SysLoggingUpdateOne) SetInput ¶
func (u *SysLoggingUpdateOne) SetInput(i UpdateSysLoggingInput) *SysLoggingUpdateOne
SetInput applies the change-set in the UpdateSysLoggingInput on the update-one builder.
func (*SysLoggingUpdateOne) SetIsDel ¶
func (sluo *SysLoggingUpdateOne) SetIsDel(b bool) *SysLoggingUpdateOne
SetIsDel sets the "is_del" field.
func (*SysLoggingUpdateOne) SetLevel ¶
func (sluo *SysLoggingUpdateOne) SetLevel(s string) *SysLoggingUpdateOne
SetLevel sets the "level" field.
func (*SysLoggingUpdateOne) SetMemo ¶
func (sluo *SysLoggingUpdateOne) SetMemo(s string) *SysLoggingUpdateOne
SetMemo sets the "memo" field.
func (*SysLoggingUpdateOne) SetMessage ¶
func (sluo *SysLoggingUpdateOne) SetMessage(s string) *SysLoggingUpdateOne
SetMessage sets the "message" field.
func (*SysLoggingUpdateOne) SetNillableIsDel ¶
func (sluo *SysLoggingUpdateOne) SetNillableIsDel(b *bool) *SysLoggingUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysLoggingUpdateOne) SetNillableMemo ¶
func (sluo *SysLoggingUpdateOne) SetNillableMemo(s *string) *SysLoggingUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysLoggingUpdateOne) SetTag ¶
func (sluo *SysLoggingUpdateOne) SetTag(s string) *SysLoggingUpdateOne
SetTag sets the "tag" field.
func (*SysLoggingUpdateOne) SetTraceID ¶
func (sluo *SysLoggingUpdateOne) SetTraceID(s string) *SysLoggingUpdateOne
SetTraceID sets the "trace_id" field.
func (*SysLoggingUpdateOne) SetUserID ¶
func (sluo *SysLoggingUpdateOne) SetUserID(s string) *SysLoggingUpdateOne
SetUserID sets the "user_id" field.
func (*SysLoggingUpdateOne) SetVersion ¶
func (sluo *SysLoggingUpdateOne) SetVersion(s string) *SysLoggingUpdateOne
SetVersion sets the "version" field.
type SysMenu ¶
type SysMenu struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // Name holds the value of the "name" field. // 菜单名称 Name string `json:"name,omitempty"` // Icon holds the value of the "icon" field. // 菜单图标 Icon string `json:"icon,omitempty"` // Router holds the value of the "router" field. // 前端路由 Router string `json:"router,omitempty"` // IsShow holds the value of the "is_show" field. // 是否显示 IsShow bool `json:"is_show,omitempty"` // ParentID holds the value of the "parent_id" field. // 父级id ParentID *string `json:"parent_id,omitempty"` // ParentPath holds the value of the "parent_path" field. // 父级路径: 1/2/3 ParentPath *string `json:"parent_path,omitempty"` // contains filtered or unexported fields }
SysMenu is the model entity for the SysMenu schema.
func (*SysMenu) Unwrap ¶
Unwrap unwraps the SysMenu entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysMenu) Update ¶
func (sm *SysMenu) Update() *SysMenuUpdateOne
Update returns a builder for updating this SysMenu. Note that you need to call SysMenu.Unwrap() before calling this method if this SysMenu was returned from a transaction, and the transaction was committed or rolled back.
type SysMenuAction ¶
type SysMenuAction struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // MenuID holds the value of the "menu_id" field. // 菜单ID MenuID string `json:"menu_id,omitempty"` // Code holds the value of the "code" field. // 动作编号 Code string `json:"code,omitempty"` // Name holds the value of the "name" field. // 动作名称 Name string `json:"name,omitempty"` // contains filtered or unexported fields }
SysMenuAction is the model entity for the SysMenuAction schema.
func (*SysMenuAction) String ¶
func (sma *SysMenuAction) String() string
String implements the fmt.Stringer.
func (*SysMenuAction) Unwrap ¶
func (sma *SysMenuAction) Unwrap() *SysMenuAction
Unwrap unwraps the SysMenuAction entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysMenuAction) Update ¶
func (sma *SysMenuAction) Update() *SysMenuActionUpdateOne
Update returns a builder for updating this SysMenuAction. Note that you need to call SysMenuAction.Unwrap() before calling this method if this SysMenuAction was returned from a transaction, and the transaction was committed or rolled back.
type SysMenuActionClient ¶
type SysMenuActionClient struct {
// contains filtered or unexported fields
}
SysMenuActionClient is a client for the SysMenuAction schema.
func NewSysMenuActionClient ¶
func NewSysMenuActionClient(c config) *SysMenuActionClient
NewSysMenuActionClient returns a client for the SysMenuAction from the given config.
func (*SysMenuActionClient) Create ¶
func (c *SysMenuActionClient) Create() *SysMenuActionCreate
Create returns a create builder for SysMenuAction.
func (*SysMenuActionClient) CreateBulk ¶
func (c *SysMenuActionClient) CreateBulk(builders ...*SysMenuActionCreate) *SysMenuActionCreateBulk
CreateBulk returns a builder for creating a bulk of SysMenuAction entities.
func (*SysMenuActionClient) Delete ¶
func (c *SysMenuActionClient) Delete() *SysMenuActionDelete
Delete returns a delete builder for SysMenuAction.
func (*SysMenuActionClient) DeleteOne ¶
func (c *SysMenuActionClient) DeleteOne(sma *SysMenuAction) *SysMenuActionDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysMenuActionClient) DeleteOneID ¶
func (c *SysMenuActionClient) DeleteOneID(id string) *SysMenuActionDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysMenuActionClient) Get ¶
func (c *SysMenuActionClient) Get(ctx context.Context, id string) (*SysMenuAction, error)
Get returns a SysMenuAction entity by its id.
func (*SysMenuActionClient) GetX ¶
func (c *SysMenuActionClient) GetX(ctx context.Context, id string) *SysMenuAction
GetX is like Get, but panics if an error occurs.
func (*SysMenuActionClient) Hooks ¶
func (c *SysMenuActionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysMenuActionClient) Query ¶
func (c *SysMenuActionClient) Query() *SysMenuActionQuery
Query returns a query builder for SysMenuAction.
func (*SysMenuActionClient) Update ¶
func (c *SysMenuActionClient) Update() *SysMenuActionUpdate
Update returns an update builder for SysMenuAction.
func (*SysMenuActionClient) UpdateOne ¶
func (c *SysMenuActionClient) UpdateOne(sma *SysMenuAction) *SysMenuActionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysMenuActionClient) UpdateOneID ¶
func (c *SysMenuActionClient) UpdateOneID(id string) *SysMenuActionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysMenuActionClient) Use ¶
func (c *SysMenuActionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysmenuaction.Hooks(f(g(h())))`.
type SysMenuActionCreate ¶
type SysMenuActionCreate struct {
// contains filtered or unexported fields
}
SysMenuActionCreate is the builder for creating a SysMenuAction entity.
func (*SysMenuActionCreate) Mutation ¶
func (smac *SysMenuActionCreate) Mutation() *SysMenuActionMutation
Mutation returns the SysMenuActionMutation object of the builder.
func (*SysMenuActionCreate) Save ¶
func (smac *SysMenuActionCreate) Save(ctx context.Context) (*SysMenuAction, error)
Save creates the SysMenuAction in the database.
func (*SysMenuActionCreate) SaveX ¶
func (smac *SysMenuActionCreate) SaveX(ctx context.Context) *SysMenuAction
SaveX calls Save and panics if Save returns an error.
func (*SysMenuActionCreate) SetCode ¶
func (smac *SysMenuActionCreate) SetCode(s string) *SysMenuActionCreate
SetCode sets the "code" field.
func (*SysMenuActionCreate) SetCreatedAt ¶
func (smac *SysMenuActionCreate) SetCreatedAt(t time.Time) *SysMenuActionCreate
SetCreatedAt sets the "created_at" field.
func (*SysMenuActionCreate) SetDeletedAt ¶
func (smac *SysMenuActionCreate) SetDeletedAt(t time.Time) *SysMenuActionCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionCreate) SetID ¶
func (smac *SysMenuActionCreate) SetID(s string) *SysMenuActionCreate
SetID sets the "id" field.
func (*SysMenuActionCreate) SetInput ¶
func (c *SysMenuActionCreate) SetInput(i CreateSysMenuActionInput) *SysMenuActionCreate
SetInput applies the change-set in the CreateSysMenuActionInput on the create builder.
func (*SysMenuActionCreate) SetIsDel ¶
func (smac *SysMenuActionCreate) SetIsDel(b bool) *SysMenuActionCreate
SetIsDel sets the "is_del" field.
func (*SysMenuActionCreate) SetMemo ¶
func (smac *SysMenuActionCreate) SetMemo(s string) *SysMenuActionCreate
SetMemo sets the "memo" field.
func (*SysMenuActionCreate) SetMenuID ¶
func (smac *SysMenuActionCreate) SetMenuID(s string) *SysMenuActionCreate
SetMenuID sets the "menu_id" field.
func (*SysMenuActionCreate) SetName ¶
func (smac *SysMenuActionCreate) SetName(s string) *SysMenuActionCreate
SetName sets the "name" field.
func (*SysMenuActionCreate) SetNillableCreatedAt ¶
func (smac *SysMenuActionCreate) SetNillableCreatedAt(t *time.Time) *SysMenuActionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableDeletedAt ¶
func (smac *SysMenuActionCreate) SetNillableDeletedAt(t *time.Time) *SysMenuActionCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableID ¶
func (smac *SysMenuActionCreate) SetNillableID(s *string) *SysMenuActionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableIsDel ¶
func (smac *SysMenuActionCreate) SetNillableIsDel(b *bool) *SysMenuActionCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableMemo ¶
func (smac *SysMenuActionCreate) SetNillableMemo(s *string) *SysMenuActionCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableSort ¶
func (smac *SysMenuActionCreate) SetNillableSort(i *int32) *SysMenuActionCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableStatus ¶
func (smac *SysMenuActionCreate) SetNillableStatus(i *int16) *SysMenuActionCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionCreate) SetNillableUpdatedAt ¶
func (smac *SysMenuActionCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuActionCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysMenuActionCreate) SetSort ¶
func (smac *SysMenuActionCreate) SetSort(i int32) *SysMenuActionCreate
SetSort sets the "sort" field.
func (*SysMenuActionCreate) SetStatus ¶
func (smac *SysMenuActionCreate) SetStatus(i int16) *SysMenuActionCreate
SetStatus sets the "status" field.
func (*SysMenuActionCreate) SetUpdatedAt ¶
func (smac *SysMenuActionCreate) SetUpdatedAt(t time.Time) *SysMenuActionCreate
SetUpdatedAt sets the "updated_at" field.
type SysMenuActionCreateBulk ¶
type SysMenuActionCreateBulk struct {
// contains filtered or unexported fields
}
SysMenuActionCreateBulk is the builder for creating many SysMenuAction entities in bulk.
func (*SysMenuActionCreateBulk) Save ¶
func (smacb *SysMenuActionCreateBulk) Save(ctx context.Context) ([]*SysMenuAction, error)
Save creates the SysMenuAction entities in the database.
func (*SysMenuActionCreateBulk) SaveX ¶
func (smacb *SysMenuActionCreateBulk) SaveX(ctx context.Context) []*SysMenuAction
SaveX is like Save, but panics if an error occurs.
type SysMenuActionDelete ¶
type SysMenuActionDelete struct {
// contains filtered or unexported fields
}
SysMenuActionDelete is the builder for deleting a SysMenuAction entity.
func (*SysMenuActionDelete) Exec ¶
func (smad *SysMenuActionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysMenuActionDelete) ExecX ¶
func (smad *SysMenuActionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionDelete) Where ¶
func (smad *SysMenuActionDelete) Where(ps ...predicate.SysMenuAction) *SysMenuActionDelete
Where adds a new predicate to the SysMenuActionDelete builder.
type SysMenuActionDeleteOne ¶
type SysMenuActionDeleteOne struct {
// contains filtered or unexported fields
}
SysMenuActionDeleteOne is the builder for deleting a single SysMenuAction entity.
func (*SysMenuActionDeleteOne) Exec ¶
func (smado *SysMenuActionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysMenuActionDeleteOne) ExecX ¶
func (smado *SysMenuActionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysMenuActionGroupBy ¶
type SysMenuActionGroupBy struct {
// contains filtered or unexported fields
}
SysMenuActionGroupBy is the group-by builder for SysMenuAction entities.
func (*SysMenuActionGroupBy) Aggregate ¶
func (smagb *SysMenuActionGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuActionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysMenuActionGroupBy) Bool ¶
func (smagb *SysMenuActionGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) BoolX ¶
func (smagb *SysMenuActionGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuActionGroupBy) Bools ¶
func (smagb *SysMenuActionGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) BoolsX ¶
func (smagb *SysMenuActionGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuActionGroupBy) Float64 ¶
func (smagb *SysMenuActionGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) Float64X ¶
func (smagb *SysMenuActionGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuActionGroupBy) Float64s ¶
func (smagb *SysMenuActionGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) Float64sX ¶
func (smagb *SysMenuActionGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuActionGroupBy) Int ¶
func (smagb *SysMenuActionGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) IntX ¶
func (smagb *SysMenuActionGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuActionGroupBy) Ints ¶
func (smagb *SysMenuActionGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) IntsX ¶
func (smagb *SysMenuActionGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuActionGroupBy) Scan ¶
func (smagb *SysMenuActionGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysMenuActionGroupBy) ScanX ¶
func (smagb *SysMenuActionGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuActionGroupBy) String ¶
func (smagb *SysMenuActionGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionGroupBy) StringX ¶
func (smagb *SysMenuActionGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuActionMutation ¶
type SysMenuActionMutation struct {
// contains filtered or unexported fields
}
SysMenuActionMutation represents an operation that mutates the SysMenuAction nodes in the graph.
func (*SysMenuActionMutation) AddField ¶
func (m *SysMenuActionMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuActionMutation) AddSort ¶
func (m *SysMenuActionMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysMenuActionMutation) AddStatus ¶
func (m *SysMenuActionMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysMenuActionMutation) AddedEdges ¶
func (m *SysMenuActionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysMenuActionMutation) AddedField ¶
func (m *SysMenuActionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuActionMutation) AddedFields ¶
func (m *SysMenuActionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysMenuActionMutation) AddedIDs ¶
func (m *SysMenuActionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysMenuActionMutation) AddedSort ¶
func (m *SysMenuActionMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysMenuActionMutation) AddedStatus ¶
func (m *SysMenuActionMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysMenuActionMutation) ClearDeletedAt ¶
func (m *SysMenuActionMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionMutation) ClearEdge ¶
func (m *SysMenuActionMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysMenuActionMutation) ClearField ¶
func (m *SysMenuActionMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuActionMutation) ClearedEdges ¶
func (m *SysMenuActionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysMenuActionMutation) ClearedFields ¶
func (m *SysMenuActionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysMenuActionMutation) Client ¶
func (m SysMenuActionMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysMenuActionMutation) Code ¶
func (m *SysMenuActionMutation) Code() (r string, exists bool)
Code returns the value of the "code" field in the mutation.
func (*SysMenuActionMutation) CreatedAt ¶
func (m *SysMenuActionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysMenuActionMutation) DeletedAt ¶
func (m *SysMenuActionMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysMenuActionMutation) DeletedAtCleared ¶
func (m *SysMenuActionMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysMenuActionMutation) EdgeCleared ¶
func (m *SysMenuActionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysMenuActionMutation) Field ¶
func (m *SysMenuActionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuActionMutation) FieldCleared ¶
func (m *SysMenuActionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysMenuActionMutation) Fields ¶
func (m *SysMenuActionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysMenuActionMutation) ID ¶
func (m *SysMenuActionMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysMenuActionMutation) IsDel ¶
func (m *SysMenuActionMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysMenuActionMutation) Memo ¶
func (m *SysMenuActionMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysMenuActionMutation) MenuID ¶
func (m *SysMenuActionMutation) MenuID() (r string, exists bool)
MenuID returns the value of the "menu_id" field in the mutation.
func (*SysMenuActionMutation) Name ¶
func (m *SysMenuActionMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SysMenuActionMutation) OldCode ¶
func (m *SysMenuActionMutation) OldCode(ctx context.Context) (v string, err error)
OldCode returns the old "code" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysMenuActionMutation) OldIsDel ¶
func (m *SysMenuActionMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldMemo ¶
func (m *SysMenuActionMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldMenuID ¶
func (m *SysMenuActionMutation) OldMenuID(ctx context.Context) (v string, err error)
OldMenuID returns the old "menu_id" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldName ¶
func (m *SysMenuActionMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldSort ¶
func (m *SysMenuActionMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldStatus ¶
func (m *SysMenuActionMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysMenuAction entity. If the SysMenuAction object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionMutation) Op ¶
func (m *SysMenuActionMutation) Op() Op
Op returns the operation name.
func (*SysMenuActionMutation) RemovedEdges ¶
func (m *SysMenuActionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysMenuActionMutation) RemovedIDs ¶
func (m *SysMenuActionMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysMenuActionMutation) ResetCode ¶
func (m *SysMenuActionMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*SysMenuActionMutation) ResetCreatedAt ¶
func (m *SysMenuActionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysMenuActionMutation) ResetDeletedAt ¶
func (m *SysMenuActionMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysMenuActionMutation) ResetEdge ¶
func (m *SysMenuActionMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysMenuActionMutation) ResetField ¶
func (m *SysMenuActionMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuActionMutation) ResetIsDel ¶
func (m *SysMenuActionMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysMenuActionMutation) ResetMemo ¶
func (m *SysMenuActionMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysMenuActionMutation) ResetMenuID ¶
func (m *SysMenuActionMutation) ResetMenuID()
ResetMenuID resets all changes to the "menu_id" field.
func (*SysMenuActionMutation) ResetName ¶
func (m *SysMenuActionMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SysMenuActionMutation) ResetSort ¶
func (m *SysMenuActionMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysMenuActionMutation) ResetStatus ¶
func (m *SysMenuActionMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysMenuActionMutation) ResetUpdatedAt ¶
func (m *SysMenuActionMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysMenuActionMutation) SetCode ¶
func (m *SysMenuActionMutation) SetCode(s string)
SetCode sets the "code" field.
func (*SysMenuActionMutation) SetCreatedAt ¶
func (m *SysMenuActionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysMenuActionMutation) SetDeletedAt ¶
func (m *SysMenuActionMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionMutation) SetField ¶
func (m *SysMenuActionMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuActionMutation) SetID ¶
func (m *SysMenuActionMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysMenuAction entities.
func (*SysMenuActionMutation) SetIsDel ¶
func (m *SysMenuActionMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysMenuActionMutation) SetMemo ¶
func (m *SysMenuActionMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysMenuActionMutation) SetMenuID ¶
func (m *SysMenuActionMutation) SetMenuID(s string)
SetMenuID sets the "menu_id" field.
func (*SysMenuActionMutation) SetName ¶
func (m *SysMenuActionMutation) SetName(s string)
SetName sets the "name" field.
func (*SysMenuActionMutation) SetSort ¶
func (m *SysMenuActionMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysMenuActionMutation) SetStatus ¶
func (m *SysMenuActionMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysMenuActionMutation) SetUpdatedAt ¶
func (m *SysMenuActionMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuActionMutation) Sort ¶
func (m *SysMenuActionMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysMenuActionMutation) Status ¶
func (m *SysMenuActionMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysMenuActionMutation) Tx ¶
func (m SysMenuActionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysMenuActionMutation) Type ¶
func (m *SysMenuActionMutation) Type() string
Type returns the node type of this mutation (SysMenuAction).
type SysMenuActionQuery ¶
type SysMenuActionQuery struct {
// contains filtered or unexported fields
}
SysMenuActionQuery is the builder for querying SysMenuAction entities.
func (*SysMenuActionQuery) All ¶
func (smaq *SysMenuActionQuery) All(ctx context.Context) ([]*SysMenuAction, error)
All executes the query and returns a list of SysMenuActions.
func (*SysMenuActionQuery) AllX ¶
func (smaq *SysMenuActionQuery) AllX(ctx context.Context) []*SysMenuAction
AllX is like All, but panics if an error occurs.
func (*SysMenuActionQuery) Clone ¶
func (smaq *SysMenuActionQuery) Clone() *SysMenuActionQuery
Clone returns a duplicate of the SysMenuActionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysMenuActionQuery) Count ¶
func (smaq *SysMenuActionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysMenuActionQuery) CountX ¶
func (smaq *SysMenuActionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysMenuActionQuery) Exist ¶
func (smaq *SysMenuActionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysMenuActionQuery) ExistX ¶
func (smaq *SysMenuActionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysMenuActionQuery) First ¶
func (smaq *SysMenuActionQuery) First(ctx context.Context) (*SysMenuAction, error)
First returns the first SysMenuAction entity from the query. Returns a *NotFoundError when no SysMenuAction was found.
func (*SysMenuActionQuery) FirstID ¶
func (smaq *SysMenuActionQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysMenuAction ID from the query. Returns a *NotFoundError when no SysMenuAction ID was found.
func (*SysMenuActionQuery) FirstIDX ¶
func (smaq *SysMenuActionQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysMenuActionQuery) FirstX ¶
func (smaq *SysMenuActionQuery) FirstX(ctx context.Context) *SysMenuAction
FirstX is like First, but panics if an error occurs.
func (*SysMenuActionQuery) GroupBy ¶
func (smaq *SysMenuActionQuery) GroupBy(field string, fields ...string) *SysMenuActionGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysMenuAction.Query(). GroupBy(sysmenuaction.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysMenuActionQuery) IDs ¶
func (smaq *SysMenuActionQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysMenuAction IDs.
func (*SysMenuActionQuery) IDsX ¶
func (smaq *SysMenuActionQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysMenuActionQuery) Limit ¶
func (smaq *SysMenuActionQuery) Limit(limit int) *SysMenuActionQuery
Limit adds a limit step to the query.
func (*SysMenuActionQuery) Offset ¶
func (smaq *SysMenuActionQuery) Offset(offset int) *SysMenuActionQuery
Offset adds an offset step to the query.
func (*SysMenuActionQuery) Only ¶
func (smaq *SysMenuActionQuery) Only(ctx context.Context) (*SysMenuAction, error)
Only returns a single SysMenuAction entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysMenuAction entity is not found. Returns a *NotFoundError when no SysMenuAction entities are found.
func (*SysMenuActionQuery) OnlyID ¶
func (smaq *SysMenuActionQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysMenuAction ID in the query. Returns a *NotSingularError when exactly one SysMenuAction ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysMenuActionQuery) OnlyIDX ¶
func (smaq *SysMenuActionQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysMenuActionQuery) OnlyX ¶
func (smaq *SysMenuActionQuery) OnlyX(ctx context.Context) *SysMenuAction
OnlyX is like Only, but panics if an error occurs.
func (*SysMenuActionQuery) Order ¶
func (smaq *SysMenuActionQuery) Order(o ...OrderFunc) *SysMenuActionQuery
Order adds an order step to the query.
func (*SysMenuActionQuery) Select ¶
func (smaq *SysMenuActionQuery) Select(field string, fields ...string) *SysMenuActionSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysMenuAction.Query(). Select(sysmenuaction.FieldIsDel). Scan(ctx, &v)
func (*SysMenuActionQuery) Unique ¶
func (smaq *SysMenuActionQuery) Unique(unique bool) *SysMenuActionQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysMenuActionQuery) Where ¶
func (smaq *SysMenuActionQuery) Where(ps ...predicate.SysMenuAction) *SysMenuActionQuery
Where adds a new predicate for the SysMenuActionQuery builder.
type SysMenuActionResource ¶
type SysMenuActionResource struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // Method holds the value of the "method" field. // 资源HTTP请求方式(支持正则, get, delete, delete, put, patch ) Method string `json:"method,omitempty"` // Path holds the value of the "path" field. // 资源HTTP请求路径(支持/:id匹配) Path string `json:"path,omitempty"` // ActionID holds the value of the "action_id" field. // sys_menu_action.id ActionID string `json:"action_id,omitempty"` // contains filtered or unexported fields }
SysMenuActionResource is the model entity for the SysMenuActionResource schema.
func (*SysMenuActionResource) String ¶
func (smar *SysMenuActionResource) String() string
String implements the fmt.Stringer.
func (*SysMenuActionResource) Unwrap ¶
func (smar *SysMenuActionResource) Unwrap() *SysMenuActionResource
Unwrap unwraps the SysMenuActionResource entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysMenuActionResource) Update ¶
func (smar *SysMenuActionResource) Update() *SysMenuActionResourceUpdateOne
Update returns a builder for updating this SysMenuActionResource. Note that you need to call SysMenuActionResource.Unwrap() before calling this method if this SysMenuActionResource was returned from a transaction, and the transaction was committed or rolled back.
type SysMenuActionResourceClient ¶
type SysMenuActionResourceClient struct {
// contains filtered or unexported fields
}
SysMenuActionResourceClient is a client for the SysMenuActionResource schema.
func NewSysMenuActionResourceClient ¶
func NewSysMenuActionResourceClient(c config) *SysMenuActionResourceClient
NewSysMenuActionResourceClient returns a client for the SysMenuActionResource from the given config.
func (*SysMenuActionResourceClient) Create ¶
func (c *SysMenuActionResourceClient) Create() *SysMenuActionResourceCreate
Create returns a create builder for SysMenuActionResource.
func (*SysMenuActionResourceClient) CreateBulk ¶
func (c *SysMenuActionResourceClient) CreateBulk(builders ...*SysMenuActionResourceCreate) *SysMenuActionResourceCreateBulk
CreateBulk returns a builder for creating a bulk of SysMenuActionResource entities.
func (*SysMenuActionResourceClient) Delete ¶
func (c *SysMenuActionResourceClient) Delete() *SysMenuActionResourceDelete
Delete returns a delete builder for SysMenuActionResource.
func (*SysMenuActionResourceClient) DeleteOne ¶
func (c *SysMenuActionResourceClient) DeleteOne(smar *SysMenuActionResource) *SysMenuActionResourceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysMenuActionResourceClient) DeleteOneID ¶
func (c *SysMenuActionResourceClient) DeleteOneID(id string) *SysMenuActionResourceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysMenuActionResourceClient) Get ¶
func (c *SysMenuActionResourceClient) Get(ctx context.Context, id string) (*SysMenuActionResource, error)
Get returns a SysMenuActionResource entity by its id.
func (*SysMenuActionResourceClient) GetX ¶
func (c *SysMenuActionResourceClient) GetX(ctx context.Context, id string) *SysMenuActionResource
GetX is like Get, but panics if an error occurs.
func (*SysMenuActionResourceClient) Hooks ¶
func (c *SysMenuActionResourceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysMenuActionResourceClient) Query ¶
func (c *SysMenuActionResourceClient) Query() *SysMenuActionResourceQuery
Query returns a query builder for SysMenuActionResource.
func (*SysMenuActionResourceClient) Update ¶
func (c *SysMenuActionResourceClient) Update() *SysMenuActionResourceUpdate
Update returns an update builder for SysMenuActionResource.
func (*SysMenuActionResourceClient) UpdateOne ¶
func (c *SysMenuActionResourceClient) UpdateOne(smar *SysMenuActionResource) *SysMenuActionResourceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysMenuActionResourceClient) UpdateOneID ¶
func (c *SysMenuActionResourceClient) UpdateOneID(id string) *SysMenuActionResourceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysMenuActionResourceClient) Use ¶
func (c *SysMenuActionResourceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysmenuactionresource.Hooks(f(g(h())))`.
type SysMenuActionResourceCreate ¶
type SysMenuActionResourceCreate struct {
// contains filtered or unexported fields
}
SysMenuActionResourceCreate is the builder for creating a SysMenuActionResource entity.
func (*SysMenuActionResourceCreate) Mutation ¶
func (smarc *SysMenuActionResourceCreate) Mutation() *SysMenuActionResourceMutation
Mutation returns the SysMenuActionResourceMutation object of the builder.
func (*SysMenuActionResourceCreate) Save ¶
func (smarc *SysMenuActionResourceCreate) Save(ctx context.Context) (*SysMenuActionResource, error)
Save creates the SysMenuActionResource in the database.
func (*SysMenuActionResourceCreate) SaveX ¶
func (smarc *SysMenuActionResourceCreate) SaveX(ctx context.Context) *SysMenuActionResource
SaveX calls Save and panics if Save returns an error.
func (*SysMenuActionResourceCreate) SetActionID ¶
func (smarc *SysMenuActionResourceCreate) SetActionID(s string) *SysMenuActionResourceCreate
SetActionID sets the "action_id" field.
func (*SysMenuActionResourceCreate) SetCreatedAt ¶
func (smarc *SysMenuActionResourceCreate) SetCreatedAt(t time.Time) *SysMenuActionResourceCreate
SetCreatedAt sets the "created_at" field.
func (*SysMenuActionResourceCreate) SetDeletedAt ¶
func (smarc *SysMenuActionResourceCreate) SetDeletedAt(t time.Time) *SysMenuActionResourceCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionResourceCreate) SetID ¶
func (smarc *SysMenuActionResourceCreate) SetID(s string) *SysMenuActionResourceCreate
SetID sets the "id" field.
func (*SysMenuActionResourceCreate) SetInput ¶
func (c *SysMenuActionResourceCreate) SetInput(i CreateSysMenuActionResourceInput) *SysMenuActionResourceCreate
SetInput applies the change-set in the CreateSysMenuActionResourceInput on the create builder.
func (*SysMenuActionResourceCreate) SetIsDel ¶
func (smarc *SysMenuActionResourceCreate) SetIsDel(b bool) *SysMenuActionResourceCreate
SetIsDel sets the "is_del" field.
func (*SysMenuActionResourceCreate) SetMemo ¶
func (smarc *SysMenuActionResourceCreate) SetMemo(s string) *SysMenuActionResourceCreate
SetMemo sets the "memo" field.
func (*SysMenuActionResourceCreate) SetMethod ¶
func (smarc *SysMenuActionResourceCreate) SetMethod(s string) *SysMenuActionResourceCreate
SetMethod sets the "method" field.
func (*SysMenuActionResourceCreate) SetNillableCreatedAt ¶
func (smarc *SysMenuActionResourceCreate) SetNillableCreatedAt(t *time.Time) *SysMenuActionResourceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableDeletedAt ¶
func (smarc *SysMenuActionResourceCreate) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableID ¶
func (smarc *SysMenuActionResourceCreate) SetNillableID(s *string) *SysMenuActionResourceCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableIsDel ¶
func (smarc *SysMenuActionResourceCreate) SetNillableIsDel(b *bool) *SysMenuActionResourceCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableMemo ¶
func (smarc *SysMenuActionResourceCreate) SetNillableMemo(s *string) *SysMenuActionResourceCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableSort ¶
func (smarc *SysMenuActionResourceCreate) SetNillableSort(i *int32) *SysMenuActionResourceCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableStatus ¶
func (smarc *SysMenuActionResourceCreate) SetNillableStatus(i *int16) *SysMenuActionResourceCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetNillableUpdatedAt ¶
func (smarc *SysMenuActionResourceCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuActionResourceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysMenuActionResourceCreate) SetPath ¶
func (smarc *SysMenuActionResourceCreate) SetPath(s string) *SysMenuActionResourceCreate
SetPath sets the "path" field.
func (*SysMenuActionResourceCreate) SetSort ¶
func (smarc *SysMenuActionResourceCreate) SetSort(i int32) *SysMenuActionResourceCreate
SetSort sets the "sort" field.
func (*SysMenuActionResourceCreate) SetStatus ¶
func (smarc *SysMenuActionResourceCreate) SetStatus(i int16) *SysMenuActionResourceCreate
SetStatus sets the "status" field.
func (*SysMenuActionResourceCreate) SetUpdatedAt ¶
func (smarc *SysMenuActionResourceCreate) SetUpdatedAt(t time.Time) *SysMenuActionResourceCreate
SetUpdatedAt sets the "updated_at" field.
type SysMenuActionResourceCreateBulk ¶
type SysMenuActionResourceCreateBulk struct {
// contains filtered or unexported fields
}
SysMenuActionResourceCreateBulk is the builder for creating many SysMenuActionResource entities in bulk.
func (*SysMenuActionResourceCreateBulk) Save ¶
func (smarcb *SysMenuActionResourceCreateBulk) Save(ctx context.Context) ([]*SysMenuActionResource, error)
Save creates the SysMenuActionResource entities in the database.
func (*SysMenuActionResourceCreateBulk) SaveX ¶
func (smarcb *SysMenuActionResourceCreateBulk) SaveX(ctx context.Context) []*SysMenuActionResource
SaveX is like Save, but panics if an error occurs.
type SysMenuActionResourceDelete ¶
type SysMenuActionResourceDelete struct {
// contains filtered or unexported fields
}
SysMenuActionResourceDelete is the builder for deleting a SysMenuActionResource entity.
func (*SysMenuActionResourceDelete) Exec ¶
func (smard *SysMenuActionResourceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysMenuActionResourceDelete) ExecX ¶
func (smard *SysMenuActionResourceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionResourceDelete) Where ¶
func (smard *SysMenuActionResourceDelete) Where(ps ...predicate.SysMenuActionResource) *SysMenuActionResourceDelete
Where adds a new predicate to the SysMenuActionResourceDelete builder.
type SysMenuActionResourceDeleteOne ¶
type SysMenuActionResourceDeleteOne struct {
// contains filtered or unexported fields
}
SysMenuActionResourceDeleteOne is the builder for deleting a single SysMenuActionResource entity.
func (*SysMenuActionResourceDeleteOne) Exec ¶
func (smardo *SysMenuActionResourceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysMenuActionResourceDeleteOne) ExecX ¶
func (smardo *SysMenuActionResourceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysMenuActionResourceGroupBy ¶
type SysMenuActionResourceGroupBy struct {
// contains filtered or unexported fields
}
SysMenuActionResourceGroupBy is the group-by builder for SysMenuActionResource entities.
func (*SysMenuActionResourceGroupBy) Aggregate ¶
func (smargb *SysMenuActionResourceGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuActionResourceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysMenuActionResourceGroupBy) Bool ¶
func (smargb *SysMenuActionResourceGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) BoolX ¶
func (smargb *SysMenuActionResourceGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Bools ¶
func (smargb *SysMenuActionResourceGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) BoolsX ¶
func (smargb *SysMenuActionResourceGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Float64 ¶
func (smargb *SysMenuActionResourceGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) Float64X ¶
func (smargb *SysMenuActionResourceGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Float64s ¶
func (smargb *SysMenuActionResourceGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) Float64sX ¶
func (smargb *SysMenuActionResourceGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Int ¶
func (smargb *SysMenuActionResourceGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) IntX ¶
func (smargb *SysMenuActionResourceGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Ints ¶
func (smargb *SysMenuActionResourceGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) IntsX ¶
func (smargb *SysMenuActionResourceGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) Scan ¶
func (smargb *SysMenuActionResourceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysMenuActionResourceGroupBy) ScanX ¶
func (smargb *SysMenuActionResourceGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuActionResourceGroupBy) String ¶
func (smargb *SysMenuActionResourceGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuActionResourceGroupBy) StringX ¶
func (smargb *SysMenuActionResourceGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuActionResourceMutation ¶
type SysMenuActionResourceMutation struct {
// contains filtered or unexported fields
}
SysMenuActionResourceMutation represents an operation that mutates the SysMenuActionResource nodes in the graph.
func (*SysMenuActionResourceMutation) ActionID ¶
func (m *SysMenuActionResourceMutation) ActionID() (r string, exists bool)
ActionID returns the value of the "action_id" field in the mutation.
func (*SysMenuActionResourceMutation) AddField ¶
func (m *SysMenuActionResourceMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuActionResourceMutation) AddSort ¶
func (m *SysMenuActionResourceMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysMenuActionResourceMutation) AddStatus ¶
func (m *SysMenuActionResourceMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysMenuActionResourceMutation) AddedEdges ¶
func (m *SysMenuActionResourceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysMenuActionResourceMutation) AddedField ¶
func (m *SysMenuActionResourceMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuActionResourceMutation) AddedFields ¶
func (m *SysMenuActionResourceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysMenuActionResourceMutation) AddedIDs ¶
func (m *SysMenuActionResourceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysMenuActionResourceMutation) AddedSort ¶
func (m *SysMenuActionResourceMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysMenuActionResourceMutation) AddedStatus ¶
func (m *SysMenuActionResourceMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysMenuActionResourceMutation) ClearDeletedAt ¶
func (m *SysMenuActionResourceMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionResourceMutation) ClearEdge ¶
func (m *SysMenuActionResourceMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysMenuActionResourceMutation) ClearField ¶
func (m *SysMenuActionResourceMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuActionResourceMutation) ClearedEdges ¶
func (m *SysMenuActionResourceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysMenuActionResourceMutation) ClearedFields ¶
func (m *SysMenuActionResourceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysMenuActionResourceMutation) Client ¶
func (m SysMenuActionResourceMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysMenuActionResourceMutation) CreatedAt ¶
func (m *SysMenuActionResourceMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysMenuActionResourceMutation) DeletedAt ¶
func (m *SysMenuActionResourceMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysMenuActionResourceMutation) DeletedAtCleared ¶
func (m *SysMenuActionResourceMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysMenuActionResourceMutation) EdgeCleared ¶
func (m *SysMenuActionResourceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysMenuActionResourceMutation) Field ¶
func (m *SysMenuActionResourceMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuActionResourceMutation) FieldCleared ¶
func (m *SysMenuActionResourceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysMenuActionResourceMutation) Fields ¶
func (m *SysMenuActionResourceMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysMenuActionResourceMutation) ID ¶
func (m *SysMenuActionResourceMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysMenuActionResourceMutation) IsDel ¶
func (m *SysMenuActionResourceMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysMenuActionResourceMutation) Memo ¶
func (m *SysMenuActionResourceMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysMenuActionResourceMutation) Method ¶
func (m *SysMenuActionResourceMutation) Method() (r string, exists bool)
Method returns the value of the "method" field in the mutation.
func (*SysMenuActionResourceMutation) OldActionID ¶
func (m *SysMenuActionResourceMutation) OldActionID(ctx context.Context) (v string, err error)
OldActionID returns the old "action_id" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldField ¶
func (m *SysMenuActionResourceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysMenuActionResourceMutation) OldIsDel ¶
func (m *SysMenuActionResourceMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldMemo ¶
func (m *SysMenuActionResourceMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldMethod ¶
func (m *SysMenuActionResourceMutation) OldMethod(ctx context.Context) (v string, err error)
OldMethod returns the old "method" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldPath ¶
func (m *SysMenuActionResourceMutation) OldPath(ctx context.Context) (v string, err error)
OldPath returns the old "path" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldSort ¶
func (m *SysMenuActionResourceMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldStatus ¶
func (m *SysMenuActionResourceMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysMenuActionResource entity. If the SysMenuActionResource object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuActionResourceMutation) Op ¶
func (m *SysMenuActionResourceMutation) Op() Op
Op returns the operation name.
func (*SysMenuActionResourceMutation) Path ¶
func (m *SysMenuActionResourceMutation) Path() (r string, exists bool)
Path returns the value of the "path" field in the mutation.
func (*SysMenuActionResourceMutation) RemovedEdges ¶
func (m *SysMenuActionResourceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysMenuActionResourceMutation) RemovedIDs ¶
func (m *SysMenuActionResourceMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysMenuActionResourceMutation) ResetActionID ¶
func (m *SysMenuActionResourceMutation) ResetActionID()
ResetActionID resets all changes to the "action_id" field.
func (*SysMenuActionResourceMutation) ResetCreatedAt ¶
func (m *SysMenuActionResourceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysMenuActionResourceMutation) ResetDeletedAt ¶
func (m *SysMenuActionResourceMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysMenuActionResourceMutation) ResetEdge ¶
func (m *SysMenuActionResourceMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysMenuActionResourceMutation) ResetField ¶
func (m *SysMenuActionResourceMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuActionResourceMutation) ResetIsDel ¶
func (m *SysMenuActionResourceMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysMenuActionResourceMutation) ResetMemo ¶
func (m *SysMenuActionResourceMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysMenuActionResourceMutation) ResetMethod ¶
func (m *SysMenuActionResourceMutation) ResetMethod()
ResetMethod resets all changes to the "method" field.
func (*SysMenuActionResourceMutation) ResetPath ¶
func (m *SysMenuActionResourceMutation) ResetPath()
ResetPath resets all changes to the "path" field.
func (*SysMenuActionResourceMutation) ResetSort ¶
func (m *SysMenuActionResourceMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysMenuActionResourceMutation) ResetStatus ¶
func (m *SysMenuActionResourceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysMenuActionResourceMutation) ResetUpdatedAt ¶
func (m *SysMenuActionResourceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysMenuActionResourceMutation) SetActionID ¶
func (m *SysMenuActionResourceMutation) SetActionID(s string)
SetActionID sets the "action_id" field.
func (*SysMenuActionResourceMutation) SetCreatedAt ¶
func (m *SysMenuActionResourceMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysMenuActionResourceMutation) SetDeletedAt ¶
func (m *SysMenuActionResourceMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionResourceMutation) SetField ¶
func (m *SysMenuActionResourceMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuActionResourceMutation) SetID ¶
func (m *SysMenuActionResourceMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysMenuActionResource entities.
func (*SysMenuActionResourceMutation) SetIsDel ¶
func (m *SysMenuActionResourceMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysMenuActionResourceMutation) SetMemo ¶
func (m *SysMenuActionResourceMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysMenuActionResourceMutation) SetMethod ¶
func (m *SysMenuActionResourceMutation) SetMethod(s string)
SetMethod sets the "method" field.
func (*SysMenuActionResourceMutation) SetPath ¶
func (m *SysMenuActionResourceMutation) SetPath(s string)
SetPath sets the "path" field.
func (*SysMenuActionResourceMutation) SetSort ¶
func (m *SysMenuActionResourceMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysMenuActionResourceMutation) SetStatus ¶
func (m *SysMenuActionResourceMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysMenuActionResourceMutation) SetUpdatedAt ¶
func (m *SysMenuActionResourceMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuActionResourceMutation) Sort ¶
func (m *SysMenuActionResourceMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysMenuActionResourceMutation) Status ¶
func (m *SysMenuActionResourceMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysMenuActionResourceMutation) Tx ¶
func (m SysMenuActionResourceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysMenuActionResourceMutation) Type ¶
func (m *SysMenuActionResourceMutation) Type() string
Type returns the node type of this mutation (SysMenuActionResource).
type SysMenuActionResourceQuery ¶
type SysMenuActionResourceQuery struct {
// contains filtered or unexported fields
}
SysMenuActionResourceQuery is the builder for querying SysMenuActionResource entities.
func (*SysMenuActionResourceQuery) All ¶
func (smarq *SysMenuActionResourceQuery) All(ctx context.Context) ([]*SysMenuActionResource, error)
All executes the query and returns a list of SysMenuActionResources.
func (*SysMenuActionResourceQuery) AllX ¶
func (smarq *SysMenuActionResourceQuery) AllX(ctx context.Context) []*SysMenuActionResource
AllX is like All, but panics if an error occurs.
func (*SysMenuActionResourceQuery) Clone ¶
func (smarq *SysMenuActionResourceQuery) Clone() *SysMenuActionResourceQuery
Clone returns a duplicate of the SysMenuActionResourceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysMenuActionResourceQuery) Count ¶
func (smarq *SysMenuActionResourceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysMenuActionResourceQuery) CountX ¶
func (smarq *SysMenuActionResourceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysMenuActionResourceQuery) Exist ¶
func (smarq *SysMenuActionResourceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysMenuActionResourceQuery) ExistX ¶
func (smarq *SysMenuActionResourceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysMenuActionResourceQuery) First ¶
func (smarq *SysMenuActionResourceQuery) First(ctx context.Context) (*SysMenuActionResource, error)
First returns the first SysMenuActionResource entity from the query. Returns a *NotFoundError when no SysMenuActionResource was found.
func (*SysMenuActionResourceQuery) FirstID ¶
func (smarq *SysMenuActionResourceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysMenuActionResource ID from the query. Returns a *NotFoundError when no SysMenuActionResource ID was found.
func (*SysMenuActionResourceQuery) FirstIDX ¶
func (smarq *SysMenuActionResourceQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysMenuActionResourceQuery) FirstX ¶
func (smarq *SysMenuActionResourceQuery) FirstX(ctx context.Context) *SysMenuActionResource
FirstX is like First, but panics if an error occurs.
func (*SysMenuActionResourceQuery) GroupBy ¶
func (smarq *SysMenuActionResourceQuery) GroupBy(field string, fields ...string) *SysMenuActionResourceGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysMenuActionResource.Query(). GroupBy(sysmenuactionresource.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysMenuActionResourceQuery) IDs ¶
func (smarq *SysMenuActionResourceQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysMenuActionResource IDs.
func (*SysMenuActionResourceQuery) IDsX ¶
func (smarq *SysMenuActionResourceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysMenuActionResourceQuery) Limit ¶
func (smarq *SysMenuActionResourceQuery) Limit(limit int) *SysMenuActionResourceQuery
Limit adds a limit step to the query.
func (*SysMenuActionResourceQuery) Offset ¶
func (smarq *SysMenuActionResourceQuery) Offset(offset int) *SysMenuActionResourceQuery
Offset adds an offset step to the query.
func (*SysMenuActionResourceQuery) Only ¶
func (smarq *SysMenuActionResourceQuery) Only(ctx context.Context) (*SysMenuActionResource, error)
Only returns a single SysMenuActionResource entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysMenuActionResource entity is not found. Returns a *NotFoundError when no SysMenuActionResource entities are found.
func (*SysMenuActionResourceQuery) OnlyID ¶
func (smarq *SysMenuActionResourceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysMenuActionResource ID in the query. Returns a *NotSingularError when exactly one SysMenuActionResource ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysMenuActionResourceQuery) OnlyIDX ¶
func (smarq *SysMenuActionResourceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysMenuActionResourceQuery) OnlyX ¶
func (smarq *SysMenuActionResourceQuery) OnlyX(ctx context.Context) *SysMenuActionResource
OnlyX is like Only, but panics if an error occurs.
func (*SysMenuActionResourceQuery) Order ¶
func (smarq *SysMenuActionResourceQuery) Order(o ...OrderFunc) *SysMenuActionResourceQuery
Order adds an order step to the query.
func (*SysMenuActionResourceQuery) Select ¶
func (smarq *SysMenuActionResourceQuery) Select(field string, fields ...string) *SysMenuActionResourceSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysMenuActionResource.Query(). Select(sysmenuactionresource.FieldIsDel). Scan(ctx, &v)
func (*SysMenuActionResourceQuery) Unique ¶
func (smarq *SysMenuActionResourceQuery) Unique(unique bool) *SysMenuActionResourceQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysMenuActionResourceQuery) Where ¶
func (smarq *SysMenuActionResourceQuery) Where(ps ...predicate.SysMenuActionResource) *SysMenuActionResourceQuery
Where adds a new predicate for the SysMenuActionResourceQuery builder.
type SysMenuActionResourceSelect ¶
type SysMenuActionResourceSelect struct { *SysMenuActionResourceQuery // contains filtered or unexported fields }
SysMenuActionResourceSelect is the builder for selecting fields of SysMenuActionResource entities.
func (*SysMenuActionResourceSelect) Bool ¶
func (smars *SysMenuActionResourceSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) BoolX ¶
func (smars *SysMenuActionResourceSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Bools ¶
func (smars *SysMenuActionResourceSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) BoolsX ¶
func (smars *SysMenuActionResourceSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Float64 ¶
func (smars *SysMenuActionResourceSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) Float64X ¶
func (smars *SysMenuActionResourceSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Float64s ¶
func (smars *SysMenuActionResourceSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) Float64sX ¶
func (smars *SysMenuActionResourceSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Int ¶
func (smars *SysMenuActionResourceSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) IntX ¶
func (smars *SysMenuActionResourceSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Ints ¶
func (smars *SysMenuActionResourceSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) IntsX ¶
func (smars *SysMenuActionResourceSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuActionResourceSelect) Scan ¶
func (smars *SysMenuActionResourceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysMenuActionResourceSelect) ScanX ¶
func (smars *SysMenuActionResourceSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuActionResourceSelect) String ¶
func (smars *SysMenuActionResourceSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysMenuActionResourceSelect) StringX ¶
func (smars *SysMenuActionResourceSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuActionResourceUpdate ¶
type SysMenuActionResourceUpdate struct {
// contains filtered or unexported fields
}
SysMenuActionResourceUpdate is the builder for updating SysMenuActionResource entities.
func (*SysMenuActionResourceUpdate) AddSort ¶
func (smaru *SysMenuActionResourceUpdate) AddSort(i int32) *SysMenuActionResourceUpdate
AddSort adds i to the "sort" field.
func (*SysMenuActionResourceUpdate) AddStatus ¶
func (smaru *SysMenuActionResourceUpdate) AddStatus(i int16) *SysMenuActionResourceUpdate
AddStatus adds i to the "status" field.
func (*SysMenuActionResourceUpdate) ClearDeletedAt ¶
func (smaru *SysMenuActionResourceUpdate) ClearDeletedAt() *SysMenuActionResourceUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionResourceUpdate) Exec ¶
func (smaru *SysMenuActionResourceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysMenuActionResourceUpdate) ExecX ¶
func (smaru *SysMenuActionResourceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionResourceUpdate) Mutation ¶
func (smaru *SysMenuActionResourceUpdate) Mutation() *SysMenuActionResourceMutation
Mutation returns the SysMenuActionResourceMutation object of the builder.
func (*SysMenuActionResourceUpdate) Save ¶
func (smaru *SysMenuActionResourceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysMenuActionResourceUpdate) SaveX ¶
func (smaru *SysMenuActionResourceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysMenuActionResourceUpdate) SetActionID ¶
func (smaru *SysMenuActionResourceUpdate) SetActionID(s string) *SysMenuActionResourceUpdate
SetActionID sets the "action_id" field.
func (*SysMenuActionResourceUpdate) SetDeletedAt ¶
func (smaru *SysMenuActionResourceUpdate) SetDeletedAt(t time.Time) *SysMenuActionResourceUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionResourceUpdate) SetInput ¶
func (u *SysMenuActionResourceUpdate) SetInput(i UpdateSysMenuActionResourceInput) *SysMenuActionResourceUpdate
SetInput applies the change-set in the UpdateSysMenuActionResourceInput on the update builder.
func (*SysMenuActionResourceUpdate) SetIsDel ¶
func (smaru *SysMenuActionResourceUpdate) SetIsDel(b bool) *SysMenuActionResourceUpdate
SetIsDel sets the "is_del" field.
func (*SysMenuActionResourceUpdate) SetMemo ¶
func (smaru *SysMenuActionResourceUpdate) SetMemo(s string) *SysMenuActionResourceUpdate
SetMemo sets the "memo" field.
func (*SysMenuActionResourceUpdate) SetMethod ¶
func (smaru *SysMenuActionResourceUpdate) SetMethod(s string) *SysMenuActionResourceUpdate
SetMethod sets the "method" field.
func (*SysMenuActionResourceUpdate) SetNillableDeletedAt ¶
func (smaru *SysMenuActionResourceUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionResourceUpdate) SetNillableIsDel ¶
func (smaru *SysMenuActionResourceUpdate) SetNillableIsDel(b *bool) *SysMenuActionResourceUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionResourceUpdate) SetNillableMemo ¶
func (smaru *SysMenuActionResourceUpdate) SetNillableMemo(s *string) *SysMenuActionResourceUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionResourceUpdate) SetNillableSort ¶
func (smaru *SysMenuActionResourceUpdate) SetNillableSort(i *int32) *SysMenuActionResourceUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionResourceUpdate) SetNillableStatus ¶
func (smaru *SysMenuActionResourceUpdate) SetNillableStatus(i *int16) *SysMenuActionResourceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionResourceUpdate) SetPath ¶
func (smaru *SysMenuActionResourceUpdate) SetPath(s string) *SysMenuActionResourceUpdate
SetPath sets the "path" field.
func (*SysMenuActionResourceUpdate) SetSort ¶
func (smaru *SysMenuActionResourceUpdate) SetSort(i int32) *SysMenuActionResourceUpdate
SetSort sets the "sort" field.
func (*SysMenuActionResourceUpdate) SetStatus ¶
func (smaru *SysMenuActionResourceUpdate) SetStatus(i int16) *SysMenuActionResourceUpdate
SetStatus sets the "status" field.
func (*SysMenuActionResourceUpdate) SetUpdatedAt ¶
func (smaru *SysMenuActionResourceUpdate) SetUpdatedAt(t time.Time) *SysMenuActionResourceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuActionResourceUpdate) Where ¶
func (smaru *SysMenuActionResourceUpdate) Where(ps ...predicate.SysMenuActionResource) *SysMenuActionResourceUpdate
Where adds a new predicate for the SysMenuActionResourceUpdate builder.
type SysMenuActionResourceUpdateOne ¶
type SysMenuActionResourceUpdateOne struct {
// contains filtered or unexported fields
}
SysMenuActionResourceUpdateOne is the builder for updating a single SysMenuActionResource entity.
func (*SysMenuActionResourceUpdateOne) AddSort ¶
func (smaruo *SysMenuActionResourceUpdateOne) AddSort(i int32) *SysMenuActionResourceUpdateOne
AddSort adds i to the "sort" field.
func (*SysMenuActionResourceUpdateOne) AddStatus ¶
func (smaruo *SysMenuActionResourceUpdateOne) AddStatus(i int16) *SysMenuActionResourceUpdateOne
AddStatus adds i to the "status" field.
func (*SysMenuActionResourceUpdateOne) ClearDeletedAt ¶
func (smaruo *SysMenuActionResourceUpdateOne) ClearDeletedAt() *SysMenuActionResourceUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionResourceUpdateOne) Exec ¶
func (smaruo *SysMenuActionResourceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysMenuActionResourceUpdateOne) ExecX ¶
func (smaruo *SysMenuActionResourceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionResourceUpdateOne) Mutation ¶
func (smaruo *SysMenuActionResourceUpdateOne) Mutation() *SysMenuActionResourceMutation
Mutation returns the SysMenuActionResourceMutation object of the builder.
func (*SysMenuActionResourceUpdateOne) Save ¶
func (smaruo *SysMenuActionResourceUpdateOne) Save(ctx context.Context) (*SysMenuActionResource, error)
Save executes the query and returns the updated SysMenuActionResource entity.
func (*SysMenuActionResourceUpdateOne) SaveX ¶
func (smaruo *SysMenuActionResourceUpdateOne) SaveX(ctx context.Context) *SysMenuActionResource
SaveX is like Save, but panics if an error occurs.
func (*SysMenuActionResourceUpdateOne) Select ¶
func (smaruo *SysMenuActionResourceUpdateOne) Select(field string, fields ...string) *SysMenuActionResourceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysMenuActionResourceUpdateOne) SetActionID ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetActionID(s string) *SysMenuActionResourceUpdateOne
SetActionID sets the "action_id" field.
func (*SysMenuActionResourceUpdateOne) SetDeletedAt ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetDeletedAt(t time.Time) *SysMenuActionResourceUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionResourceUpdateOne) SetInput ¶
func (u *SysMenuActionResourceUpdateOne) SetInput(i UpdateSysMenuActionResourceInput) *SysMenuActionResourceUpdateOne
SetInput applies the change-set in the UpdateSysMenuActionResourceInput on the update-one builder.
func (*SysMenuActionResourceUpdateOne) SetIsDel ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetIsDel(b bool) *SysMenuActionResourceUpdateOne
SetIsDel sets the "is_del" field.
func (*SysMenuActionResourceUpdateOne) SetMemo ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetMemo(s string) *SysMenuActionResourceUpdateOne
SetMemo sets the "memo" field.
func (*SysMenuActionResourceUpdateOne) SetMethod ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetMethod(s string) *SysMenuActionResourceUpdateOne
SetMethod sets the "method" field.
func (*SysMenuActionResourceUpdateOne) SetNillableDeletedAt ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuActionResourceUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionResourceUpdateOne) SetNillableIsDel ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetNillableIsDel(b *bool) *SysMenuActionResourceUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionResourceUpdateOne) SetNillableMemo ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetNillableMemo(s *string) *SysMenuActionResourceUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionResourceUpdateOne) SetNillableSort ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetNillableSort(i *int32) *SysMenuActionResourceUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionResourceUpdateOne) SetNillableStatus ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetNillableStatus(i *int16) *SysMenuActionResourceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionResourceUpdateOne) SetPath ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetPath(s string) *SysMenuActionResourceUpdateOne
SetPath sets the "path" field.
func (*SysMenuActionResourceUpdateOne) SetSort ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetSort(i int32) *SysMenuActionResourceUpdateOne
SetSort sets the "sort" field.
func (*SysMenuActionResourceUpdateOne) SetStatus ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetStatus(i int16) *SysMenuActionResourceUpdateOne
SetStatus sets the "status" field.
func (*SysMenuActionResourceUpdateOne) SetUpdatedAt ¶
func (smaruo *SysMenuActionResourceUpdateOne) SetUpdatedAt(t time.Time) *SysMenuActionResourceUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysMenuActionResources ¶
type SysMenuActionResources []*SysMenuActionResource
SysMenuActionResources is a parsable slice of SysMenuActionResource.
type SysMenuActionSelect ¶
type SysMenuActionSelect struct { *SysMenuActionQuery // contains filtered or unexported fields }
SysMenuActionSelect is the builder for selecting fields of SysMenuAction entities.
func (*SysMenuActionSelect) Bool ¶
func (smas *SysMenuActionSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) BoolX ¶
func (smas *SysMenuActionSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuActionSelect) Bools ¶
func (smas *SysMenuActionSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) BoolsX ¶
func (smas *SysMenuActionSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuActionSelect) Float64 ¶
func (smas *SysMenuActionSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) Float64X ¶
func (smas *SysMenuActionSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuActionSelect) Float64s ¶
func (smas *SysMenuActionSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) Float64sX ¶
func (smas *SysMenuActionSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuActionSelect) Int ¶
func (smas *SysMenuActionSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) IntX ¶
func (smas *SysMenuActionSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuActionSelect) Ints ¶
func (smas *SysMenuActionSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) IntsX ¶
func (smas *SysMenuActionSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuActionSelect) Scan ¶
func (smas *SysMenuActionSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysMenuActionSelect) ScanX ¶
func (smas *SysMenuActionSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuActionSelect) String ¶
func (smas *SysMenuActionSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysMenuActionSelect) StringX ¶
func (smas *SysMenuActionSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuActionUpdate ¶
type SysMenuActionUpdate struct {
// contains filtered or unexported fields
}
SysMenuActionUpdate is the builder for updating SysMenuAction entities.
func (*SysMenuActionUpdate) AddSort ¶
func (smau *SysMenuActionUpdate) AddSort(i int32) *SysMenuActionUpdate
AddSort adds i to the "sort" field.
func (*SysMenuActionUpdate) AddStatus ¶
func (smau *SysMenuActionUpdate) AddStatus(i int16) *SysMenuActionUpdate
AddStatus adds i to the "status" field.
func (*SysMenuActionUpdate) ClearDeletedAt ¶
func (smau *SysMenuActionUpdate) ClearDeletedAt() *SysMenuActionUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionUpdate) Exec ¶
func (smau *SysMenuActionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysMenuActionUpdate) ExecX ¶
func (smau *SysMenuActionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionUpdate) Mutation ¶
func (smau *SysMenuActionUpdate) Mutation() *SysMenuActionMutation
Mutation returns the SysMenuActionMutation object of the builder.
func (*SysMenuActionUpdate) Save ¶
func (smau *SysMenuActionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysMenuActionUpdate) SaveX ¶
func (smau *SysMenuActionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysMenuActionUpdate) SetCode ¶
func (smau *SysMenuActionUpdate) SetCode(s string) *SysMenuActionUpdate
SetCode sets the "code" field.
func (*SysMenuActionUpdate) SetDeletedAt ¶
func (smau *SysMenuActionUpdate) SetDeletedAt(t time.Time) *SysMenuActionUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionUpdate) SetInput ¶
func (u *SysMenuActionUpdate) SetInput(i UpdateSysMenuActionInput) *SysMenuActionUpdate
SetInput applies the change-set in the UpdateSysMenuActionInput on the update builder.
func (*SysMenuActionUpdate) SetIsDel ¶
func (smau *SysMenuActionUpdate) SetIsDel(b bool) *SysMenuActionUpdate
SetIsDel sets the "is_del" field.
func (*SysMenuActionUpdate) SetMemo ¶
func (smau *SysMenuActionUpdate) SetMemo(s string) *SysMenuActionUpdate
SetMemo sets the "memo" field.
func (*SysMenuActionUpdate) SetMenuID ¶
func (smau *SysMenuActionUpdate) SetMenuID(s string) *SysMenuActionUpdate
SetMenuID sets the "menu_id" field.
func (*SysMenuActionUpdate) SetName ¶
func (smau *SysMenuActionUpdate) SetName(s string) *SysMenuActionUpdate
SetName sets the "name" field.
func (*SysMenuActionUpdate) SetNillableDeletedAt ¶
func (smau *SysMenuActionUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuActionUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionUpdate) SetNillableIsDel ¶
func (smau *SysMenuActionUpdate) SetNillableIsDel(b *bool) *SysMenuActionUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionUpdate) SetNillableMemo ¶
func (smau *SysMenuActionUpdate) SetNillableMemo(s *string) *SysMenuActionUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionUpdate) SetNillableSort ¶
func (smau *SysMenuActionUpdate) SetNillableSort(i *int32) *SysMenuActionUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionUpdate) SetNillableStatus ¶
func (smau *SysMenuActionUpdate) SetNillableStatus(i *int16) *SysMenuActionUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionUpdate) SetSort ¶
func (smau *SysMenuActionUpdate) SetSort(i int32) *SysMenuActionUpdate
SetSort sets the "sort" field.
func (*SysMenuActionUpdate) SetStatus ¶
func (smau *SysMenuActionUpdate) SetStatus(i int16) *SysMenuActionUpdate
SetStatus sets the "status" field.
func (*SysMenuActionUpdate) SetUpdatedAt ¶
func (smau *SysMenuActionUpdate) SetUpdatedAt(t time.Time) *SysMenuActionUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuActionUpdate) Where ¶
func (smau *SysMenuActionUpdate) Where(ps ...predicate.SysMenuAction) *SysMenuActionUpdate
Where adds a new predicate for the SysMenuActionUpdate builder.
type SysMenuActionUpdateOne ¶
type SysMenuActionUpdateOne struct {
// contains filtered or unexported fields
}
SysMenuActionUpdateOne is the builder for updating a single SysMenuAction entity.
func (*SysMenuActionUpdateOne) AddSort ¶
func (smauo *SysMenuActionUpdateOne) AddSort(i int32) *SysMenuActionUpdateOne
AddSort adds i to the "sort" field.
func (*SysMenuActionUpdateOne) AddStatus ¶
func (smauo *SysMenuActionUpdateOne) AddStatus(i int16) *SysMenuActionUpdateOne
AddStatus adds i to the "status" field.
func (*SysMenuActionUpdateOne) ClearDeletedAt ¶
func (smauo *SysMenuActionUpdateOne) ClearDeletedAt() *SysMenuActionUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuActionUpdateOne) Exec ¶
func (smauo *SysMenuActionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysMenuActionUpdateOne) ExecX ¶
func (smauo *SysMenuActionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuActionUpdateOne) Mutation ¶
func (smauo *SysMenuActionUpdateOne) Mutation() *SysMenuActionMutation
Mutation returns the SysMenuActionMutation object of the builder.
func (*SysMenuActionUpdateOne) Save ¶
func (smauo *SysMenuActionUpdateOne) Save(ctx context.Context) (*SysMenuAction, error)
Save executes the query and returns the updated SysMenuAction entity.
func (*SysMenuActionUpdateOne) SaveX ¶
func (smauo *SysMenuActionUpdateOne) SaveX(ctx context.Context) *SysMenuAction
SaveX is like Save, but panics if an error occurs.
func (*SysMenuActionUpdateOne) Select ¶
func (smauo *SysMenuActionUpdateOne) Select(field string, fields ...string) *SysMenuActionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysMenuActionUpdateOne) SetCode ¶
func (smauo *SysMenuActionUpdateOne) SetCode(s string) *SysMenuActionUpdateOne
SetCode sets the "code" field.
func (*SysMenuActionUpdateOne) SetDeletedAt ¶
func (smauo *SysMenuActionUpdateOne) SetDeletedAt(t time.Time) *SysMenuActionUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuActionUpdateOne) SetInput ¶
func (u *SysMenuActionUpdateOne) SetInput(i UpdateSysMenuActionInput) *SysMenuActionUpdateOne
SetInput applies the change-set in the UpdateSysMenuActionInput on the update-one builder.
func (*SysMenuActionUpdateOne) SetIsDel ¶
func (smauo *SysMenuActionUpdateOne) SetIsDel(b bool) *SysMenuActionUpdateOne
SetIsDel sets the "is_del" field.
func (*SysMenuActionUpdateOne) SetMemo ¶
func (smauo *SysMenuActionUpdateOne) SetMemo(s string) *SysMenuActionUpdateOne
SetMemo sets the "memo" field.
func (*SysMenuActionUpdateOne) SetMenuID ¶
func (smauo *SysMenuActionUpdateOne) SetMenuID(s string) *SysMenuActionUpdateOne
SetMenuID sets the "menu_id" field.
func (*SysMenuActionUpdateOne) SetName ¶
func (smauo *SysMenuActionUpdateOne) SetName(s string) *SysMenuActionUpdateOne
SetName sets the "name" field.
func (*SysMenuActionUpdateOne) SetNillableDeletedAt ¶
func (smauo *SysMenuActionUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuActionUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuActionUpdateOne) SetNillableIsDel ¶
func (smauo *SysMenuActionUpdateOne) SetNillableIsDel(b *bool) *SysMenuActionUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuActionUpdateOne) SetNillableMemo ¶
func (smauo *SysMenuActionUpdateOne) SetNillableMemo(s *string) *SysMenuActionUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuActionUpdateOne) SetNillableSort ¶
func (smauo *SysMenuActionUpdateOne) SetNillableSort(i *int32) *SysMenuActionUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuActionUpdateOne) SetNillableStatus ¶
func (smauo *SysMenuActionUpdateOne) SetNillableStatus(i *int16) *SysMenuActionUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuActionUpdateOne) SetSort ¶
func (smauo *SysMenuActionUpdateOne) SetSort(i int32) *SysMenuActionUpdateOne
SetSort sets the "sort" field.
func (*SysMenuActionUpdateOne) SetStatus ¶
func (smauo *SysMenuActionUpdateOne) SetStatus(i int16) *SysMenuActionUpdateOne
SetStatus sets the "status" field.
func (*SysMenuActionUpdateOne) SetUpdatedAt ¶
func (smauo *SysMenuActionUpdateOne) SetUpdatedAt(t time.Time) *SysMenuActionUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysMenuActions ¶
type SysMenuActions []*SysMenuAction
SysMenuActions is a parsable slice of SysMenuAction.
type SysMenuClient ¶
type SysMenuClient struct {
// contains filtered or unexported fields
}
SysMenuClient is a client for the SysMenu schema.
func NewSysMenuClient ¶
func NewSysMenuClient(c config) *SysMenuClient
NewSysMenuClient returns a client for the SysMenu from the given config.
func (*SysMenuClient) Create ¶
func (c *SysMenuClient) Create() *SysMenuCreate
Create returns a create builder for SysMenu.
func (*SysMenuClient) CreateBulk ¶
func (c *SysMenuClient) CreateBulk(builders ...*SysMenuCreate) *SysMenuCreateBulk
CreateBulk returns a builder for creating a bulk of SysMenu entities.
func (*SysMenuClient) Delete ¶
func (c *SysMenuClient) Delete() *SysMenuDelete
Delete returns a delete builder for SysMenu.
func (*SysMenuClient) DeleteOne ¶
func (c *SysMenuClient) DeleteOne(sm *SysMenu) *SysMenuDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysMenuClient) DeleteOneID ¶
func (c *SysMenuClient) DeleteOneID(id string) *SysMenuDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysMenuClient) GetX ¶
func (c *SysMenuClient) GetX(ctx context.Context, id string) *SysMenu
GetX is like Get, but panics if an error occurs.
func (*SysMenuClient) Hooks ¶
func (c *SysMenuClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysMenuClient) Query ¶
func (c *SysMenuClient) Query() *SysMenuQuery
Query returns a query builder for SysMenu.
func (*SysMenuClient) Update ¶
func (c *SysMenuClient) Update() *SysMenuUpdate
Update returns an update builder for SysMenu.
func (*SysMenuClient) UpdateOne ¶
func (c *SysMenuClient) UpdateOne(sm *SysMenu) *SysMenuUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysMenuClient) UpdateOneID ¶
func (c *SysMenuClient) UpdateOneID(id string) *SysMenuUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysMenuClient) Use ¶
func (c *SysMenuClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysmenu.Hooks(f(g(h())))`.
type SysMenuCreate ¶
type SysMenuCreate struct {
// contains filtered or unexported fields
}
SysMenuCreate is the builder for creating a SysMenu entity.
func (*SysMenuCreate) Mutation ¶
func (smc *SysMenuCreate) Mutation() *SysMenuMutation
Mutation returns the SysMenuMutation object of the builder.
func (*SysMenuCreate) Save ¶
func (smc *SysMenuCreate) Save(ctx context.Context) (*SysMenu, error)
Save creates the SysMenu in the database.
func (*SysMenuCreate) SaveX ¶
func (smc *SysMenuCreate) SaveX(ctx context.Context) *SysMenu
SaveX calls Save and panics if Save returns an error.
func (*SysMenuCreate) SetCreatedAt ¶
func (smc *SysMenuCreate) SetCreatedAt(t time.Time) *SysMenuCreate
SetCreatedAt sets the "created_at" field.
func (*SysMenuCreate) SetDeletedAt ¶
func (smc *SysMenuCreate) SetDeletedAt(t time.Time) *SysMenuCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuCreate) SetID ¶
func (smc *SysMenuCreate) SetID(s string) *SysMenuCreate
SetID sets the "id" field.
func (*SysMenuCreate) SetIcon ¶
func (smc *SysMenuCreate) SetIcon(s string) *SysMenuCreate
SetIcon sets the "icon" field.
func (*SysMenuCreate) SetInput ¶
func (c *SysMenuCreate) SetInput(i CreateSysMenuInput) *SysMenuCreate
SetInput applies the change-set in the CreateSysMenuInput on the create builder.
func (*SysMenuCreate) SetIsDel ¶
func (smc *SysMenuCreate) SetIsDel(b bool) *SysMenuCreate
SetIsDel sets the "is_del" field.
func (*SysMenuCreate) SetIsShow ¶
func (smc *SysMenuCreate) SetIsShow(b bool) *SysMenuCreate
SetIsShow sets the "is_show" field.
func (*SysMenuCreate) SetMemo ¶
func (smc *SysMenuCreate) SetMemo(s string) *SysMenuCreate
SetMemo sets the "memo" field.
func (*SysMenuCreate) SetName ¶
func (smc *SysMenuCreate) SetName(s string) *SysMenuCreate
SetName sets the "name" field.
func (*SysMenuCreate) SetNillableCreatedAt ¶
func (smc *SysMenuCreate) SetNillableCreatedAt(t *time.Time) *SysMenuCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysMenuCreate) SetNillableDeletedAt ¶
func (smc *SysMenuCreate) SetNillableDeletedAt(t *time.Time) *SysMenuCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuCreate) SetNillableID ¶
func (smc *SysMenuCreate) SetNillableID(s *string) *SysMenuCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysMenuCreate) SetNillableIsDel ¶
func (smc *SysMenuCreate) SetNillableIsDel(b *bool) *SysMenuCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuCreate) SetNillableIsShow ¶
func (smc *SysMenuCreate) SetNillableIsShow(b *bool) *SysMenuCreate
SetNillableIsShow sets the "is_show" field if the given value is not nil.
func (*SysMenuCreate) SetNillableMemo ¶
func (smc *SysMenuCreate) SetNillableMemo(s *string) *SysMenuCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuCreate) SetNillableParentID ¶
func (smc *SysMenuCreate) SetNillableParentID(s *string) *SysMenuCreate
SetNillableParentID sets the "parent_id" field if the given value is not nil.
func (*SysMenuCreate) SetNillableParentPath ¶
func (smc *SysMenuCreate) SetNillableParentPath(s *string) *SysMenuCreate
SetNillableParentPath sets the "parent_path" field if the given value is not nil.
func (*SysMenuCreate) SetNillableSort ¶
func (smc *SysMenuCreate) SetNillableSort(i *int32) *SysMenuCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuCreate) SetNillableStatus ¶
func (smc *SysMenuCreate) SetNillableStatus(i *int16) *SysMenuCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuCreate) SetNillableUpdatedAt ¶
func (smc *SysMenuCreate) SetNillableUpdatedAt(t *time.Time) *SysMenuCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysMenuCreate) SetParentID ¶
func (smc *SysMenuCreate) SetParentID(s string) *SysMenuCreate
SetParentID sets the "parent_id" field.
func (*SysMenuCreate) SetParentPath ¶
func (smc *SysMenuCreate) SetParentPath(s string) *SysMenuCreate
SetParentPath sets the "parent_path" field.
func (*SysMenuCreate) SetRouter ¶
func (smc *SysMenuCreate) SetRouter(s string) *SysMenuCreate
SetRouter sets the "router" field.
func (*SysMenuCreate) SetSort ¶
func (smc *SysMenuCreate) SetSort(i int32) *SysMenuCreate
SetSort sets the "sort" field.
func (*SysMenuCreate) SetStatus ¶
func (smc *SysMenuCreate) SetStatus(i int16) *SysMenuCreate
SetStatus sets the "status" field.
func (*SysMenuCreate) SetUpdatedAt ¶
func (smc *SysMenuCreate) SetUpdatedAt(t time.Time) *SysMenuCreate
SetUpdatedAt sets the "updated_at" field.
type SysMenuCreateBulk ¶
type SysMenuCreateBulk struct {
// contains filtered or unexported fields
}
SysMenuCreateBulk is the builder for creating many SysMenu entities in bulk.
type SysMenuDelete ¶
type SysMenuDelete struct {
// contains filtered or unexported fields
}
SysMenuDelete is the builder for deleting a SysMenu entity.
func (*SysMenuDelete) Exec ¶
func (smd *SysMenuDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysMenuDelete) ExecX ¶
func (smd *SysMenuDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuDelete) Where ¶
func (smd *SysMenuDelete) Where(ps ...predicate.SysMenu) *SysMenuDelete
Where adds a new predicate to the SysMenuDelete builder.
type SysMenuDeleteOne ¶
type SysMenuDeleteOne struct {
// contains filtered or unexported fields
}
SysMenuDeleteOne is the builder for deleting a single SysMenu entity.
func (*SysMenuDeleteOne) Exec ¶
func (smdo *SysMenuDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysMenuDeleteOne) ExecX ¶
func (smdo *SysMenuDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysMenuGroupBy ¶
type SysMenuGroupBy struct {
// contains filtered or unexported fields
}
SysMenuGroupBy is the group-by builder for SysMenu entities.
func (*SysMenuGroupBy) Aggregate ¶
func (smgb *SysMenuGroupBy) Aggregate(fns ...AggregateFunc) *SysMenuGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysMenuGroupBy) Bool ¶
func (smgb *SysMenuGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) BoolX ¶
func (smgb *SysMenuGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuGroupBy) Bools ¶
func (smgb *SysMenuGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) BoolsX ¶
func (smgb *SysMenuGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuGroupBy) Float64 ¶
func (smgb *SysMenuGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) Float64X ¶
func (smgb *SysMenuGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuGroupBy) Float64s ¶
func (smgb *SysMenuGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) Float64sX ¶
func (smgb *SysMenuGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuGroupBy) Int ¶
func (smgb *SysMenuGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) IntX ¶
func (smgb *SysMenuGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuGroupBy) Ints ¶
func (smgb *SysMenuGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) IntsX ¶
func (smgb *SysMenuGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuGroupBy) Scan ¶
func (smgb *SysMenuGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysMenuGroupBy) ScanX ¶
func (smgb *SysMenuGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuGroupBy) String ¶
func (smgb *SysMenuGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysMenuGroupBy) StringX ¶
func (smgb *SysMenuGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuMutation ¶
type SysMenuMutation struct {
// contains filtered or unexported fields
}
SysMenuMutation represents an operation that mutates the SysMenu nodes in the graph.
func (*SysMenuMutation) AddField ¶
func (m *SysMenuMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuMutation) AddSort ¶
func (m *SysMenuMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysMenuMutation) AddStatus ¶
func (m *SysMenuMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysMenuMutation) AddedEdges ¶
func (m *SysMenuMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysMenuMutation) AddedField ¶
func (m *SysMenuMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuMutation) AddedFields ¶
func (m *SysMenuMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysMenuMutation) AddedIDs ¶
func (m *SysMenuMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysMenuMutation) AddedSort ¶
func (m *SysMenuMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysMenuMutation) AddedStatus ¶
func (m *SysMenuMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysMenuMutation) ClearDeletedAt ¶
func (m *SysMenuMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuMutation) ClearEdge ¶
func (m *SysMenuMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysMenuMutation) ClearField ¶
func (m *SysMenuMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuMutation) ClearParentID ¶
func (m *SysMenuMutation) ClearParentID()
ClearParentID clears the value of the "parent_id" field.
func (*SysMenuMutation) ClearParentPath ¶
func (m *SysMenuMutation) ClearParentPath()
ClearParentPath clears the value of the "parent_path" field.
func (*SysMenuMutation) ClearedEdges ¶
func (m *SysMenuMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysMenuMutation) ClearedFields ¶
func (m *SysMenuMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysMenuMutation) Client ¶
func (m SysMenuMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysMenuMutation) CreatedAt ¶
func (m *SysMenuMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysMenuMutation) DeletedAt ¶
func (m *SysMenuMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysMenuMutation) DeletedAtCleared ¶
func (m *SysMenuMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysMenuMutation) EdgeCleared ¶
func (m *SysMenuMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysMenuMutation) Field ¶
func (m *SysMenuMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysMenuMutation) FieldCleared ¶
func (m *SysMenuMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysMenuMutation) Fields ¶
func (m *SysMenuMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysMenuMutation) ID ¶
func (m *SysMenuMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysMenuMutation) Icon ¶
func (m *SysMenuMutation) Icon() (r string, exists bool)
Icon returns the value of the "icon" field in the mutation.
func (*SysMenuMutation) IsDel ¶
func (m *SysMenuMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysMenuMutation) IsShow ¶
func (m *SysMenuMutation) IsShow() (r bool, exists bool)
IsShow returns the value of the "is_show" field in the mutation.
func (*SysMenuMutation) Memo ¶
func (m *SysMenuMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysMenuMutation) Name ¶
func (m *SysMenuMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SysMenuMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysMenuMutation) OldIcon ¶
func (m *SysMenuMutation) OldIcon(ctx context.Context) (v string, err error)
OldIcon returns the old "icon" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldIsDel ¶
func (m *SysMenuMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldIsShow ¶
func (m *SysMenuMutation) OldIsShow(ctx context.Context) (v bool, err error)
OldIsShow returns the old "is_show" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldMemo ¶
func (m *SysMenuMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldName ¶
func (m *SysMenuMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldParentID ¶
func (m *SysMenuMutation) OldParentID(ctx context.Context) (v *string, err error)
OldParentID returns the old "parent_id" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldParentPath ¶
func (m *SysMenuMutation) OldParentPath(ctx context.Context) (v *string, err error)
OldParentPath returns the old "parent_path" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldRouter ¶
func (m *SysMenuMutation) OldRouter(ctx context.Context) (v string, err error)
OldRouter returns the old "router" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldSort ¶
func (m *SysMenuMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldStatus ¶
func (m *SysMenuMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysMenu entity. If the SysMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysMenuMutation) ParentID ¶
func (m *SysMenuMutation) ParentID() (r string, exists bool)
ParentID returns the value of the "parent_id" field in the mutation.
func (*SysMenuMutation) ParentIDCleared ¶
func (m *SysMenuMutation) ParentIDCleared() bool
ParentIDCleared returns if the "parent_id" field was cleared in this mutation.
func (*SysMenuMutation) ParentPath ¶
func (m *SysMenuMutation) ParentPath() (r string, exists bool)
ParentPath returns the value of the "parent_path" field in the mutation.
func (*SysMenuMutation) ParentPathCleared ¶
func (m *SysMenuMutation) ParentPathCleared() bool
ParentPathCleared returns if the "parent_path" field was cleared in this mutation.
func (*SysMenuMutation) RemovedEdges ¶
func (m *SysMenuMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysMenuMutation) RemovedIDs ¶
func (m *SysMenuMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysMenuMutation) ResetCreatedAt ¶
func (m *SysMenuMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysMenuMutation) ResetDeletedAt ¶
func (m *SysMenuMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysMenuMutation) ResetEdge ¶
func (m *SysMenuMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysMenuMutation) ResetField ¶
func (m *SysMenuMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysMenuMutation) ResetIcon ¶
func (m *SysMenuMutation) ResetIcon()
ResetIcon resets all changes to the "icon" field.
func (*SysMenuMutation) ResetIsDel ¶
func (m *SysMenuMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysMenuMutation) ResetIsShow ¶
func (m *SysMenuMutation) ResetIsShow()
ResetIsShow resets all changes to the "is_show" field.
func (*SysMenuMutation) ResetMemo ¶
func (m *SysMenuMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysMenuMutation) ResetName ¶
func (m *SysMenuMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SysMenuMutation) ResetParentID ¶
func (m *SysMenuMutation) ResetParentID()
ResetParentID resets all changes to the "parent_id" field.
func (*SysMenuMutation) ResetParentPath ¶
func (m *SysMenuMutation) ResetParentPath()
ResetParentPath resets all changes to the "parent_path" field.
func (*SysMenuMutation) ResetRouter ¶
func (m *SysMenuMutation) ResetRouter()
ResetRouter resets all changes to the "router" field.
func (*SysMenuMutation) ResetSort ¶
func (m *SysMenuMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysMenuMutation) ResetStatus ¶
func (m *SysMenuMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysMenuMutation) ResetUpdatedAt ¶
func (m *SysMenuMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysMenuMutation) Router ¶
func (m *SysMenuMutation) Router() (r string, exists bool)
Router returns the value of the "router" field in the mutation.
func (*SysMenuMutation) SetCreatedAt ¶
func (m *SysMenuMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysMenuMutation) SetDeletedAt ¶
func (m *SysMenuMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuMutation) SetField ¶
func (m *SysMenuMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysMenuMutation) SetID ¶
func (m *SysMenuMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysMenu entities.
func (*SysMenuMutation) SetIcon ¶
func (m *SysMenuMutation) SetIcon(s string)
SetIcon sets the "icon" field.
func (*SysMenuMutation) SetIsDel ¶
func (m *SysMenuMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysMenuMutation) SetIsShow ¶
func (m *SysMenuMutation) SetIsShow(b bool)
SetIsShow sets the "is_show" field.
func (*SysMenuMutation) SetMemo ¶
func (m *SysMenuMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysMenuMutation) SetName ¶
func (m *SysMenuMutation) SetName(s string)
SetName sets the "name" field.
func (*SysMenuMutation) SetParentID ¶
func (m *SysMenuMutation) SetParentID(s string)
SetParentID sets the "parent_id" field.
func (*SysMenuMutation) SetParentPath ¶
func (m *SysMenuMutation) SetParentPath(s string)
SetParentPath sets the "parent_path" field.
func (*SysMenuMutation) SetRouter ¶
func (m *SysMenuMutation) SetRouter(s string)
SetRouter sets the "router" field.
func (*SysMenuMutation) SetSort ¶
func (m *SysMenuMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysMenuMutation) SetStatus ¶
func (m *SysMenuMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysMenuMutation) SetUpdatedAt ¶
func (m *SysMenuMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuMutation) Sort ¶
func (m *SysMenuMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysMenuMutation) Status ¶
func (m *SysMenuMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysMenuMutation) Tx ¶
func (m SysMenuMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysMenuMutation) Type ¶
func (m *SysMenuMutation) Type() string
Type returns the node type of this mutation (SysMenu).
type SysMenuQuery ¶
type SysMenuQuery struct {
// contains filtered or unexported fields
}
SysMenuQuery is the builder for querying SysMenu entities.
func (*SysMenuQuery) All ¶
func (smq *SysMenuQuery) All(ctx context.Context) ([]*SysMenu, error)
All executes the query and returns a list of SysMenus.
func (*SysMenuQuery) AllX ¶
func (smq *SysMenuQuery) AllX(ctx context.Context) []*SysMenu
AllX is like All, but panics if an error occurs.
func (*SysMenuQuery) Clone ¶
func (smq *SysMenuQuery) Clone() *SysMenuQuery
Clone returns a duplicate of the SysMenuQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysMenuQuery) Count ¶
func (smq *SysMenuQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysMenuQuery) CountX ¶
func (smq *SysMenuQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysMenuQuery) Exist ¶
func (smq *SysMenuQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysMenuQuery) ExistX ¶
func (smq *SysMenuQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysMenuQuery) First ¶
func (smq *SysMenuQuery) First(ctx context.Context) (*SysMenu, error)
First returns the first SysMenu entity from the query. Returns a *NotFoundError when no SysMenu was found.
func (*SysMenuQuery) FirstID ¶
func (smq *SysMenuQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysMenu ID from the query. Returns a *NotFoundError when no SysMenu ID was found.
func (*SysMenuQuery) FirstIDX ¶
func (smq *SysMenuQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysMenuQuery) FirstX ¶
func (smq *SysMenuQuery) FirstX(ctx context.Context) *SysMenu
FirstX is like First, but panics if an error occurs.
func (*SysMenuQuery) GroupBy ¶
func (smq *SysMenuQuery) GroupBy(field string, fields ...string) *SysMenuGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysMenu.Query(). GroupBy(sysmenu.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysMenuQuery) IDs ¶
func (smq *SysMenuQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysMenu IDs.
func (*SysMenuQuery) IDsX ¶
func (smq *SysMenuQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysMenuQuery) Limit ¶
func (smq *SysMenuQuery) Limit(limit int) *SysMenuQuery
Limit adds a limit step to the query.
func (*SysMenuQuery) Offset ¶
func (smq *SysMenuQuery) Offset(offset int) *SysMenuQuery
Offset adds an offset step to the query.
func (*SysMenuQuery) Only ¶
func (smq *SysMenuQuery) Only(ctx context.Context) (*SysMenu, error)
Only returns a single SysMenu entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysMenu entity is not found. Returns a *NotFoundError when no SysMenu entities are found.
func (*SysMenuQuery) OnlyID ¶
func (smq *SysMenuQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysMenu ID in the query. Returns a *NotSingularError when exactly one SysMenu ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysMenuQuery) OnlyIDX ¶
func (smq *SysMenuQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysMenuQuery) OnlyX ¶
func (smq *SysMenuQuery) OnlyX(ctx context.Context) *SysMenu
OnlyX is like Only, but panics if an error occurs.
func (*SysMenuQuery) Order ¶
func (smq *SysMenuQuery) Order(o ...OrderFunc) *SysMenuQuery
Order adds an order step to the query.
func (*SysMenuQuery) Select ¶
func (smq *SysMenuQuery) Select(field string, fields ...string) *SysMenuSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysMenu.Query(). Select(sysmenu.FieldIsDel). Scan(ctx, &v)
func (*SysMenuQuery) Unique ¶
func (smq *SysMenuQuery) Unique(unique bool) *SysMenuQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysMenuQuery) Where ¶
func (smq *SysMenuQuery) Where(ps ...predicate.SysMenu) *SysMenuQuery
Where adds a new predicate for the SysMenuQuery builder.
type SysMenuSelect ¶
type SysMenuSelect struct { *SysMenuQuery // contains filtered or unexported fields }
SysMenuSelect is the builder for selecting fields of SysMenu entities.
func (*SysMenuSelect) Bool ¶
func (sms *SysMenuSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) BoolX ¶
func (sms *SysMenuSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysMenuSelect) Bools ¶
func (sms *SysMenuSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) BoolsX ¶
func (sms *SysMenuSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysMenuSelect) Float64 ¶
func (sms *SysMenuSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) Float64X ¶
func (sms *SysMenuSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysMenuSelect) Float64s ¶
func (sms *SysMenuSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) Float64sX ¶
func (sms *SysMenuSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysMenuSelect) Int ¶
func (sms *SysMenuSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) IntX ¶
func (sms *SysMenuSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysMenuSelect) Ints ¶
func (sms *SysMenuSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) IntsX ¶
func (sms *SysMenuSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysMenuSelect) Scan ¶
func (sms *SysMenuSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysMenuSelect) ScanX ¶
func (sms *SysMenuSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysMenuSelect) String ¶
func (sms *SysMenuSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysMenuSelect) StringX ¶
func (sms *SysMenuSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysMenuUpdate ¶
type SysMenuUpdate struct {
// contains filtered or unexported fields
}
SysMenuUpdate is the builder for updating SysMenu entities.
func (*SysMenuUpdate) AddSort ¶
func (smu *SysMenuUpdate) AddSort(i int32) *SysMenuUpdate
AddSort adds i to the "sort" field.
func (*SysMenuUpdate) AddStatus ¶
func (smu *SysMenuUpdate) AddStatus(i int16) *SysMenuUpdate
AddStatus adds i to the "status" field.
func (*SysMenuUpdate) ClearDeletedAt ¶
func (smu *SysMenuUpdate) ClearDeletedAt() *SysMenuUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuUpdate) ClearParentID ¶
func (smu *SysMenuUpdate) ClearParentID() *SysMenuUpdate
ClearParentID clears the value of the "parent_id" field.
func (*SysMenuUpdate) ClearParentPath ¶
func (smu *SysMenuUpdate) ClearParentPath() *SysMenuUpdate
ClearParentPath clears the value of the "parent_path" field.
func (*SysMenuUpdate) Exec ¶
func (smu *SysMenuUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysMenuUpdate) ExecX ¶
func (smu *SysMenuUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuUpdate) Mutation ¶
func (smu *SysMenuUpdate) Mutation() *SysMenuMutation
Mutation returns the SysMenuMutation object of the builder.
func (*SysMenuUpdate) Save ¶
func (smu *SysMenuUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysMenuUpdate) SaveX ¶
func (smu *SysMenuUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysMenuUpdate) SetDeletedAt ¶
func (smu *SysMenuUpdate) SetDeletedAt(t time.Time) *SysMenuUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuUpdate) SetIcon ¶
func (smu *SysMenuUpdate) SetIcon(s string) *SysMenuUpdate
SetIcon sets the "icon" field.
func (*SysMenuUpdate) SetInput ¶
func (u *SysMenuUpdate) SetInput(i UpdateSysMenuInput) *SysMenuUpdate
SetInput applies the change-set in the UpdateSysMenuInput on the update builder.
func (*SysMenuUpdate) SetIsDel ¶
func (smu *SysMenuUpdate) SetIsDel(b bool) *SysMenuUpdate
SetIsDel sets the "is_del" field.
func (*SysMenuUpdate) SetIsShow ¶
func (smu *SysMenuUpdate) SetIsShow(b bool) *SysMenuUpdate
SetIsShow sets the "is_show" field.
func (*SysMenuUpdate) SetMemo ¶
func (smu *SysMenuUpdate) SetMemo(s string) *SysMenuUpdate
SetMemo sets the "memo" field.
func (*SysMenuUpdate) SetName ¶
func (smu *SysMenuUpdate) SetName(s string) *SysMenuUpdate
SetName sets the "name" field.
func (*SysMenuUpdate) SetNillableDeletedAt ¶
func (smu *SysMenuUpdate) SetNillableDeletedAt(t *time.Time) *SysMenuUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableIsDel ¶
func (smu *SysMenuUpdate) SetNillableIsDel(b *bool) *SysMenuUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableIsShow ¶
func (smu *SysMenuUpdate) SetNillableIsShow(b *bool) *SysMenuUpdate
SetNillableIsShow sets the "is_show" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableMemo ¶
func (smu *SysMenuUpdate) SetNillableMemo(s *string) *SysMenuUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableParentID ¶
func (smu *SysMenuUpdate) SetNillableParentID(s *string) *SysMenuUpdate
SetNillableParentID sets the "parent_id" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableParentPath ¶
func (smu *SysMenuUpdate) SetNillableParentPath(s *string) *SysMenuUpdate
SetNillableParentPath sets the "parent_path" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableSort ¶
func (smu *SysMenuUpdate) SetNillableSort(i *int32) *SysMenuUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuUpdate) SetNillableStatus ¶
func (smu *SysMenuUpdate) SetNillableStatus(i *int16) *SysMenuUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuUpdate) SetParentID ¶
func (smu *SysMenuUpdate) SetParentID(s string) *SysMenuUpdate
SetParentID sets the "parent_id" field.
func (*SysMenuUpdate) SetParentPath ¶
func (smu *SysMenuUpdate) SetParentPath(s string) *SysMenuUpdate
SetParentPath sets the "parent_path" field.
func (*SysMenuUpdate) SetRouter ¶
func (smu *SysMenuUpdate) SetRouter(s string) *SysMenuUpdate
SetRouter sets the "router" field.
func (*SysMenuUpdate) SetSort ¶
func (smu *SysMenuUpdate) SetSort(i int32) *SysMenuUpdate
SetSort sets the "sort" field.
func (*SysMenuUpdate) SetStatus ¶
func (smu *SysMenuUpdate) SetStatus(i int16) *SysMenuUpdate
SetStatus sets the "status" field.
func (*SysMenuUpdate) SetUpdatedAt ¶
func (smu *SysMenuUpdate) SetUpdatedAt(t time.Time) *SysMenuUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysMenuUpdate) Where ¶
func (smu *SysMenuUpdate) Where(ps ...predicate.SysMenu) *SysMenuUpdate
Where adds a new predicate for the SysMenuUpdate builder.
type SysMenuUpdateOne ¶
type SysMenuUpdateOne struct {
// contains filtered or unexported fields
}
SysMenuUpdateOne is the builder for updating a single SysMenu entity.
func (*SysMenuUpdateOne) AddSort ¶
func (smuo *SysMenuUpdateOne) AddSort(i int32) *SysMenuUpdateOne
AddSort adds i to the "sort" field.
func (*SysMenuUpdateOne) AddStatus ¶
func (smuo *SysMenuUpdateOne) AddStatus(i int16) *SysMenuUpdateOne
AddStatus adds i to the "status" field.
func (*SysMenuUpdateOne) ClearDeletedAt ¶
func (smuo *SysMenuUpdateOne) ClearDeletedAt() *SysMenuUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysMenuUpdateOne) ClearParentID ¶
func (smuo *SysMenuUpdateOne) ClearParentID() *SysMenuUpdateOne
ClearParentID clears the value of the "parent_id" field.
func (*SysMenuUpdateOne) ClearParentPath ¶
func (smuo *SysMenuUpdateOne) ClearParentPath() *SysMenuUpdateOne
ClearParentPath clears the value of the "parent_path" field.
func (*SysMenuUpdateOne) Exec ¶
func (smuo *SysMenuUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysMenuUpdateOne) ExecX ¶
func (smuo *SysMenuUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysMenuUpdateOne) Mutation ¶
func (smuo *SysMenuUpdateOne) Mutation() *SysMenuMutation
Mutation returns the SysMenuMutation object of the builder.
func (*SysMenuUpdateOne) Save ¶
func (smuo *SysMenuUpdateOne) Save(ctx context.Context) (*SysMenu, error)
Save executes the query and returns the updated SysMenu entity.
func (*SysMenuUpdateOne) SaveX ¶
func (smuo *SysMenuUpdateOne) SaveX(ctx context.Context) *SysMenu
SaveX is like Save, but panics if an error occurs.
func (*SysMenuUpdateOne) Select ¶
func (smuo *SysMenuUpdateOne) Select(field string, fields ...string) *SysMenuUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysMenuUpdateOne) SetDeletedAt ¶
func (smuo *SysMenuUpdateOne) SetDeletedAt(t time.Time) *SysMenuUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysMenuUpdateOne) SetIcon ¶
func (smuo *SysMenuUpdateOne) SetIcon(s string) *SysMenuUpdateOne
SetIcon sets the "icon" field.
func (*SysMenuUpdateOne) SetInput ¶
func (u *SysMenuUpdateOne) SetInput(i UpdateSysMenuInput) *SysMenuUpdateOne
SetInput applies the change-set in the UpdateSysMenuInput on the update-one builder.
func (*SysMenuUpdateOne) SetIsDel ¶
func (smuo *SysMenuUpdateOne) SetIsDel(b bool) *SysMenuUpdateOne
SetIsDel sets the "is_del" field.
func (*SysMenuUpdateOne) SetIsShow ¶
func (smuo *SysMenuUpdateOne) SetIsShow(b bool) *SysMenuUpdateOne
SetIsShow sets the "is_show" field.
func (*SysMenuUpdateOne) SetMemo ¶
func (smuo *SysMenuUpdateOne) SetMemo(s string) *SysMenuUpdateOne
SetMemo sets the "memo" field.
func (*SysMenuUpdateOne) SetName ¶
func (smuo *SysMenuUpdateOne) SetName(s string) *SysMenuUpdateOne
SetName sets the "name" field.
func (*SysMenuUpdateOne) SetNillableDeletedAt ¶
func (smuo *SysMenuUpdateOne) SetNillableDeletedAt(t *time.Time) *SysMenuUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableIsDel ¶
func (smuo *SysMenuUpdateOne) SetNillableIsDel(b *bool) *SysMenuUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableIsShow ¶
func (smuo *SysMenuUpdateOne) SetNillableIsShow(b *bool) *SysMenuUpdateOne
SetNillableIsShow sets the "is_show" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableMemo ¶
func (smuo *SysMenuUpdateOne) SetNillableMemo(s *string) *SysMenuUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableParentID ¶
func (smuo *SysMenuUpdateOne) SetNillableParentID(s *string) *SysMenuUpdateOne
SetNillableParentID sets the "parent_id" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableParentPath ¶
func (smuo *SysMenuUpdateOne) SetNillableParentPath(s *string) *SysMenuUpdateOne
SetNillableParentPath sets the "parent_path" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableSort ¶
func (smuo *SysMenuUpdateOne) SetNillableSort(i *int32) *SysMenuUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysMenuUpdateOne) SetNillableStatus ¶
func (smuo *SysMenuUpdateOne) SetNillableStatus(i *int16) *SysMenuUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysMenuUpdateOne) SetParentID ¶
func (smuo *SysMenuUpdateOne) SetParentID(s string) *SysMenuUpdateOne
SetParentID sets the "parent_id" field.
func (*SysMenuUpdateOne) SetParentPath ¶
func (smuo *SysMenuUpdateOne) SetParentPath(s string) *SysMenuUpdateOne
SetParentPath sets the "parent_path" field.
func (*SysMenuUpdateOne) SetRouter ¶
func (smuo *SysMenuUpdateOne) SetRouter(s string) *SysMenuUpdateOne
SetRouter sets the "router" field.
func (*SysMenuUpdateOne) SetSort ¶
func (smuo *SysMenuUpdateOne) SetSort(i int32) *SysMenuUpdateOne
SetSort sets the "sort" field.
func (*SysMenuUpdateOne) SetStatus ¶
func (smuo *SysMenuUpdateOne) SetStatus(i int16) *SysMenuUpdateOne
SetStatus sets the "status" field.
func (*SysMenuUpdateOne) SetUpdatedAt ¶
func (smuo *SysMenuUpdateOne) SetUpdatedAt(t time.Time) *SysMenuUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysRole ¶
type SysRole struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Name holds the value of the "name" field. // 角色名称 Name string `json:"name,omitempty"` // contains filtered or unexported fields }
SysRole is the model entity for the SysRole schema.
func (*SysRole) Unwrap ¶
Unwrap unwraps the SysRole entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysRole) Update ¶
func (sr *SysRole) Update() *SysRoleUpdateOne
Update returns a builder for updating this SysRole. Note that you need to call SysRole.Unwrap() before calling this method if this SysRole was returned from a transaction, and the transaction was committed or rolled back.
type SysRoleClient ¶
type SysRoleClient struct {
// contains filtered or unexported fields
}
SysRoleClient is a client for the SysRole schema.
func NewSysRoleClient ¶
func NewSysRoleClient(c config) *SysRoleClient
NewSysRoleClient returns a client for the SysRole from the given config.
func (*SysRoleClient) Create ¶
func (c *SysRoleClient) Create() *SysRoleCreate
Create returns a create builder for SysRole.
func (*SysRoleClient) CreateBulk ¶
func (c *SysRoleClient) CreateBulk(builders ...*SysRoleCreate) *SysRoleCreateBulk
CreateBulk returns a builder for creating a bulk of SysRole entities.
func (*SysRoleClient) Delete ¶
func (c *SysRoleClient) Delete() *SysRoleDelete
Delete returns a delete builder for SysRole.
func (*SysRoleClient) DeleteOne ¶
func (c *SysRoleClient) DeleteOne(sr *SysRole) *SysRoleDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysRoleClient) DeleteOneID ¶
func (c *SysRoleClient) DeleteOneID(id string) *SysRoleDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysRoleClient) GetX ¶
func (c *SysRoleClient) GetX(ctx context.Context, id string) *SysRole
GetX is like Get, but panics if an error occurs.
func (*SysRoleClient) Hooks ¶
func (c *SysRoleClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysRoleClient) Query ¶
func (c *SysRoleClient) Query() *SysRoleQuery
Query returns a query builder for SysRole.
func (*SysRoleClient) Update ¶
func (c *SysRoleClient) Update() *SysRoleUpdate
Update returns an update builder for SysRole.
func (*SysRoleClient) UpdateOne ¶
func (c *SysRoleClient) UpdateOne(sr *SysRole) *SysRoleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysRoleClient) UpdateOneID ¶
func (c *SysRoleClient) UpdateOneID(id string) *SysRoleUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysRoleClient) Use ¶
func (c *SysRoleClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysrole.Hooks(f(g(h())))`.
type SysRoleCreate ¶
type SysRoleCreate struct {
// contains filtered or unexported fields
}
SysRoleCreate is the builder for creating a SysRole entity.
func (*SysRoleCreate) Mutation ¶
func (src *SysRoleCreate) Mutation() *SysRoleMutation
Mutation returns the SysRoleMutation object of the builder.
func (*SysRoleCreate) Save ¶
func (src *SysRoleCreate) Save(ctx context.Context) (*SysRole, error)
Save creates the SysRole in the database.
func (*SysRoleCreate) SaveX ¶
func (src *SysRoleCreate) SaveX(ctx context.Context) *SysRole
SaveX calls Save and panics if Save returns an error.
func (*SysRoleCreate) SetCreatedAt ¶
func (src *SysRoleCreate) SetCreatedAt(t time.Time) *SysRoleCreate
SetCreatedAt sets the "created_at" field.
func (*SysRoleCreate) SetDeletedAt ¶
func (src *SysRoleCreate) SetDeletedAt(t time.Time) *SysRoleCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleCreate) SetID ¶
func (src *SysRoleCreate) SetID(s string) *SysRoleCreate
SetID sets the "id" field.
func (*SysRoleCreate) SetInput ¶
func (c *SysRoleCreate) SetInput(i CreateSysRoleInput) *SysRoleCreate
SetInput applies the change-set in the CreateSysRoleInput on the create builder.
func (*SysRoleCreate) SetIsDel ¶
func (src *SysRoleCreate) SetIsDel(b bool) *SysRoleCreate
SetIsDel sets the "is_del" field.
func (*SysRoleCreate) SetMemo ¶
func (src *SysRoleCreate) SetMemo(s string) *SysRoleCreate
SetMemo sets the "memo" field.
func (*SysRoleCreate) SetName ¶
func (src *SysRoleCreate) SetName(s string) *SysRoleCreate
SetName sets the "name" field.
func (*SysRoleCreate) SetNillableCreatedAt ¶
func (src *SysRoleCreate) SetNillableCreatedAt(t *time.Time) *SysRoleCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysRoleCreate) SetNillableDeletedAt ¶
func (src *SysRoleCreate) SetNillableDeletedAt(t *time.Time) *SysRoleCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleCreate) SetNillableID ¶
func (src *SysRoleCreate) SetNillableID(s *string) *SysRoleCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysRoleCreate) SetNillableIsDel ¶
func (src *SysRoleCreate) SetNillableIsDel(b *bool) *SysRoleCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleCreate) SetNillableMemo ¶
func (src *SysRoleCreate) SetNillableMemo(s *string) *SysRoleCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysRoleCreate) SetNillableSort ¶
func (src *SysRoleCreate) SetNillableSort(i *int32) *SysRoleCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysRoleCreate) SetNillableStatus ¶
func (src *SysRoleCreate) SetNillableStatus(i *int16) *SysRoleCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysRoleCreate) SetNillableUpdatedAt ¶
func (src *SysRoleCreate) SetNillableUpdatedAt(t *time.Time) *SysRoleCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysRoleCreate) SetSort ¶
func (src *SysRoleCreate) SetSort(i int32) *SysRoleCreate
SetSort sets the "sort" field.
func (*SysRoleCreate) SetStatus ¶
func (src *SysRoleCreate) SetStatus(i int16) *SysRoleCreate
SetStatus sets the "status" field.
func (*SysRoleCreate) SetUpdatedAt ¶
func (src *SysRoleCreate) SetUpdatedAt(t time.Time) *SysRoleCreate
SetUpdatedAt sets the "updated_at" field.
type SysRoleCreateBulk ¶
type SysRoleCreateBulk struct {
// contains filtered or unexported fields
}
SysRoleCreateBulk is the builder for creating many SysRole entities in bulk.
type SysRoleDelete ¶
type SysRoleDelete struct {
// contains filtered or unexported fields
}
SysRoleDelete is the builder for deleting a SysRole entity.
func (*SysRoleDelete) Exec ¶
func (srd *SysRoleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysRoleDelete) ExecX ¶
func (srd *SysRoleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleDelete) Where ¶
func (srd *SysRoleDelete) Where(ps ...predicate.SysRole) *SysRoleDelete
Where adds a new predicate to the SysRoleDelete builder.
type SysRoleDeleteOne ¶
type SysRoleDeleteOne struct {
// contains filtered or unexported fields
}
SysRoleDeleteOne is the builder for deleting a single SysRole entity.
func (*SysRoleDeleteOne) Exec ¶
func (srdo *SysRoleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysRoleDeleteOne) ExecX ¶
func (srdo *SysRoleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysRoleGroupBy ¶
type SysRoleGroupBy struct {
// contains filtered or unexported fields
}
SysRoleGroupBy is the group-by builder for SysRole entities.
func (*SysRoleGroupBy) Aggregate ¶
func (srgb *SysRoleGroupBy) Aggregate(fns ...AggregateFunc) *SysRoleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysRoleGroupBy) Bool ¶
func (srgb *SysRoleGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) BoolX ¶
func (srgb *SysRoleGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysRoleGroupBy) Bools ¶
func (srgb *SysRoleGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) BoolsX ¶
func (srgb *SysRoleGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysRoleGroupBy) Float64 ¶
func (srgb *SysRoleGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) Float64X ¶
func (srgb *SysRoleGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysRoleGroupBy) Float64s ¶
func (srgb *SysRoleGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) Float64sX ¶
func (srgb *SysRoleGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysRoleGroupBy) Int ¶
func (srgb *SysRoleGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) IntX ¶
func (srgb *SysRoleGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysRoleGroupBy) Ints ¶
func (srgb *SysRoleGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) IntsX ¶
func (srgb *SysRoleGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysRoleGroupBy) Scan ¶
func (srgb *SysRoleGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysRoleGroupBy) ScanX ¶
func (srgb *SysRoleGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysRoleGroupBy) String ¶
func (srgb *SysRoleGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleGroupBy) StringX ¶
func (srgb *SysRoleGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysRoleMenu ¶
type SysRoleMenu struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // RoleID holds the value of the "role_id" field. // 角色ID, sys_role.id RoleID string `json:"role_id,omitempty"` // MenuID holds the value of the "menu_id" field. // 菜单ID MenuID string `json:"menu_id,omitempty"` // ActionID holds the value of the "action_id" field. // 菜单ID, sys_menu_action.id ActionID *string `json:"action_id,omitempty"` // contains filtered or unexported fields }
SysRoleMenu is the model entity for the SysRoleMenu schema.
func (*SysRoleMenu) String ¶
func (srm *SysRoleMenu) String() string
String implements the fmt.Stringer.
func (*SysRoleMenu) Unwrap ¶
func (srm *SysRoleMenu) Unwrap() *SysRoleMenu
Unwrap unwraps the SysRoleMenu entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysRoleMenu) Update ¶
func (srm *SysRoleMenu) Update() *SysRoleMenuUpdateOne
Update returns a builder for updating this SysRoleMenu. Note that you need to call SysRoleMenu.Unwrap() before calling this method if this SysRoleMenu was returned from a transaction, and the transaction was committed or rolled back.
type SysRoleMenuClient ¶
type SysRoleMenuClient struct {
// contains filtered or unexported fields
}
SysRoleMenuClient is a client for the SysRoleMenu schema.
func NewSysRoleMenuClient ¶
func NewSysRoleMenuClient(c config) *SysRoleMenuClient
NewSysRoleMenuClient returns a client for the SysRoleMenu from the given config.
func (*SysRoleMenuClient) Create ¶
func (c *SysRoleMenuClient) Create() *SysRoleMenuCreate
Create returns a create builder for SysRoleMenu.
func (*SysRoleMenuClient) CreateBulk ¶
func (c *SysRoleMenuClient) CreateBulk(builders ...*SysRoleMenuCreate) *SysRoleMenuCreateBulk
CreateBulk returns a builder for creating a bulk of SysRoleMenu entities.
func (*SysRoleMenuClient) Delete ¶
func (c *SysRoleMenuClient) Delete() *SysRoleMenuDelete
Delete returns a delete builder for SysRoleMenu.
func (*SysRoleMenuClient) DeleteOne ¶
func (c *SysRoleMenuClient) DeleteOne(srm *SysRoleMenu) *SysRoleMenuDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysRoleMenuClient) DeleteOneID ¶
func (c *SysRoleMenuClient) DeleteOneID(id string) *SysRoleMenuDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysRoleMenuClient) Get ¶
func (c *SysRoleMenuClient) Get(ctx context.Context, id string) (*SysRoleMenu, error)
Get returns a SysRoleMenu entity by its id.
func (*SysRoleMenuClient) GetX ¶
func (c *SysRoleMenuClient) GetX(ctx context.Context, id string) *SysRoleMenu
GetX is like Get, but panics if an error occurs.
func (*SysRoleMenuClient) Hooks ¶
func (c *SysRoleMenuClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysRoleMenuClient) Query ¶
func (c *SysRoleMenuClient) Query() *SysRoleMenuQuery
Query returns a query builder for SysRoleMenu.
func (*SysRoleMenuClient) Update ¶
func (c *SysRoleMenuClient) Update() *SysRoleMenuUpdate
Update returns an update builder for SysRoleMenu.
func (*SysRoleMenuClient) UpdateOne ¶
func (c *SysRoleMenuClient) UpdateOne(srm *SysRoleMenu) *SysRoleMenuUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysRoleMenuClient) UpdateOneID ¶
func (c *SysRoleMenuClient) UpdateOneID(id string) *SysRoleMenuUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysRoleMenuClient) Use ¶
func (c *SysRoleMenuClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysrolemenu.Hooks(f(g(h())))`.
type SysRoleMenuCreate ¶
type SysRoleMenuCreate struct {
// contains filtered or unexported fields
}
SysRoleMenuCreate is the builder for creating a SysRoleMenu entity.
func (*SysRoleMenuCreate) Mutation ¶
func (srmc *SysRoleMenuCreate) Mutation() *SysRoleMenuMutation
Mutation returns the SysRoleMenuMutation object of the builder.
func (*SysRoleMenuCreate) Save ¶
func (srmc *SysRoleMenuCreate) Save(ctx context.Context) (*SysRoleMenu, error)
Save creates the SysRoleMenu in the database.
func (*SysRoleMenuCreate) SaveX ¶
func (srmc *SysRoleMenuCreate) SaveX(ctx context.Context) *SysRoleMenu
SaveX calls Save and panics if Save returns an error.
func (*SysRoleMenuCreate) SetActionID ¶
func (srmc *SysRoleMenuCreate) SetActionID(s string) *SysRoleMenuCreate
SetActionID sets the "action_id" field.
func (*SysRoleMenuCreate) SetCreatedAt ¶
func (srmc *SysRoleMenuCreate) SetCreatedAt(t time.Time) *SysRoleMenuCreate
SetCreatedAt sets the "created_at" field.
func (*SysRoleMenuCreate) SetDeletedAt ¶
func (srmc *SysRoleMenuCreate) SetDeletedAt(t time.Time) *SysRoleMenuCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleMenuCreate) SetID ¶
func (srmc *SysRoleMenuCreate) SetID(s string) *SysRoleMenuCreate
SetID sets the "id" field.
func (*SysRoleMenuCreate) SetInput ¶
func (c *SysRoleMenuCreate) SetInput(i CreateSysRoleMenuInput) *SysRoleMenuCreate
SetInput applies the change-set in the CreateSysRoleMenuInput on the create builder.
func (*SysRoleMenuCreate) SetIsDel ¶
func (srmc *SysRoleMenuCreate) SetIsDel(b bool) *SysRoleMenuCreate
SetIsDel sets the "is_del" field.
func (*SysRoleMenuCreate) SetMenuID ¶
func (srmc *SysRoleMenuCreate) SetMenuID(s string) *SysRoleMenuCreate
SetMenuID sets the "menu_id" field.
func (*SysRoleMenuCreate) SetNillableActionID ¶
func (srmc *SysRoleMenuCreate) SetNillableActionID(s *string) *SysRoleMenuCreate
SetNillableActionID sets the "action_id" field if the given value is not nil.
func (*SysRoleMenuCreate) SetNillableCreatedAt ¶
func (srmc *SysRoleMenuCreate) SetNillableCreatedAt(t *time.Time) *SysRoleMenuCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysRoleMenuCreate) SetNillableDeletedAt ¶
func (srmc *SysRoleMenuCreate) SetNillableDeletedAt(t *time.Time) *SysRoleMenuCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleMenuCreate) SetNillableID ¶
func (srmc *SysRoleMenuCreate) SetNillableID(s *string) *SysRoleMenuCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysRoleMenuCreate) SetNillableIsDel ¶
func (srmc *SysRoleMenuCreate) SetNillableIsDel(b *bool) *SysRoleMenuCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleMenuCreate) SetNillableUpdatedAt ¶
func (srmc *SysRoleMenuCreate) SetNillableUpdatedAt(t *time.Time) *SysRoleMenuCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysRoleMenuCreate) SetRoleID ¶
func (srmc *SysRoleMenuCreate) SetRoleID(s string) *SysRoleMenuCreate
SetRoleID sets the "role_id" field.
func (*SysRoleMenuCreate) SetUpdatedAt ¶
func (srmc *SysRoleMenuCreate) SetUpdatedAt(t time.Time) *SysRoleMenuCreate
SetUpdatedAt sets the "updated_at" field.
type SysRoleMenuCreateBulk ¶
type SysRoleMenuCreateBulk struct {
// contains filtered or unexported fields
}
SysRoleMenuCreateBulk is the builder for creating many SysRoleMenu entities in bulk.
func (*SysRoleMenuCreateBulk) Save ¶
func (srmcb *SysRoleMenuCreateBulk) Save(ctx context.Context) ([]*SysRoleMenu, error)
Save creates the SysRoleMenu entities in the database.
func (*SysRoleMenuCreateBulk) SaveX ¶
func (srmcb *SysRoleMenuCreateBulk) SaveX(ctx context.Context) []*SysRoleMenu
SaveX is like Save, but panics if an error occurs.
type SysRoleMenuDelete ¶
type SysRoleMenuDelete struct {
// contains filtered or unexported fields
}
SysRoleMenuDelete is the builder for deleting a SysRoleMenu entity.
func (*SysRoleMenuDelete) Exec ¶
func (srmd *SysRoleMenuDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysRoleMenuDelete) ExecX ¶
func (srmd *SysRoleMenuDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleMenuDelete) Where ¶
func (srmd *SysRoleMenuDelete) Where(ps ...predicate.SysRoleMenu) *SysRoleMenuDelete
Where adds a new predicate to the SysRoleMenuDelete builder.
type SysRoleMenuDeleteOne ¶
type SysRoleMenuDeleteOne struct {
// contains filtered or unexported fields
}
SysRoleMenuDeleteOne is the builder for deleting a single SysRoleMenu entity.
func (*SysRoleMenuDeleteOne) Exec ¶
func (srmdo *SysRoleMenuDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysRoleMenuDeleteOne) ExecX ¶
func (srmdo *SysRoleMenuDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysRoleMenuGroupBy ¶
type SysRoleMenuGroupBy struct {
// contains filtered or unexported fields
}
SysRoleMenuGroupBy is the group-by builder for SysRoleMenu entities.
func (*SysRoleMenuGroupBy) Aggregate ¶
func (srmgb *SysRoleMenuGroupBy) Aggregate(fns ...AggregateFunc) *SysRoleMenuGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysRoleMenuGroupBy) Bool ¶
func (srmgb *SysRoleMenuGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) BoolX ¶
func (srmgb *SysRoleMenuGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Bools ¶
func (srmgb *SysRoleMenuGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) BoolsX ¶
func (srmgb *SysRoleMenuGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Float64 ¶
func (srmgb *SysRoleMenuGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) Float64X ¶
func (srmgb *SysRoleMenuGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Float64s ¶
func (srmgb *SysRoleMenuGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) Float64sX ¶
func (srmgb *SysRoleMenuGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Int ¶
func (srmgb *SysRoleMenuGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) IntX ¶
func (srmgb *SysRoleMenuGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Ints ¶
func (srmgb *SysRoleMenuGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) IntsX ¶
func (srmgb *SysRoleMenuGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysRoleMenuGroupBy) Scan ¶
func (srmgb *SysRoleMenuGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysRoleMenuGroupBy) ScanX ¶
func (srmgb *SysRoleMenuGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysRoleMenuGroupBy) String ¶
func (srmgb *SysRoleMenuGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysRoleMenuGroupBy) StringX ¶
func (srmgb *SysRoleMenuGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysRoleMenuMutation ¶
type SysRoleMenuMutation struct {
// contains filtered or unexported fields
}
SysRoleMenuMutation represents an operation that mutates the SysRoleMenu nodes in the graph.
func (*SysRoleMenuMutation) ActionID ¶
func (m *SysRoleMenuMutation) ActionID() (r string, exists bool)
ActionID returns the value of the "action_id" field in the mutation.
func (*SysRoleMenuMutation) ActionIDCleared ¶
func (m *SysRoleMenuMutation) ActionIDCleared() bool
ActionIDCleared returns if the "action_id" field was cleared in this mutation.
func (*SysRoleMenuMutation) AddField ¶
func (m *SysRoleMenuMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysRoleMenuMutation) AddedEdges ¶
func (m *SysRoleMenuMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysRoleMenuMutation) AddedField ¶
func (m *SysRoleMenuMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysRoleMenuMutation) AddedFields ¶
func (m *SysRoleMenuMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysRoleMenuMutation) AddedIDs ¶
func (m *SysRoleMenuMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysRoleMenuMutation) ClearActionID ¶
func (m *SysRoleMenuMutation) ClearActionID()
ClearActionID clears the value of the "action_id" field.
func (*SysRoleMenuMutation) ClearDeletedAt ¶
func (m *SysRoleMenuMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleMenuMutation) ClearEdge ¶
func (m *SysRoleMenuMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysRoleMenuMutation) ClearField ¶
func (m *SysRoleMenuMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysRoleMenuMutation) ClearedEdges ¶
func (m *SysRoleMenuMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysRoleMenuMutation) ClearedFields ¶
func (m *SysRoleMenuMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysRoleMenuMutation) Client ¶
func (m SysRoleMenuMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysRoleMenuMutation) CreatedAt ¶
func (m *SysRoleMenuMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysRoleMenuMutation) DeletedAt ¶
func (m *SysRoleMenuMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysRoleMenuMutation) DeletedAtCleared ¶
func (m *SysRoleMenuMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysRoleMenuMutation) EdgeCleared ¶
func (m *SysRoleMenuMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysRoleMenuMutation) Field ¶
func (m *SysRoleMenuMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysRoleMenuMutation) FieldCleared ¶
func (m *SysRoleMenuMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysRoleMenuMutation) Fields ¶
func (m *SysRoleMenuMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysRoleMenuMutation) ID ¶
func (m *SysRoleMenuMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysRoleMenuMutation) IsDel ¶
func (m *SysRoleMenuMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysRoleMenuMutation) MenuID ¶
func (m *SysRoleMenuMutation) MenuID() (r string, exists bool)
MenuID returns the value of the "menu_id" field in the mutation.
func (*SysRoleMenuMutation) OldActionID ¶
func (m *SysRoleMenuMutation) OldActionID(ctx context.Context) (v *string, err error)
OldActionID returns the old "action_id" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysRoleMenuMutation) OldIsDel ¶
func (m *SysRoleMenuMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldMenuID ¶
func (m *SysRoleMenuMutation) OldMenuID(ctx context.Context) (v string, err error)
OldMenuID returns the old "menu_id" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldRoleID ¶
func (m *SysRoleMenuMutation) OldRoleID(ctx context.Context) (v string, err error)
OldRoleID returns the old "role_id" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysRoleMenu entity. If the SysRoleMenu object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMenuMutation) Op ¶
func (m *SysRoleMenuMutation) Op() Op
Op returns the operation name.
func (*SysRoleMenuMutation) RemovedEdges ¶
func (m *SysRoleMenuMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysRoleMenuMutation) RemovedIDs ¶
func (m *SysRoleMenuMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysRoleMenuMutation) ResetActionID ¶
func (m *SysRoleMenuMutation) ResetActionID()
ResetActionID resets all changes to the "action_id" field.
func (*SysRoleMenuMutation) ResetCreatedAt ¶
func (m *SysRoleMenuMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysRoleMenuMutation) ResetDeletedAt ¶
func (m *SysRoleMenuMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysRoleMenuMutation) ResetEdge ¶
func (m *SysRoleMenuMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysRoleMenuMutation) ResetField ¶
func (m *SysRoleMenuMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysRoleMenuMutation) ResetIsDel ¶
func (m *SysRoleMenuMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysRoleMenuMutation) ResetMenuID ¶
func (m *SysRoleMenuMutation) ResetMenuID()
ResetMenuID resets all changes to the "menu_id" field.
func (*SysRoleMenuMutation) ResetRoleID ¶
func (m *SysRoleMenuMutation) ResetRoleID()
ResetRoleID resets all changes to the "role_id" field.
func (*SysRoleMenuMutation) ResetUpdatedAt ¶
func (m *SysRoleMenuMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysRoleMenuMutation) RoleID ¶
func (m *SysRoleMenuMutation) RoleID() (r string, exists bool)
RoleID returns the value of the "role_id" field in the mutation.
func (*SysRoleMenuMutation) SetActionID ¶
func (m *SysRoleMenuMutation) SetActionID(s string)
SetActionID sets the "action_id" field.
func (*SysRoleMenuMutation) SetCreatedAt ¶
func (m *SysRoleMenuMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysRoleMenuMutation) SetDeletedAt ¶
func (m *SysRoleMenuMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleMenuMutation) SetField ¶
func (m *SysRoleMenuMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysRoleMenuMutation) SetID ¶
func (m *SysRoleMenuMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysRoleMenu entities.
func (*SysRoleMenuMutation) SetIsDel ¶
func (m *SysRoleMenuMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysRoleMenuMutation) SetMenuID ¶
func (m *SysRoleMenuMutation) SetMenuID(s string)
SetMenuID sets the "menu_id" field.
func (*SysRoleMenuMutation) SetRoleID ¶
func (m *SysRoleMenuMutation) SetRoleID(s string)
SetRoleID sets the "role_id" field.
func (*SysRoleMenuMutation) SetUpdatedAt ¶
func (m *SysRoleMenuMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (SysRoleMenuMutation) Tx ¶
func (m SysRoleMenuMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysRoleMenuMutation) Type ¶
func (m *SysRoleMenuMutation) Type() string
Type returns the node type of this mutation (SysRoleMenu).
type SysRoleMenuQuery ¶
type SysRoleMenuQuery struct {
// contains filtered or unexported fields
}
SysRoleMenuQuery is the builder for querying SysRoleMenu entities.
func (*SysRoleMenuQuery) All ¶
func (srmq *SysRoleMenuQuery) All(ctx context.Context) ([]*SysRoleMenu, error)
All executes the query and returns a list of SysRoleMenus.
func (*SysRoleMenuQuery) AllX ¶
func (srmq *SysRoleMenuQuery) AllX(ctx context.Context) []*SysRoleMenu
AllX is like All, but panics if an error occurs.
func (*SysRoleMenuQuery) Clone ¶
func (srmq *SysRoleMenuQuery) Clone() *SysRoleMenuQuery
Clone returns a duplicate of the SysRoleMenuQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysRoleMenuQuery) Count ¶
func (srmq *SysRoleMenuQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysRoleMenuQuery) CountX ¶
func (srmq *SysRoleMenuQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysRoleMenuQuery) Exist ¶
func (srmq *SysRoleMenuQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysRoleMenuQuery) ExistX ¶
func (srmq *SysRoleMenuQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysRoleMenuQuery) First ¶
func (srmq *SysRoleMenuQuery) First(ctx context.Context) (*SysRoleMenu, error)
First returns the first SysRoleMenu entity from the query. Returns a *NotFoundError when no SysRoleMenu was found.
func (*SysRoleMenuQuery) FirstID ¶
func (srmq *SysRoleMenuQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysRoleMenu ID from the query. Returns a *NotFoundError when no SysRoleMenu ID was found.
func (*SysRoleMenuQuery) FirstIDX ¶
func (srmq *SysRoleMenuQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysRoleMenuQuery) FirstX ¶
func (srmq *SysRoleMenuQuery) FirstX(ctx context.Context) *SysRoleMenu
FirstX is like First, but panics if an error occurs.
func (*SysRoleMenuQuery) GroupBy ¶
func (srmq *SysRoleMenuQuery) GroupBy(field string, fields ...string) *SysRoleMenuGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysRoleMenu.Query(). GroupBy(sysrolemenu.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysRoleMenuQuery) IDs ¶
func (srmq *SysRoleMenuQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysRoleMenu IDs.
func (*SysRoleMenuQuery) IDsX ¶
func (srmq *SysRoleMenuQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysRoleMenuQuery) Limit ¶
func (srmq *SysRoleMenuQuery) Limit(limit int) *SysRoleMenuQuery
Limit adds a limit step to the query.
func (*SysRoleMenuQuery) Offset ¶
func (srmq *SysRoleMenuQuery) Offset(offset int) *SysRoleMenuQuery
Offset adds an offset step to the query.
func (*SysRoleMenuQuery) Only ¶
func (srmq *SysRoleMenuQuery) Only(ctx context.Context) (*SysRoleMenu, error)
Only returns a single SysRoleMenu entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysRoleMenu entity is not found. Returns a *NotFoundError when no SysRoleMenu entities are found.
func (*SysRoleMenuQuery) OnlyID ¶
func (srmq *SysRoleMenuQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysRoleMenu ID in the query. Returns a *NotSingularError when exactly one SysRoleMenu ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysRoleMenuQuery) OnlyIDX ¶
func (srmq *SysRoleMenuQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysRoleMenuQuery) OnlyX ¶
func (srmq *SysRoleMenuQuery) OnlyX(ctx context.Context) *SysRoleMenu
OnlyX is like Only, but panics if an error occurs.
func (*SysRoleMenuQuery) Order ¶
func (srmq *SysRoleMenuQuery) Order(o ...OrderFunc) *SysRoleMenuQuery
Order adds an order step to the query.
func (*SysRoleMenuQuery) Select ¶
func (srmq *SysRoleMenuQuery) Select(field string, fields ...string) *SysRoleMenuSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysRoleMenu.Query(). Select(sysrolemenu.FieldIsDel). Scan(ctx, &v)
func (*SysRoleMenuQuery) Unique ¶
func (srmq *SysRoleMenuQuery) Unique(unique bool) *SysRoleMenuQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysRoleMenuQuery) Where ¶
func (srmq *SysRoleMenuQuery) Where(ps ...predicate.SysRoleMenu) *SysRoleMenuQuery
Where adds a new predicate for the SysRoleMenuQuery builder.
type SysRoleMenuSelect ¶
type SysRoleMenuSelect struct { *SysRoleMenuQuery // contains filtered or unexported fields }
SysRoleMenuSelect is the builder for selecting fields of SysRoleMenu entities.
func (*SysRoleMenuSelect) Bool ¶
func (srms *SysRoleMenuSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) BoolX ¶
func (srms *SysRoleMenuSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysRoleMenuSelect) Bools ¶
func (srms *SysRoleMenuSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) BoolsX ¶
func (srms *SysRoleMenuSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysRoleMenuSelect) Float64 ¶
func (srms *SysRoleMenuSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) Float64X ¶
func (srms *SysRoleMenuSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysRoleMenuSelect) Float64s ¶
func (srms *SysRoleMenuSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) Float64sX ¶
func (srms *SysRoleMenuSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysRoleMenuSelect) Int ¶
func (srms *SysRoleMenuSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) IntX ¶
func (srms *SysRoleMenuSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysRoleMenuSelect) Ints ¶
func (srms *SysRoleMenuSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) IntsX ¶
func (srms *SysRoleMenuSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysRoleMenuSelect) Scan ¶
func (srms *SysRoleMenuSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysRoleMenuSelect) ScanX ¶
func (srms *SysRoleMenuSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysRoleMenuSelect) String ¶
func (srms *SysRoleMenuSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysRoleMenuSelect) StringX ¶
func (srms *SysRoleMenuSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysRoleMenuUpdate ¶
type SysRoleMenuUpdate struct {
// contains filtered or unexported fields
}
SysRoleMenuUpdate is the builder for updating SysRoleMenu entities.
func (*SysRoleMenuUpdate) ClearActionID ¶
func (srmu *SysRoleMenuUpdate) ClearActionID() *SysRoleMenuUpdate
ClearActionID clears the value of the "action_id" field.
func (*SysRoleMenuUpdate) ClearDeletedAt ¶
func (srmu *SysRoleMenuUpdate) ClearDeletedAt() *SysRoleMenuUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleMenuUpdate) Exec ¶
func (srmu *SysRoleMenuUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysRoleMenuUpdate) ExecX ¶
func (srmu *SysRoleMenuUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleMenuUpdate) Mutation ¶
func (srmu *SysRoleMenuUpdate) Mutation() *SysRoleMenuMutation
Mutation returns the SysRoleMenuMutation object of the builder.
func (*SysRoleMenuUpdate) Save ¶
func (srmu *SysRoleMenuUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysRoleMenuUpdate) SaveX ¶
func (srmu *SysRoleMenuUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysRoleMenuUpdate) SetActionID ¶
func (srmu *SysRoleMenuUpdate) SetActionID(s string) *SysRoleMenuUpdate
SetActionID sets the "action_id" field.
func (*SysRoleMenuUpdate) SetDeletedAt ¶
func (srmu *SysRoleMenuUpdate) SetDeletedAt(t time.Time) *SysRoleMenuUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleMenuUpdate) SetInput ¶
func (u *SysRoleMenuUpdate) SetInput(i UpdateSysRoleMenuInput) *SysRoleMenuUpdate
SetInput applies the change-set in the UpdateSysRoleMenuInput on the update builder.
func (*SysRoleMenuUpdate) SetIsDel ¶
func (srmu *SysRoleMenuUpdate) SetIsDel(b bool) *SysRoleMenuUpdate
SetIsDel sets the "is_del" field.
func (*SysRoleMenuUpdate) SetMenuID ¶
func (srmu *SysRoleMenuUpdate) SetMenuID(s string) *SysRoleMenuUpdate
SetMenuID sets the "menu_id" field.
func (*SysRoleMenuUpdate) SetNillableActionID ¶
func (srmu *SysRoleMenuUpdate) SetNillableActionID(s *string) *SysRoleMenuUpdate
SetNillableActionID sets the "action_id" field if the given value is not nil.
func (*SysRoleMenuUpdate) SetNillableDeletedAt ¶
func (srmu *SysRoleMenuUpdate) SetNillableDeletedAt(t *time.Time) *SysRoleMenuUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleMenuUpdate) SetNillableIsDel ¶
func (srmu *SysRoleMenuUpdate) SetNillableIsDel(b *bool) *SysRoleMenuUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleMenuUpdate) SetRoleID ¶
func (srmu *SysRoleMenuUpdate) SetRoleID(s string) *SysRoleMenuUpdate
SetRoleID sets the "role_id" field.
func (*SysRoleMenuUpdate) SetUpdatedAt ¶
func (srmu *SysRoleMenuUpdate) SetUpdatedAt(t time.Time) *SysRoleMenuUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysRoleMenuUpdate) Where ¶
func (srmu *SysRoleMenuUpdate) Where(ps ...predicate.SysRoleMenu) *SysRoleMenuUpdate
Where adds a new predicate for the SysRoleMenuUpdate builder.
type SysRoleMenuUpdateOne ¶
type SysRoleMenuUpdateOne struct {
// contains filtered or unexported fields
}
SysRoleMenuUpdateOne is the builder for updating a single SysRoleMenu entity.
func (*SysRoleMenuUpdateOne) ClearActionID ¶
func (srmuo *SysRoleMenuUpdateOne) ClearActionID() *SysRoleMenuUpdateOne
ClearActionID clears the value of the "action_id" field.
func (*SysRoleMenuUpdateOne) ClearDeletedAt ¶
func (srmuo *SysRoleMenuUpdateOne) ClearDeletedAt() *SysRoleMenuUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleMenuUpdateOne) Exec ¶
func (srmuo *SysRoleMenuUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysRoleMenuUpdateOne) ExecX ¶
func (srmuo *SysRoleMenuUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleMenuUpdateOne) Mutation ¶
func (srmuo *SysRoleMenuUpdateOne) Mutation() *SysRoleMenuMutation
Mutation returns the SysRoleMenuMutation object of the builder.
func (*SysRoleMenuUpdateOne) Save ¶
func (srmuo *SysRoleMenuUpdateOne) Save(ctx context.Context) (*SysRoleMenu, error)
Save executes the query and returns the updated SysRoleMenu entity.
func (*SysRoleMenuUpdateOne) SaveX ¶
func (srmuo *SysRoleMenuUpdateOne) SaveX(ctx context.Context) *SysRoleMenu
SaveX is like Save, but panics if an error occurs.
func (*SysRoleMenuUpdateOne) Select ¶
func (srmuo *SysRoleMenuUpdateOne) Select(field string, fields ...string) *SysRoleMenuUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysRoleMenuUpdateOne) SetActionID ¶
func (srmuo *SysRoleMenuUpdateOne) SetActionID(s string) *SysRoleMenuUpdateOne
SetActionID sets the "action_id" field.
func (*SysRoleMenuUpdateOne) SetDeletedAt ¶
func (srmuo *SysRoleMenuUpdateOne) SetDeletedAt(t time.Time) *SysRoleMenuUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleMenuUpdateOne) SetInput ¶
func (u *SysRoleMenuUpdateOne) SetInput(i UpdateSysRoleMenuInput) *SysRoleMenuUpdateOne
SetInput applies the change-set in the UpdateSysRoleMenuInput on the update-one builder.
func (*SysRoleMenuUpdateOne) SetIsDel ¶
func (srmuo *SysRoleMenuUpdateOne) SetIsDel(b bool) *SysRoleMenuUpdateOne
SetIsDel sets the "is_del" field.
func (*SysRoleMenuUpdateOne) SetMenuID ¶
func (srmuo *SysRoleMenuUpdateOne) SetMenuID(s string) *SysRoleMenuUpdateOne
SetMenuID sets the "menu_id" field.
func (*SysRoleMenuUpdateOne) SetNillableActionID ¶
func (srmuo *SysRoleMenuUpdateOne) SetNillableActionID(s *string) *SysRoleMenuUpdateOne
SetNillableActionID sets the "action_id" field if the given value is not nil.
func (*SysRoleMenuUpdateOne) SetNillableDeletedAt ¶
func (srmuo *SysRoleMenuUpdateOne) SetNillableDeletedAt(t *time.Time) *SysRoleMenuUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleMenuUpdateOne) SetNillableIsDel ¶
func (srmuo *SysRoleMenuUpdateOne) SetNillableIsDel(b *bool) *SysRoleMenuUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleMenuUpdateOne) SetRoleID ¶
func (srmuo *SysRoleMenuUpdateOne) SetRoleID(s string) *SysRoleMenuUpdateOne
SetRoleID sets the "role_id" field.
func (*SysRoleMenuUpdateOne) SetUpdatedAt ¶
func (srmuo *SysRoleMenuUpdateOne) SetUpdatedAt(t time.Time) *SysRoleMenuUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysRoleMenus ¶
type SysRoleMenus []*SysRoleMenu
SysRoleMenus is a parsable slice of SysRoleMenu.
type SysRoleMutation ¶
type SysRoleMutation struct {
// contains filtered or unexported fields
}
SysRoleMutation represents an operation that mutates the SysRole nodes in the graph.
func (*SysRoleMutation) AddField ¶
func (m *SysRoleMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysRoleMutation) AddSort ¶
func (m *SysRoleMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysRoleMutation) AddStatus ¶
func (m *SysRoleMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysRoleMutation) AddedEdges ¶
func (m *SysRoleMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysRoleMutation) AddedField ¶
func (m *SysRoleMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysRoleMutation) AddedFields ¶
func (m *SysRoleMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysRoleMutation) AddedIDs ¶
func (m *SysRoleMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysRoleMutation) AddedSort ¶
func (m *SysRoleMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysRoleMutation) AddedStatus ¶
func (m *SysRoleMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysRoleMutation) ClearDeletedAt ¶
func (m *SysRoleMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleMutation) ClearEdge ¶
func (m *SysRoleMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysRoleMutation) ClearField ¶
func (m *SysRoleMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysRoleMutation) ClearedEdges ¶
func (m *SysRoleMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysRoleMutation) ClearedFields ¶
func (m *SysRoleMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysRoleMutation) Client ¶
func (m SysRoleMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysRoleMutation) CreatedAt ¶
func (m *SysRoleMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysRoleMutation) DeletedAt ¶
func (m *SysRoleMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysRoleMutation) DeletedAtCleared ¶
func (m *SysRoleMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysRoleMutation) EdgeCleared ¶
func (m *SysRoleMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysRoleMutation) Field ¶
func (m *SysRoleMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysRoleMutation) FieldCleared ¶
func (m *SysRoleMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysRoleMutation) Fields ¶
func (m *SysRoleMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysRoleMutation) ID ¶
func (m *SysRoleMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysRoleMutation) IsDel ¶
func (m *SysRoleMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysRoleMutation) Memo ¶
func (m *SysRoleMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*SysRoleMutation) Name ¶
func (m *SysRoleMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SysRoleMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysRoleMutation) OldIsDel ¶
func (m *SysRoleMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldMemo ¶
func (m *SysRoleMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldName ¶
func (m *SysRoleMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldSort ¶
func (m *SysRoleMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldStatus ¶
func (m *SysRoleMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysRole entity. If the SysRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysRoleMutation) RemovedEdges ¶
func (m *SysRoleMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysRoleMutation) RemovedIDs ¶
func (m *SysRoleMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysRoleMutation) ResetCreatedAt ¶
func (m *SysRoleMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysRoleMutation) ResetDeletedAt ¶
func (m *SysRoleMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysRoleMutation) ResetEdge ¶
func (m *SysRoleMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysRoleMutation) ResetField ¶
func (m *SysRoleMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysRoleMutation) ResetIsDel ¶
func (m *SysRoleMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysRoleMutation) ResetMemo ¶
func (m *SysRoleMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*SysRoleMutation) ResetName ¶
func (m *SysRoleMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SysRoleMutation) ResetSort ¶
func (m *SysRoleMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysRoleMutation) ResetStatus ¶
func (m *SysRoleMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysRoleMutation) ResetUpdatedAt ¶
func (m *SysRoleMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysRoleMutation) SetCreatedAt ¶
func (m *SysRoleMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysRoleMutation) SetDeletedAt ¶
func (m *SysRoleMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleMutation) SetField ¶
func (m *SysRoleMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysRoleMutation) SetID ¶
func (m *SysRoleMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysRole entities.
func (*SysRoleMutation) SetIsDel ¶
func (m *SysRoleMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysRoleMutation) SetMemo ¶
func (m *SysRoleMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*SysRoleMutation) SetName ¶
func (m *SysRoleMutation) SetName(s string)
SetName sets the "name" field.
func (*SysRoleMutation) SetSort ¶
func (m *SysRoleMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysRoleMutation) SetStatus ¶
func (m *SysRoleMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysRoleMutation) SetUpdatedAt ¶
func (m *SysRoleMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysRoleMutation) Sort ¶
func (m *SysRoleMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysRoleMutation) Status ¶
func (m *SysRoleMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysRoleMutation) Tx ¶
func (m SysRoleMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysRoleMutation) Type ¶
func (m *SysRoleMutation) Type() string
Type returns the node type of this mutation (SysRole).
type SysRoleQuery ¶
type SysRoleQuery struct {
// contains filtered or unexported fields
}
SysRoleQuery is the builder for querying SysRole entities.
func (*SysRoleQuery) All ¶
func (srq *SysRoleQuery) All(ctx context.Context) ([]*SysRole, error)
All executes the query and returns a list of SysRoles.
func (*SysRoleQuery) AllX ¶
func (srq *SysRoleQuery) AllX(ctx context.Context) []*SysRole
AllX is like All, but panics if an error occurs.
func (*SysRoleQuery) Clone ¶
func (srq *SysRoleQuery) Clone() *SysRoleQuery
Clone returns a duplicate of the SysRoleQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysRoleQuery) Count ¶
func (srq *SysRoleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysRoleQuery) CountX ¶
func (srq *SysRoleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysRoleQuery) Exist ¶
func (srq *SysRoleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysRoleQuery) ExistX ¶
func (srq *SysRoleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysRoleQuery) First ¶
func (srq *SysRoleQuery) First(ctx context.Context) (*SysRole, error)
First returns the first SysRole entity from the query. Returns a *NotFoundError when no SysRole was found.
func (*SysRoleQuery) FirstID ¶
func (srq *SysRoleQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysRole ID from the query. Returns a *NotFoundError when no SysRole ID was found.
func (*SysRoleQuery) FirstIDX ¶
func (srq *SysRoleQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysRoleQuery) FirstX ¶
func (srq *SysRoleQuery) FirstX(ctx context.Context) *SysRole
FirstX is like First, but panics if an error occurs.
func (*SysRoleQuery) GroupBy ¶
func (srq *SysRoleQuery) GroupBy(field string, fields ...string) *SysRoleGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysRole.Query(). GroupBy(sysrole.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysRoleQuery) IDs ¶
func (srq *SysRoleQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysRole IDs.
func (*SysRoleQuery) IDsX ¶
func (srq *SysRoleQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysRoleQuery) Limit ¶
func (srq *SysRoleQuery) Limit(limit int) *SysRoleQuery
Limit adds a limit step to the query.
func (*SysRoleQuery) Offset ¶
func (srq *SysRoleQuery) Offset(offset int) *SysRoleQuery
Offset adds an offset step to the query.
func (*SysRoleQuery) Only ¶
func (srq *SysRoleQuery) Only(ctx context.Context) (*SysRole, error)
Only returns a single SysRole entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysRole entity is not found. Returns a *NotFoundError when no SysRole entities are found.
func (*SysRoleQuery) OnlyID ¶
func (srq *SysRoleQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysRole ID in the query. Returns a *NotSingularError when exactly one SysRole ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysRoleQuery) OnlyIDX ¶
func (srq *SysRoleQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysRoleQuery) OnlyX ¶
func (srq *SysRoleQuery) OnlyX(ctx context.Context) *SysRole
OnlyX is like Only, but panics if an error occurs.
func (*SysRoleQuery) Order ¶
func (srq *SysRoleQuery) Order(o ...OrderFunc) *SysRoleQuery
Order adds an order step to the query.
func (*SysRoleQuery) Select ¶
func (srq *SysRoleQuery) Select(field string, fields ...string) *SysRoleSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysRole.Query(). Select(sysrole.FieldIsDel). Scan(ctx, &v)
func (*SysRoleQuery) Unique ¶
func (srq *SysRoleQuery) Unique(unique bool) *SysRoleQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysRoleQuery) Where ¶
func (srq *SysRoleQuery) Where(ps ...predicate.SysRole) *SysRoleQuery
Where adds a new predicate for the SysRoleQuery builder.
type SysRoleSelect ¶
type SysRoleSelect struct { *SysRoleQuery // contains filtered or unexported fields }
SysRoleSelect is the builder for selecting fields of SysRole entities.
func (*SysRoleSelect) Bool ¶
func (srs *SysRoleSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) BoolX ¶
func (srs *SysRoleSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysRoleSelect) Bools ¶
func (srs *SysRoleSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) BoolsX ¶
func (srs *SysRoleSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysRoleSelect) Float64 ¶
func (srs *SysRoleSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) Float64X ¶
func (srs *SysRoleSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysRoleSelect) Float64s ¶
func (srs *SysRoleSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) Float64sX ¶
func (srs *SysRoleSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysRoleSelect) Int ¶
func (srs *SysRoleSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) IntX ¶
func (srs *SysRoleSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysRoleSelect) Ints ¶
func (srs *SysRoleSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) IntsX ¶
func (srs *SysRoleSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysRoleSelect) Scan ¶
func (srs *SysRoleSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysRoleSelect) ScanX ¶
func (srs *SysRoleSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysRoleSelect) String ¶
func (srs *SysRoleSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysRoleSelect) StringX ¶
func (srs *SysRoleSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysRoleUpdate ¶
type SysRoleUpdate struct {
// contains filtered or unexported fields
}
SysRoleUpdate is the builder for updating SysRole entities.
func (*SysRoleUpdate) AddSort ¶
func (sru *SysRoleUpdate) AddSort(i int32) *SysRoleUpdate
AddSort adds i to the "sort" field.
func (*SysRoleUpdate) AddStatus ¶
func (sru *SysRoleUpdate) AddStatus(i int16) *SysRoleUpdate
AddStatus adds i to the "status" field.
func (*SysRoleUpdate) ClearDeletedAt ¶
func (sru *SysRoleUpdate) ClearDeletedAt() *SysRoleUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleUpdate) Exec ¶
func (sru *SysRoleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysRoleUpdate) ExecX ¶
func (sru *SysRoleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleUpdate) Mutation ¶
func (sru *SysRoleUpdate) Mutation() *SysRoleMutation
Mutation returns the SysRoleMutation object of the builder.
func (*SysRoleUpdate) Save ¶
func (sru *SysRoleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysRoleUpdate) SaveX ¶
func (sru *SysRoleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysRoleUpdate) SetDeletedAt ¶
func (sru *SysRoleUpdate) SetDeletedAt(t time.Time) *SysRoleUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleUpdate) SetInput ¶
func (u *SysRoleUpdate) SetInput(i UpdateSysRoleInput) *SysRoleUpdate
SetInput applies the change-set in the UpdateSysRoleInput on the update builder.
func (*SysRoleUpdate) SetIsDel ¶
func (sru *SysRoleUpdate) SetIsDel(b bool) *SysRoleUpdate
SetIsDel sets the "is_del" field.
func (*SysRoleUpdate) SetMemo ¶
func (sru *SysRoleUpdate) SetMemo(s string) *SysRoleUpdate
SetMemo sets the "memo" field.
func (*SysRoleUpdate) SetName ¶
func (sru *SysRoleUpdate) SetName(s string) *SysRoleUpdate
SetName sets the "name" field.
func (*SysRoleUpdate) SetNillableDeletedAt ¶
func (sru *SysRoleUpdate) SetNillableDeletedAt(t *time.Time) *SysRoleUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleUpdate) SetNillableIsDel ¶
func (sru *SysRoleUpdate) SetNillableIsDel(b *bool) *SysRoleUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleUpdate) SetNillableMemo ¶
func (sru *SysRoleUpdate) SetNillableMemo(s *string) *SysRoleUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysRoleUpdate) SetNillableSort ¶
func (sru *SysRoleUpdate) SetNillableSort(i *int32) *SysRoleUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysRoleUpdate) SetNillableStatus ¶
func (sru *SysRoleUpdate) SetNillableStatus(i *int16) *SysRoleUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysRoleUpdate) SetSort ¶
func (sru *SysRoleUpdate) SetSort(i int32) *SysRoleUpdate
SetSort sets the "sort" field.
func (*SysRoleUpdate) SetStatus ¶
func (sru *SysRoleUpdate) SetStatus(i int16) *SysRoleUpdate
SetStatus sets the "status" field.
func (*SysRoleUpdate) SetUpdatedAt ¶
func (sru *SysRoleUpdate) SetUpdatedAt(t time.Time) *SysRoleUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysRoleUpdate) Where ¶
func (sru *SysRoleUpdate) Where(ps ...predicate.SysRole) *SysRoleUpdate
Where adds a new predicate for the SysRoleUpdate builder.
type SysRoleUpdateOne ¶
type SysRoleUpdateOne struct {
// contains filtered or unexported fields
}
SysRoleUpdateOne is the builder for updating a single SysRole entity.
func (*SysRoleUpdateOne) AddSort ¶
func (sruo *SysRoleUpdateOne) AddSort(i int32) *SysRoleUpdateOne
AddSort adds i to the "sort" field.
func (*SysRoleUpdateOne) AddStatus ¶
func (sruo *SysRoleUpdateOne) AddStatus(i int16) *SysRoleUpdateOne
AddStatus adds i to the "status" field.
func (*SysRoleUpdateOne) ClearDeletedAt ¶
func (sruo *SysRoleUpdateOne) ClearDeletedAt() *SysRoleUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysRoleUpdateOne) Exec ¶
func (sruo *SysRoleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysRoleUpdateOne) ExecX ¶
func (sruo *SysRoleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysRoleUpdateOne) Mutation ¶
func (sruo *SysRoleUpdateOne) Mutation() *SysRoleMutation
Mutation returns the SysRoleMutation object of the builder.
func (*SysRoleUpdateOne) Save ¶
func (sruo *SysRoleUpdateOne) Save(ctx context.Context) (*SysRole, error)
Save executes the query and returns the updated SysRole entity.
func (*SysRoleUpdateOne) SaveX ¶
func (sruo *SysRoleUpdateOne) SaveX(ctx context.Context) *SysRole
SaveX is like Save, but panics if an error occurs.
func (*SysRoleUpdateOne) Select ¶
func (sruo *SysRoleUpdateOne) Select(field string, fields ...string) *SysRoleUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysRoleUpdateOne) SetDeletedAt ¶
func (sruo *SysRoleUpdateOne) SetDeletedAt(t time.Time) *SysRoleUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysRoleUpdateOne) SetInput ¶
func (u *SysRoleUpdateOne) SetInput(i UpdateSysRoleInput) *SysRoleUpdateOne
SetInput applies the change-set in the UpdateSysRoleInput on the update-one builder.
func (*SysRoleUpdateOne) SetIsDel ¶
func (sruo *SysRoleUpdateOne) SetIsDel(b bool) *SysRoleUpdateOne
SetIsDel sets the "is_del" field.
func (*SysRoleUpdateOne) SetMemo ¶
func (sruo *SysRoleUpdateOne) SetMemo(s string) *SysRoleUpdateOne
SetMemo sets the "memo" field.
func (*SysRoleUpdateOne) SetName ¶
func (sruo *SysRoleUpdateOne) SetName(s string) *SysRoleUpdateOne
SetName sets the "name" field.
func (*SysRoleUpdateOne) SetNillableDeletedAt ¶
func (sruo *SysRoleUpdateOne) SetNillableDeletedAt(t *time.Time) *SysRoleUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysRoleUpdateOne) SetNillableIsDel ¶
func (sruo *SysRoleUpdateOne) SetNillableIsDel(b *bool) *SysRoleUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysRoleUpdateOne) SetNillableMemo ¶
func (sruo *SysRoleUpdateOne) SetNillableMemo(s *string) *SysRoleUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*SysRoleUpdateOne) SetNillableSort ¶
func (sruo *SysRoleUpdateOne) SetNillableSort(i *int32) *SysRoleUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysRoleUpdateOne) SetNillableStatus ¶
func (sruo *SysRoleUpdateOne) SetNillableStatus(i *int16) *SysRoleUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysRoleUpdateOne) SetSort ¶
func (sruo *SysRoleUpdateOne) SetSort(i int32) *SysRoleUpdateOne
SetSort sets the "sort" field.
func (*SysRoleUpdateOne) SetStatus ¶
func (sruo *SysRoleUpdateOne) SetStatus(i int16) *SysRoleUpdateOne
SetStatus sets the "status" field.
func (*SysRoleUpdateOne) SetUpdatedAt ¶
func (sruo *SysRoleUpdateOne) SetUpdatedAt(t time.Time) *SysRoleUpdateOne
SetUpdatedAt sets the "updated_at" field.
type SysUser ¶
type SysUser struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Status holds the value of the "status" field. // 状态, Status int16 `json:"status,omitempty"` // UserName holds the value of the "user_name" field. // 用户名 UserName string `json:"user_name,omitempty"` // RealName holds the value of the "real_name" field. RealName *string `json:"real_name,omitempty"` // FirstName holds the value of the "first_name" field. // 名 FirstName *string `json:"first_name,omitempty"` // LastName holds the value of the "last_name" field. // 姓 LastName *string `json:"last_name,omitempty"` // Password holds the value of the "Password" field. // 密码 Password string `json:"-"` // Email holds the value of the "Email" field. // 电子邮箱 Email string `json:"email,omitempty"` // Phone holds the value of the "Phone" field. // 电话号码 Phone string `json:"phone,omitempty"` // Salt holds the value of the "salt" field. // 盐 Salt string `json:"salt,omitempty"` // contains filtered or unexported fields }
SysUser is the model entity for the SysUser schema.
func (*SysUser) Unwrap ¶
Unwrap unwraps the SysUser entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysUser) Update ¶
func (su *SysUser) Update() *SysUserUpdateOne
Update returns a builder for updating this SysUser. Note that you need to call SysUser.Unwrap() before calling this method if this SysUser was returned from a transaction, and the transaction was committed or rolled back.
type SysUserClient ¶
type SysUserClient struct {
// contains filtered or unexported fields
}
SysUserClient is a client for the SysUser schema.
func NewSysUserClient ¶
func NewSysUserClient(c config) *SysUserClient
NewSysUserClient returns a client for the SysUser from the given config.
func (*SysUserClient) Create ¶
func (c *SysUserClient) Create() *SysUserCreate
Create returns a create builder for SysUser.
func (*SysUserClient) CreateBulk ¶
func (c *SysUserClient) CreateBulk(builders ...*SysUserCreate) *SysUserCreateBulk
CreateBulk returns a builder for creating a bulk of SysUser entities.
func (*SysUserClient) Delete ¶
func (c *SysUserClient) Delete() *SysUserDelete
Delete returns a delete builder for SysUser.
func (*SysUserClient) DeleteOne ¶
func (c *SysUserClient) DeleteOne(su *SysUser) *SysUserDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysUserClient) DeleteOneID ¶
func (c *SysUserClient) DeleteOneID(id string) *SysUserDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysUserClient) GetX ¶
func (c *SysUserClient) GetX(ctx context.Context, id string) *SysUser
GetX is like Get, but panics if an error occurs.
func (*SysUserClient) Hooks ¶
func (c *SysUserClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysUserClient) Query ¶
func (c *SysUserClient) Query() *SysUserQuery
Query returns a query builder for SysUser.
func (*SysUserClient) Update ¶
func (c *SysUserClient) Update() *SysUserUpdate
Update returns an update builder for SysUser.
func (*SysUserClient) UpdateOne ¶
func (c *SysUserClient) UpdateOne(su *SysUser) *SysUserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysUserClient) UpdateOneID ¶
func (c *SysUserClient) UpdateOneID(id string) *SysUserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysUserClient) Use ¶
func (c *SysUserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysuser.Hooks(f(g(h())))`.
type SysUserCreate ¶
type SysUserCreate struct {
// contains filtered or unexported fields
}
SysUserCreate is the builder for creating a SysUser entity.
func (*SysUserCreate) Mutation ¶
func (suc *SysUserCreate) Mutation() *SysUserMutation
Mutation returns the SysUserMutation object of the builder.
func (*SysUserCreate) Save ¶
func (suc *SysUserCreate) Save(ctx context.Context) (*SysUser, error)
Save creates the SysUser in the database.
func (*SysUserCreate) SaveX ¶
func (suc *SysUserCreate) SaveX(ctx context.Context) *SysUser
SaveX calls Save and panics if Save returns an error.
func (*SysUserCreate) SetCreatedAt ¶
func (suc *SysUserCreate) SetCreatedAt(t time.Time) *SysUserCreate
SetCreatedAt sets the "created_at" field.
func (*SysUserCreate) SetDeletedAt ¶
func (suc *SysUserCreate) SetDeletedAt(t time.Time) *SysUserCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysUserCreate) SetEmail ¶
func (suc *SysUserCreate) SetEmail(s string) *SysUserCreate
SetEmail sets the "Email" field.
func (*SysUserCreate) SetFirstName ¶
func (suc *SysUserCreate) SetFirstName(s string) *SysUserCreate
SetFirstName sets the "first_name" field.
func (*SysUserCreate) SetID ¶
func (suc *SysUserCreate) SetID(s string) *SysUserCreate
SetID sets the "id" field.
func (*SysUserCreate) SetInput ¶
func (c *SysUserCreate) SetInput(i CreateSysUserInput) *SysUserCreate
SetInput applies the change-set in the CreateSysUserInput on the create builder.
func (*SysUserCreate) SetIsDel ¶
func (suc *SysUserCreate) SetIsDel(b bool) *SysUserCreate
SetIsDel sets the "is_del" field.
func (*SysUserCreate) SetLastName ¶
func (suc *SysUserCreate) SetLastName(s string) *SysUserCreate
SetLastName sets the "last_name" field.
func (*SysUserCreate) SetNillableCreatedAt ¶
func (suc *SysUserCreate) SetNillableCreatedAt(t *time.Time) *SysUserCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysUserCreate) SetNillableDeletedAt ¶
func (suc *SysUserCreate) SetNillableDeletedAt(t *time.Time) *SysUserCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserCreate) SetNillableFirstName ¶
func (suc *SysUserCreate) SetNillableFirstName(s *string) *SysUserCreate
SetNillableFirstName sets the "first_name" field if the given value is not nil.
func (*SysUserCreate) SetNillableID ¶
func (suc *SysUserCreate) SetNillableID(s *string) *SysUserCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysUserCreate) SetNillableIsDel ¶
func (suc *SysUserCreate) SetNillableIsDel(b *bool) *SysUserCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserCreate) SetNillableLastName ¶
func (suc *SysUserCreate) SetNillableLastName(s *string) *SysUserCreate
SetNillableLastName sets the "last_name" field if the given value is not nil.
func (*SysUserCreate) SetNillableRealName ¶
func (suc *SysUserCreate) SetNillableRealName(s *string) *SysUserCreate
SetNillableRealName sets the "real_name" field if the given value is not nil.
func (*SysUserCreate) SetNillableSalt ¶
func (suc *SysUserCreate) SetNillableSalt(s *string) *SysUserCreate
SetNillableSalt sets the "salt" field if the given value is not nil.
func (*SysUserCreate) SetNillableSort ¶
func (suc *SysUserCreate) SetNillableSort(i *int32) *SysUserCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysUserCreate) SetNillableStatus ¶
func (suc *SysUserCreate) SetNillableStatus(i *int16) *SysUserCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysUserCreate) SetNillableUpdatedAt ¶
func (suc *SysUserCreate) SetNillableUpdatedAt(t *time.Time) *SysUserCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysUserCreate) SetPassword ¶
func (suc *SysUserCreate) SetPassword(s string) *SysUserCreate
SetPassword sets the "Password" field.
func (*SysUserCreate) SetPhone ¶
func (suc *SysUserCreate) SetPhone(s string) *SysUserCreate
SetPhone sets the "Phone" field.
func (*SysUserCreate) SetRealName ¶
func (suc *SysUserCreate) SetRealName(s string) *SysUserCreate
SetRealName sets the "real_name" field.
func (*SysUserCreate) SetSalt ¶
func (suc *SysUserCreate) SetSalt(s string) *SysUserCreate
SetSalt sets the "salt" field.
func (*SysUserCreate) SetSort ¶
func (suc *SysUserCreate) SetSort(i int32) *SysUserCreate
SetSort sets the "sort" field.
func (*SysUserCreate) SetStatus ¶
func (suc *SysUserCreate) SetStatus(i int16) *SysUserCreate
SetStatus sets the "status" field.
func (*SysUserCreate) SetUpdatedAt ¶
func (suc *SysUserCreate) SetUpdatedAt(t time.Time) *SysUserCreate
SetUpdatedAt sets the "updated_at" field.
func (*SysUserCreate) SetUserName ¶
func (suc *SysUserCreate) SetUserName(s string) *SysUserCreate
SetUserName sets the "user_name" field.
type SysUserCreateBulk ¶
type SysUserCreateBulk struct {
// contains filtered or unexported fields
}
SysUserCreateBulk is the builder for creating many SysUser entities in bulk.
type SysUserDelete ¶
type SysUserDelete struct {
// contains filtered or unexported fields
}
SysUserDelete is the builder for deleting a SysUser entity.
func (*SysUserDelete) Exec ¶
func (sud *SysUserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysUserDelete) ExecX ¶
func (sud *SysUserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysUserDelete) Where ¶
func (sud *SysUserDelete) Where(ps ...predicate.SysUser) *SysUserDelete
Where adds a new predicate to the SysUserDelete builder.
type SysUserDeleteOne ¶
type SysUserDeleteOne struct {
// contains filtered or unexported fields
}
SysUserDeleteOne is the builder for deleting a single SysUser entity.
func (*SysUserDeleteOne) Exec ¶
func (sudo *SysUserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysUserDeleteOne) ExecX ¶
func (sudo *SysUserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysUserGroupBy ¶
type SysUserGroupBy struct {
// contains filtered or unexported fields
}
SysUserGroupBy is the group-by builder for SysUser entities.
func (*SysUserGroupBy) Aggregate ¶
func (sugb *SysUserGroupBy) Aggregate(fns ...AggregateFunc) *SysUserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysUserGroupBy) Bool ¶
func (sugb *SysUserGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) BoolX ¶
func (sugb *SysUserGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysUserGroupBy) Bools ¶
func (sugb *SysUserGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) BoolsX ¶
func (sugb *SysUserGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysUserGroupBy) Float64 ¶
func (sugb *SysUserGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) Float64X ¶
func (sugb *SysUserGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysUserGroupBy) Float64s ¶
func (sugb *SysUserGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) Float64sX ¶
func (sugb *SysUserGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysUserGroupBy) Int ¶
func (sugb *SysUserGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) IntX ¶
func (sugb *SysUserGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysUserGroupBy) Ints ¶
func (sugb *SysUserGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) IntsX ¶
func (sugb *SysUserGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysUserGroupBy) Scan ¶
func (sugb *SysUserGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysUserGroupBy) ScanX ¶
func (sugb *SysUserGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysUserGroupBy) String ¶
func (sugb *SysUserGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserGroupBy) StringX ¶
func (sugb *SysUserGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysUserMutation ¶
type SysUserMutation struct {
// contains filtered or unexported fields
}
SysUserMutation represents an operation that mutates the SysUser nodes in the graph.
func (*SysUserMutation) AddField ¶
func (m *SysUserMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysUserMutation) AddSort ¶
func (m *SysUserMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*SysUserMutation) AddStatus ¶
func (m *SysUserMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*SysUserMutation) AddedEdges ¶
func (m *SysUserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysUserMutation) AddedField ¶
func (m *SysUserMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysUserMutation) AddedFields ¶
func (m *SysUserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysUserMutation) AddedIDs ¶
func (m *SysUserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysUserMutation) AddedSort ¶
func (m *SysUserMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*SysUserMutation) AddedStatus ¶
func (m *SysUserMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SysUserMutation) ClearDeletedAt ¶
func (m *SysUserMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserMutation) ClearEdge ¶
func (m *SysUserMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysUserMutation) ClearField ¶
func (m *SysUserMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysUserMutation) ClearFirstName ¶
func (m *SysUserMutation) ClearFirstName()
ClearFirstName clears the value of the "first_name" field.
func (*SysUserMutation) ClearLastName ¶
func (m *SysUserMutation) ClearLastName()
ClearLastName clears the value of the "last_name" field.
func (*SysUserMutation) ClearRealName ¶
func (m *SysUserMutation) ClearRealName()
ClearRealName clears the value of the "real_name" field.
func (*SysUserMutation) ClearedEdges ¶
func (m *SysUserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysUserMutation) ClearedFields ¶
func (m *SysUserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysUserMutation) Client ¶
func (m SysUserMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysUserMutation) CreatedAt ¶
func (m *SysUserMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysUserMutation) DeletedAt ¶
func (m *SysUserMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysUserMutation) DeletedAtCleared ¶
func (m *SysUserMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysUserMutation) EdgeCleared ¶
func (m *SysUserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysUserMutation) Email ¶
func (m *SysUserMutation) Email() (r string, exists bool)
Email returns the value of the "Email" field in the mutation.
func (*SysUserMutation) Field ¶
func (m *SysUserMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysUserMutation) FieldCleared ¶
func (m *SysUserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysUserMutation) Fields ¶
func (m *SysUserMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysUserMutation) FirstName ¶
func (m *SysUserMutation) FirstName() (r string, exists bool)
FirstName returns the value of the "first_name" field in the mutation.
func (*SysUserMutation) FirstNameCleared ¶
func (m *SysUserMutation) FirstNameCleared() bool
FirstNameCleared returns if the "first_name" field was cleared in this mutation.
func (*SysUserMutation) ID ¶
func (m *SysUserMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysUserMutation) IsDel ¶
func (m *SysUserMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysUserMutation) LastName ¶
func (m *SysUserMutation) LastName() (r string, exists bool)
LastName returns the value of the "last_name" field in the mutation.
func (*SysUserMutation) LastNameCleared ¶
func (m *SysUserMutation) LastNameCleared() bool
LastNameCleared returns if the "last_name" field was cleared in this mutation.
func (*SysUserMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldEmail ¶
func (m *SysUserMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "Email" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysUserMutation) OldFirstName ¶
func (m *SysUserMutation) OldFirstName(ctx context.Context) (v *string, err error)
OldFirstName returns the old "first_name" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldIsDel ¶
func (m *SysUserMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldLastName ¶
func (m *SysUserMutation) OldLastName(ctx context.Context) (v *string, err error)
OldLastName returns the old "last_name" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldPassword ¶
func (m *SysUserMutation) OldPassword(ctx context.Context) (v string, err error)
OldPassword returns the old "Password" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldPhone ¶
func (m *SysUserMutation) OldPhone(ctx context.Context) (v string, err error)
OldPhone returns the old "Phone" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldRealName ¶
func (m *SysUserMutation) OldRealName(ctx context.Context) (v *string, err error)
OldRealName returns the old "real_name" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldSalt ¶
func (m *SysUserMutation) OldSalt(ctx context.Context) (v string, err error)
OldSalt returns the old "salt" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldSort ¶
func (m *SysUserMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldStatus ¶
func (m *SysUserMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) OldUserName ¶
func (m *SysUserMutation) OldUserName(ctx context.Context) (v string, err error)
OldUserName returns the old "user_name" field's value of the SysUser entity. If the SysUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserMutation) Password ¶
func (m *SysUserMutation) Password() (r string, exists bool)
Password returns the value of the "Password" field in the mutation.
func (*SysUserMutation) Phone ¶
func (m *SysUserMutation) Phone() (r string, exists bool)
Phone returns the value of the "Phone" field in the mutation.
func (*SysUserMutation) RealName ¶
func (m *SysUserMutation) RealName() (r string, exists bool)
RealName returns the value of the "real_name" field in the mutation.
func (*SysUserMutation) RealNameCleared ¶
func (m *SysUserMutation) RealNameCleared() bool
RealNameCleared returns if the "real_name" field was cleared in this mutation.
func (*SysUserMutation) RemovedEdges ¶
func (m *SysUserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysUserMutation) RemovedIDs ¶
func (m *SysUserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysUserMutation) ResetCreatedAt ¶
func (m *SysUserMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysUserMutation) ResetDeletedAt ¶
func (m *SysUserMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysUserMutation) ResetEdge ¶
func (m *SysUserMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysUserMutation) ResetEmail ¶
func (m *SysUserMutation) ResetEmail()
ResetEmail resets all changes to the "Email" field.
func (*SysUserMutation) ResetField ¶
func (m *SysUserMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysUserMutation) ResetFirstName ¶
func (m *SysUserMutation) ResetFirstName()
ResetFirstName resets all changes to the "first_name" field.
func (*SysUserMutation) ResetIsDel ¶
func (m *SysUserMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysUserMutation) ResetLastName ¶
func (m *SysUserMutation) ResetLastName()
ResetLastName resets all changes to the "last_name" field.
func (*SysUserMutation) ResetPassword ¶
func (m *SysUserMutation) ResetPassword()
ResetPassword resets all changes to the "Password" field.
func (*SysUserMutation) ResetPhone ¶
func (m *SysUserMutation) ResetPhone()
ResetPhone resets all changes to the "Phone" field.
func (*SysUserMutation) ResetRealName ¶
func (m *SysUserMutation) ResetRealName()
ResetRealName resets all changes to the "real_name" field.
func (*SysUserMutation) ResetSalt ¶
func (m *SysUserMutation) ResetSalt()
ResetSalt resets all changes to the "salt" field.
func (*SysUserMutation) ResetSort ¶
func (m *SysUserMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*SysUserMutation) ResetStatus ¶
func (m *SysUserMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SysUserMutation) ResetUpdatedAt ¶
func (m *SysUserMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysUserMutation) ResetUserName ¶
func (m *SysUserMutation) ResetUserName()
ResetUserName resets all changes to the "user_name" field.
func (*SysUserMutation) Salt ¶
func (m *SysUserMutation) Salt() (r string, exists bool)
Salt returns the value of the "salt" field in the mutation.
func (*SysUserMutation) SetCreatedAt ¶
func (m *SysUserMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysUserMutation) SetDeletedAt ¶
func (m *SysUserMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysUserMutation) SetEmail ¶
func (m *SysUserMutation) SetEmail(s string)
SetEmail sets the "Email" field.
func (*SysUserMutation) SetField ¶
func (m *SysUserMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysUserMutation) SetFirstName ¶
func (m *SysUserMutation) SetFirstName(s string)
SetFirstName sets the "first_name" field.
func (*SysUserMutation) SetID ¶
func (m *SysUserMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysUser entities.
func (*SysUserMutation) SetIsDel ¶
func (m *SysUserMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysUserMutation) SetLastName ¶
func (m *SysUserMutation) SetLastName(s string)
SetLastName sets the "last_name" field.
func (*SysUserMutation) SetPassword ¶
func (m *SysUserMutation) SetPassword(s string)
SetPassword sets the "Password" field.
func (*SysUserMutation) SetPhone ¶
func (m *SysUserMutation) SetPhone(s string)
SetPhone sets the "Phone" field.
func (*SysUserMutation) SetRealName ¶
func (m *SysUserMutation) SetRealName(s string)
SetRealName sets the "real_name" field.
func (*SysUserMutation) SetSalt ¶
func (m *SysUserMutation) SetSalt(s string)
SetSalt sets the "salt" field.
func (*SysUserMutation) SetSort ¶
func (m *SysUserMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*SysUserMutation) SetStatus ¶
func (m *SysUserMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*SysUserMutation) SetUpdatedAt ¶
func (m *SysUserMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysUserMutation) SetUserName ¶
func (m *SysUserMutation) SetUserName(s string)
SetUserName sets the "user_name" field.
func (*SysUserMutation) Sort ¶
func (m *SysUserMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*SysUserMutation) Status ¶
func (m *SysUserMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (SysUserMutation) Tx ¶
func (m SysUserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysUserMutation) Type ¶
func (m *SysUserMutation) Type() string
Type returns the node type of this mutation (SysUser).
func (*SysUserMutation) UpdatedAt ¶
func (m *SysUserMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SysUserMutation) UserName ¶
func (m *SysUserMutation) UserName() (r string, exists bool)
UserName returns the value of the "user_name" field in the mutation.
type SysUserQuery ¶
type SysUserQuery struct {
// contains filtered or unexported fields
}
SysUserQuery is the builder for querying SysUser entities.
func (*SysUserQuery) All ¶
func (suq *SysUserQuery) All(ctx context.Context) ([]*SysUser, error)
All executes the query and returns a list of SysUsers.
func (*SysUserQuery) AllX ¶
func (suq *SysUserQuery) AllX(ctx context.Context) []*SysUser
AllX is like All, but panics if an error occurs.
func (*SysUserQuery) Clone ¶
func (suq *SysUserQuery) Clone() *SysUserQuery
Clone returns a duplicate of the SysUserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysUserQuery) Count ¶
func (suq *SysUserQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysUserQuery) CountX ¶
func (suq *SysUserQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysUserQuery) Exist ¶
func (suq *SysUserQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysUserQuery) ExistX ¶
func (suq *SysUserQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysUserQuery) First ¶
func (suq *SysUserQuery) First(ctx context.Context) (*SysUser, error)
First returns the first SysUser entity from the query. Returns a *NotFoundError when no SysUser was found.
func (*SysUserQuery) FirstID ¶
func (suq *SysUserQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysUser ID from the query. Returns a *NotFoundError when no SysUser ID was found.
func (*SysUserQuery) FirstIDX ¶
func (suq *SysUserQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysUserQuery) FirstX ¶
func (suq *SysUserQuery) FirstX(ctx context.Context) *SysUser
FirstX is like First, but panics if an error occurs.
func (*SysUserQuery) GroupBy ¶
func (suq *SysUserQuery) GroupBy(field string, fields ...string) *SysUserGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysUser.Query(). GroupBy(sysuser.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysUserQuery) IDs ¶
func (suq *SysUserQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysUser IDs.
func (*SysUserQuery) IDsX ¶
func (suq *SysUserQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysUserQuery) Limit ¶
func (suq *SysUserQuery) Limit(limit int) *SysUserQuery
Limit adds a limit step to the query.
func (*SysUserQuery) Offset ¶
func (suq *SysUserQuery) Offset(offset int) *SysUserQuery
Offset adds an offset step to the query.
func (*SysUserQuery) Only ¶
func (suq *SysUserQuery) Only(ctx context.Context) (*SysUser, error)
Only returns a single SysUser entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysUser entity is not found. Returns a *NotFoundError when no SysUser entities are found.
func (*SysUserQuery) OnlyID ¶
func (suq *SysUserQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysUser ID in the query. Returns a *NotSingularError when exactly one SysUser ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysUserQuery) OnlyIDX ¶
func (suq *SysUserQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysUserQuery) OnlyX ¶
func (suq *SysUserQuery) OnlyX(ctx context.Context) *SysUser
OnlyX is like Only, but panics if an error occurs.
func (*SysUserQuery) Order ¶
func (suq *SysUserQuery) Order(o ...OrderFunc) *SysUserQuery
Order adds an order step to the query.
func (*SysUserQuery) Select ¶
func (suq *SysUserQuery) Select(field string, fields ...string) *SysUserSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysUser.Query(). Select(sysuser.FieldIsDel). Scan(ctx, &v)
func (*SysUserQuery) Unique ¶
func (suq *SysUserQuery) Unique(unique bool) *SysUserQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysUserQuery) Where ¶
func (suq *SysUserQuery) Where(ps ...predicate.SysUser) *SysUserQuery
Where adds a new predicate for the SysUserQuery builder.
type SysUserRole ¶
type SysUserRole struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // UserID holds the value of the "user_id" field. // 用户ID, sys_user.id UserID string `json:"user_id,omitempty"` // RoleID holds the value of the "role_id" field. // 角色ID, sys_role.id RoleID string `json:"role_id,omitempty"` // contains filtered or unexported fields }
SysUserRole is the model entity for the SysUserRole schema.
func (*SysUserRole) String ¶
func (sur *SysUserRole) String() string
String implements the fmt.Stringer.
func (*SysUserRole) Unwrap ¶
func (sur *SysUserRole) Unwrap() *SysUserRole
Unwrap unwraps the SysUserRole entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*SysUserRole) Update ¶
func (sur *SysUserRole) Update() *SysUserRoleUpdateOne
Update returns a builder for updating this SysUserRole. Note that you need to call SysUserRole.Unwrap() before calling this method if this SysUserRole was returned from a transaction, and the transaction was committed or rolled back.
type SysUserRoleClient ¶
type SysUserRoleClient struct {
// contains filtered or unexported fields
}
SysUserRoleClient is a client for the SysUserRole schema.
func NewSysUserRoleClient ¶
func NewSysUserRoleClient(c config) *SysUserRoleClient
NewSysUserRoleClient returns a client for the SysUserRole from the given config.
func (*SysUserRoleClient) Create ¶
func (c *SysUserRoleClient) Create() *SysUserRoleCreate
Create returns a create builder for SysUserRole.
func (*SysUserRoleClient) CreateBulk ¶
func (c *SysUserRoleClient) CreateBulk(builders ...*SysUserRoleCreate) *SysUserRoleCreateBulk
CreateBulk returns a builder for creating a bulk of SysUserRole entities.
func (*SysUserRoleClient) Delete ¶
func (c *SysUserRoleClient) Delete() *SysUserRoleDelete
Delete returns a delete builder for SysUserRole.
func (*SysUserRoleClient) DeleteOne ¶
func (c *SysUserRoleClient) DeleteOne(sur *SysUserRole) *SysUserRoleDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SysUserRoleClient) DeleteOneID ¶
func (c *SysUserRoleClient) DeleteOneID(id string) *SysUserRoleDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SysUserRoleClient) Get ¶
func (c *SysUserRoleClient) Get(ctx context.Context, id string) (*SysUserRole, error)
Get returns a SysUserRole entity by its id.
func (*SysUserRoleClient) GetX ¶
func (c *SysUserRoleClient) GetX(ctx context.Context, id string) *SysUserRole
GetX is like Get, but panics if an error occurs.
func (*SysUserRoleClient) Hooks ¶
func (c *SysUserRoleClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SysUserRoleClient) Query ¶
func (c *SysUserRoleClient) Query() *SysUserRoleQuery
Query returns a query builder for SysUserRole.
func (*SysUserRoleClient) Update ¶
func (c *SysUserRoleClient) Update() *SysUserRoleUpdate
Update returns an update builder for SysUserRole.
func (*SysUserRoleClient) UpdateOne ¶
func (c *SysUserRoleClient) UpdateOne(sur *SysUserRole) *SysUserRoleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SysUserRoleClient) UpdateOneID ¶
func (c *SysUserRoleClient) UpdateOneID(id string) *SysUserRoleUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SysUserRoleClient) Use ¶
func (c *SysUserRoleClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `sysuserrole.Hooks(f(g(h())))`.
type SysUserRoleCreate ¶
type SysUserRoleCreate struct {
// contains filtered or unexported fields
}
SysUserRoleCreate is the builder for creating a SysUserRole entity.
func (*SysUserRoleCreate) Mutation ¶
func (surc *SysUserRoleCreate) Mutation() *SysUserRoleMutation
Mutation returns the SysUserRoleMutation object of the builder.
func (*SysUserRoleCreate) Save ¶
func (surc *SysUserRoleCreate) Save(ctx context.Context) (*SysUserRole, error)
Save creates the SysUserRole in the database.
func (*SysUserRoleCreate) SaveX ¶
func (surc *SysUserRoleCreate) SaveX(ctx context.Context) *SysUserRole
SaveX calls Save and panics if Save returns an error.
func (*SysUserRoleCreate) SetCreatedAt ¶
func (surc *SysUserRoleCreate) SetCreatedAt(t time.Time) *SysUserRoleCreate
SetCreatedAt sets the "created_at" field.
func (*SysUserRoleCreate) SetDeletedAt ¶
func (surc *SysUserRoleCreate) SetDeletedAt(t time.Time) *SysUserRoleCreate
SetDeletedAt sets the "deleted_at" field.
func (*SysUserRoleCreate) SetID ¶
func (surc *SysUserRoleCreate) SetID(s string) *SysUserRoleCreate
SetID sets the "id" field.
func (*SysUserRoleCreate) SetInput ¶
func (c *SysUserRoleCreate) SetInput(i CreateSysUserRoleInput) *SysUserRoleCreate
SetInput applies the change-set in the CreateSysUserRoleInput on the create builder.
func (*SysUserRoleCreate) SetIsDel ¶
func (surc *SysUserRoleCreate) SetIsDel(b bool) *SysUserRoleCreate
SetIsDel sets the "is_del" field.
func (*SysUserRoleCreate) SetNillableCreatedAt ¶
func (surc *SysUserRoleCreate) SetNillableCreatedAt(t *time.Time) *SysUserRoleCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SysUserRoleCreate) SetNillableDeletedAt ¶
func (surc *SysUserRoleCreate) SetNillableDeletedAt(t *time.Time) *SysUserRoleCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserRoleCreate) SetNillableID ¶
func (surc *SysUserRoleCreate) SetNillableID(s *string) *SysUserRoleCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SysUserRoleCreate) SetNillableIsDel ¶
func (surc *SysUserRoleCreate) SetNillableIsDel(b *bool) *SysUserRoleCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserRoleCreate) SetNillableUpdatedAt ¶
func (surc *SysUserRoleCreate) SetNillableUpdatedAt(t *time.Time) *SysUserRoleCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SysUserRoleCreate) SetRoleID ¶
func (surc *SysUserRoleCreate) SetRoleID(s string) *SysUserRoleCreate
SetRoleID sets the "role_id" field.
func (*SysUserRoleCreate) SetUpdatedAt ¶
func (surc *SysUserRoleCreate) SetUpdatedAt(t time.Time) *SysUserRoleCreate
SetUpdatedAt sets the "updated_at" field.
func (*SysUserRoleCreate) SetUserID ¶
func (surc *SysUserRoleCreate) SetUserID(s string) *SysUserRoleCreate
SetUserID sets the "user_id" field.
type SysUserRoleCreateBulk ¶
type SysUserRoleCreateBulk struct {
// contains filtered or unexported fields
}
SysUserRoleCreateBulk is the builder for creating many SysUserRole entities in bulk.
func (*SysUserRoleCreateBulk) Save ¶
func (surcb *SysUserRoleCreateBulk) Save(ctx context.Context) ([]*SysUserRole, error)
Save creates the SysUserRole entities in the database.
func (*SysUserRoleCreateBulk) SaveX ¶
func (surcb *SysUserRoleCreateBulk) SaveX(ctx context.Context) []*SysUserRole
SaveX is like Save, but panics if an error occurs.
type SysUserRoleDelete ¶
type SysUserRoleDelete struct {
// contains filtered or unexported fields
}
SysUserRoleDelete is the builder for deleting a SysUserRole entity.
func (*SysUserRoleDelete) Exec ¶
func (surd *SysUserRoleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SysUserRoleDelete) ExecX ¶
func (surd *SysUserRoleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SysUserRoleDelete) Where ¶
func (surd *SysUserRoleDelete) Where(ps ...predicate.SysUserRole) *SysUserRoleDelete
Where adds a new predicate to the SysUserRoleDelete builder.
type SysUserRoleDeleteOne ¶
type SysUserRoleDeleteOne struct {
// contains filtered or unexported fields
}
SysUserRoleDeleteOne is the builder for deleting a single SysUserRole entity.
func (*SysUserRoleDeleteOne) Exec ¶
func (surdo *SysUserRoleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SysUserRoleDeleteOne) ExecX ¶
func (surdo *SysUserRoleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SysUserRoleGroupBy ¶
type SysUserRoleGroupBy struct {
// contains filtered or unexported fields
}
SysUserRoleGroupBy is the group-by builder for SysUserRole entities.
func (*SysUserRoleGroupBy) Aggregate ¶
func (surgb *SysUserRoleGroupBy) Aggregate(fns ...AggregateFunc) *SysUserRoleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SysUserRoleGroupBy) Bool ¶
func (surgb *SysUserRoleGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) BoolX ¶
func (surgb *SysUserRoleGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysUserRoleGroupBy) Bools ¶
func (surgb *SysUserRoleGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) BoolsX ¶
func (surgb *SysUserRoleGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysUserRoleGroupBy) Float64 ¶
func (surgb *SysUserRoleGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) Float64X ¶
func (surgb *SysUserRoleGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysUserRoleGroupBy) Float64s ¶
func (surgb *SysUserRoleGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) Float64sX ¶
func (surgb *SysUserRoleGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysUserRoleGroupBy) Int ¶
func (surgb *SysUserRoleGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) IntX ¶
func (surgb *SysUserRoleGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysUserRoleGroupBy) Ints ¶
func (surgb *SysUserRoleGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) IntsX ¶
func (surgb *SysUserRoleGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysUserRoleGroupBy) Scan ¶
func (surgb *SysUserRoleGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*SysUserRoleGroupBy) ScanX ¶
func (surgb *SysUserRoleGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysUserRoleGroupBy) String ¶
func (surgb *SysUserRoleGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*SysUserRoleGroupBy) StringX ¶
func (surgb *SysUserRoleGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysUserRoleMutation ¶
type SysUserRoleMutation struct {
// contains filtered or unexported fields
}
SysUserRoleMutation represents an operation that mutates the SysUserRole nodes in the graph.
func (*SysUserRoleMutation) AddField ¶
func (m *SysUserRoleMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysUserRoleMutation) AddedEdges ¶
func (m *SysUserRoleMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SysUserRoleMutation) AddedField ¶
func (m *SysUserRoleMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysUserRoleMutation) AddedFields ¶
func (m *SysUserRoleMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SysUserRoleMutation) AddedIDs ¶
func (m *SysUserRoleMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SysUserRoleMutation) ClearDeletedAt ¶
func (m *SysUserRoleMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserRoleMutation) ClearEdge ¶
func (m *SysUserRoleMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SysUserRoleMutation) ClearField ¶
func (m *SysUserRoleMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysUserRoleMutation) ClearedEdges ¶
func (m *SysUserRoleMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SysUserRoleMutation) ClearedFields ¶
func (m *SysUserRoleMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SysUserRoleMutation) Client ¶
func (m SysUserRoleMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SysUserRoleMutation) CreatedAt ¶
func (m *SysUserRoleMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SysUserRoleMutation) DeletedAt ¶
func (m *SysUserRoleMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*SysUserRoleMutation) DeletedAtCleared ¶
func (m *SysUserRoleMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*SysUserRoleMutation) EdgeCleared ¶
func (m *SysUserRoleMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SysUserRoleMutation) Field ¶
func (m *SysUserRoleMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SysUserRoleMutation) FieldCleared ¶
func (m *SysUserRoleMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SysUserRoleMutation) Fields ¶
func (m *SysUserRoleMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SysUserRoleMutation) ID ¶
func (m *SysUserRoleMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*SysUserRoleMutation) IsDel ¶
func (m *SysUserRoleMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*SysUserRoleMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SysUserRoleMutation) OldIsDel ¶
func (m *SysUserRoleMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) OldRoleID ¶
func (m *SysUserRoleMutation) OldRoleID(ctx context.Context) (v string, err error)
OldRoleID returns the old "role_id" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) OldUserID ¶
func (m *SysUserRoleMutation) OldUserID(ctx context.Context) (v string, err error)
OldUserID returns the old "user_id" field's value of the SysUserRole entity. If the SysUserRole object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SysUserRoleMutation) Op ¶
func (m *SysUserRoleMutation) Op() Op
Op returns the operation name.
func (*SysUserRoleMutation) RemovedEdges ¶
func (m *SysUserRoleMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SysUserRoleMutation) RemovedIDs ¶
func (m *SysUserRoleMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SysUserRoleMutation) ResetCreatedAt ¶
func (m *SysUserRoleMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SysUserRoleMutation) ResetDeletedAt ¶
func (m *SysUserRoleMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*SysUserRoleMutation) ResetEdge ¶
func (m *SysUserRoleMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SysUserRoleMutation) ResetField ¶
func (m *SysUserRoleMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SysUserRoleMutation) ResetIsDel ¶
func (m *SysUserRoleMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*SysUserRoleMutation) ResetRoleID ¶
func (m *SysUserRoleMutation) ResetRoleID()
ResetRoleID resets all changes to the "role_id" field.
func (*SysUserRoleMutation) ResetUpdatedAt ¶
func (m *SysUserRoleMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SysUserRoleMutation) ResetUserID ¶
func (m *SysUserRoleMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*SysUserRoleMutation) RoleID ¶
func (m *SysUserRoleMutation) RoleID() (r string, exists bool)
RoleID returns the value of the "role_id" field in the mutation.
func (*SysUserRoleMutation) SetCreatedAt ¶
func (m *SysUserRoleMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SysUserRoleMutation) SetDeletedAt ¶
func (m *SysUserRoleMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*SysUserRoleMutation) SetField ¶
func (m *SysUserRoleMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SysUserRoleMutation) SetID ¶
func (m *SysUserRoleMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of SysUserRole entities.
func (*SysUserRoleMutation) SetIsDel ¶
func (m *SysUserRoleMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*SysUserRoleMutation) SetRoleID ¶
func (m *SysUserRoleMutation) SetRoleID(s string)
SetRoleID sets the "role_id" field.
func (*SysUserRoleMutation) SetUpdatedAt ¶
func (m *SysUserRoleMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SysUserRoleMutation) SetUserID ¶
func (m *SysUserRoleMutation) SetUserID(s string)
SetUserID sets the "user_id" field.
func (SysUserRoleMutation) Tx ¶
func (m SysUserRoleMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SysUserRoleMutation) Type ¶
func (m *SysUserRoleMutation) Type() string
Type returns the node type of this mutation (SysUserRole).
func (*SysUserRoleMutation) UpdatedAt ¶
func (m *SysUserRoleMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SysUserRoleMutation) UserID ¶
func (m *SysUserRoleMutation) UserID() (r string, exists bool)
UserID returns the value of the "user_id" field in the mutation.
type SysUserRoleQuery ¶
type SysUserRoleQuery struct {
// contains filtered or unexported fields
}
SysUserRoleQuery is the builder for querying SysUserRole entities.
func (*SysUserRoleQuery) All ¶
func (surq *SysUserRoleQuery) All(ctx context.Context) ([]*SysUserRole, error)
All executes the query and returns a list of SysUserRoles.
func (*SysUserRoleQuery) AllX ¶
func (surq *SysUserRoleQuery) AllX(ctx context.Context) []*SysUserRole
AllX is like All, but panics if an error occurs.
func (*SysUserRoleQuery) Clone ¶
func (surq *SysUserRoleQuery) Clone() *SysUserRoleQuery
Clone returns a duplicate of the SysUserRoleQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SysUserRoleQuery) Count ¶
func (surq *SysUserRoleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SysUserRoleQuery) CountX ¶
func (surq *SysUserRoleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SysUserRoleQuery) Exist ¶
func (surq *SysUserRoleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SysUserRoleQuery) ExistX ¶
func (surq *SysUserRoleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SysUserRoleQuery) First ¶
func (surq *SysUserRoleQuery) First(ctx context.Context) (*SysUserRole, error)
First returns the first SysUserRole entity from the query. Returns a *NotFoundError when no SysUserRole was found.
func (*SysUserRoleQuery) FirstID ¶
func (surq *SysUserRoleQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first SysUserRole ID from the query. Returns a *NotFoundError when no SysUserRole ID was found.
func (*SysUserRoleQuery) FirstIDX ¶
func (surq *SysUserRoleQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SysUserRoleQuery) FirstX ¶
func (surq *SysUserRoleQuery) FirstX(ctx context.Context) *SysUserRole
FirstX is like First, but panics if an error occurs.
func (*SysUserRoleQuery) GroupBy ¶
func (surq *SysUserRoleQuery) GroupBy(field string, fields ...string) *SysUserRoleGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.SysUserRole.Query(). GroupBy(sysuserrole.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SysUserRoleQuery) IDs ¶
func (surq *SysUserRoleQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of SysUserRole IDs.
func (*SysUserRoleQuery) IDsX ¶
func (surq *SysUserRoleQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SysUserRoleQuery) Limit ¶
func (surq *SysUserRoleQuery) Limit(limit int) *SysUserRoleQuery
Limit adds a limit step to the query.
func (*SysUserRoleQuery) Offset ¶
func (surq *SysUserRoleQuery) Offset(offset int) *SysUserRoleQuery
Offset adds an offset step to the query.
func (*SysUserRoleQuery) Only ¶
func (surq *SysUserRoleQuery) Only(ctx context.Context) (*SysUserRole, error)
Only returns a single SysUserRole entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SysUserRole entity is not found. Returns a *NotFoundError when no SysUserRole entities are found.
func (*SysUserRoleQuery) OnlyID ¶
func (surq *SysUserRoleQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only SysUserRole ID in the query. Returns a *NotSingularError when exactly one SysUserRole ID is not found. Returns a *NotFoundError when no entities are found.
func (*SysUserRoleQuery) OnlyIDX ¶
func (surq *SysUserRoleQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SysUserRoleQuery) OnlyX ¶
func (surq *SysUserRoleQuery) OnlyX(ctx context.Context) *SysUserRole
OnlyX is like Only, but panics if an error occurs.
func (*SysUserRoleQuery) Order ¶
func (surq *SysUserRoleQuery) Order(o ...OrderFunc) *SysUserRoleQuery
Order adds an order step to the query.
func (*SysUserRoleQuery) Select ¶
func (surq *SysUserRoleQuery) Select(field string, fields ...string) *SysUserRoleSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.SysUserRole.Query(). Select(sysuserrole.FieldIsDel). Scan(ctx, &v)
func (*SysUserRoleQuery) Unique ¶
func (surq *SysUserRoleQuery) Unique(unique bool) *SysUserRoleQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SysUserRoleQuery) Where ¶
func (surq *SysUserRoleQuery) Where(ps ...predicate.SysUserRole) *SysUserRoleQuery
Where adds a new predicate for the SysUserRoleQuery builder.
type SysUserRoleSelect ¶
type SysUserRoleSelect struct { *SysUserRoleQuery // contains filtered or unexported fields }
SysUserRoleSelect is the builder for selecting fields of SysUserRole entities.
func (*SysUserRoleSelect) Bool ¶
func (surs *SysUserRoleSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) BoolX ¶
func (surs *SysUserRoleSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysUserRoleSelect) Bools ¶
func (surs *SysUserRoleSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) BoolsX ¶
func (surs *SysUserRoleSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysUserRoleSelect) Float64 ¶
func (surs *SysUserRoleSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) Float64X ¶
func (surs *SysUserRoleSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysUserRoleSelect) Float64s ¶
func (surs *SysUserRoleSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) Float64sX ¶
func (surs *SysUserRoleSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysUserRoleSelect) Int ¶
func (surs *SysUserRoleSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) IntX ¶
func (surs *SysUserRoleSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysUserRoleSelect) Ints ¶
func (surs *SysUserRoleSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) IntsX ¶
func (surs *SysUserRoleSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysUserRoleSelect) Scan ¶
func (surs *SysUserRoleSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysUserRoleSelect) ScanX ¶
func (surs *SysUserRoleSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysUserRoleSelect) String ¶
func (surs *SysUserRoleSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysUserRoleSelect) StringX ¶
func (surs *SysUserRoleSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysUserRoleUpdate ¶
type SysUserRoleUpdate struct {
// contains filtered or unexported fields
}
SysUserRoleUpdate is the builder for updating SysUserRole entities.
func (*SysUserRoleUpdate) ClearDeletedAt ¶
func (suru *SysUserRoleUpdate) ClearDeletedAt() *SysUserRoleUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserRoleUpdate) Exec ¶
func (suru *SysUserRoleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysUserRoleUpdate) ExecX ¶
func (suru *SysUserRoleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysUserRoleUpdate) Mutation ¶
func (suru *SysUserRoleUpdate) Mutation() *SysUserRoleMutation
Mutation returns the SysUserRoleMutation object of the builder.
func (*SysUserRoleUpdate) Save ¶
func (suru *SysUserRoleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysUserRoleUpdate) SaveX ¶
func (suru *SysUserRoleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysUserRoleUpdate) SetDeletedAt ¶
func (suru *SysUserRoleUpdate) SetDeletedAt(t time.Time) *SysUserRoleUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysUserRoleUpdate) SetInput ¶
func (u *SysUserRoleUpdate) SetInput(i UpdateSysUserRoleInput) *SysUserRoleUpdate
SetInput applies the change-set in the UpdateSysUserRoleInput on the update builder.
func (*SysUserRoleUpdate) SetIsDel ¶
func (suru *SysUserRoleUpdate) SetIsDel(b bool) *SysUserRoleUpdate
SetIsDel sets the "is_del" field.
func (*SysUserRoleUpdate) SetNillableDeletedAt ¶
func (suru *SysUserRoleUpdate) SetNillableDeletedAt(t *time.Time) *SysUserRoleUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserRoleUpdate) SetNillableIsDel ¶
func (suru *SysUserRoleUpdate) SetNillableIsDel(b *bool) *SysUserRoleUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserRoleUpdate) SetRoleID ¶
func (suru *SysUserRoleUpdate) SetRoleID(s string) *SysUserRoleUpdate
SetRoleID sets the "role_id" field.
func (*SysUserRoleUpdate) SetUpdatedAt ¶
func (suru *SysUserRoleUpdate) SetUpdatedAt(t time.Time) *SysUserRoleUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysUserRoleUpdate) SetUserID ¶
func (suru *SysUserRoleUpdate) SetUserID(s string) *SysUserRoleUpdate
SetUserID sets the "user_id" field.
func (*SysUserRoleUpdate) Where ¶
func (suru *SysUserRoleUpdate) Where(ps ...predicate.SysUserRole) *SysUserRoleUpdate
Where adds a new predicate for the SysUserRoleUpdate builder.
type SysUserRoleUpdateOne ¶
type SysUserRoleUpdateOne struct {
// contains filtered or unexported fields
}
SysUserRoleUpdateOne is the builder for updating a single SysUserRole entity.
func (*SysUserRoleUpdateOne) ClearDeletedAt ¶
func (suruo *SysUserRoleUpdateOne) ClearDeletedAt() *SysUserRoleUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserRoleUpdateOne) Exec ¶
func (suruo *SysUserRoleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysUserRoleUpdateOne) ExecX ¶
func (suruo *SysUserRoleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysUserRoleUpdateOne) Mutation ¶
func (suruo *SysUserRoleUpdateOne) Mutation() *SysUserRoleMutation
Mutation returns the SysUserRoleMutation object of the builder.
func (*SysUserRoleUpdateOne) Save ¶
func (suruo *SysUserRoleUpdateOne) Save(ctx context.Context) (*SysUserRole, error)
Save executes the query and returns the updated SysUserRole entity.
func (*SysUserRoleUpdateOne) SaveX ¶
func (suruo *SysUserRoleUpdateOne) SaveX(ctx context.Context) *SysUserRole
SaveX is like Save, but panics if an error occurs.
func (*SysUserRoleUpdateOne) Select ¶
func (suruo *SysUserRoleUpdateOne) Select(field string, fields ...string) *SysUserRoleUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysUserRoleUpdateOne) SetDeletedAt ¶
func (suruo *SysUserRoleUpdateOne) SetDeletedAt(t time.Time) *SysUserRoleUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysUserRoleUpdateOne) SetInput ¶
func (u *SysUserRoleUpdateOne) SetInput(i UpdateSysUserRoleInput) *SysUserRoleUpdateOne
SetInput applies the change-set in the UpdateSysUserRoleInput on the update-one builder.
func (*SysUserRoleUpdateOne) SetIsDel ¶
func (suruo *SysUserRoleUpdateOne) SetIsDel(b bool) *SysUserRoleUpdateOne
SetIsDel sets the "is_del" field.
func (*SysUserRoleUpdateOne) SetNillableDeletedAt ¶
func (suruo *SysUserRoleUpdateOne) SetNillableDeletedAt(t *time.Time) *SysUserRoleUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserRoleUpdateOne) SetNillableIsDel ¶
func (suruo *SysUserRoleUpdateOne) SetNillableIsDel(b *bool) *SysUserRoleUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserRoleUpdateOne) SetRoleID ¶
func (suruo *SysUserRoleUpdateOne) SetRoleID(s string) *SysUserRoleUpdateOne
SetRoleID sets the "role_id" field.
func (*SysUserRoleUpdateOne) SetUpdatedAt ¶
func (suruo *SysUserRoleUpdateOne) SetUpdatedAt(t time.Time) *SysUserRoleUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SysUserRoleUpdateOne) SetUserID ¶
func (suruo *SysUserRoleUpdateOne) SetUserID(s string) *SysUserRoleUpdateOne
SetUserID sets the "user_id" field.
type SysUserRoles ¶
type SysUserRoles []*SysUserRole
SysUserRoles is a parsable slice of SysUserRole.
type SysUserSelect ¶
type SysUserSelect struct { *SysUserQuery // contains filtered or unexported fields }
SysUserSelect is the builder for selecting fields of SysUser entities.
func (*SysUserSelect) Bool ¶
func (sus *SysUserSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) BoolX ¶
func (sus *SysUserSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SysUserSelect) Bools ¶
func (sus *SysUserSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) BoolsX ¶
func (sus *SysUserSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SysUserSelect) Float64 ¶
func (sus *SysUserSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) Float64X ¶
func (sus *SysUserSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SysUserSelect) Float64s ¶
func (sus *SysUserSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) Float64sX ¶
func (sus *SysUserSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SysUserSelect) Int ¶
func (sus *SysUserSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) IntX ¶
func (sus *SysUserSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SysUserSelect) Ints ¶
func (sus *SysUserSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) IntsX ¶
func (sus *SysUserSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SysUserSelect) Scan ¶
func (sus *SysUserSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*SysUserSelect) ScanX ¶
func (sus *SysUserSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SysUserSelect) String ¶
func (sus *SysUserSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SysUserSelect) StringX ¶
func (sus *SysUserSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SysUserUpdate ¶
type SysUserUpdate struct {
// contains filtered or unexported fields
}
SysUserUpdate is the builder for updating SysUser entities.
func (*SysUserUpdate) AddSort ¶
func (suu *SysUserUpdate) AddSort(i int32) *SysUserUpdate
AddSort adds i to the "sort" field.
func (*SysUserUpdate) AddStatus ¶
func (suu *SysUserUpdate) AddStatus(i int16) *SysUserUpdate
AddStatus adds i to the "status" field.
func (*SysUserUpdate) ClearDeletedAt ¶
func (suu *SysUserUpdate) ClearDeletedAt() *SysUserUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserUpdate) ClearFirstName ¶
func (suu *SysUserUpdate) ClearFirstName() *SysUserUpdate
ClearFirstName clears the value of the "first_name" field.
func (*SysUserUpdate) ClearLastName ¶
func (suu *SysUserUpdate) ClearLastName() *SysUserUpdate
ClearLastName clears the value of the "last_name" field.
func (*SysUserUpdate) ClearRealName ¶
func (suu *SysUserUpdate) ClearRealName() *SysUserUpdate
ClearRealName clears the value of the "real_name" field.
func (*SysUserUpdate) Exec ¶
func (suu *SysUserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SysUserUpdate) ExecX ¶
func (suu *SysUserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysUserUpdate) Mutation ¶
func (suu *SysUserUpdate) Mutation() *SysUserMutation
Mutation returns the SysUserMutation object of the builder.
func (*SysUserUpdate) Save ¶
func (suu *SysUserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SysUserUpdate) SaveX ¶
func (suu *SysUserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SysUserUpdate) SetDeletedAt ¶
func (suu *SysUserUpdate) SetDeletedAt(t time.Time) *SysUserUpdate
SetDeletedAt sets the "deleted_at" field.
func (*SysUserUpdate) SetEmail ¶
func (suu *SysUserUpdate) SetEmail(s string) *SysUserUpdate
SetEmail sets the "Email" field.
func (*SysUserUpdate) SetFirstName ¶
func (suu *SysUserUpdate) SetFirstName(s string) *SysUserUpdate
SetFirstName sets the "first_name" field.
func (*SysUserUpdate) SetInput ¶
func (u *SysUserUpdate) SetInput(i UpdateSysUserInput) *SysUserUpdate
SetInput applies the change-set in the UpdateSysUserInput on the update builder.
func (*SysUserUpdate) SetIsDel ¶
func (suu *SysUserUpdate) SetIsDel(b bool) *SysUserUpdate
SetIsDel sets the "is_del" field.
func (*SysUserUpdate) SetLastName ¶
func (suu *SysUserUpdate) SetLastName(s string) *SysUserUpdate
SetLastName sets the "last_name" field.
func (*SysUserUpdate) SetNillableDeletedAt ¶
func (suu *SysUserUpdate) SetNillableDeletedAt(t *time.Time) *SysUserUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserUpdate) SetNillableFirstName ¶
func (suu *SysUserUpdate) SetNillableFirstName(s *string) *SysUserUpdate
SetNillableFirstName sets the "first_name" field if the given value is not nil.
func (*SysUserUpdate) SetNillableIsDel ¶
func (suu *SysUserUpdate) SetNillableIsDel(b *bool) *SysUserUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserUpdate) SetNillableLastName ¶
func (suu *SysUserUpdate) SetNillableLastName(s *string) *SysUserUpdate
SetNillableLastName sets the "last_name" field if the given value is not nil.
func (*SysUserUpdate) SetNillableRealName ¶
func (suu *SysUserUpdate) SetNillableRealName(s *string) *SysUserUpdate
SetNillableRealName sets the "real_name" field if the given value is not nil.
func (*SysUserUpdate) SetNillableSalt ¶
func (suu *SysUserUpdate) SetNillableSalt(s *string) *SysUserUpdate
SetNillableSalt sets the "salt" field if the given value is not nil.
func (*SysUserUpdate) SetNillableSort ¶
func (suu *SysUserUpdate) SetNillableSort(i *int32) *SysUserUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysUserUpdate) SetNillableStatus ¶
func (suu *SysUserUpdate) SetNillableStatus(i *int16) *SysUserUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysUserUpdate) SetPassword ¶
func (suu *SysUserUpdate) SetPassword(s string) *SysUserUpdate
SetPassword sets the "Password" field.
func (*SysUserUpdate) SetPhone ¶
func (suu *SysUserUpdate) SetPhone(s string) *SysUserUpdate
SetPhone sets the "Phone" field.
func (*SysUserUpdate) SetRealName ¶
func (suu *SysUserUpdate) SetRealName(s string) *SysUserUpdate
SetRealName sets the "real_name" field.
func (*SysUserUpdate) SetSalt ¶
func (suu *SysUserUpdate) SetSalt(s string) *SysUserUpdate
SetSalt sets the "salt" field.
func (*SysUserUpdate) SetSort ¶
func (suu *SysUserUpdate) SetSort(i int32) *SysUserUpdate
SetSort sets the "sort" field.
func (*SysUserUpdate) SetStatus ¶
func (suu *SysUserUpdate) SetStatus(i int16) *SysUserUpdate
SetStatus sets the "status" field.
func (*SysUserUpdate) SetUpdatedAt ¶
func (suu *SysUserUpdate) SetUpdatedAt(t time.Time) *SysUserUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SysUserUpdate) Where ¶
func (suu *SysUserUpdate) Where(ps ...predicate.SysUser) *SysUserUpdate
Where adds a new predicate for the SysUserUpdate builder.
type SysUserUpdateOne ¶
type SysUserUpdateOne struct {
// contains filtered or unexported fields
}
SysUserUpdateOne is the builder for updating a single SysUser entity.
func (*SysUserUpdateOne) AddSort ¶
func (suuo *SysUserUpdateOne) AddSort(i int32) *SysUserUpdateOne
AddSort adds i to the "sort" field.
func (*SysUserUpdateOne) AddStatus ¶
func (suuo *SysUserUpdateOne) AddStatus(i int16) *SysUserUpdateOne
AddStatus adds i to the "status" field.
func (*SysUserUpdateOne) ClearDeletedAt ¶
func (suuo *SysUserUpdateOne) ClearDeletedAt() *SysUserUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*SysUserUpdateOne) ClearFirstName ¶
func (suuo *SysUserUpdateOne) ClearFirstName() *SysUserUpdateOne
ClearFirstName clears the value of the "first_name" field.
func (*SysUserUpdateOne) ClearLastName ¶
func (suuo *SysUserUpdateOne) ClearLastName() *SysUserUpdateOne
ClearLastName clears the value of the "last_name" field.
func (*SysUserUpdateOne) ClearRealName ¶
func (suuo *SysUserUpdateOne) ClearRealName() *SysUserUpdateOne
ClearRealName clears the value of the "real_name" field.
func (*SysUserUpdateOne) Exec ¶
func (suuo *SysUserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SysUserUpdateOne) ExecX ¶
func (suuo *SysUserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SysUserUpdateOne) Mutation ¶
func (suuo *SysUserUpdateOne) Mutation() *SysUserMutation
Mutation returns the SysUserMutation object of the builder.
func (*SysUserUpdateOne) Save ¶
func (suuo *SysUserUpdateOne) Save(ctx context.Context) (*SysUser, error)
Save executes the query and returns the updated SysUser entity.
func (*SysUserUpdateOne) SaveX ¶
func (suuo *SysUserUpdateOne) SaveX(ctx context.Context) *SysUser
SaveX is like Save, but panics if an error occurs.
func (*SysUserUpdateOne) Select ¶
func (suuo *SysUserUpdateOne) Select(field string, fields ...string) *SysUserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SysUserUpdateOne) SetDeletedAt ¶
func (suuo *SysUserUpdateOne) SetDeletedAt(t time.Time) *SysUserUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*SysUserUpdateOne) SetEmail ¶
func (suuo *SysUserUpdateOne) SetEmail(s string) *SysUserUpdateOne
SetEmail sets the "Email" field.
func (*SysUserUpdateOne) SetFirstName ¶
func (suuo *SysUserUpdateOne) SetFirstName(s string) *SysUserUpdateOne
SetFirstName sets the "first_name" field.
func (*SysUserUpdateOne) SetInput ¶
func (u *SysUserUpdateOne) SetInput(i UpdateSysUserInput) *SysUserUpdateOne
SetInput applies the change-set in the UpdateSysUserInput on the update-one builder.
func (*SysUserUpdateOne) SetIsDel ¶
func (suuo *SysUserUpdateOne) SetIsDel(b bool) *SysUserUpdateOne
SetIsDel sets the "is_del" field.
func (*SysUserUpdateOne) SetLastName ¶
func (suuo *SysUserUpdateOne) SetLastName(s string) *SysUserUpdateOne
SetLastName sets the "last_name" field.
func (*SysUserUpdateOne) SetNillableDeletedAt ¶
func (suuo *SysUserUpdateOne) SetNillableDeletedAt(t *time.Time) *SysUserUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableFirstName ¶
func (suuo *SysUserUpdateOne) SetNillableFirstName(s *string) *SysUserUpdateOne
SetNillableFirstName sets the "first_name" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableIsDel ¶
func (suuo *SysUserUpdateOne) SetNillableIsDel(b *bool) *SysUserUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableLastName ¶
func (suuo *SysUserUpdateOne) SetNillableLastName(s *string) *SysUserUpdateOne
SetNillableLastName sets the "last_name" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableRealName ¶
func (suuo *SysUserUpdateOne) SetNillableRealName(s *string) *SysUserUpdateOne
SetNillableRealName sets the "real_name" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableSalt ¶
func (suuo *SysUserUpdateOne) SetNillableSalt(s *string) *SysUserUpdateOne
SetNillableSalt sets the "salt" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableSort ¶
func (suuo *SysUserUpdateOne) SetNillableSort(i *int32) *SysUserUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*SysUserUpdateOne) SetNillableStatus ¶
func (suuo *SysUserUpdateOne) SetNillableStatus(i *int16) *SysUserUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SysUserUpdateOne) SetPassword ¶
func (suuo *SysUserUpdateOne) SetPassword(s string) *SysUserUpdateOne
SetPassword sets the "Password" field.
func (*SysUserUpdateOne) SetPhone ¶
func (suuo *SysUserUpdateOne) SetPhone(s string) *SysUserUpdateOne
SetPhone sets the "Phone" field.
func (*SysUserUpdateOne) SetRealName ¶
func (suuo *SysUserUpdateOne) SetRealName(s string) *SysUserUpdateOne
SetRealName sets the "real_name" field.
func (*SysUserUpdateOne) SetSalt ¶
func (suuo *SysUserUpdateOne) SetSalt(s string) *SysUserUpdateOne
SetSalt sets the "salt" field.
func (*SysUserUpdateOne) SetSort ¶
func (suuo *SysUserUpdateOne) SetSort(i int32) *SysUserUpdateOne
SetSort sets the "sort" field.
func (*SysUserUpdateOne) SetStatus ¶
func (suuo *SysUserUpdateOne) SetStatus(i int16) *SysUserUpdateOne
SetStatus sets the "status" field.
func (*SysUserUpdateOne) SetUpdatedAt ¶
func (suuo *SysUserUpdateOne) SetUpdatedAt(t time.Time) *SysUserUpdateOne
SetUpdatedAt sets the "updated_at" field.
type Tx ¶
type Tx struct { // SysDict is the client for interacting with the SysDict builders. SysDict *SysDictClient // SysDictItem is the client for interacting with the SysDictItem builders. SysDictItem *SysDictItemClient // SysJwtBlock is the client for interacting with the SysJwtBlock builders. SysJwtBlock *SysJwtBlockClient // SysLogging is the client for interacting with the SysLogging builders. SysLogging *SysLoggingClient // SysMenu is the client for interacting with the SysMenu builders. SysMenu *SysMenuClient // SysMenuAction is the client for interacting with the SysMenuAction builders. SysMenuAction *SysMenuActionClient // SysMenuActionResource is the client for interacting with the SysMenuActionResource builders. SysMenuActionResource *SysMenuActionResourceClient // SysRole is the client for interacting with the SysRole builders. SysRole *SysRoleClient // SysRoleMenu is the client for interacting with the SysRoleMenu builders. SysRoleMenu *SysRoleMenuClient // SysUser is the client for interacting with the SysUser builders. SysUser *SysUserClient // SysUserRole is the client for interacting with the SysUserRole builders. SysUserRole *SysUserRoleClient // XxxDemo is the client for interacting with the XxxDemo builders. XxxDemo *XxxDemoClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type UpdateSysDictInput ¶
type UpdateSysDictInput struct { IsDel *bool Memo *string Sort *int32 UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Status *int16 NameCn *string NameEn *string }
UpdateSysDictInput represents a mutation input for updating sysdicts.
func (*UpdateSysDictInput) Mutate ¶
func (i *UpdateSysDictInput) Mutate(m *SysDictMutation)
Mutate applies the UpdateSysDictInput on the SysDictMutation.
type UpdateSysDictItemInput ¶
type UpdateSysDictItemInput struct { IsDel *bool Memo *string Sort *int32 UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Label *string Value *int Status *int16 DictID *string }
UpdateSysDictItemInput represents a mutation input for updating sysdictitems.
func (*UpdateSysDictItemInput) Mutate ¶
func (i *UpdateSysDictItemInput) Mutate(m *SysDictItemMutation)
Mutate applies the UpdateSysDictItemInput on the SysDictItemMutation.
type UpdateSysJwtBlockInput ¶
type UpdateSysJwtBlockInput struct { IsDel *bool Memo *string UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Status *int16 Jwt *string }
UpdateSysJwtBlockInput represents a mutation input for updating sysjwtblocks.
func (*UpdateSysJwtBlockInput) Mutate ¶
func (i *UpdateSysJwtBlockInput) Mutate(m *SysJwtBlockMutation)
Mutate applies the UpdateSysJwtBlockInput on the SysJwtBlockMutation.
type UpdateSysLoggingInput ¶
type UpdateSysLoggingInput struct { IsDel *bool Memo *string Level *string TraceID *string UserID *string Tag *string Version *string Message *string ErrorStack *string }
UpdateSysLoggingInput represents a mutation input for updating sysloggings.
func (*UpdateSysLoggingInput) Mutate ¶
func (i *UpdateSysLoggingInput) Mutate(m *SysLoggingMutation)
Mutate applies the UpdateSysLoggingInput on the SysLoggingMutation.
type UpdateSysMenuActionInput ¶
type UpdateSysMenuActionInput struct { IsDel *bool Sort *int32 Status *int16 Memo *string UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool MenuID *string Code *string Name *string }
UpdateSysMenuActionInput represents a mutation input for updating sysmenuactions.
func (*UpdateSysMenuActionInput) Mutate ¶
func (i *UpdateSysMenuActionInput) Mutate(m *SysMenuActionMutation)
Mutate applies the UpdateSysMenuActionInput on the SysMenuActionMutation.
type UpdateSysMenuActionResourceInput ¶
type UpdateSysMenuActionResourceInput struct { IsDel *bool Sort *int32 Memo *string UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Status *int16 Method *string Path *string ActionID *string }
UpdateSysMenuActionResourceInput represents a mutation input for updating sysmenuactionresources.
func (*UpdateSysMenuActionResourceInput) Mutate ¶
func (i *UpdateSysMenuActionResourceInput) Mutate(m *SysMenuActionResourceMutation)
Mutate applies the UpdateSysMenuActionResourceInput on the SysMenuActionResourceMutation.
type UpdateSysMenuInput ¶
type UpdateSysMenuInput struct { IsDel *bool Memo *string Sort *int32 UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Status *int16 Name *string Icon *string Router *string IsShow *bool ParentID *string ClearParentID bool ParentPath *string ClearParentPath bool }
UpdateSysMenuInput represents a mutation input for updating sysmenus.
func (*UpdateSysMenuInput) Mutate ¶
func (i *UpdateSysMenuInput) Mutate(m *SysMenuMutation)
Mutate applies the UpdateSysMenuInput on the SysMenuMutation.
type UpdateSysRoleInput ¶
type UpdateSysRoleInput struct { IsDel *bool Status *int16 Sort *int32 Memo *string UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Name *string }
UpdateSysRoleInput represents a mutation input for updating sysroles.
func (*UpdateSysRoleInput) Mutate ¶
func (i *UpdateSysRoleInput) Mutate(m *SysRoleMutation)
Mutate applies the UpdateSysRoleInput on the SysRoleMutation.
type UpdateSysRoleMenuInput ¶
type UpdateSysRoleMenuInput struct { IsDel *bool UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool RoleID *string MenuID *string ActionID *string ClearActionID bool }
UpdateSysRoleMenuInput represents a mutation input for updating sysrolemenus.
func (*UpdateSysRoleMenuInput) Mutate ¶
func (i *UpdateSysRoleMenuInput) Mutate(m *SysRoleMenuMutation)
Mutate applies the UpdateSysRoleMenuInput on the SysRoleMenuMutation.
type UpdateSysUserInput ¶
type UpdateSysUserInput struct { IsDel *bool Sort *int32 UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Status *int16 RealName *string ClearRealName bool FirstName *string ClearFirstName bool LastName *string ClearLastName bool Password *string Email *string Phone *string Salt *string }
UpdateSysUserInput represents a mutation input for updating sysusers.
func (*UpdateSysUserInput) Mutate ¶
func (i *UpdateSysUserInput) Mutate(m *SysUserMutation)
Mutate applies the UpdateSysUserInput on the SysUserMutation.
type UpdateSysUserRoleInput ¶
type UpdateSysUserRoleInput struct { IsDel *bool UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool UserID *string RoleID *string }
UpdateSysUserRoleInput represents a mutation input for updating sysuserroles.
func (*UpdateSysUserRoleInput) Mutate ¶
func (i *UpdateSysUserRoleInput) Mutate(m *SysUserRoleMutation)
Mutate applies the UpdateSysUserRoleInput on the SysUserRoleMutation.
type UpdateXxxDemoInput ¶
type UpdateXxxDemoInput struct { IsDel *bool Memo *string Sort *int32 UpdatedAt *time.Time DeletedAt *time.Time ClearDeletedAt bool Code *string Name *string Status *int16 }
UpdateXxxDemoInput represents a mutation input for updating xxxdemos.
func (*UpdateXxxDemoInput) Mutate ¶
func (i *UpdateXxxDemoInput) Mutate(m *XxxDemoMutation)
Mutate applies the UpdateXxxDemoInput on the XxxDemoMutation.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type XxxDemo ¶
type XxxDemo struct { // ID of the ent. ID string `json:"id,omitempty"` // IsDel holds the value of the "is_del" field. // 是否删除 IsDel bool `json:"is_del,omitempty"` // Memo holds the value of the "memo" field. // 备注 Memo string `json:"memo,omitempty"` // Sort holds the value of the "sort" field. // 排序, 在数据库里的排序 Sort int32 `json:"sort,omitempty"` // CreatedAt holds the value of the "created_at" field. // 创建时间,由程序自动生成 CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. // 更新时间,由程序自动生成 UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. // 删除时间, DeletedAt *time.Time `json:"deleted_at,omitempty"` // Code holds the value of the "code" field. // 编号 Code string `json:"code,omitempty"` // Name holds the value of the "name" field. // 名称 Name string `json:"name,omitempty"` // Status holds the value of the "status" field. // 状态 Status int16 `json:"status,omitempty"` // contains filtered or unexported fields }
XxxDemo is the model entity for the XxxDemo schema.
func (*XxxDemo) Unwrap ¶
Unwrap unwraps the XxxDemo entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*XxxDemo) Update ¶
func (xd *XxxDemo) Update() *XxxDemoUpdateOne
Update returns a builder for updating this XxxDemo. Note that you need to call XxxDemo.Unwrap() before calling this method if this XxxDemo was returned from a transaction, and the transaction was committed or rolled back.
type XxxDemoClient ¶
type XxxDemoClient struct {
// contains filtered or unexported fields
}
XxxDemoClient is a client for the XxxDemo schema.
func NewXxxDemoClient ¶
func NewXxxDemoClient(c config) *XxxDemoClient
NewXxxDemoClient returns a client for the XxxDemo from the given config.
func (*XxxDemoClient) Create ¶
func (c *XxxDemoClient) Create() *XxxDemoCreate
Create returns a create builder for XxxDemo.
func (*XxxDemoClient) CreateBulk ¶
func (c *XxxDemoClient) CreateBulk(builders ...*XxxDemoCreate) *XxxDemoCreateBulk
CreateBulk returns a builder for creating a bulk of XxxDemo entities.
func (*XxxDemoClient) Delete ¶
func (c *XxxDemoClient) Delete() *XxxDemoDelete
Delete returns a delete builder for XxxDemo.
func (*XxxDemoClient) DeleteOne ¶
func (c *XxxDemoClient) DeleteOne(xd *XxxDemo) *XxxDemoDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*XxxDemoClient) DeleteOneID ¶
func (c *XxxDemoClient) DeleteOneID(id string) *XxxDemoDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*XxxDemoClient) GetX ¶
func (c *XxxDemoClient) GetX(ctx context.Context, id string) *XxxDemo
GetX is like Get, but panics if an error occurs.
func (*XxxDemoClient) Hooks ¶
func (c *XxxDemoClient) Hooks() []Hook
Hooks returns the client hooks.
func (*XxxDemoClient) Query ¶
func (c *XxxDemoClient) Query() *XxxDemoQuery
Query returns a query builder for XxxDemo.
func (*XxxDemoClient) Update ¶
func (c *XxxDemoClient) Update() *XxxDemoUpdate
Update returns an update builder for XxxDemo.
func (*XxxDemoClient) UpdateOne ¶
func (c *XxxDemoClient) UpdateOne(xd *XxxDemo) *XxxDemoUpdateOne
UpdateOne returns an update builder for the given entity.
func (*XxxDemoClient) UpdateOneID ¶
func (c *XxxDemoClient) UpdateOneID(id string) *XxxDemoUpdateOne
UpdateOneID returns an update builder for the given id.
func (*XxxDemoClient) Use ¶
func (c *XxxDemoClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `xxxdemo.Hooks(f(g(h())))`.
type XxxDemoCreate ¶
type XxxDemoCreate struct {
// contains filtered or unexported fields
}
XxxDemoCreate is the builder for creating a XxxDemo entity.
func (*XxxDemoCreate) Mutation ¶
func (xdc *XxxDemoCreate) Mutation() *XxxDemoMutation
Mutation returns the XxxDemoMutation object of the builder.
func (*XxxDemoCreate) Save ¶
func (xdc *XxxDemoCreate) Save(ctx context.Context) (*XxxDemo, error)
Save creates the XxxDemo in the database.
func (*XxxDemoCreate) SaveX ¶
func (xdc *XxxDemoCreate) SaveX(ctx context.Context) *XxxDemo
SaveX calls Save and panics if Save returns an error.
func (*XxxDemoCreate) SetCode ¶
func (xdc *XxxDemoCreate) SetCode(s string) *XxxDemoCreate
SetCode sets the "code" field.
func (*XxxDemoCreate) SetCreatedAt ¶
func (xdc *XxxDemoCreate) SetCreatedAt(t time.Time) *XxxDemoCreate
SetCreatedAt sets the "created_at" field.
func (*XxxDemoCreate) SetDeletedAt ¶
func (xdc *XxxDemoCreate) SetDeletedAt(t time.Time) *XxxDemoCreate
SetDeletedAt sets the "deleted_at" field.
func (*XxxDemoCreate) SetID ¶
func (xdc *XxxDemoCreate) SetID(s string) *XxxDemoCreate
SetID sets the "id" field.
func (*XxxDemoCreate) SetInput ¶
func (c *XxxDemoCreate) SetInput(i CreateXxxDemoInput) *XxxDemoCreate
SetInput applies the change-set in the CreateXxxDemoInput on the create builder.
func (*XxxDemoCreate) SetIsDel ¶
func (xdc *XxxDemoCreate) SetIsDel(b bool) *XxxDemoCreate
SetIsDel sets the "is_del" field.
func (*XxxDemoCreate) SetMemo ¶
func (xdc *XxxDemoCreate) SetMemo(s string) *XxxDemoCreate
SetMemo sets the "memo" field.
func (*XxxDemoCreate) SetName ¶
func (xdc *XxxDemoCreate) SetName(s string) *XxxDemoCreate
SetName sets the "name" field.
func (*XxxDemoCreate) SetNillableCreatedAt ¶
func (xdc *XxxDemoCreate) SetNillableCreatedAt(t *time.Time) *XxxDemoCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableDeletedAt ¶
func (xdc *XxxDemoCreate) SetNillableDeletedAt(t *time.Time) *XxxDemoCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableID ¶
func (xdc *XxxDemoCreate) SetNillableID(s *string) *XxxDemoCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableIsDel ¶
func (xdc *XxxDemoCreate) SetNillableIsDel(b *bool) *XxxDemoCreate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableMemo ¶
func (xdc *XxxDemoCreate) SetNillableMemo(s *string) *XxxDemoCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableSort ¶
func (xdc *XxxDemoCreate) SetNillableSort(i *int32) *XxxDemoCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableStatus ¶
func (xdc *XxxDemoCreate) SetNillableStatus(i *int16) *XxxDemoCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*XxxDemoCreate) SetNillableUpdatedAt ¶
func (xdc *XxxDemoCreate) SetNillableUpdatedAt(t *time.Time) *XxxDemoCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*XxxDemoCreate) SetSort ¶
func (xdc *XxxDemoCreate) SetSort(i int32) *XxxDemoCreate
SetSort sets the "sort" field.
func (*XxxDemoCreate) SetStatus ¶
func (xdc *XxxDemoCreate) SetStatus(i int16) *XxxDemoCreate
SetStatus sets the "status" field.
func (*XxxDemoCreate) SetUpdatedAt ¶
func (xdc *XxxDemoCreate) SetUpdatedAt(t time.Time) *XxxDemoCreate
SetUpdatedAt sets the "updated_at" field.
type XxxDemoCreateBulk ¶
type XxxDemoCreateBulk struct {
// contains filtered or unexported fields
}
XxxDemoCreateBulk is the builder for creating many XxxDemo entities in bulk.
type XxxDemoDelete ¶
type XxxDemoDelete struct {
// contains filtered or unexported fields
}
XxxDemoDelete is the builder for deleting a XxxDemo entity.
func (*XxxDemoDelete) Exec ¶
func (xdd *XxxDemoDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*XxxDemoDelete) ExecX ¶
func (xdd *XxxDemoDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*XxxDemoDelete) Where ¶
func (xdd *XxxDemoDelete) Where(ps ...predicate.XxxDemo) *XxxDemoDelete
Where adds a new predicate to the XxxDemoDelete builder.
type XxxDemoDeleteOne ¶
type XxxDemoDeleteOne struct {
// contains filtered or unexported fields
}
XxxDemoDeleteOne is the builder for deleting a single XxxDemo entity.
func (*XxxDemoDeleteOne) Exec ¶
func (xddo *XxxDemoDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*XxxDemoDeleteOne) ExecX ¶
func (xddo *XxxDemoDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type XxxDemoGroupBy ¶
type XxxDemoGroupBy struct {
// contains filtered or unexported fields
}
XxxDemoGroupBy is the group-by builder for XxxDemo entities.
func (*XxxDemoGroupBy) Aggregate ¶
func (xdgb *XxxDemoGroupBy) Aggregate(fns ...AggregateFunc) *XxxDemoGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*XxxDemoGroupBy) Bool ¶
func (xdgb *XxxDemoGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) BoolX ¶
func (xdgb *XxxDemoGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*XxxDemoGroupBy) Bools ¶
func (xdgb *XxxDemoGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) BoolsX ¶
func (xdgb *XxxDemoGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*XxxDemoGroupBy) Float64 ¶
func (xdgb *XxxDemoGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) Float64X ¶
func (xdgb *XxxDemoGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*XxxDemoGroupBy) Float64s ¶
func (xdgb *XxxDemoGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) Float64sX ¶
func (xdgb *XxxDemoGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*XxxDemoGroupBy) Int ¶
func (xdgb *XxxDemoGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) IntX ¶
func (xdgb *XxxDemoGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*XxxDemoGroupBy) Ints ¶
func (xdgb *XxxDemoGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) IntsX ¶
func (xdgb *XxxDemoGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*XxxDemoGroupBy) Scan ¶
func (xdgb *XxxDemoGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*XxxDemoGroupBy) ScanX ¶
func (xdgb *XxxDemoGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*XxxDemoGroupBy) String ¶
func (xdgb *XxxDemoGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*XxxDemoGroupBy) StringX ¶
func (xdgb *XxxDemoGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type XxxDemoMutation ¶
type XxxDemoMutation struct {
// contains filtered or unexported fields
}
XxxDemoMutation represents an operation that mutates the XxxDemo nodes in the graph.
func (*XxxDemoMutation) AddField ¶
func (m *XxxDemoMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*XxxDemoMutation) AddSort ¶
func (m *XxxDemoMutation) AddSort(i int32)
AddSort adds i to the "sort" field.
func (*XxxDemoMutation) AddStatus ¶
func (m *XxxDemoMutation) AddStatus(i int16)
AddStatus adds i to the "status" field.
func (*XxxDemoMutation) AddedEdges ¶
func (m *XxxDemoMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*XxxDemoMutation) AddedField ¶
func (m *XxxDemoMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*XxxDemoMutation) AddedFields ¶
func (m *XxxDemoMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*XxxDemoMutation) AddedIDs ¶
func (m *XxxDemoMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*XxxDemoMutation) AddedSort ¶
func (m *XxxDemoMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*XxxDemoMutation) AddedStatus ¶
func (m *XxxDemoMutation) AddedStatus() (r int16, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*XxxDemoMutation) ClearDeletedAt ¶
func (m *XxxDemoMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*XxxDemoMutation) ClearEdge ¶
func (m *XxxDemoMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*XxxDemoMutation) ClearField ¶
func (m *XxxDemoMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*XxxDemoMutation) ClearedEdges ¶
func (m *XxxDemoMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*XxxDemoMutation) ClearedFields ¶
func (m *XxxDemoMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (XxxDemoMutation) Client ¶
func (m XxxDemoMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*XxxDemoMutation) Code ¶
func (m *XxxDemoMutation) Code() (r string, exists bool)
Code returns the value of the "code" field in the mutation.
func (*XxxDemoMutation) CreatedAt ¶
func (m *XxxDemoMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*XxxDemoMutation) DeletedAt ¶
func (m *XxxDemoMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*XxxDemoMutation) DeletedAtCleared ¶
func (m *XxxDemoMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*XxxDemoMutation) EdgeCleared ¶
func (m *XxxDemoMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*XxxDemoMutation) Field ¶
func (m *XxxDemoMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*XxxDemoMutation) FieldCleared ¶
func (m *XxxDemoMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*XxxDemoMutation) Fields ¶
func (m *XxxDemoMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*XxxDemoMutation) ID ¶
func (m *XxxDemoMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder.
func (*XxxDemoMutation) IsDel ¶
func (m *XxxDemoMutation) IsDel() (r bool, exists bool)
IsDel returns the value of the "is_del" field in the mutation.
func (*XxxDemoMutation) Memo ¶
func (m *XxxDemoMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*XxxDemoMutation) Name ¶
func (m *XxxDemoMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*XxxDemoMutation) OldCode ¶
func (m *XxxDemoMutation) OldCode(ctx context.Context) (v string, err error)
OldCode returns the old "code" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*XxxDemoMutation) OldIsDel ¶
func (m *XxxDemoMutation) OldIsDel(ctx context.Context) (v bool, err error)
OldIsDel returns the old "is_del" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldMemo ¶
func (m *XxxDemoMutation) OldMemo(ctx context.Context) (v string, err error)
OldMemo returns the old "memo" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldName ¶
func (m *XxxDemoMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldSort ¶
func (m *XxxDemoMutation) OldSort(ctx context.Context) (v int32, err error)
OldSort returns the old "sort" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldStatus ¶
func (m *XxxDemoMutation) OldStatus(ctx context.Context) (v int16, err error)
OldStatus returns the old "status" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the XxxDemo entity. If the XxxDemo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*XxxDemoMutation) RemovedEdges ¶
func (m *XxxDemoMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*XxxDemoMutation) RemovedIDs ¶
func (m *XxxDemoMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*XxxDemoMutation) ResetCode ¶
func (m *XxxDemoMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*XxxDemoMutation) ResetCreatedAt ¶
func (m *XxxDemoMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*XxxDemoMutation) ResetDeletedAt ¶
func (m *XxxDemoMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*XxxDemoMutation) ResetEdge ¶
func (m *XxxDemoMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*XxxDemoMutation) ResetField ¶
func (m *XxxDemoMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*XxxDemoMutation) ResetIsDel ¶
func (m *XxxDemoMutation) ResetIsDel()
ResetIsDel resets all changes to the "is_del" field.
func (*XxxDemoMutation) ResetMemo ¶
func (m *XxxDemoMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*XxxDemoMutation) ResetName ¶
func (m *XxxDemoMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*XxxDemoMutation) ResetSort ¶
func (m *XxxDemoMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*XxxDemoMutation) ResetStatus ¶
func (m *XxxDemoMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*XxxDemoMutation) ResetUpdatedAt ¶
func (m *XxxDemoMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*XxxDemoMutation) SetCode ¶
func (m *XxxDemoMutation) SetCode(s string)
SetCode sets the "code" field.
func (*XxxDemoMutation) SetCreatedAt ¶
func (m *XxxDemoMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*XxxDemoMutation) SetDeletedAt ¶
func (m *XxxDemoMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*XxxDemoMutation) SetField ¶
func (m *XxxDemoMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*XxxDemoMutation) SetID ¶
func (m *XxxDemoMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of XxxDemo entities.
func (*XxxDemoMutation) SetIsDel ¶
func (m *XxxDemoMutation) SetIsDel(b bool)
SetIsDel sets the "is_del" field.
func (*XxxDemoMutation) SetMemo ¶
func (m *XxxDemoMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*XxxDemoMutation) SetName ¶
func (m *XxxDemoMutation) SetName(s string)
SetName sets the "name" field.
func (*XxxDemoMutation) SetSort ¶
func (m *XxxDemoMutation) SetSort(i int32)
SetSort sets the "sort" field.
func (*XxxDemoMutation) SetStatus ¶
func (m *XxxDemoMutation) SetStatus(i int16)
SetStatus sets the "status" field.
func (*XxxDemoMutation) SetUpdatedAt ¶
func (m *XxxDemoMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*XxxDemoMutation) Sort ¶
func (m *XxxDemoMutation) Sort() (r int32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*XxxDemoMutation) Status ¶
func (m *XxxDemoMutation) Status() (r int16, exists bool)
Status returns the value of the "status" field in the mutation.
func (XxxDemoMutation) Tx ¶
func (m XxxDemoMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*XxxDemoMutation) Type ¶
func (m *XxxDemoMutation) Type() string
Type returns the node type of this mutation (XxxDemo).
type XxxDemoQuery ¶
type XxxDemoQuery struct {
// contains filtered or unexported fields
}
XxxDemoQuery is the builder for querying XxxDemo entities.
func (*XxxDemoQuery) All ¶
func (xdq *XxxDemoQuery) All(ctx context.Context) ([]*XxxDemo, error)
All executes the query and returns a list of XxxDemos.
func (*XxxDemoQuery) AllX ¶
func (xdq *XxxDemoQuery) AllX(ctx context.Context) []*XxxDemo
AllX is like All, but panics if an error occurs.
func (*XxxDemoQuery) Clone ¶
func (xdq *XxxDemoQuery) Clone() *XxxDemoQuery
Clone returns a duplicate of the XxxDemoQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*XxxDemoQuery) Count ¶
func (xdq *XxxDemoQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*XxxDemoQuery) CountX ¶
func (xdq *XxxDemoQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*XxxDemoQuery) Exist ¶
func (xdq *XxxDemoQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*XxxDemoQuery) ExistX ¶
func (xdq *XxxDemoQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*XxxDemoQuery) First ¶
func (xdq *XxxDemoQuery) First(ctx context.Context) (*XxxDemo, error)
First returns the first XxxDemo entity from the query. Returns a *NotFoundError when no XxxDemo was found.
func (*XxxDemoQuery) FirstID ¶
func (xdq *XxxDemoQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first XxxDemo ID from the query. Returns a *NotFoundError when no XxxDemo ID was found.
func (*XxxDemoQuery) FirstIDX ¶
func (xdq *XxxDemoQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*XxxDemoQuery) FirstX ¶
func (xdq *XxxDemoQuery) FirstX(ctx context.Context) *XxxDemo
FirstX is like First, but panics if an error occurs.
func (*XxxDemoQuery) GroupBy ¶
func (xdq *XxxDemoQuery) GroupBy(field string, fields ...string) *XxxDemoGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` Count int `json:"count,omitempty"` } client.XxxDemo.Query(). GroupBy(xxxdemo.FieldIsDel). Aggregate(ent.Count()). Scan(ctx, &v)
func (*XxxDemoQuery) IDs ¶
func (xdq *XxxDemoQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of XxxDemo IDs.
func (*XxxDemoQuery) IDsX ¶
func (xdq *XxxDemoQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*XxxDemoQuery) Limit ¶
func (xdq *XxxDemoQuery) Limit(limit int) *XxxDemoQuery
Limit adds a limit step to the query.
func (*XxxDemoQuery) Offset ¶
func (xdq *XxxDemoQuery) Offset(offset int) *XxxDemoQuery
Offset adds an offset step to the query.
func (*XxxDemoQuery) Only ¶
func (xdq *XxxDemoQuery) Only(ctx context.Context) (*XxxDemo, error)
Only returns a single XxxDemo entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one XxxDemo entity is not found. Returns a *NotFoundError when no XxxDemo entities are found.
func (*XxxDemoQuery) OnlyID ¶
func (xdq *XxxDemoQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only XxxDemo ID in the query. Returns a *NotSingularError when exactly one XxxDemo ID is not found. Returns a *NotFoundError when no entities are found.
func (*XxxDemoQuery) OnlyIDX ¶
func (xdq *XxxDemoQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*XxxDemoQuery) OnlyX ¶
func (xdq *XxxDemoQuery) OnlyX(ctx context.Context) *XxxDemo
OnlyX is like Only, but panics if an error occurs.
func (*XxxDemoQuery) Order ¶
func (xdq *XxxDemoQuery) Order(o ...OrderFunc) *XxxDemoQuery
Order adds an order step to the query.
func (*XxxDemoQuery) Select ¶
func (xdq *XxxDemoQuery) Select(field string, fields ...string) *XxxDemoSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { IsDel bool `json:"is_del,omitempty"` } client.XxxDemo.Query(). Select(xxxdemo.FieldIsDel). Scan(ctx, &v)
func (*XxxDemoQuery) Unique ¶
func (xdq *XxxDemoQuery) Unique(unique bool) *XxxDemoQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*XxxDemoQuery) Where ¶
func (xdq *XxxDemoQuery) Where(ps ...predicate.XxxDemo) *XxxDemoQuery
Where adds a new predicate for the XxxDemoQuery builder.
type XxxDemoSelect ¶
type XxxDemoSelect struct { *XxxDemoQuery // contains filtered or unexported fields }
XxxDemoSelect is the builder for selecting fields of XxxDemo entities.
func (*XxxDemoSelect) Bool ¶
func (xds *XxxDemoSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) BoolX ¶
func (xds *XxxDemoSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*XxxDemoSelect) Bools ¶
func (xds *XxxDemoSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) BoolsX ¶
func (xds *XxxDemoSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*XxxDemoSelect) Float64 ¶
func (xds *XxxDemoSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) Float64X ¶
func (xds *XxxDemoSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*XxxDemoSelect) Float64s ¶
func (xds *XxxDemoSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) Float64sX ¶
func (xds *XxxDemoSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*XxxDemoSelect) Int ¶
func (xds *XxxDemoSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) IntX ¶
func (xds *XxxDemoSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*XxxDemoSelect) Ints ¶
func (xds *XxxDemoSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) IntsX ¶
func (xds *XxxDemoSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*XxxDemoSelect) Scan ¶
func (xds *XxxDemoSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*XxxDemoSelect) ScanX ¶
func (xds *XxxDemoSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*XxxDemoSelect) String ¶
func (xds *XxxDemoSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*XxxDemoSelect) StringX ¶
func (xds *XxxDemoSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type XxxDemoUpdate ¶
type XxxDemoUpdate struct {
// contains filtered or unexported fields
}
XxxDemoUpdate is the builder for updating XxxDemo entities.
func (*XxxDemoUpdate) AddSort ¶
func (xdu *XxxDemoUpdate) AddSort(i int32) *XxxDemoUpdate
AddSort adds i to the "sort" field.
func (*XxxDemoUpdate) AddStatus ¶
func (xdu *XxxDemoUpdate) AddStatus(i int16) *XxxDemoUpdate
AddStatus adds i to the "status" field.
func (*XxxDemoUpdate) ClearDeletedAt ¶
func (xdu *XxxDemoUpdate) ClearDeletedAt() *XxxDemoUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*XxxDemoUpdate) Exec ¶
func (xdu *XxxDemoUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*XxxDemoUpdate) ExecX ¶
func (xdu *XxxDemoUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*XxxDemoUpdate) Mutation ¶
func (xdu *XxxDemoUpdate) Mutation() *XxxDemoMutation
Mutation returns the XxxDemoMutation object of the builder.
func (*XxxDemoUpdate) Save ¶
func (xdu *XxxDemoUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*XxxDemoUpdate) SaveX ¶
func (xdu *XxxDemoUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*XxxDemoUpdate) SetCode ¶
func (xdu *XxxDemoUpdate) SetCode(s string) *XxxDemoUpdate
SetCode sets the "code" field.
func (*XxxDemoUpdate) SetDeletedAt ¶
func (xdu *XxxDemoUpdate) SetDeletedAt(t time.Time) *XxxDemoUpdate
SetDeletedAt sets the "deleted_at" field.
func (*XxxDemoUpdate) SetInput ¶
func (u *XxxDemoUpdate) SetInput(i UpdateXxxDemoInput) *XxxDemoUpdate
SetInput applies the change-set in the UpdateXxxDemoInput on the update builder.
func (*XxxDemoUpdate) SetIsDel ¶
func (xdu *XxxDemoUpdate) SetIsDel(b bool) *XxxDemoUpdate
SetIsDel sets the "is_del" field.
func (*XxxDemoUpdate) SetMemo ¶
func (xdu *XxxDemoUpdate) SetMemo(s string) *XxxDemoUpdate
SetMemo sets the "memo" field.
func (*XxxDemoUpdate) SetName ¶
func (xdu *XxxDemoUpdate) SetName(s string) *XxxDemoUpdate
SetName sets the "name" field.
func (*XxxDemoUpdate) SetNillableDeletedAt ¶
func (xdu *XxxDemoUpdate) SetNillableDeletedAt(t *time.Time) *XxxDemoUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*XxxDemoUpdate) SetNillableIsDel ¶
func (xdu *XxxDemoUpdate) SetNillableIsDel(b *bool) *XxxDemoUpdate
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*XxxDemoUpdate) SetNillableMemo ¶
func (xdu *XxxDemoUpdate) SetNillableMemo(s *string) *XxxDemoUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*XxxDemoUpdate) SetNillableSort ¶
func (xdu *XxxDemoUpdate) SetNillableSort(i *int32) *XxxDemoUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*XxxDemoUpdate) SetNillableStatus ¶
func (xdu *XxxDemoUpdate) SetNillableStatus(i *int16) *XxxDemoUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*XxxDemoUpdate) SetSort ¶
func (xdu *XxxDemoUpdate) SetSort(i int32) *XxxDemoUpdate
SetSort sets the "sort" field.
func (*XxxDemoUpdate) SetStatus ¶
func (xdu *XxxDemoUpdate) SetStatus(i int16) *XxxDemoUpdate
SetStatus sets the "status" field.
func (*XxxDemoUpdate) SetUpdatedAt ¶
func (xdu *XxxDemoUpdate) SetUpdatedAt(t time.Time) *XxxDemoUpdate
SetUpdatedAt sets the "updated_at" field.
func (*XxxDemoUpdate) Where ¶
func (xdu *XxxDemoUpdate) Where(ps ...predicate.XxxDemo) *XxxDemoUpdate
Where adds a new predicate for the XxxDemoUpdate builder.
type XxxDemoUpdateOne ¶
type XxxDemoUpdateOne struct {
// contains filtered or unexported fields
}
XxxDemoUpdateOne is the builder for updating a single XxxDemo entity.
func (*XxxDemoUpdateOne) AddSort ¶
func (xduo *XxxDemoUpdateOne) AddSort(i int32) *XxxDemoUpdateOne
AddSort adds i to the "sort" field.
func (*XxxDemoUpdateOne) AddStatus ¶
func (xduo *XxxDemoUpdateOne) AddStatus(i int16) *XxxDemoUpdateOne
AddStatus adds i to the "status" field.
func (*XxxDemoUpdateOne) ClearDeletedAt ¶
func (xduo *XxxDemoUpdateOne) ClearDeletedAt() *XxxDemoUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*XxxDemoUpdateOne) Exec ¶
func (xduo *XxxDemoUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*XxxDemoUpdateOne) ExecX ¶
func (xduo *XxxDemoUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*XxxDemoUpdateOne) Mutation ¶
func (xduo *XxxDemoUpdateOne) Mutation() *XxxDemoMutation
Mutation returns the XxxDemoMutation object of the builder.
func (*XxxDemoUpdateOne) Save ¶
func (xduo *XxxDemoUpdateOne) Save(ctx context.Context) (*XxxDemo, error)
Save executes the query and returns the updated XxxDemo entity.
func (*XxxDemoUpdateOne) SaveX ¶
func (xduo *XxxDemoUpdateOne) SaveX(ctx context.Context) *XxxDemo
SaveX is like Save, but panics if an error occurs.
func (*XxxDemoUpdateOne) Select ¶
func (xduo *XxxDemoUpdateOne) Select(field string, fields ...string) *XxxDemoUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*XxxDemoUpdateOne) SetCode ¶
func (xduo *XxxDemoUpdateOne) SetCode(s string) *XxxDemoUpdateOne
SetCode sets the "code" field.
func (*XxxDemoUpdateOne) SetDeletedAt ¶
func (xduo *XxxDemoUpdateOne) SetDeletedAt(t time.Time) *XxxDemoUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*XxxDemoUpdateOne) SetInput ¶
func (u *XxxDemoUpdateOne) SetInput(i UpdateXxxDemoInput) *XxxDemoUpdateOne
SetInput applies the change-set in the UpdateXxxDemoInput on the update-one builder.
func (*XxxDemoUpdateOne) SetIsDel ¶
func (xduo *XxxDemoUpdateOne) SetIsDel(b bool) *XxxDemoUpdateOne
SetIsDel sets the "is_del" field.
func (*XxxDemoUpdateOne) SetMemo ¶
func (xduo *XxxDemoUpdateOne) SetMemo(s string) *XxxDemoUpdateOne
SetMemo sets the "memo" field.
func (*XxxDemoUpdateOne) SetName ¶
func (xduo *XxxDemoUpdateOne) SetName(s string) *XxxDemoUpdateOne
SetName sets the "name" field.
func (*XxxDemoUpdateOne) SetNillableDeletedAt ¶
func (xduo *XxxDemoUpdateOne) SetNillableDeletedAt(t *time.Time) *XxxDemoUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*XxxDemoUpdateOne) SetNillableIsDel ¶
func (xduo *XxxDemoUpdateOne) SetNillableIsDel(b *bool) *XxxDemoUpdateOne
SetNillableIsDel sets the "is_del" field if the given value is not nil.
func (*XxxDemoUpdateOne) SetNillableMemo ¶
func (xduo *XxxDemoUpdateOne) SetNillableMemo(s *string) *XxxDemoUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*XxxDemoUpdateOne) SetNillableSort ¶
func (xduo *XxxDemoUpdateOne) SetNillableSort(i *int32) *XxxDemoUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*XxxDemoUpdateOne) SetNillableStatus ¶
func (xduo *XxxDemoUpdateOne) SetNillableStatus(i *int16) *XxxDemoUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*XxxDemoUpdateOne) SetSort ¶
func (xduo *XxxDemoUpdateOne) SetSort(i int32) *XxxDemoUpdateOne
SetSort sets the "sort" field.
func (*XxxDemoUpdateOne) SetStatus ¶
func (xduo *XxxDemoUpdateOne) SetStatus(i int16) *XxxDemoUpdateOne
SetStatus sets the "status" field.
func (*XxxDemoUpdateOne) SetUpdatedAt ¶
func (xduo *XxxDemoUpdateOne) SetUpdatedAt(t time.Time) *XxxDemoUpdateOne
SetUpdatedAt sets the "updated_at" field.
Source Files
¶
- client.go
- config.go
- context.go
- ent.go
- mutation.go
- mutation_input.go
- runtime.go
- sysdict.go
- sysdict_create.go
- sysdict_delete.go
- sysdict_query.go
- sysdict_update.go
- sysdictitem.go
- sysdictitem_create.go
- sysdictitem_delete.go
- sysdictitem_query.go
- sysdictitem_update.go
- sysjwtblock.go
- sysjwtblock_create.go
- sysjwtblock_delete.go
- sysjwtblock_query.go
- sysjwtblock_update.go
- syslogging.go
- syslogging_create.go
- syslogging_delete.go
- syslogging_query.go
- syslogging_update.go
- sysmenu.go
- sysmenu_create.go
- sysmenu_delete.go
- sysmenu_query.go
- sysmenu_update.go
- sysmenuaction.go
- sysmenuaction_create.go
- sysmenuaction_delete.go
- sysmenuaction_query.go
- sysmenuaction_update.go
- sysmenuactionresource.go
- sysmenuactionresource_create.go
- sysmenuactionresource_delete.go
- sysmenuactionresource_query.go
- sysmenuactionresource_update.go
- sysrole.go
- sysrole_create.go
- sysrole_delete.go
- sysrole_query.go
- sysrole_update.go
- sysrolemenu.go
- sysrolemenu_create.go
- sysrolemenu_delete.go
- sysrolemenu_query.go
- sysrolemenu_update.go
- sysuser.go
- sysuser_create.go
- sysuser_delete.go
- sysuser_query.go
- sysuser_update.go
- sysuserrole.go
- sysuserrole_create.go
- sysuserrole_delete.go
- sysuserrole_query.go
- sysuserrole_update.go
- tx.go
- xxxdemo.go
- xxxdemo_create.go
- xxxdemo_delete.go
- xxxdemo_query.go
- xxxdemo_update.go