Documentation ¶
Index ¶
- type SiteInfoCommonService
- func (s *SiteInfoCommonService) FormatAvatar(ctx context.Context, originalAvatarData, email string) *schema.AvatarInfo
- func (s *SiteInfoCommonService) FormatListAvatar(ctx context.Context, userList []*entity.User) (avatarMapping map[string]*schema.AvatarInfo)
- func (s *SiteInfoCommonService) GetSiteBranding(ctx context.Context) (resp *schema.SiteBrandingResp, err error)
- func (s *SiteInfoCommonService) GetSiteCustomCssHTML(ctx context.Context) (resp *schema.SiteCustomCssHTMLResp, err error)
- func (s *SiteInfoCommonService) GetSiteGeneral(ctx context.Context) (resp *schema.SiteGeneralResp, err error)
- func (s *SiteInfoCommonService) GetSiteInfoByType(ctx context.Context, siteType string, resp interface{}) (err error)
- func (s *SiteInfoCommonService) GetSiteInterface(ctx context.Context) (resp *schema.SiteInterfaceResp, err error)
- func (s *SiteInfoCommonService) GetSiteLegal(ctx context.Context) (resp *schema.SiteLegalResp, err error)
- func (s *SiteInfoCommonService) GetSiteLogin(ctx context.Context) (resp *schema.SiteLoginResp, err error)
- func (s *SiteInfoCommonService) GetSiteSeo(ctx context.Context) (resp *schema.SiteSeoReq, err error)
- func (s *SiteInfoCommonService) GetSiteTheme(ctx context.Context) (resp *schema.SiteThemeResp, err error)
- func (s *SiteInfoCommonService) GetSiteUsers(ctx context.Context) (resp *schema.SiteUsersResp, err error)
- func (s *SiteInfoCommonService) GetSiteWrite(ctx context.Context) (resp *schema.SiteWriteResp, err error)
- type SiteInfoRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SiteInfoCommonService ¶ added in v0.3.0
type SiteInfoCommonService struct {
// contains filtered or unexported fields
}
SiteInfoCommonService site info common service
func NewSiteInfoCommonService ¶ added in v0.3.0
func NewSiteInfoCommonService(siteInfoRepo SiteInfoRepo) *SiteInfoCommonService
NewSiteInfoCommonService new site info common service
func (*SiteInfoCommonService) FormatAvatar ¶ added in v1.1.0
func (s *SiteInfoCommonService) FormatAvatar(ctx context.Context, originalAvatarData, email string) *schema.AvatarInfo
FormatAvatar format avatar
func (*SiteInfoCommonService) FormatListAvatar ¶ added in v1.1.0
func (s *SiteInfoCommonService) FormatListAvatar(ctx context.Context, userList []*entity.User) ( avatarMapping map[string]*schema.AvatarInfo)
FormatListAvatar format avatar
func (*SiteInfoCommonService) GetSiteBranding ¶ added in v0.4.0
func (s *SiteInfoCommonService) GetSiteBranding(ctx context.Context) (resp *schema.SiteBrandingResp, err error)
GetSiteBranding get site info branding
func (*SiteInfoCommonService) GetSiteCustomCssHTML ¶ added in v1.0.0
func (s *SiteInfoCommonService) GetSiteCustomCssHTML(ctx context.Context) (resp *schema.SiteCustomCssHTMLResp, err error)
GetSiteCustomCssHTML get site custom css html config
func (*SiteInfoCommonService) GetSiteGeneral ¶ added in v0.3.0
func (s *SiteInfoCommonService) GetSiteGeneral(ctx context.Context) (resp *schema.SiteGeneralResp, err error)
GetSiteGeneral get site info general
func (*SiteInfoCommonService) GetSiteInfoByType ¶ added in v1.1.0
func (s *SiteInfoCommonService) GetSiteInfoByType(ctx context.Context, siteType string, resp interface{}) (err error)
func (*SiteInfoCommonService) GetSiteInterface ¶ added in v0.3.0
func (s *SiteInfoCommonService) GetSiteInterface(ctx context.Context) (resp *schema.SiteInterfaceResp, err error)
GetSiteInterface get site info interface
func (*SiteInfoCommonService) GetSiteLegal ¶ added in v0.4.0
func (s *SiteInfoCommonService) GetSiteLegal(ctx context.Context) (resp *schema.SiteLegalResp, err error)
GetSiteLegal get site info write
func (*SiteInfoCommonService) GetSiteLogin ¶ added in v1.0.0
func (s *SiteInfoCommonService) GetSiteLogin(ctx context.Context) (resp *schema.SiteLoginResp, err error)
GetSiteLogin get site login config
func (*SiteInfoCommonService) GetSiteSeo ¶ added in v1.0.0
func (s *SiteInfoCommonService) GetSiteSeo(ctx context.Context) (resp *schema.SiteSeoReq, err error)
GetSiteSeo get site seo
func (*SiteInfoCommonService) GetSiteTheme ¶ added in v1.0.0
func (s *SiteInfoCommonService) GetSiteTheme(ctx context.Context) (resp *schema.SiteThemeResp, err error)
GetSiteTheme get site theme
func (*SiteInfoCommonService) GetSiteUsers ¶ added in v1.1.0
func (s *SiteInfoCommonService) GetSiteUsers(ctx context.Context) (resp *schema.SiteUsersResp, err error)
GetSiteUsers get site info about users
func (*SiteInfoCommonService) GetSiteWrite ¶ added in v0.4.0
func (s *SiteInfoCommonService) GetSiteWrite(ctx context.Context) (resp *schema.SiteWriteResp, err error)
GetSiteWrite get site info write
Click to show internal directories.
Click to hide internal directories.