repository

package
v0.0.0-...-9140a30 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebsiteConfigRepository

type IWebsiteConfigRepository interface {
	FindByTyp(ctx context.Context, typ string) (any, error)
	Increase(ctx context.Context, field string) error
	FindConfigByTypes(ctx context.Context, types ...string) ([]domain.Config, error)
	Decrease(ctx context.Context, field string) error
	UpdateSeoMetaConfig(ctx context.Context, cfg *domain.SeoMetaConfig) error
	UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error
	UpdateFriendConfig(ctx context.Context, friendConfig domain.FriendConfig) error
	UpdateEmailConfig(ctx context.Context, emailConfig *domain.EmailConfig, now time.Time) error
	UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error
	UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error
	UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error
	AddRecordInWebsiteConfig(ctx context.Context, record string) error
	DeleteRecordInWebsiteConfig(ctx context.Context, record string) error
	PushPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error
	DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error
	AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
	UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
	DeleteSocialInfo(ctx context.Context, id []byte) error
	UpdateAdminConfig(ctx context.Context, adminConfig domain.AdminConfig, now time.Time) error
	UpdateWebSiteConfig(ctx context.Context, websiteConfig domain.WebsiteConfig, now time.Time) error
	GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)
	AddTPSVConfig(ctx context.Context, tpsv domain.TPSV) error
	DeleteTPSVConfigByKey(ctx context.Context, key string) error
	GetBaiduPushConfig(ctx context.Context) (*domain.Baidu, error)
	UpdatePushConfigByKey(ctx context.Context, key string, updates map[string]any) error
	AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error
	UpdateCarouselShowStatus(ctx context.Context, id string, show bool) error
	UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error
	DeleteCarouselElem(ctx context.Context, id string) error
	FindCarouselById(ctx context.Context, id string) (*domain.Config, error)
}

type WebsiteConfigRepository

type WebsiteConfigRepository struct {
	// contains filtered or unexported fields
}

func NewWebsiteConfigRepository

func NewWebsiteConfigRepository(dao dao.IWebsiteConfigDao) *WebsiteConfigRepository

func (*WebsiteConfigRepository) AddCarouselConfig

func (r *WebsiteConfigRepository) AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error

func (*WebsiteConfigRepository) AddRecordInWebsiteConfig

func (r *WebsiteConfigRepository) AddRecordInWebsiteConfig(ctx context.Context, record string) error

func (*WebsiteConfigRepository) AddSocialInfo

func (r *WebsiteConfigRepository) AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error

func (*WebsiteConfigRepository) AddTPSVConfig

func (r *WebsiteConfigRepository) AddTPSVConfig(ctx context.Context, tpsv domain.TPSV) error

func (*WebsiteConfigRepository) Decrease

func (r *WebsiteConfigRepository) Decrease(ctx context.Context, field string) error

func (*WebsiteConfigRepository) DeleteCarouselElem

func (r *WebsiteConfigRepository) DeleteCarouselElem(ctx context.Context, id string) error

func (*WebsiteConfigRepository) DeletePayInfo

func (r *WebsiteConfigRepository) DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error

func (*WebsiteConfigRepository) DeleteRecordInWebsiteConfig

func (r *WebsiteConfigRepository) DeleteRecordInWebsiteConfig(ctx context.Context, record string) error

func (*WebsiteConfigRepository) DeleteSocialInfo

func (r *WebsiteConfigRepository) DeleteSocialInfo(ctx context.Context, id []byte) error

func (*WebsiteConfigRepository) DeleteTPSVConfigByKey

func (r *WebsiteConfigRepository) DeleteTPSVConfigByKey(ctx context.Context, key string) error

func (*WebsiteConfigRepository) FindByTyp

func (r *WebsiteConfigRepository) FindByTyp(ctx context.Context, typ string) (any, error)

func (*WebsiteConfigRepository) FindCarouselById

func (r *WebsiteConfigRepository) FindCarouselById(ctx context.Context, id string) (*domain.Config, error)

func (*WebsiteConfigRepository) FindConfigByTypes

func (r *WebsiteConfigRepository) FindConfigByTypes(ctx context.Context, types ...string) ([]domain.Config, error)

func (*WebsiteConfigRepository) GetBaiduPushConfig

func (r *WebsiteConfigRepository) GetBaiduPushConfig(ctx context.Context) (*domain.Baidu, error)

func (*WebsiteConfigRepository) GetTPSVConfig

func (r *WebsiteConfigRepository) GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)

func (*WebsiteConfigRepository) Increase

func (r *WebsiteConfigRepository) Increase(ctx context.Context, field string) error

func (*WebsiteConfigRepository) PushPayInfo

func (r *WebsiteConfigRepository) PushPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error

func (*WebsiteConfigRepository) UpdateAdminConfig

func (r *WebsiteConfigRepository) UpdateAdminConfig(ctx context.Context, adminConfig domain.AdminConfig, now time.Time) error

func (*WebsiteConfigRepository) UpdateCarouselElem

func (r *WebsiteConfigRepository) UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error

func (*WebsiteConfigRepository) UpdateCarouselShowStatus

func (r *WebsiteConfigRepository) UpdateCarouselShowStatus(ctx context.Context, id string, show bool) error

func (*WebsiteConfigRepository) UpdateCommentConfig

func (r *WebsiteConfigRepository) UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error

func (*WebsiteConfigRepository) UpdateEmailConfig

func (r *WebsiteConfigRepository) UpdateEmailConfig(ctx context.Context, emailConfig *domain.EmailConfig, now time.Time) error

func (*WebsiteConfigRepository) UpdateFriendConfig

func (r *WebsiteConfigRepository) UpdateFriendConfig(ctx context.Context, friendConfig domain.FriendConfig) error

func (*WebsiteConfigRepository) UpdateFrontPostCountConfig

func (r *WebsiteConfigRepository) UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error

func (*WebsiteConfigRepository) UpdateNoticeConfig

func (r *WebsiteConfigRepository) UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error

func (*WebsiteConfigRepository) UpdateNoticeConfigEnabled

func (r *WebsiteConfigRepository) UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error

func (*WebsiteConfigRepository) UpdatePushConfigByKey

func (r *WebsiteConfigRepository) UpdatePushConfigByKey(ctx context.Context, key string, updates map[string]any) error

func (*WebsiteConfigRepository) UpdateSeoMetaConfig

func (r *WebsiteConfigRepository) UpdateSeoMetaConfig(ctx context.Context, cfg *domain.SeoMetaConfig) error

func (*WebsiteConfigRepository) UpdateSocialInfo

func (r *WebsiteConfigRepository) UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error

func (*WebsiteConfigRepository) UpdateWebSiteConfig

func (r *WebsiteConfigRepository) UpdateWebSiteConfig(ctx context.Context, websiteConfig domain.WebsiteConfig, now time.Time) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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