Documentation ¶
Index ¶
- type FeeSettings
- type ISettingsRepository
- type PrivacyPolicy
- type SettingsController
- type SettingsRepository
- func (str SettingsRepository) CreateSettings(siteSettings *SiteSettings) (*SiteSettings, error)
- func (str SettingsRepository) GetLatestSettings() (*SiteSettings, error)
- func (str SettingsRepository) GetSettings(id string) (*SiteSettings, error)
- func (str SettingsRepository) UpdateSettings(siteSettings *SiteSettings) (*SiteSettings, error)
- type SiteSettings
- type TermsOfUse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeSettings ¶
type ISettingsRepository ¶
type ISettingsRepository interface { CreateSettings(siteSettings *SiteSettings) (*SiteSettings, error) GetSettings(id string) (*SiteSettings, error) GetLatestSettings() (*SiteSettings, error) UpdateSettings(siteSettings *SiteSettings) (*SiteSettings, error) }
type PrivacyPolicy ¶
type SettingsController ¶
type SettingsController struct {
// contains filtered or unexported fields
}
func NewSettingsController ¶
func NewSettingsController(str SettingsRepository, auth auth.Auth, ur user.UserRepository) SettingsController
func (SettingsController) CreateSiteSettings ¶
func (sc SettingsController) CreateSiteSettings(c *gin.Context)
func (SettingsController) GetSiteSettings ¶
func (sc SettingsController) GetSiteSettings(c *gin.Context)
type SettingsRepository ¶
func NewSettingsRepository ¶
func NewSettingsRepository(client *mongo.Client) SettingsRepository
func (SettingsRepository) CreateSettings ¶
func (str SettingsRepository) CreateSettings(siteSettings *SiteSettings) (*SiteSettings, error)
func (SettingsRepository) GetLatestSettings ¶
func (str SettingsRepository) GetLatestSettings() (*SiteSettings, error)
func (SettingsRepository) GetSettings ¶
func (str SettingsRepository) GetSettings(id string) (*SiteSettings, error)
func (SettingsRepository) UpdateSettings ¶
func (str SettingsRepository) UpdateSettings(siteSettings *SiteSettings) (*SiteSettings, error)
type SiteSettings ¶
type SiteSettings struct { Id primitive.ObjectID PrivacyPolicies []PrivacyPolicy TermsOfUses []TermsOfUse Fees []FeeSettings AboutUs string CreatedAt int64 }
Click to show internal directories.
Click to hide internal directories.