Documentation ¶
Index ¶
- func DeleteResourceById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)
- func DeleteResourceByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)
- func FolderIdIsExist(ids []int64, projectId int64, orgId int64, tx ...sqlbuilder.Tx) (bool, errs.SystemErrorInfo)
- func InsertFolder(po po.PpmResFolder, tx ...sqlbuilder.Tx) error
- func InsertMidTable(po po.PpmResFolderResource, tx ...sqlbuilder.Tx) error
- func InsertResource(po po.PpmResResource, tx ...sqlbuilder.Tx) error
- func InsertResourceBatch(pos []po.PpmResResource, tx ...sqlbuilder.Tx) error
- func InsertResourceRelation(po po.PpmResResourceRelation, tx ...sqlbuilder.Tx) error
- func RelationIsExist(resourceIds []int64, folderId, orgId int64) (bool, errs.SystemErrorInfo)
- func ResourceFolderHasRelation(resourceIds []int64, folderId, orgId int64) (bool, errs.SystemErrorInfo)
- func ResourceIdIsExist(resourceIds []int64, orgId int64, projectId int64) (bool, errs.SystemErrorInfo)
- func SelectFolderByIds(ids []int64, tx ...sqlbuilder.Tx) (*[]po.PpmResFolder, error)
- func SelectFolderByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmResFolder, uint64, error)
- func SelectMidTablePo(resourceId int64, folderId, orgId int64, tx ...sqlbuilder.Tx) (*po.PpmResFolderResource, errs.SystemErrorInfo)
- func SelectMidTablePoByFolderId(folderId int64, orgId int64, tx ...sqlbuilder.Tx) (*[]po.PpmResFolderResource, errs.SystemErrorInfo)
- func SelectOneResource(cond db.Cond) (*po.PpmResResource, error)
- func SelectResource(cond db.Cond) ([]*po.PpmResResource, error)
- func SelectResourceById(id int64, tx ...sqlbuilder.Tx) (*po.PpmResResource, error)
- func SelectResourceByIdAndOrg(id int64, orgId int64) (*po.PpmResResource, error)
- func SelectResourceByPage(cond db.Cond, union *db.Union, pageBo bo.PageBo) (*[]po.PpmResResource, uint64, error)
- func SelectResourceRelationByCond(cond db.Cond, tx sqlbuilder.Tx) ([]*po.PpmResResourceRelation, error)
- func UpdateFolder(po po.PpmResFolder, tx ...sqlbuilder.Tx) error
- func UpdateFolderByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
- func UpdateMidTable(po po.PpmResFolderResource, tx ...sqlbuilder.Tx) error
- func UpdateMidTableByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
- func UpdateResource(po po.PpmResResource, tx ...sqlbuilder.Tx) error
- func UpdateResourceByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)
- func UpdateResourceById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)
- func UpdateResourceByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)
- func UpdateResourceRelationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteResourceById ¶
func DeleteResourceByOrg ¶
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 SelectFolderByIds ¶
func SelectFolderByIds(ids []int64, tx ...sqlbuilder.Tx) (*[]po.PpmResFolder, error)
func SelectFolderByPage ¶
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 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 UpdateResourceById ¶
func UpdateResourceByOrg ¶
func UpdateResourceRelationByCond ¶
func UpdateResourceRelationByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.