dbschema

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 137

Documentation

Overview

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Do not edit this file, which is automatically generated by the generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeInvitation

type CodeInvitation struct {
	Id       uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Code     string `db:"code" bson:"code" comment:"邀请码" json:"code" xml:"code"`
	Created  uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Uid      uint   `db:"uid" bson:"uid" comment:"创建者" json:"uid" xml:"uid"`
	RecvUid  uint   `db:"recv_uid" bson:"recv_uid" comment:"使用者" json:"recv_uid" xml:"recv_uid"`
	Used     uint   `db:"used" bson:"used" comment:"使用时间" json:"used" xml:"used"`
	Start    uint   `db:"start" bson:"start" comment:"有效时间" json:"start" xml:"start"`
	End      uint   `db:"end" bson:"end" comment:"失效时间" json:"end" xml:"end"`
	Disabled string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	// contains filtered or unexported fields
}

func (*CodeInvitation) Add

func (this *CodeInvitation) Add() (pk interface{}, err error)

func (*CodeInvitation) Count

func (this *CodeInvitation) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*CodeInvitation) Delete

func (this *CodeInvitation) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeInvitation) Edit

func (this *CodeInvitation) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeInvitation) Get

func (this *CodeInvitation) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeInvitation) List

func (this *CodeInvitation) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*CodeInvitation) ListByOffset

func (this *CodeInvitation) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*CodeInvitation) NewObjects

func (this *CodeInvitation) NewObjects() *[]*CodeInvitation

func (*CodeInvitation) NewParam

func (this *CodeInvitation) NewParam() *factory.Param

func (*CodeInvitation) Objects

func (this *CodeInvitation) Objects() []*CodeInvitation

func (*CodeInvitation) Param

func (this *CodeInvitation) Param() *factory.Param

func (*CodeInvitation) SetParam

func (this *CodeInvitation) SetParam(param *factory.Param) factory.Model

func (*CodeInvitation) Trans

func (this *CodeInvitation) Trans() *factory.Transaction

func (*CodeInvitation) Upsert

func (this *CodeInvitation) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*CodeInvitation) Use

func (this *CodeInvitation) Use(trans *factory.Transaction) factory.Model

type CodeVerification

type CodeVerification struct {
	Id       uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Code     string `db:"code" bson:"code" comment:"验证码" json:"code" xml:"code"`
	Created  uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Uid      uint   `db:"uid" bson:"uid" comment:"创建者" json:"uid" xml:"uid"`
	Used     uint   `db:"used" bson:"used" comment:"使用时间" json:"used" xml:"used"`
	Purpose  string `db:"purpose" bson:"purpose" comment:"目的" json:"purpose" xml:"purpose"`
	Start    uint   `db:"start" bson:"start" comment:"有效时间" json:"start" xml:"start"`
	End      uint   `db:"end" bson:"end" comment:"失效时间" json:"end" xml:"end"`
	Disabled string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	// contains filtered or unexported fields
}

func (*CodeVerification) Add

func (this *CodeVerification) Add() (pk interface{}, err error)

func (*CodeVerification) Count

func (this *CodeVerification) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*CodeVerification) Delete

func (this *CodeVerification) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeVerification) Edit

func (this *CodeVerification) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeVerification) Get

func (this *CodeVerification) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*CodeVerification) List

func (this *CodeVerification) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*CodeVerification) ListByOffset

func (this *CodeVerification) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*CodeVerification) NewObjects

func (this *CodeVerification) NewObjects() *[]*CodeVerification

func (*CodeVerification) NewParam

func (this *CodeVerification) NewParam() *factory.Param

func (*CodeVerification) Objects

func (this *CodeVerification) Objects() []*CodeVerification

func (*CodeVerification) Param

func (this *CodeVerification) Param() *factory.Param

func (*CodeVerification) SetParam

func (this *CodeVerification) SetParam(param *factory.Param) factory.Model

func (*CodeVerification) Trans

func (this *CodeVerification) Trans() *factory.Transaction

func (*CodeVerification) Upsert

func (this *CodeVerification) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*CodeVerification) Use

func (this *CodeVerification) Use(trans *factory.Transaction) factory.Model

type FtpUser

type FtpUser 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
}

func (*FtpUser) Add

