repository

package
v0.0.0-...-6574dfe Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptToFindSoftwarePkgs

type OptToFindSoftwarePkgs struct {
	Phase    dp.PackagePhase
	PkgName  dp.PackageName
	Platform dp.PackagePlatform
	Importer dp.Account

	PageNum      int
	CountPerPage int
}

type SoftwarePkg

type SoftwarePkg interface {
	HasSoftwarePkg(dp.PackageName) (bool, error)

	// AddSoftwarePkg adds a new pkg
	AddSoftwarePkg(*domain.SoftwarePkgBasicInfo) error

	SaveSoftwarePkg(pkg *domain.SoftwarePkgBasicInfo, version int) error

	FindSoftwarePkgBasicInfo(pid string) (domain.SoftwarePkgBasicInfo, int, error)

	FindSoftwarePkg(pid string) (domain.SoftwarePkg, int, error)

	FindSoftwarePkgs(OptToFindSoftwarePkgs) (r []domain.SoftwarePkgBasicInfo, total int, err error)

	AddReviewComment(pid string, comment *domain.SoftwarePkgReviewComment) error
	FindReviewComment(pid, commentId string) (domain.SoftwarePkgReviewComment, error)

	AddTranslatedReviewComment(pid string, comment *domain.SoftwarePkgTranslatedReviewComment) error
	FindTranslatedReviewComment(*TranslatedReviewCommentIndex) (domain.SoftwarePkgTranslatedReviewComment, error)

	AddOperationLog(*domain.SoftwarePkgOperationLog) error
}

type TranslatedReviewCommentIndex

type TranslatedReviewCommentIndex struct {
	PkgId     string
	CommentId string
	Language  dp.Language
}

Jump to

Keyboard shortcuts

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