finclip-app-manager/domain/repository/app_build_info.go

26 lines
1.3 KiB
Go

package repository
import (
"context"
"finclip-app-manager/domain/entity"
)
type IAppBuildInfoRepo interface {
Insert(ctx context.Context, item entity.AppBuildInfo) error
GetLatestInfoByAppId(ctx context.Context, appId string) (*entity.AppBuildInfo, error)
GetInfoById(ctx context.Context, id string) (*entity.AppBuildInfo, error)
GetInfoByBuildInfoId(ctx context.Context, buildInfoId string) (*entity.AppBuildInfo, error)
GetTrialInfoByAppId(ctx context.Context, appId string) (*entity.AppBuildInfo, error)
GetTrialInfoById(ctx context.Context, id string) (*entity.AppBuildInfo, error)
AddTrial(ctx context.Context, id string) error
CancelTrial(ctx context.Context, id string) error
UpdateTrialStartParams(ctx context.Context, id string, params entity.AppStartParams) error
UpdateTrialPath(ctx context.Context, id, path string) error
UpdateOneStatus(ctx context.Context, id string, status bool) error
GetList(ctx context.Context, appId string, pageNo, pageSize int) (int64, []entity.AppBuildInfo, error)
GetAll(ctx context.Context) ([]entity.AppBuildInfo, error)
GetAppBuilds(ctx context.Context, groupID, appId string, pageSize, pageNo int) (int64, []entity.AppBuildInfo, error)
NotFound(err error) bool
GetInfoByBuildId(ctx context.Context, id string) (*entity.AppBuildInfo, error)
}