dao

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIssueView

func CreateIssueView(po po.PpmPriIssueView, tx ...sqlbuilder.Tx) error

func DeleteIssueRelationById

func DeleteIssueRelationById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIssueRelationByOrg

func DeleteIssueRelationByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIssueSourceById

func DeleteIssueSourceById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIssueSourceByOrg

func DeleteIssueSourceByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIterationById

func DeleteIterationById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIterationByOrg

func DeleteIterationByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIterationStatById

func DeleteIterationStatById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteIterationStatByOrg

func DeleteIterationStatByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectById

func DeleteProjectById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectByOrg

func DeleteProjectByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectDayStatById

func DeleteProjectDayStatById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectDayStatByOrg

func DeleteProjectDayStatByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectDetailById

func DeleteProjectDetailById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectDetailByOrg

func DeleteProjectDetailByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectRelationById

func DeleteProjectRelationById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteProjectRelationByOrg

func DeleteProjectRelationByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func GetProjectMemberCount

func GetProjectMemberCount(orgId, projectId int64) int64

func GetShareView

func GetShareView() shareViewInterface

func InsertChatSettingBatch

func InsertChatSettingBatch(pos []po.PpmProProjectChat, tx ...sqlbuilder.Tx) error

func InsertIssueRelation

func InsertIssueRelation(po po.PpmPriIssueRelation, tx ...sqlbuilder.Tx) error

func InsertIssueRelationBatch

func InsertIssueRelationBatch(pos []po.PpmPriIssueRelation, tx ...sqlbuilder.Tx) error

func InsertIssueSource

func InsertIssueSource(po po.PpmPrsIssueSource, tx ...sqlbuilder.Tx) error

func InsertIssueSourceBatch

func InsertIssueSourceBatch(pos []po.PpmPrsIssueSource, tx ...sqlbuilder.Tx) error

func InsertIssueWorkHours

func InsertIssueWorkHours(po po.PpmPriIssueWorkHours, tx ...sqlbuilder.Tx) error

插入一条数据

func InsertIteration

func InsertIteration(po po.PpmPriIteration, tx ...sqlbuilder.Tx) error

func InsertIterationBatch

func InsertIterationBatch(pos []po.PpmPriIteration, tx ...sqlbuilder.Tx) error

func InsertIterationStat

func InsertIterationStat(po po.PpmStaIterationStat, tx ...sqlbuilder.Tx) error

func InsertIterationStatBatch

func InsertIterationStatBatch(pos []po.PpmStaIterationStat, tx ...sqlbuilder.Tx) error

func InsertMultiIssueWorkHours

func InsertMultiIssueWorkHours(list []*po.PpmPriIssueWorkHours, tx ...sqlbuilder.Tx) error

插入多条

func InsertProject

func InsertProject(po po.PpmProProject, tx ...sqlbuilder.Tx) error

func InsertProjectBatch

func InsertProjectBatch(pos []po.PpmProProject, tx ...sqlbuilder.Tx) error

func InsertProjectDayStat

func InsertProjectDayStat(po po.PpmStaProjectDayStat, tx ...sqlbuilder.Tx) error

func InsertProjectDayStatBatch

func InsertProjectDayStatBatch(pos []po.PpmStaProjectDayStat, tx ...sqlbuilder.Tx) error

func InsertProjectDetail

func InsertProjectDetail(po po.PpmProProjectDetail, tx ...sqlbuilder.Tx) error

func InsertProjectDetailBatch

func InsertProjectDetailBatch(pos []po.PpmProProjectDetail, tx ...sqlbuilder.Tx) error

func InsertProjectRelation

func InsertProjectRelation(po po.PpmProProjectRelation, tx ...sqlbuilder.Tx) error

func InsertProjectRelationBatch

func InsertProjectRelationBatch(pos []po.PpmProProjectRelation, tx ...sqlbuilder.Tx) error

func InsertRecycleBin

func InsertRecycleBin(po po.PpmPrsRecycleBin, tx ...sqlbuilder.Tx) error

func InsertRecycleBinBatch

func InsertRecycleBinBatch(pos []po.PpmPrsRecycleBin, tx ...sqlbuilder.Tx) error

func JudgeIterationIsExist

func JudgeIterationIsExist(orgId, id int64) bool