func (this *FtpUser) Add() (pk interface{}, err error)

func (*FtpUser) Count

func (this *FtpUser) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*FtpUser) Delete

func (this *FtpUser) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) Edit

func (this *FtpUser) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) Get

func (this *FtpUser) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) List

func (this *FtpUser) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*FtpUser) ListByOffset

func (this *FtpUser) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*FtpUser) NewObjects

func (this *FtpUser) NewObjects() *[]*FtpUser

func (*FtpUser) NewParam

func (this *FtpUser) NewParam() *factory.Param

func (*FtpUser) Objects

func (this *FtpUser) Objects() []*FtpUser

func (*FtpUser) Param

func (this *FtpUser) Param() *factory.Param

func (*FtpUser) SetParam

func (this *FtpUser) SetParam(param *factory.Param) factory.Model

func (*FtpUser) Trans

func (this *FtpUser) Trans() *factory.Transaction

func (*FtpUser) Upsert

func (this *FtpUser) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*FtpUser) Use

func (this *FtpUser) Use(trans *factory.Transaction) factory.Model

type FtpUserGroup

type FtpUserGroup 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
}

func (*FtpUserGroup) Add

func (this *FtpUserGroup) Add() (pk interface{}, err error)

func (*FtpUserGroup) Count

func (this *FtpUserGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*FtpUserGroup) Delete

func (this *FtpUserGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) Edit

func (this *FtpUserGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) Get

func (this *FtpUserGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) List

func (this *FtpUserGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*FtpUserGroup) ListByOffset

func (this *FtpUserGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*FtpUserGroup) NewObjects

func (this *FtpUserGroup) NewObjects() *[]*FtpUserGroup

func (*FtpUserGroup) NewParam

func (this *FtpUserGroup) NewParam() *factory.Param

func (*FtpUserGroup) Objects

func (this *FtpUserGroup) Objects() []*FtpUserGroup

func (*FtpUserGroup) Param

func (this *FtpUserGroup) Param() *factory.Param

func (*FtpUserGroup) SetParam

func (this *FtpUserGroup) SetParam(param *factory.Param) factory.Model

func (*FtpUserGroup) Trans

func (this *FtpUserGroup) Trans() *factory.Transaction

func (*FtpUserGroup) Upsert

func (this *FtpUserGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*FtpUserGroup) Use

func (this *FtpUserGroup) Use(trans *factory.Transaction) factory.Model

type Task

type Task struct {
	Id           uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Uid          uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	GroupId      uint   `db:"group_id" bson:"group_id" comment:"分组ID" json:"group_id" xml:"group_id"`
	Name         string `db:"name" bson:"name" comment:"任务名称" json:"name" xml:"name"`
	Type         int    `db:"type" bson:"type" comment:"任务类型" json:"type" xml:"type"`
	Description  string `db:"description" bson:"description" comment:"任务描述" json:"description" xml:"description"`
	CronSpec     string `db:"cron_spec" bson:"cron_spec" comment:"时间表达式" json:"cron_spec" xml:"cron_spec"`
	Concurrent   uint   `db:"concurrent" bson:"concurrent" comment:"是否只允许一个实例" json:"concurrent" xml:"concurrent"`
	Command      string `db:"command" bson:"command" comment:"命令详情" json:"command" xml:"command"`
	Disabled     string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	EnableNotify uint   `db:"enable_notify" bson:"enable_notify" comment:"是否启用通知" json:"enable_notify" xml:"enable_notify"`
	NotifyEmail  string `db:"notify_email" bson:"notify_email" comment:"通知人列表" json:"notify_email" xml:"notify_email"`
	Timeout      uint   `db:"timeout" bson:"timeout" comment:"超时设置" json:"timeout" xml:"timeout"`
	ExecuteTimes uint   `db:"execute_times" bson:"execute_times" comment:"累计执行次数" json:"execute_times" xml:"execute_times"`
	PrevTime     uint   `db:"prev_time" bson:"prev_time" comment:"上次执行时间" json:"prev_time" xml:"prev_time"`
	Created      uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

func (*Task) Add

func (this *Task) Add() (pk interface{}, err error)

func (*Task) Count

func (this *Task) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*Task) Delete

func (this *Task) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) Edit

func (this *Task) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) Get

