daos

package
v0.0.0-...-0473bba Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ENABLED = 1
	DELETED = 2
)

Variables

View Source
var DefaultAppDao = NewAppDao()
View Source
var DefaultAuditDao = NewAuditDao()
View Source
var DefaultBuildDao = NewBuildDao()
View Source
var DefaultClusterDao = NewClusterDao()
View Source
var DefaultDeploymentDao = NewDeploymentDao()
View Source
var DefaultEnvDao = NewEnvDao()
View Source
var DefaultEventDao = NewEventDao()
View Source
var DefaultJobDao = NewJobDao()
View Source
var DefaultJobStepDao = NewJobStepDao()
View Source
var DefaultMemberDao = NewMemberDao()
View Source
var DefaultPkgDao = NewPkgDao()
View Source
var DefaultProjectDao = NewProjectDao()
View Source
var DefaultProjectRoleDao = NewProjectRoleDao()
View Source
var DefaultProjectRolePermDao = NewProjectRolePermDao()
View Source
var DefaultSystemDao = NewSystemDao()
View Source
var DefaultUserDao = NewUserDao()

Functions

func GetDb

func GetDb() *dbx.DB

获取 DB

Types

type AppDao

type AppDao struct {
	BaseDao
}

func NewAppDao

func NewAppDao() *AppDao

func (*AppDao) Table

func (t *AppDao) Table() string

type AuditDao

type AuditDao struct {
	BaseDao
}

func NewAuditDao

func NewAuditDao() *AuditDao

func (*AuditDao) Table

func (t *AuditDao) Table() string

type BaseDao

type BaseDao struct {
	Self interface{}
}

func (*BaseDao) Create

func (t *BaseDao) Create(entityPtr interface{}) (int64, error)

func (*BaseDao) CreateByMap

func (t *BaseDao) CreateByMap(params dbx.Params) (int64, error)

func (*BaseDao) DeleteById

func (t *BaseDao) DeleteById(id int64) (sql.Result, error)

func (*BaseDao) GetAllByExp

func (t *BaseDao) GetAllByExp(exp dbx.HashExp, listPtr interface{}) error

func (*BaseDao) GetAllByFieldInt64

func (t *BaseDao) GetAllByFieldInt64(field string, ids []int64, o interface{}, col ...string) error

func (*BaseDao) GetAllByIdsInt64

func (t *BaseDao) GetAllByIdsInt64(ids []int64, o interface{}, col ...string) error

func (*BaseDao) GetById

func (t *BaseDao) GetById(id int64, objPtr interface{}) error

func (*BaseDao) GetDefaultPageList

func (t *BaseDao) GetDefaultPageList(oList interface{}, exp dbx.HashExp, page, pagesize int, isDesc bool) error

oList: 必须是 &[]type,也就是 slice 的指针

func (*BaseDao) GetDefaultTotal

func (t *BaseDao) GetDefaultTotal(cond dbx.HashExp) (int, error)

func (*BaseDao) GetOneByExp

func (t *BaseDao) GetOneByExp(exp dbx.HashExp, objPtr interface{}) error

func (*BaseDao) UpdateById

func (t *BaseDao) UpdateById(id int64, params dbx.Params) (sql.Result, error)

type BuildDao

type BuildDao struct {
	BaseDao
}

func NewBuildDao

func NewBuildDao() *BuildDao

func (*BuildDao) Table

func (t *BuildDao) Table() string

type ClusterDao

type ClusterDao struct {
	BaseDao
}

func NewClusterDao

func NewClusterDao() *ClusterDao

func (*ClusterDao) Table

func (t *ClusterDao) Table() string

type DeploymentDao

type DeploymentDao struct {
	BaseDao
}

func NewDeploymentDao

func NewDeploymentDao() *DeploymentDao

func (*DeploymentDao) Table

func (t *DeploymentDao) Table() string

type EnvDao

type EnvDao struct {
	BaseDao
}

func NewEnvDao

func NewEnvDao() *EnvDao

func (*EnvDao) Table

func (t *EnvDao) Table() string

type EventDao

type EventDao struct {
	BaseDao
}

func NewEventDao

func NewEventDao() *EventDao

func (*EventDao) Table

func (t *EventDao) Table() string

type JobDao

type JobDao struct {
	BaseDao
}

func NewJobDao

func NewJobDao() *JobDao

func (*JobDao) Table

func (t *JobDao) Table() string

type JobStepDao

type JobStepDao struct {
	BaseDao
}

func NewJobStepDao

func NewJobStepDao() *JobStepDao

func (*JobStepDao) Table

func (t *JobStepDao) Table() string

type MemberDao

type MemberDao struct {
	BaseDao
}

func NewMemberDao

func NewMemberDao() *MemberDao

func (*MemberDao) Table

func (t *MemberDao) Table() string

type PkgDao

type PkgDao struct {
	BaseDao
}

func NewPkgDao

func NewPkgDao() *PkgDao

func (*PkgDao) Table

func (t *PkgDao) Table() string

type ProjectDao

type ProjectDao struct {
	BaseDao
}

func NewProjectDao

func NewProjectDao() *ProjectDao

func (*ProjectDao) Table

func (t *ProjectDao) Table() string

type ProjectRoleDao

type ProjectRoleDao struct {
	BaseDao
}

func NewProjectRoleDao

func NewProjectRoleDao() *ProjectRoleDao

func (*ProjectRoleDao) Table

func (t *ProjectRoleDao) Table() string

type ProjectRolePermDao

type ProjectRolePermDao struct {
	BaseDao
}

func NewProjectRolePermDao

func NewProjectRolePermDao() *ProjectRolePermDao

func (*ProjectRolePermDao) Table

func (t *ProjectRolePermDao) Table() string

type SystemDao

type SystemDao struct {
	BaseDao
}

func NewSystemDao

func NewSystemDao() *SystemDao

func (*SystemDao) Table

func (t *SystemDao) Table() string

type UserDao

type UserDao struct {
	BaseDao
}

func NewUserDao

func NewUserDao() *UserDao

func (*UserDao) Table

func (t *UserDao) Table() string

Jump to

Keyboard shortcuts

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