func MySqlEscape

func MySqlEscape(sql string) string

func PGEscape

func PGEscape(sql string) string

func SelectIssueRelation

func SelectIssueRelation(cond db.Cond) (*[]po.PpmPriIssueRelation, error)

func SelectIssueRelationById

func SelectIssueRelationById(id int64) (*po.PpmPriIssueRelation, error)

func SelectIssueRelationByIdAndOrg

func SelectIssueRelationByIdAndOrg(id int64, orgId int64) (*po.PpmPriIssueRelation, error)

func SelectIssueRelationByPage

func SelectIssueRelationByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmPriIssueRelation, uint64, error)

func SelectIssueSource

func SelectIssueSource(cond db.Cond) (*[]po.PpmPrsIssueSource, error)

func SelectIssueSourceById

func SelectIssueSourceById(id int64) (*po.PpmPrsIssueSource, error)

func SelectIssueSourceByIdAndOrg

func SelectIssueSourceByIdAndOrg(id int64, orgId int64) (*po.PpmPrsIssueSource, error)

func SelectIssueSourceByPage

func SelectIssueSourceByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmPrsIssueSource, uint64, error)

func SelectIssueViewById

func SelectIssueViewById(id int64) (*po.PpmPriIssueView, error)

func SelectIssueViewsByCond

func SelectIssueViewsByCond(page, size int, cond db.Cond, order interface{}) (int64, []po.PpmPriIssueView, error)

func SelectIssueViewsByCondCount

func SelectIssueViewsByCondCount(cond db.Cond) (uint64, error)

func SelectIteration

func SelectIteration(cond db.Cond) (*[]po.PpmPriIteration, error)

func SelectIterationById

func SelectIterationById(id int64) (*po.PpmPriIteration, error)

func SelectIterationByIdAndOrg

func SelectIterationByIdAndOrg(id int64, orgId int64) (*po.PpmPriIteration, error)

func SelectIterationByPage

func SelectIterationByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmPriIteration, uint64, error)

func SelectIterationStat

func SelectIterationStat(cond db.Cond) (*[]po.PpmStaIterationStat, error)

func SelectIterationStatById

func SelectIterationStatById(id int64) (*po.PpmStaIterationStat, error)

func SelectIterationStatByIdAndOrg

func SelectIterationStatByIdAndOrg(id int64, orgId int64) (*po.PpmStaIterationStat, error)

func SelectIterationStatByPage

func SelectIterationStatByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmStaIterationStat, uint64, error)

func SelectOneIssueRelation

func SelectOneIssueRelation(cond db.Cond) (*po.PpmPriIssueRelation, error)

func SelectOneIssueSource

func SelectOneIssueSource(cond db.Cond) (*po.PpmPrsIssueSource, error)

func SelectOneIteration

func SelectOneIteration(cond db.Cond) (*po.PpmPriIteration, error)

func SelectOneIterationStat

func SelectOneIterationStat(cond db.Cond) (*po.PpmStaIterationStat, error)

func SelectOneProject

func SelectOneProject(cond db.Cond) (*po.PpmProProject, error)

func SelectOneProjectDayStat

func SelectOneProjectDayStat(cond db.Cond) (*po.PpmStaProjectDayStat, error)

func SelectOneProjectDetail

func SelectOneProjectDetail(cond db.Cond) (*po.PpmProProjectDetail, error)

func SelectOneProjectRelation

func SelectOneProjectRelation(cond db.Cond) (*po.PpmProProjectRelation, error)

func SelectProject

func SelectProject(cond db.Cond) (*[]po.PpmProProject, error)

func SelectProjectById

func SelectProjectById(id int64) (*po.PpmProProject, error)

func SelectProjectByIdAndOrg

func SelectProjectByIdAndOrg(id int64, orgId int64) (*po.PpmProProject, error)

func SelectProjectByPage

func SelectProjectByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmProProject, uint64, error)

func SelectProjectDayStat

func SelectProjectDayStat(cond db.Cond) (*[]po.PpmStaProjectDayStat, error)

func SelectProjectDayStatById

func SelectProjectDayStatById(id int64) (*po.PpmStaProjectDayStat, error)

func SelectProjectDayStatByIdAndOrg

func SelectProjectDayStatByIdAndOrg(id int64, orgId int64) (*po.PpmStaProjectDayStat, error)

