Documentation
¶
Index ¶
- Constants
- Variables
- func GetDb() *dbx.DB
- type AppDao
- type AuditDao
- type BaseDao
- func (t *BaseDao) Create(entityPtr interface{}) (int64, error)
- func (t *BaseDao) CreateByMap(params dbx.Params) (int64, error)
- func (t *BaseDao) DeleteById(id int64) (sql.Result, error)
- func (t *BaseDao) GetAllByExp(exp dbx.HashExp, listPtr interface{}) error
- func (t *BaseDao) GetAllByFieldInt64(field string, ids []int64, o interface{}, col ...string) error
- func (t *BaseDao) GetAllByIdsInt64(ids []int64, o interface{}, col ...string) error
- func (t *BaseDao) GetById(id int64, objPtr interface{}) error
- func (t *BaseDao) GetDefaultPageList(oList interface{}, exp dbx.HashExp, page, pagesize int, isDesc bool) error
- func (t *BaseDao) GetDefaultTotal(cond dbx.HashExp) (int, error)
- func (t *BaseDao) GetOneByExp(exp dbx.HashExp, objPtr interface{}) error
- func (t *BaseDao) UpdateById(id int64, params dbx.Params) (sql.Result, error)
- type BuildDao
- type ClusterDao
- type DeploymentDao
- type EnvDao
- type EventDao
- type JobDao
- type JobStepDao
- type MemberDao
- type PkgDao
- type ProjectDao
- type ProjectRoleDao
- type ProjectRolePermDao
- type SystemDao
- type UserDao
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 ¶
Types ¶
type BaseDao ¶
type BaseDao struct {
Self interface{}
}
func (*BaseDao) CreateByMap ¶
func (*BaseDao) GetAllByExp ¶
func (*BaseDao) GetAllByFieldInt64 ¶
func (*BaseDao) GetAllByIdsInt64 ¶
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 (*BaseDao) GetOneByExp ¶
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 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
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
Click to show internal directories.
Click to hide internal directories.