20 lines
864 B
Go
20 lines
864 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"finclip-app-manager/domain/entity"
|
|
)
|
|
|
|
type IBundleRepo interface {
|
|
Insert(ctx context.Context, bundles []entity.Bundle) error
|
|
GetListByBundleId(ctx context.Context, ids []string, pageNo int, pageSize int) (int, []entity.Bundle, error)
|
|
GetListByBundleIds(ctx context.Context, ids []string) ([]entity.Bundle, error)
|
|
ExistBundleId(ctx context.Context, bundleId string) (bool, error)
|
|
GetInfoByBundleId(ctx context.Context, bundleId string) (entity.Bundle, error)
|
|
ListAllBundleInfos(ctx context.Context, searchText string, selectType, pageNo int, pageSize int) (int, []entity.Bundle, error)
|
|
AllCount(ctx context.Context) (int, error)
|
|
UpdateBundleForbidden(ctx context.Context, bundleId string, IsForbidden int) error
|
|
UpdateBundlePlatform(ctx context.Context, bundleId, remark string) error
|
|
NotFound(err error) bool
|
|
}
|