func (this *Task) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) List

func (this *Task) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*Task) ListByOffset

func (this *Task) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*Task) NewObjects

func (this *Task) NewObjects() *[]*Task

func (*Task) NewParam

func (this *Task) NewParam() *factory.Param

func (*Task) Objects

func (this *Task) Objects() []*Task

func (*Task) Param

func (this *Task) Param() *factory.Param

func (*Task) SetParam

func (this *Task) SetParam(param *factory.Param) factory.Model

func (*Task) Trans

func (this *Task) Trans() *factory.Transaction

func (*Task) Upsert

func (this *Task) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*Task) Use

func (this *Task) Use(trans *factory.Transaction) factory.Model

type TaskGroup

type TaskGroup struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Uid         uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	Name        string `db:"name" bson:"name" comment:"组名" json:"name" xml:"name"`
	Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	Created     uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

func (*TaskGroup) Add

func (this *TaskGroup) Add() (pk interface{}, err error)

func (*TaskGroup) Count

func (this *TaskGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*TaskGroup) Delete

func (this *TaskGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) Edit

func (this *TaskGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) Get

func (this *TaskGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) List

func (this *TaskGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*TaskGroup) ListByOffset

func (this *TaskGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*TaskGroup) NewObjects

func (this *TaskGroup) NewObjects() *[]*TaskGroup

func (*TaskGroup) NewParam

func (this *TaskGroup) NewParam() *factory.Param

func (*TaskGroup) Objects

func (this *TaskGroup) Objects() []*TaskGroup

func (*TaskGroup) Param

func (this *TaskGroup) Param() *factory.Param

func (*TaskGroup) SetParam

func (this *TaskGroup) SetParam(param *factory.Param) factory.Model

func (*TaskGroup) Trans

func (this *TaskGroup) Trans() *factory.Transaction

func (*TaskGroup) Upsert

func (this *TaskGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*TaskGroup) Use

func (this *TaskGroup) Use(trans *factory.Transaction) factory.Model

type TaskLog

type TaskLog struct {
	Id      uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	TaskId  uint   `db:"task_id" bson:"task_id" comment:"任务ID" json:"task_id" xml:"task_id"`
	Output  string `db:"output" bson:"output" comment:"任务输出" json:"output" xml:"output"`
	Error   string `db:"error" bson:"error" comment:"错误信息" json:"error" xml:"error"`
	Status  string `db:"status" bson:"status" comment:"状态" json:"status" xml:"status"`
	Elapsed uint   `db:"elapsed" bson:"elapsed" comment:"消耗时间(毫秒)" json:"elapsed" xml:"elapsed"`
	Created uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

func (*TaskLog) Add

func (this *TaskLog) Add() (pk interface{}, err error)

func (*TaskLog) Count

func (this *TaskLog) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*TaskLog) Delete

func (this *TaskLog) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) Edit

func (this *TaskLog) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) Get

func (this *TaskLog) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) List

func (this *TaskLog) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*TaskLog) ListByOffset

func (this *TaskLog) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*TaskLog) NewObjects

func (this *TaskLog) NewObjects() *[]*TaskLog

func (*TaskLog) NewParam

func (this *TaskLog) NewParam() *factory.Param

func (*TaskLog) Objects

func (this *TaskLog) Objects() []*TaskLog

func (*TaskLog) Param

func (this *TaskLog) Param() *factory.Param

func (*TaskLog) SetParam

func (this *TaskLog) SetParam(param *factory.Param) factory.Model

func (*TaskLog) Trans

func (this *TaskLog) Trans() *factory.Transaction

func (*TaskLog) Upsert

func (this *TaskLog) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*TaskLog) Use

func (this *TaskLog) Use(trans *factory.Transaction) factory.Model

type User

type User 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"`
	Email     string `db:"email" bson:"email" comment:"邮箱" json:"email" xml:"email"`
	Password  string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Salt      string `db:"salt" bson:"salt" comment:"盐值" json:"salt" xml:"salt"`
	LastLogin uint   `db:"last_login" bson:"last_login" comment:"最后登录时间" json:"last_login" xml:"last_login"`
	LastIp    string `db:"last_ip" bson:"last_ip" comment:"最后登录IP" json:"last_ip" xml:"last_ip"`
	Disabled  string `db:"disabled" bson:"disabled" comment:"状态" json:"disabled" xml:"disabled"`
	// contains filtered or unexported fields
}