func SelectProjectDayStatByPage

func SelectProjectDayStatByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmStaProjectDayStat, uint64, error)

func SelectProjectDetail

func SelectProjectDetail(cond db.Cond) (*[]po.PpmProProjectDetail, error)

func SelectProjectDetailById

func SelectProjectDetailById(id int64) (*po.PpmProProjectDetail, error)

func SelectProjectDetailByIdAndOrg

func SelectProjectDetailByIdAndOrg(id int64, orgId int64) (*po.PpmProProjectDetail, error)

func SelectProjectDetailByPage

func SelectProjectDetailByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmProProjectDetail, uint64, error)

func SelectProjectRelation

func SelectProjectRelation(cond db.Cond) (*[]po.PpmProProjectRelation, error)

func SelectProjectRelationById

func SelectProjectRelationById(id int64) (*po.PpmProProjectRelation, error)

func SelectProjectRelationByIdAndOrg

func SelectProjectRelationByIdAndOrg(id int64, orgId int64) (*po.PpmProProjectRelation, error)

func SelectProjectRelationByPage

func SelectProjectRelationByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmProProjectRelation, uint64, error)

func UpdateIssueRelation

func UpdateIssueRelation(po po.PpmPriIssueRelation, tx ...sqlbuilder.Tx) error

func UpdateIssueRelationByCond

func UpdateIssueRelationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueRelationById

func UpdateIssueRelationById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueRelationByOrg

func UpdateIssueRelationByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueSource

func UpdateIssueSource(po po.PpmPrsIssueSource, tx ...sqlbuilder.Tx) error

func UpdateIssueSourceByCond

func UpdateIssueSourceByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueSourceById

func UpdateIssueSourceById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueSourceByOrg

func UpdateIssueSourceByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueView

func UpdateIssueView(po po.PpmPriIssueView, tx ...sqlbuilder.Tx) error

func UpdateIssueViewByCond

func UpdateIssueViewByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIssueViewById

func UpdateIssueViewById(orgId, id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIteration

func UpdateIteration(po po.PpmPriIteration, tx ...sqlbuilder.Tx) error

func UpdateIterationByCond

func UpdateIterationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIterationById

func UpdateIterationById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIterationByOrg

func UpdateIterationByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIterationStat

func UpdateIterationStat(po po.PpmStaIterationStat, tx ...sqlbuilder.Tx) error

func UpdateIterationStatByCond

func UpdateIterationStatByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIterationStatById

func UpdateIterationStatById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateIterationStatByOrg

func UpdateIterationStatByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProject

func UpdateProject(po po.PpmProProject, tx ...sqlbuilder.Tx) error

func UpdateProjectByCond

func UpdateProjectByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectById

func UpdateProjectById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectByOrg

func UpdateProjectByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDayStat

func UpdateProjectDayStat(po po.PpmStaProjectDayStat, tx ...sqlbuilder.Tx) error

func UpdateProjectDayStatByCond

func UpdateProjectDayStatByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDayStatById

func UpdateProjectDayStatById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDayStatByOrg

func UpdateProjectDayStatByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDetail

func UpdateProjectDetail(po po.PpmProProjectDetail, tx ...sqlbuilder.Tx) error

func UpdateProjectDetailByCond

func UpdateProjectDetailByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDetailById

func UpdateProjectDetailById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectDetailByOrg

func UpdateProjectDetailByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectRelation

func UpdateProjectRelation(po po.PpmProProjectRelation, tx ...sqlbuilder.Tx) error

func UpdateProjectRelationByCond

func UpdateProjectRelationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectRelationById

func UpdateProjectRelationById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateProjectRelationByOrg

func UpdateProjectRelationByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

Types

type SqlInfo

type SqlInfo struct {
	Query string
	Args  []interface{}
}

func SQLDeleteIssueRelationByIdsType

func SQLDeleteIssueRelationByIdsType(orgId int64, issueId int64, relationIds []int64, relationType int) *SqlInfo

func SQLUpdateIssueRelationStatusById

func SQLUpdateIssueRelationStatusById(orgId int64, issueId int64, relationType int, status int) *SqlInfo

Jump to

Keyboard shortcuts

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