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

16 lines
482 B
Go
Raw Permalink Normal View History

2023-10-31 14:07:26 +08:00
package repository
import (
"context"
"finclip-app-manager/domain/entity"
)
type IPrivacySettingRepo interface {
Insert(ctx context.Context, item entity.PrivacySettingInfo) error
Count(ctx context.Context, appId string) (int, error)
GetInfoByAppId(ctx context.Context, appId string) (*entity.PrivacySettingInfo, error)
UpdateInfo(ctx context.Context, info entity.PrivacySettingInfo) error
DelInfoByAppId(ctx context.Context, appId string) error
NotFound(err error) bool
}