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 DeleteResourceById

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

func DeleteResourceByOrg

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

func FolderIdIsExist

func FolderIdIsExist(ids []int64, projectId int64, orgId int64, tx ...sqlbuilder.Tx) (bool, errs.SystemErrorInfo)

func InsertFolder

func InsertFolder(po po.PpmResFolder, tx ...sqlbuilder.Tx) error

func InsertMidTable

func InsertMidTable(po po.PpmResFolderResource, tx ...sqlbuilder.Tx) error

func InsertResource

func InsertResource(po po.PpmResResource, tx ...sqlbuilder.Tx) error

func InsertResourceBatch

func InsertResourceBatch(pos []po.PpmResResource, tx ...sqlbuilder.Tx) error

func InsertResourceRelation

func InsertResourceRelation(po po.PpmResResourceRelation, tx ...sqlbuilder.Tx) error

func RelationIsExist

func RelationIsExist(resourceIds []int64, folderId, orgId int64) (bool, errs.SystemErrorInfo)

func ResourceFolderHasRelation

func ResourceFolderHasRelation(resourceIds []int64, folderId, orgId int64) (bool, errs.SystemErrorInfo)

func ResourceIdIsExist

func ResourceIdIsExist(resourceIds []int64, orgId int64, projectId int64) (bool, errs.SystemErrorInfo)

func SelectFolderByIds

func SelectFolderByIds(ids []int64, tx ...sqlbuilder.Tx) (*[]po.PpmResFolder, error)

func SelectFolderByPage

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

func SelectMidTablePo

func SelectMidTablePo(resourceId int64, folderId, orgId int64, tx ...sqlbuilder.Tx) (*po.PpmResFolderResource, errs.SystemErrorInfo)

func SelectMidTablePoByFolderId

func SelectMidTablePoByFolderId(folderId int64, orgId int64, tx ...sqlbuilder.Tx) (*[]po.PpmResFolderResource, errs.SystemErrorInfo)

func SelectOneResource

func SelectOneResource(cond db.Cond) (*po.PpmResResource, error)

func SelectResource

func SelectResource(cond db.Cond) ([]*po.PpmResResource, error)

func SelectResourceById

func SelectResourceById(id int64, tx ...sqlbuilder.Tx) (*po.PpmResResource, error)

func SelectResourceByIdAndOrg

func SelectResourceByIdAndOrg(id int64, orgId int64) (*po.PpmResResource, error)

func SelectResourceByPage

func SelectResourceByPage(cond db.Cond, union *db.Union, pageBo bo.PageBo) (*[]po.PpmResResource, uint64, error)

func SelectResourceRelationByCond

func SelectResourceRelationByCond(cond db.Cond, tx sqlbuilder.Tx) ([]*po.PpmResResourceRelation, error)

func UpdateFolder

func UpdateFolder(po po.PpmResFolder, tx ...sqlbuilder.Tx) error

func UpdateFolderByCond

func UpdateFolderByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func UpdateMidTable

func UpdateMidTable(po po.PpmResFolderResource, tx ...sqlbuilder.Tx) error

func UpdateMidTableByCond

func UpdateMidTableByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func UpdateResource

func UpdateResource(po po.PpmResResource, tx ...sqlbuilder.Tx) error

func UpdateResourceByCond

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

func UpdateResourceById

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

func UpdateResourceByOrg

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

func UpdateResourceRelationByCond

func UpdateResourceRelationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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