Documentation ¶
Index ¶
- Variables
- type NgingFtpUser
- func (a *NgingFtpUser) AsKV(keyField string, valueField string, inputRows ...[]*NgingFtpUser) param.Store
- func (a *NgingFtpUser) AsMap(onlyFields ...string) param.Store
- func (a *NgingFtpUser) AsRow(onlyFields ...string) param.Store
- func (a *NgingFtpUser) BatchValidate(kvset map[string]interface{}) error
- func (a *NgingFtpUser) CPAFrom(source factory.Model) factory.Model
- func (a *NgingFtpUser) Context() echo.Context
- func (a *NgingFtpUser) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)
- func (a *NgingFtpUser) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUser) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUser) EventOFF(off ...bool) factory.Model
- func (a *NgingFtpUser) EventON(on ...bool) factory.Model
- func (a *NgingFtpUser) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)
- func (a *NgingFtpUser) FromRow(row map[string]interface{})
- func (a *NgingFtpUser) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUser) GroupBy(keyField string, inputRows ...[]*NgingFtpUser) map[string][]*NgingFtpUser
- func (a *NgingFtpUser) InitObjects() *[]*NgingFtpUser
- func (a *NgingFtpUser) Insert() (pk interface{}, err error)
- func (a *NgingFtpUser) KeyBy(keyField string, inputRows ...[]*NgingFtpUser) map[string]*NgingFtpUser
- func (a *NgingFtpUser) List(recv interface{}, mw func(db.Result) db.Result, page, size int, ...) (func() int64, error)
- func (a *NgingFtpUser) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, ...) (func() int64, error)
- func (a *NgingFtpUser) ListPage(cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingFtpUser) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingFtpUser) Name_() string
- func (a *NgingFtpUser) Namer() func(factory.Model) string
- func (a *NgingFtpUser) New(structName string, connID ...int) factory.Model
- func (a *NgingFtpUser) NewObjects() factory.Ranger
- func (a *NgingFtpUser) NewParam() *factory.Param
- func (a *NgingFtpUser) Objects() []*NgingFtpUser
- func (a *NgingFtpUser) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param
- func (a *NgingFtpUser) Reset() *NgingFtpUser
- func (a *NgingFtpUser) Set(key interface{}, value ...interface{})
- func (a *NgingFtpUser) SetConnID(connID int) factory.Model
- func (a *NgingFtpUser) SetContext(ctx echo.Context) factory.Model
- func (a *NgingFtpUser) SetNamer(namer func(factory.Model) string) factory.Model
- func (a *NgingFtpUser) SetParam(param *factory.Param) factory.Model
- func (a *NgingFtpUser) Short_() string
- func (a *NgingFtpUser) Struct_() string
- func (a *NgingFtpUser) Trans() *factory.Transaction
- func (a *NgingFtpUser) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUser) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)
- func (a *NgingFtpUser) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, ...) (err error)
- func (a *NgingFtpUser) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, ...) (err error)
- func (a *NgingFtpUser) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
- func (a *NgingFtpUser) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUser) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUser) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)
- func (a *NgingFtpUser) Use(trans *factory.Transaction) factory.Model
- func (a *NgingFtpUser) Validate(field string, value interface{}) error
- func (a *NgingFtpUser) XObjects() Slice_NgingFtpUser
- type NgingFtpUserGroup
- func (a *NgingFtpUserGroup) AsKV(keyField string, valueField string, inputRows ...[]*NgingFtpUserGroup) param.Store
- func (a *NgingFtpUserGroup) AsMap(onlyFields ...string) param.Store
- func (a *NgingFtpUserGroup) AsRow(onlyFields ...string) param.Store
- func (a *NgingFtpUserGroup) BatchValidate(kvset map[string]interface{}) error
- func (a *NgingFtpUserGroup) CPAFrom(source factory.Model) factory.Model
- func (a *NgingFtpUserGroup) Context() echo.Context
- func (a *NgingFtpUserGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)
- func (a *NgingFtpUserGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUserGroup) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUserGroup) EventOFF(off ...bool) factory.Model
- func (a *NgingFtpUserGroup) EventON(on ...bool) factory.Model
- func (a *NgingFtpUserGroup) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)
- func (a *NgingFtpUserGroup) FromRow(row map[string]interface{})
- func (a *NgingFtpUserGroup) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUserGroup) GroupBy(keyField string, inputRows ...[]*NgingFtpUserGroup) map[string][]*NgingFtpUserGroup
- func (a *NgingFtpUserGroup) InitObjects() *[]*NgingFtpUserGroup
- func (a *NgingFtpUserGroup) Insert() (pk interface{}, err error)
- func (a *NgingFtpUserGroup) KeyBy(keyField string, inputRows ...[]*NgingFtpUserGroup) map[string]*NgingFtpUserGroup
- func (a *NgingFtpUserGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, ...) (func() int64, error)
- func (a *NgingFtpUserGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, ...) (func() int64, error)
- func (a *NgingFtpUserGroup) ListPage(cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingFtpUserGroup) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingFtpUserGroup) Name_() string
- func (a *NgingFtpUserGroup) Namer() func(factory.Model) string
- func (a *NgingFtpUserGroup) New(structName string, connID ...int) factory.Model
- func (a *NgingFtpUserGroup) NewObjects() factory.Ranger
- func (a *NgingFtpUserGroup) NewParam() *factory.Param
- func (a *NgingFtpUserGroup) Objects() []*NgingFtpUserGroup
- func (a *NgingFtpUserGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param
- func (a *NgingFtpUserGroup) Reset() *NgingFtpUserGroup
- func (a *NgingFtpUserGroup) Set(key interface{}, value ...interface{})
- func (a *NgingFtpUserGroup) SetConnID(connID int) factory.Model
- func (a *NgingFtpUserGroup) SetContext(ctx echo.Context) factory.Model
- func (a *NgingFtpUserGroup) SetNamer(namer func(factory.Model) string) factory.Model
- func (a *NgingFtpUserGroup) SetParam(param *factory.Param) factory.Model
- func (a *NgingFtpUserGroup) Short_() string
- func (a *NgingFtpUserGroup) Struct_() string
- func (a *NgingFtpUserGroup) Trans() *factory.Transaction
- func (a *NgingFtpUserGroup) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingFtpUserGroup) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)
- func (a *NgingFtpUserGroup) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, ...) (err error)
- func (a *NgingFtpUserGroup) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, ...) (err error)
- func (a *NgingFtpUserGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
- func (a *NgingFtpUserGroup) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUserGroup) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)
- func (a *NgingFtpUserGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)
- func (a *NgingFtpUserGroup) Use(trans *factory.Transaction) factory.Model
- func (a *NgingFtpUserGroup) Validate(field string, value interface{}) error
- func (a *NgingFtpUserGroup) XObjects() Slice_NgingFtpUserGroup
- type Slice_NgingFtpUser
- func (s Slice_NgingFtpUser) AsKV(keyField string, valueField string) param.Store
- func (s Slice_NgingFtpUser) FromList(data interface{}) Slice_NgingFtpUser
- func (s Slice_NgingFtpUser) GroupBy(keyField string) map[string][]*NgingFtpUser
- func (s Slice_NgingFtpUser) KeyBy(keyField string) map[string]*NgingFtpUser
- func (s Slice_NgingFtpUser) Range(fn func(m factory.Model) error) error
- func (s Slice_NgingFtpUser) RangeRaw(fn func(m *NgingFtpUser) error) error
- func (s Slice_NgingFtpUser) Transform(transfers map[string]param.Transfer) []param.Store
- type Slice_NgingFtpUserGroup
- func (s Slice_NgingFtpUserGroup) AsKV(keyField string, valueField string) param.Store
- func (s Slice_NgingFtpUserGroup) FromList(data interface{}) Slice_NgingFtpUserGroup
- func (s Slice_NgingFtpUserGroup) GroupBy(keyField string) map[string][]*NgingFtpUserGroup
- func (s Slice_NgingFtpUserGroup) KeyBy(keyField string) map[string]*NgingFtpUserGroup
- func (s Slice_NgingFtpUserGroup) Range(fn func(m factory.Model) error) error
- func (s Slice_NgingFtpUserGroup) RangeRaw(fn func(m *NgingFtpUserGroup) error) error
- func (s Slice_NgingFtpUserGroup) Transform(transfers map[string]param.Transfer) []param.Store
Constants ¶
This section is empty.
Variables ¶
View Source
var DBI = factory.DefaultDBI
View Source
var WithPrefix = func(tableName string) string {
return "" + tableName
}
Functions ¶
This section is empty.
Types ¶
type NgingFtpUser ¶
type NgingFtpUser struct { Id uint `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"` Username string `db:"username" bson:"username" comment:"用户名" json:"username" xml:"username"` Password string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"` Banned string `db:"banned" bson:"banned" comment:"是否禁止连接" json:"banned" xml:"banned"` Directory string `db:"directory" bson:"directory" comment:"授权目录(一行一个) " json:"directory" xml:"directory"` IpWhitelist string `db:"ip_whitelist" bson:"ip_whitelist" comment:"IP白名单(一行一个) " json:"ip_whitelist" xml:"ip_whitelist"` IpBlacklist string `db:"ip_blacklist" bson:"ip_blacklist" comment:"IP黑名单(一行一个) " json:"ip_blacklist" xml:"ip_blacklist"` Created uint `db:"created" bson:"created" comment:"创建时间 " json:"created" xml:"created"` Updated uint `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"` GroupId uint `db:"group_id" bson:"group_id" comment:"用户组" json:"group_id" xml:"group_id"` // contains filtered or unexported fields }
NgingFtpUser FTP用户
func NewNgingFtpUser ¶
func NewNgingFtpUser(ctx echo.Context) *NgingFtpUser
func (*NgingFtpUser) AsKV ¶
func (a *NgingFtpUser) AsKV(keyField string, valueField string, inputRows ...[]*NgingFtpUser) param.Store
func (*NgingFtpUser) BatchValidate ¶
func (a *NgingFtpUser) BatchValidate(kvset map[string]interface{}) error
func (*NgingFtpUser) Context ¶
func (a *NgingFtpUser) Context() echo.Context
func (*NgingFtpUser) FromRow ¶
func (a *NgingFtpUser) FromRow(row map[string]interface{})
func (*NgingFtpUser) GroupBy ¶
func (a *NgingFtpUser) GroupBy(keyField string, inputRows ...[]*NgingFtpUser) map[string][]*NgingFtpUser
func (*NgingFtpUser) InitObjects ¶
func (a *NgingFtpUser) InitObjects() *[]*NgingFtpUser
func (*NgingFtpUser) Insert ¶
func (a *NgingFtpUser) Insert() (pk interface{}, err error)
func (*NgingFtpUser) KeyBy ¶
func (a *NgingFtpUser) KeyBy(keyField string, inputRows ...[]*NgingFtpUser) map[string]*NgingFtpUser
func (*NgingFtpUser) ListByOffset ¶
func (*NgingFtpUser) ListPage ¶
func (a *NgingFtpUser) ListPage(cond *db.Compounds, sorts ...interface{}) error
func (*NgingFtpUser) ListPageAs ¶
func (a *NgingFtpUser) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
func (*NgingFtpUser) Name_ ¶
func (a *NgingFtpUser) Name_() string
func (*NgingFtpUser) New ¶
func (a *NgingFtpUser) New(structName string, connID ...int) factory.Model
func (*NgingFtpUser) NewObjects ¶
func (a *NgingFtpUser) NewObjects() factory.Ranger
func (*NgingFtpUser) NewParam ¶
func (a *NgingFtpUser) NewParam() *factory.Param
func (*NgingFtpUser) Objects ¶
func (a *NgingFtpUser) Objects() []*NgingFtpUser
func (*NgingFtpUser) Reset ¶
func (a *NgingFtpUser) Reset() *NgingFtpUser
func (*NgingFtpUser) Set ¶
func (a *NgingFtpUser) Set(key interface{}, value ...interface{})
func (*NgingFtpUser) SetContext ¶
func (a *NgingFtpUser) SetContext(ctx echo.Context) factory.Model
func (*NgingFtpUser) Short_ ¶
func (a *NgingFtpUser) Short_() string
func (*NgingFtpUser) Struct_ ¶
func (a *NgingFtpUser) Struct_() string
func (*NgingFtpUser) Trans ¶
func (a *NgingFtpUser) Trans() *factory.Transaction
func (*NgingFtpUser) UpdateByFields ¶
func (*NgingFtpUser) UpdateField ¶
func (*NgingFtpUser) UpdateFields ¶
func (*NgingFtpUser) UpdateValues ¶
func (a *NgingFtpUser) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
func (*NgingFtpUser) UpdatexByFields ¶
func (*NgingFtpUser) Use ¶
func (a *NgingFtpUser) Use(trans *factory.Transaction) factory.Model
func (*NgingFtpUser) Validate ¶
func (a *NgingFtpUser) Validate(field string, value interface{}) error
func (*NgingFtpUser) XObjects ¶
func (a *NgingFtpUser) XObjects() Slice_NgingFtpUser
type NgingFtpUserGroup ¶
type NgingFtpUserGroup struct { Id uint `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"` Name string `db:"name" bson:"name" comment:"组名称" json:"name" xml:"name"` Created uint `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"` Updated uint `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"` Disabled string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"` Banned string `db:"banned" bson:"banned" comment:"是否禁止组内用户连接" json:"banned" xml:"banned"` Directory string `db:"directory" bson:"directory" comment:"授权目录" json:"directory" xml:"directory"` IpWhitelist string `db:"ip_whitelist" bson:"ip_whitelist" comment:"IP白名单(一行一个)" json:"ip_whitelist" xml:"ip_whitelist"` IpBlacklist string `db:"ip_blacklist" bson:"ip_blacklist" comment:"IP黑名单(一行一个)" json:"ip_blacklist" xml:"ip_blacklist"` // contains filtered or unexported fields }
NgingFtpUserGroup FTP用户组
func NewNgingFtpUserGroup ¶
func NewNgingFtpUserGroup(ctx echo.Context) *NgingFtpUserGroup
func (*NgingFtpUserGroup) AsKV ¶
func (a *NgingFtpUserGroup) AsKV(keyField string, valueField string, inputRows ...[]*NgingFtpUserGroup) param.Store
func (*NgingFtpUserGroup) AsMap ¶
func (a *NgingFtpUserGroup) AsMap(onlyFields ...string) param.Store
func (*NgingFtpUserGroup) AsRow ¶
func (a *NgingFtpUserGroup) AsRow(onlyFields ...string) param.Store
func (*NgingFtpUserGroup) BatchValidate ¶
func (a *NgingFtpUserGroup) BatchValidate(kvset map[string]interface{}) error
func (*NgingFtpUserGroup) CPAFrom ¶
func (a *NgingFtpUserGroup) CPAFrom(source factory.Model) factory.Model
func (*NgingFtpUserGroup) Context ¶
func (a *NgingFtpUserGroup) Context() echo.Context
func (*NgingFtpUserGroup) EventOFF ¶
func (a *NgingFtpUserGroup) EventOFF(off ...bool) factory.Model
func (*NgingFtpUserGroup) FromRow ¶
func (a *NgingFtpUserGroup) FromRow(row map[string]interface{})
func (*NgingFtpUserGroup) GroupBy ¶
func (a *NgingFtpUserGroup) GroupBy(keyField string, inputRows ...[]*NgingFtpUserGroup) map[string][]*NgingFtpUserGroup
func (*NgingFtpUserGroup) InitObjects ¶
func (a *NgingFtpUserGroup) InitObjects() *[]*NgingFtpUserGroup
func (*NgingFtpUserGroup) Insert ¶
func (a *NgingFtpUserGroup) Insert() (pk interface{}, err error)
func (*NgingFtpUserGroup) KeyBy ¶
func (a *NgingFtpUserGroup) KeyBy(keyField string, inputRows ...[]*NgingFtpUserGroup) map[string]*NgingFtpUserGroup
func (*NgingFtpUserGroup) ListByOffset ¶
func (*NgingFtpUserGroup) ListPage ¶
func (a *NgingFtpUserGroup) ListPage(cond *db.Compounds, sorts ...interface{}) error
func (*NgingFtpUserGroup) ListPageAs ¶
func (a *NgingFtpUserGroup) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
func (*NgingFtpUserGroup) Name_ ¶
func (a *NgingFtpUserGroup) Name_() string
func (*NgingFtpUserGroup) New ¶
func (a *NgingFtpUserGroup) New(structName string, connID ...int) factory.Model
func (*NgingFtpUserGroup) NewObjects ¶
func (a *NgingFtpUserGroup) NewObjects() factory.Ranger
func (*NgingFtpUserGroup) NewParam ¶
func (a *NgingFtpUserGroup) NewParam() *factory.Param
func (*NgingFtpUserGroup) Objects ¶
func (a *NgingFtpUserGroup) Objects() []*NgingFtpUserGroup
func (*NgingFtpUserGroup) Reset ¶
func (a *NgingFtpUserGroup) Reset() *NgingFtpUserGroup
func (*NgingFtpUserGroup) Set ¶
func (a *NgingFtpUserGroup) Set(key interface{}, value ...interface{})
func (*NgingFtpUserGroup) SetConnID ¶
func (a *NgingFtpUserGroup) SetConnID(connID int) factory.Model
func (*NgingFtpUserGroup) SetContext ¶
func (a *NgingFtpUserGroup) SetContext(ctx echo.Context) factory.Model
func (*NgingFtpUserGroup) SetParam ¶
func (a *NgingFtpUserGroup) SetParam(param *factory.Param) factory.Model
func (*NgingFtpUserGroup) Short_ ¶
func (a *NgingFtpUserGroup) Short_() string
func (*NgingFtpUserGroup) Struct_ ¶
func (a *NgingFtpUserGroup) Struct_() string
func (*NgingFtpUserGroup) Trans ¶
func (a *NgingFtpUserGroup) Trans() *factory.Transaction
func (*NgingFtpUserGroup) UpdateByFields ¶
func (*NgingFtpUserGroup) UpdateField ¶
func (*NgingFtpUserGroup) UpdateFields ¶
func (*NgingFtpUserGroup) UpdateValues ¶
func (a *NgingFtpUserGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
func (*NgingFtpUserGroup) UpdatexByFields ¶
func (*NgingFtpUserGroup) Use ¶
func (a *NgingFtpUserGroup) Use(trans *factory.Transaction) factory.Model
func (*NgingFtpUserGroup) Validate ¶
func (a *NgingFtpUserGroup) Validate(field string, value interface{}) error
func (*NgingFtpUserGroup) XObjects ¶
func (a *NgingFtpUserGroup) XObjects() Slice_NgingFtpUserGroup
type Slice_NgingFtpUser ¶
type Slice_NgingFtpUser []*NgingFtpUser
func (Slice_NgingFtpUser) AsKV ¶
func (s Slice_NgingFtpUser) AsKV(keyField string, valueField string) param.Store
func (Slice_NgingFtpUser) FromList ¶
func (s Slice_NgingFtpUser) FromList(data interface{}) Slice_NgingFtpUser
func (Slice_NgingFtpUser) GroupBy ¶
func (s Slice_NgingFtpUser) GroupBy(keyField string) map[string][]*NgingFtpUser
func (Slice_NgingFtpUser) KeyBy ¶
func (s Slice_NgingFtpUser) KeyBy(keyField string) map[string]*NgingFtpUser
func (Slice_NgingFtpUser) Range ¶
func (s Slice_NgingFtpUser) Range(fn func(m factory.Model) error) error
func (Slice_NgingFtpUser) RangeRaw ¶
func (s Slice_NgingFtpUser) RangeRaw(fn func(m *NgingFtpUser) error) error
type Slice_NgingFtpUserGroup ¶
type Slice_NgingFtpUserGroup []*NgingFtpUserGroup
func (Slice_NgingFtpUserGroup) AsKV ¶
func (s Slice_NgingFtpUserGroup) AsKV(keyField string, valueField string) param.Store
func (Slice_NgingFtpUserGroup) FromList ¶
func (s Slice_NgingFtpUserGroup) FromList(data interface{}) Slice_NgingFtpUserGroup
func (Slice_NgingFtpUserGroup) GroupBy ¶
func (s Slice_NgingFtpUserGroup) GroupBy(keyField string) map[string][]*NgingFtpUserGroup
func (Slice_NgingFtpUserGroup) KeyBy ¶
func (s Slice_NgingFtpUserGroup) KeyBy(keyField string) map[string]*NgingFtpUserGroup
func (Slice_NgingFtpUserGroup) Range ¶
func (s Slice_NgingFtpUserGroup) Range(fn func(m factory.Model) error) error
func (Slice_NgingFtpUserGroup) RangeRaw ¶
func (s Slice_NgingFtpUserGroup) RangeRaw(fn func(m *NgingFtpUserGroup) error) error
Click to show internal directories.
Click to hide internal directories.