func (*User) Add

func (this *User) Add() (pk interface{}, err error)

func (*User) Count

func (this *User) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*User) Delete

func (this *User) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) Edit

func (this *User) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) Get

func (this *User) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) List

func (this *User) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*User) ListByOffset

func (this *User) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*User) NewObjects

func (this *User) NewObjects() *[]*User

func (*User) NewParam

func (this *User) NewParam() *factory.Param

func (*User) Objects

func (this *User) Objects() []*User

func (*User) Param

func (this *User) Param() *factory.Param

func (*User) SetParam

func (this *User) SetParam(param *factory.Param) factory.Model

func (*User) Trans

func (this *User) Trans() *factory.Transaction

func (*User) Upsert

func (this *User) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*User) Use

func (this *User) Use(trans *factory.Transaction) factory.Model

type UserU2f

type UserU2f struct {
	Id      uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Uid     uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	Token   string `db:"token" bson:"token" comment:"签名" json:"token" xml:"token"`
	Type    string `db:"type" bson:"type" comment:"类型" json:"type" xml:"type"`
	Extra   string `db:"extra" bson:"extra" comment:"扩展设置" json:"extra" xml:"extra"`
	Created uint   `db:"created" bson:"created" comment:"绑定时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

func (*UserU2f) Add

func (this *UserU2f) Add() (pk interface{}, err error)

func (*UserU2f) Count

func (this *UserU2f) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*UserU2f) Delete

func (this *UserU2f) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) Edit

func (this *UserU2f) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) Get

func (this *UserU2f) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) List

func (this *UserU2f) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*UserU2f) ListByOffset

func (this *UserU2f) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*UserU2f) NewObjects

func (this *UserU2f) NewObjects() *[]*UserU2f

func (*UserU2f) NewParam

func (this *UserU2f) NewParam() *factory.Param

func (*UserU2f) Objects

func (this *UserU2f) Objects() []*UserU2f

func (*UserU2f) Param

func (this *UserU2f) Param() *factory.Param

func (*UserU2f) SetParam

func (this *UserU2f) SetParam(param *factory.Param) factory.Model

func (*UserU2f) Trans

func (this *UserU2f) Trans() *factory.Transaction

func (*UserU2f) Upsert

func (this *UserU2f) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*UserU2f) Use

func (this *UserU2f) Use(trans *factory.Transaction) factory.Model

type Vhost

type Vhost struct {
	Id       uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Domain   string `db:"domain" bson:"domain" comment:"域名" json:"domain" xml:"domain"`
	Root     string `db:"root" bson:"root" comment:"网站物理路径" json:"root" xml:"root"`
	Created  uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated  uint   `db:"updated" bson:"updated" comment:"更新时间" json:"updated" xml:"updated"`
	Setting  string `db:"setting" bson:"setting" comment:"设置" json:"setting" xml:"setting"`
	Disabled string `db:"disabled" bson:"disabled" comment:"是否停用" json:"disabled" xml:"disabled"`
	// contains filtered or unexported fields
}

func (*Vhost) Add

func (this *Vhost) Add() (pk interface{}, err error)

func (*Vhost) Count

func (this *Vhost) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*Vhost) Delete

func (this *Vhost) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) Edit

func (this *Vhost) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) Get

func (this *Vhost) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) List

func (this *Vhost) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*Vhost) ListByOffset

func (this *Vhost) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*Vhost) NewObjects

func (this *Vhost) NewObjects() *[]*Vhost

func (*Vhost) NewParam

func (this *Vhost) NewParam() *factory.Param

func (*Vhost) Objects

func (this *Vhost) Objects() []*Vhost

func (*Vhost) Param

func (this *Vhost) Param() *factory.Param

func (*Vhost) SetParam

func (this *Vhost) SetParam(param *factory.Param) factory.Model

func (*Vhost) Trans

func (this *Vhost) Trans() *factory.Transaction

func (*Vhost) Upsert

func (this *Vhost) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*Vhost) Use

func (this *Vhost) Use(trans *factory.Transaction) factory.Model

Jump to

Keyboard shortcuts

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