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

16 lines
482 B
Go

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
}