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