Documentation ¶
Index ¶
- type IWebsiteConfigService
- type WebsiteConfigService
- func (s *WebsiteConfigService) AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error
- func (s *WebsiteConfigService) AddPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error
- func (s *WebsiteConfigService) AddRecordInWebsiteConfig(ctx context.Context, record string) error
- func (s *WebsiteConfigService) AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
- func (s *WebsiteConfigService) AddTPSVConfig(ctx context.Context, tpsv domain.TPSV) error
- func (s *WebsiteConfigService) DeleteCarouselElem(ctx context.Context, id string) error
- func (s *WebsiteConfigService) DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error
- func (s *WebsiteConfigService) DeleteRecordInWebsiteConfig(ctx context.Context, record string) error
- func (s *WebsiteConfigService) DeleteSocialInfo(ctx context.Context, id []byte) error
- func (s *WebsiteConfigService) DeleteTPSVConfigByKey(ctx context.Context, key string) error
- func (s *WebsiteConfigService) GetAdminConfig(ctx context.Context) (*domain.AdminConfig, error)
- func (s *WebsiteConfigService) GetBaiduPushConfig(ctx context.Context) (*domain.Baidu, error)
- func (s *WebsiteConfigService) GetCarouselConfig(ctx context.Context) (*domain.CarouselConfig, error)
- func (s *WebsiteConfigService) GetCommentConfig(ctx context.Context) (domain.CommentConfig, error)
- func (s *WebsiteConfigService) GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)
- func (s *WebsiteConfigService) GetFriendConfig(ctx context.Context) (domain.FriendConfig, error)
- func (s *WebsiteConfigService) GetFrontPostCount(ctx context.Context) (*domain.FrontPostCountConfig, error)
- func (s *WebsiteConfigService) GetFrontPostCountConfig(ctx context.Context) (domain.FrontPostCountConfig, error)
- func (s *WebsiteConfigService) GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)
- func (s *WebsiteConfigService) GetNoticeConfig(ctx context.Context) (domain.NoticeConfig, error)
- func (s *WebsiteConfigService) GetPayConfig(ctx context.Context) (domain.PayInfoConfig, error)
- func (s *WebsiteConfigService) GetSeoMetaConfig(ctx context.Context) (*domain.SeoMetaConfig, error)
- func (s *WebsiteConfigService) GetSocialConfig(ctx context.Context) (domain.SocialInfoConfig, error)
- func (s *WebsiteConfigService) GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)
- func (s *WebsiteConfigService) GetWebSiteConfig(ctx context.Context) (*domain.WebsiteConfig, error)
- func (s *WebsiteConfigService) InitializeWebsite(ctx context.Context, adminConfig domain.AdminConfig, ...) error
- func (s *WebsiteConfigService) IsCarouselElemExist(ctx context.Context, id string) (bool, error)
- func (s *WebsiteConfigService) UpdateAdminConfig(ctx context.Context, adminConfig domain.AdminConfig, now time.Time) error
- func (s *WebsiteConfigService) UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error
- func (s *WebsiteConfigService) UpdateCarouselShowStatus(ctx context.Context, id string, show bool) error
- func (s *WebsiteConfigService) UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error
- func (s *WebsiteConfigService) UpdateEmailConfig(ctx context.Context, emailCfg *domain.EmailConfig) error
- func (s *WebsiteConfigService) UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error
- func (s *WebsiteConfigService) UpdateIntroduction4FriendConfig(ctx context.Context, introduction string) error
- func (s *WebsiteConfigService) UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error
- func (s *WebsiteConfigService) UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error
- func (s *WebsiteConfigService) UpdatePushConfigByKey(ctx context.Context, key string, updates map[string]any) error
- func (s *WebsiteConfigService) UpdateSeoMetaConfig(ctx context.Context, seoCfg *domain.SeoMetaConfig) error
- func (s *WebsiteConfigService) UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
- func (s *WebsiteConfigService) UpdateSwitch4FriendConfig(ctx context.Context, enableFriendCommit bool) error
- func (s *WebsiteConfigService) 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 IWebsiteConfigService ¶
type IWebsiteConfigService interface { GetWebSiteConfig(ctx context.Context) (*domain.WebsiteConfig, error) GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error) GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error) GetFrontPostCount(ctx context.Context) (*domain.FrontPostCountConfig, error) GetSeoMetaConfig(ctx context.Context) (*domain.SeoMetaConfig, error) UpdateSeoMetaConfig(ctx context.Context, seoCfg *domain.SeoMetaConfig) error GetCommentConfig(ctx context.Context) (domain.CommentConfig, error) UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error GetFriendConfig(ctx context.Context) (domain.FriendConfig, error) UpdateSwitch4FriendConfig(ctx context.Context, enableFriendCommit bool) error UpdateEmailConfig(ctx context.Context, emailCfg *domain.EmailConfig) error GetNoticeConfig(ctx context.Context) (domain.NoticeConfig, error) UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error GetFrontPostCountConfig(ctx context.Context) (domain.FrontPostCountConfig, error) UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error AddRecordInWebsiteConfig(ctx context.Context, record string) error DeleteRecordInWebsiteConfig(ctx context.Context, record string) error GetPayConfig(ctx context.Context) (domain.PayInfoConfig, error) AddPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error GetSocialConfig(ctx context.Context) (domain.SocialInfoConfig, error) AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error DeleteSocialInfo(ctx context.Context, id []byte) error GetAdminConfig(ctx context.Context) (*domain.AdminConfig, error) InitializeWebsite(ctx context.Context, adminConfig domain.AdminConfig, webSiteConfig domain.WebsiteConfig, emailConfig domain.EmailConfig) 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 GetCarouselConfig(ctx context.Context) (*domain.CarouselConfig, 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 IsCarouselElemExist(ctx context.Context, id string) (bool, error) UpdateIntroduction4FriendConfig(ctx context.Context, introduction string) error }
type WebsiteConfigService ¶
type WebsiteConfigService struct {
// contains filtered or unexported fields
}
func NewWebsiteConfigService ¶
func NewWebsiteConfigService(repo repository.IWebsiteConfigRepository) *WebsiteConfigService
func (*WebsiteConfigService) AddCarouselConfig ¶
func (s *WebsiteConfigService) AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error
func (*WebsiteConfigService) AddPayInfo ¶
func (s *WebsiteConfigService) AddPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error
func (*WebsiteConfigService) AddRecordInWebsiteConfig ¶
func (s *WebsiteConfigService) AddRecordInWebsiteConfig(ctx context.Context, record string) error
func (*WebsiteConfigService) AddSocialInfo ¶
func (s *WebsiteConfigService) AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
func (*WebsiteConfigService) AddTPSVConfig ¶
func (*WebsiteConfigService) DeleteCarouselElem ¶
func (s *WebsiteConfigService) DeleteCarouselElem(ctx context.Context, id string) error
func (*WebsiteConfigService) DeletePayInfo ¶
func (s *WebsiteConfigService) DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error
func (*WebsiteConfigService) DeleteRecordInWebsiteConfig ¶
func (s *WebsiteConfigService) DeleteRecordInWebsiteConfig(ctx context.Context, record string) error
func (*WebsiteConfigService) DeleteSocialInfo ¶
func (s *WebsiteConfigService) DeleteSocialInfo(ctx context.Context, id []byte) error
func (*WebsiteConfigService) DeleteTPSVConfigByKey ¶
func (s *WebsiteConfigService) DeleteTPSVConfigByKey(ctx context.Context, key string) error
func (*WebsiteConfigService) GetAdminConfig ¶
func (s *WebsiteConfigService) GetAdminConfig(ctx context.Context) (*domain.AdminConfig, error)
func (*WebsiteConfigService) GetBaiduPushConfig ¶
func (*WebsiteConfigService) GetCarouselConfig ¶
func (s *WebsiteConfigService) GetCarouselConfig(ctx context.Context) (*domain.CarouselConfig, error)
func (*WebsiteConfigService) GetCommentConfig ¶
func (s *WebsiteConfigService) GetCommentConfig(ctx context.Context) (domain.CommentConfig, error)
func (*WebsiteConfigService) GetEmailConfig ¶
func (s *WebsiteConfigService) GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)
func (*WebsiteConfigService) GetFriendConfig ¶
func (s *WebsiteConfigService) GetFriendConfig(ctx context.Context) (domain.FriendConfig, error)
func (*WebsiteConfigService) GetFrontPostCount ¶
func (s *WebsiteConfigService) GetFrontPostCount(ctx context.Context) (*domain.FrontPostCountConfig, error)
func (*WebsiteConfigService) GetFrontPostCountConfig ¶
func (s *WebsiteConfigService) GetFrontPostCountConfig(ctx context.Context) (domain.FrontPostCountConfig, error)
func (*WebsiteConfigService) GetIndexConfig ¶
func (s *WebsiteConfigService) GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)
func (*WebsiteConfigService) GetNoticeConfig ¶
func (s *WebsiteConfigService) GetNoticeConfig(ctx context.Context) (domain.NoticeConfig, error)
func (*WebsiteConfigService) GetPayConfig ¶
func (s *WebsiteConfigService) GetPayConfig(ctx context.Context) (domain.PayInfoConfig, error)
func (*WebsiteConfigService) GetSeoMetaConfig ¶
func (s *WebsiteConfigService) GetSeoMetaConfig(ctx context.Context) (*domain.SeoMetaConfig, error)
func (*WebsiteConfigService) GetSocialConfig ¶
func (s *WebsiteConfigService) GetSocialConfig(ctx context.Context) (domain.SocialInfoConfig, error)
func (*WebsiteConfigService) GetTPSVConfig ¶
func (s *WebsiteConfigService) GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)
func (*WebsiteConfigService) GetWebSiteConfig ¶
func (s *WebsiteConfigService) GetWebSiteConfig(ctx context.Context) (*domain.WebsiteConfig, error)
func (*WebsiteConfigService) InitializeWebsite ¶
func (s *WebsiteConfigService) InitializeWebsite(ctx context.Context, adminConfig domain.AdminConfig, webSiteConfig domain.WebsiteConfig, emailConfig domain.EmailConfig) error
func (*WebsiteConfigService) IsCarouselElemExist ¶
func (*WebsiteConfigService) UpdateAdminConfig ¶
func (s *WebsiteConfigService) UpdateAdminConfig(ctx context.Context, adminConfig domain.AdminConfig, now time.Time) error
func (*WebsiteConfigService) UpdateCarouselElem ¶
func (s *WebsiteConfigService) UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error
func (*WebsiteConfigService) UpdateCarouselShowStatus ¶
func (*WebsiteConfigService) UpdateCommentConfig ¶
func (s *WebsiteConfigService) UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error
func (*WebsiteConfigService) UpdateEmailConfig ¶
func (s *WebsiteConfigService) UpdateEmailConfig(ctx context.Context, emailCfg *domain.EmailConfig) error
func (*WebsiteConfigService) UpdateFrontPostCountConfig ¶
func (s *WebsiteConfigService) UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error
func (*WebsiteConfigService) UpdateIntroduction4FriendConfig ¶
func (s *WebsiteConfigService) UpdateIntroduction4FriendConfig(ctx context.Context, introduction string) error
func (*WebsiteConfigService) UpdateNoticeConfig ¶
func (s *WebsiteConfigService) UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error
func (*WebsiteConfigService) UpdateNoticeConfigEnabled ¶
func (s *WebsiteConfigService) UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error
func (*WebsiteConfigService) UpdatePushConfigByKey ¶
func (*WebsiteConfigService) UpdateSeoMetaConfig ¶
func (s *WebsiteConfigService) UpdateSeoMetaConfig(ctx context.Context, seoCfg *domain.SeoMetaConfig) error
func (*WebsiteConfigService) UpdateSocialInfo ¶
func (s *WebsiteConfigService) UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
func (*WebsiteConfigService) UpdateSwitch4FriendConfig ¶
func (s *WebsiteConfigService) UpdateSwitch4FriendConfig(ctx context.Context, enableFriendCommit bool) error
func (*WebsiteConfigService) UpdateWebsiteConfig ¶
func (s *WebsiteConfigService) UpdateWebsiteConfig(ctx context.Context, websiteConfig domain.WebsiteConfig, now time.Time) error
Click to show internal directories.
Click to hide internal directories.