Documentation
¶
Overview ¶
Package system holds the Hertz handlers of the admin system settings: site, registration, verification, subscription, invitation, currency, terms, node and Telegram bot settings.
Index ¶
- func GetCurrencyConfigHandler(service Settings) app.HandlerFunc
- func GetInviteConfigHandler(service Settings) app.HandlerFunc
- func GetNodeConfigHandler(service Settings) app.HandlerFunc
- func GetNodeMultiplierHandler(service Settings) app.HandlerFunc
- func GetPrivacyPolicyConfigHandler(service Settings) app.HandlerFunc
- func GetRegisterConfigHandler(service Settings) app.HandlerFunc
- func GetSiteConfigHandler(service Settings) app.HandlerFunc
- func GetSubscribeConfigHandler(service Settings) app.HandlerFunc
- func GetTosConfigHandler(service Settings) app.HandlerFunc
- func GetVerifyCodeConfigHandler(service Settings) app.HandlerFunc
- func GetVerifyConfigHandler(service Settings) app.HandlerFunc
- func PreViewNodeMultiplierHandler(service Settings) app.HandlerFunc
- func SetNodeMultiplierHandler(service Settings) app.HandlerFunc
- func SettingTelegramBotHandler(service Settings) app.HandlerFunc
- func UpdateCurrencyConfigHandler(service Settings) app.HandlerFunc
- func UpdateInviteConfigHandler(service Settings) app.HandlerFunc
- func UpdateNodeConfigHandler(service Settings) app.HandlerFunc
- func UpdatePrivacyPolicyConfigHandler(service Settings) app.HandlerFunc
- func UpdateRegisterConfigHandler(service Settings) app.HandlerFunc
- func UpdateSiteConfigHandler(service Settings) app.HandlerFunc
- func UpdateSubscribeConfigHandler(service Settings) app.HandlerFunc
- func UpdateTosConfigHandler(service Settings) app.HandlerFunc
- func UpdateVerifyCodeConfigHandler(service Settings) app.HandlerFunc
- func UpdateVerifyConfigHandler(service Settings) app.HandlerFunc
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrencyConfigHandler ¶
func GetCurrencyConfigHandler(service Settings) app.HandlerFunc
GetCurrencyConfigHandler documents Get Currency Config.
@Summary Get Currency Config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.CurrencyConfig} @Router /v1/admin/system/currency_config [get]
func GetInviteConfigHandler ¶
func GetInviteConfigHandler(service Settings) app.HandlerFunc
GetInviteConfigHandler documents Get invite config.
@Summary Get invite config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.InviteConfig} @Router /v1/admin/system/invite_config [get]
func GetNodeConfigHandler ¶
func GetNodeConfigHandler(service Settings) app.HandlerFunc
GetNodeConfigHandler documents Get node config.
@Summary Get node config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.NodeConfig} @Router /v1/admin/system/node_config [get]
func GetNodeMultiplierHandler ¶
func GetNodeMultiplierHandler(service Settings) app.HandlerFunc
GetNodeMultiplierHandler documents Get Node Multiplier.
@Summary Get Node Multiplier @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.GetNodeMultiplierResponse} @Router /v1/admin/system/get_node_multiplier [get]
func GetPrivacyPolicyConfigHandler ¶
func GetPrivacyPolicyConfigHandler(service Settings) app.HandlerFunc
GetPrivacyPolicyConfigHandler documents get Privacy Policy Config.
@Summary get Privacy Policy Config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.PrivacyPolicyConfig} @Router /v1/admin/system/privacy [get]
func GetRegisterConfigHandler ¶
func GetRegisterConfigHandler(service Settings) app.HandlerFunc
GetRegisterConfigHandler documents Get register config.
@Summary Get register config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.RegisterConfig} @Router /v1/admin/system/register_config [get]
func GetSiteConfigHandler ¶
func GetSiteConfigHandler(service Settings) app.HandlerFunc
GetSiteConfigHandler documents Get site config.
@Summary Get site config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.SiteConfig} @Router /v1/admin/system/site_config [get]
func GetSubscribeConfigHandler ¶
func GetSubscribeConfigHandler(service Settings) app.HandlerFunc
GetSubscribeConfigHandler documents Get subscribe config.
@Summary Get subscribe config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.SubscribeConfig} @Router /v1/admin/system/subscribe_config [get]
func GetTosConfigHandler ¶
func GetTosConfigHandler(service Settings) app.HandlerFunc
GetTosConfigHandler documents Get Team of Service Config.
@Summary Get Team of Service Config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.TosConfig} @Router /v1/admin/system/tos_config [get]
func GetVerifyCodeConfigHandler ¶
func GetVerifyCodeConfigHandler(service Settings) app.HandlerFunc
GetVerifyCodeConfigHandler documents Get Verify Code Config.
@Summary Get Verify Code Config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.VerifyCodeConfig} @Router /v1/admin/system/verify_code_config [get]
func GetVerifyConfigHandler ¶
func GetVerifyConfigHandler(service Settings) app.HandlerFunc
GetVerifyConfigHandler documents Get verify config.
@Summary Get verify config @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.VerifyConfig} @Router /v1/admin/system/verify_config [get]
func PreViewNodeMultiplierHandler ¶
func PreViewNodeMultiplierHandler(service Settings) app.HandlerFunc
PreViewNodeMultiplierHandler documents PreView Node Multiplier.
@Summary PreView Node Multiplier @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.PreViewNodeMultiplierResponse} @Router /v1/admin/system/node_multiplier/preview [get]
func SetNodeMultiplierHandler ¶
func SetNodeMultiplierHandler(service Settings) app.HandlerFunc
SetNodeMultiplierHandler documents Set Node Multiplier.
@Summary Set Node Multiplier @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.SetNodeMultiplierRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/set_node_multiplier [post]
func SettingTelegramBotHandler ¶
func SettingTelegramBotHandler(service Settings) app.HandlerFunc
SettingTelegramBotHandler documents setting telegram bot.
@Summary setting telegram bot @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/setting_telegram_bot [post]
func UpdateCurrencyConfigHandler ¶
func UpdateCurrencyConfigHandler(service Settings) app.HandlerFunc
UpdateCurrencyConfigHandler documents Update Currency Config.
@Summary Update Currency Config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.CurrencyConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/currency_config [put]
func UpdateInviteConfigHandler ¶
func UpdateInviteConfigHandler(service Settings) app.HandlerFunc
UpdateInviteConfigHandler documents Update invite config.
@Summary Update invite config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.InviteConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/invite_config [put]
func UpdateNodeConfigHandler ¶
func UpdateNodeConfigHandler(service Settings) app.HandlerFunc
UpdateNodeConfigHandler documents Update node config.
@Summary Update node config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.NodeConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/node_config [put]
func UpdatePrivacyPolicyConfigHandler ¶
func UpdatePrivacyPolicyConfigHandler(service Settings) app.HandlerFunc
UpdatePrivacyPolicyConfigHandler documents Update Privacy Policy Config.
@Summary Update Privacy Policy Config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.PrivacyPolicyConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/privacy [put]
func UpdateRegisterConfigHandler ¶
func UpdateRegisterConfigHandler(service Settings) app.HandlerFunc
UpdateRegisterConfigHandler documents Update register config.
@Summary Update register config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.RegisterConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/register_config [put]
func UpdateSiteConfigHandler ¶
func UpdateSiteConfigHandler(service Settings) app.HandlerFunc
UpdateSiteConfigHandler documents Update site config.
@Summary Update site config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.SiteConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/site_config [put]
func UpdateSubscribeConfigHandler ¶
func UpdateSubscribeConfigHandler(service Settings) app.HandlerFunc
UpdateSubscribeConfigHandler documents Update subscribe config.
@Summary Update subscribe config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.SubscribeConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/subscribe_config [put]
func UpdateTosConfigHandler ¶
func UpdateTosConfigHandler(service Settings) app.HandlerFunc
UpdateTosConfigHandler documents Update Team of Service Config.
@Summary Update Team of Service Config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.TosConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/tos_config [put]
func UpdateVerifyCodeConfigHandler ¶
func UpdateVerifyCodeConfigHandler(service Settings) app.HandlerFunc
UpdateVerifyCodeConfigHandler documents Update Verify Code Config.
@Summary Update Verify Code Config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.VerifyCodeConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/verify_code_config [put]
func UpdateVerifyConfigHandler ¶
func UpdateVerifyConfigHandler(service Settings) app.HandlerFunc
UpdateVerifyConfigHandler documents Update verify config.
@Summary Update verify config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.VerifyConfig true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/system/verify_config [put]
Types ¶
type Settings ¶ added in v1.21.0
type Settings interface {
GetCurrencyConfig(ctx context.Context) (*dto.CurrencyConfig, error)
GetInviteConfig(ctx context.Context) (*dto.InviteConfig, error)
GetNodeConfig(ctx context.Context) (*dto.NodeConfig, error)
GetNodeMultiplier(ctx context.Context) (*dto.GetNodeMultiplierResponse, error)
GetPrivacyPolicyConfig(ctx context.Context) (*dto.PrivacyPolicyConfig, error)
GetRegisterConfig(ctx context.Context) (*dto.RegisterConfig, error)
GetSiteConfig(ctx context.Context) (*dto.SiteConfig, error)
GetSubscribeConfig(ctx context.Context) (*dto.SubscribeConfig, error)
GetTosConfig(ctx context.Context) (*dto.TosConfig, error)
GetVerifyCodeConfig(ctx context.Context) (*dto.VerifyCodeConfig, error)
GetVerifyConfig(ctx context.Context) (*dto.VerifyConfig, error)
PreViewNodeMultiplier(ctx context.Context) (*dto.PreViewNodeMultiplierResponse, error)
SetNodeMultiplier(ctx context.Context, req *dto.SetNodeMultiplierRequest) error
SettingTelegramBot(ctx context.Context) error
UpdateCurrencyConfig(ctx context.Context, req *dto.CurrencyConfig) error
UpdateInviteConfig(ctx context.Context, req *dto.InviteConfig) error
UpdateNodeConfig(ctx context.Context, req *dto.NodeConfig) error
UpdatePrivacyPolicyConfig(ctx context.Context, req *dto.PrivacyPolicyConfig) error
UpdateRegisterConfig(ctx context.Context, req *dto.RegisterConfig) error
UpdateSiteConfig(ctx context.Context, req *dto.SiteConfig) error
UpdateSubscribeConfig(ctx context.Context, req *dto.SubscribeConfig) error
UpdateTosConfig(ctx context.Context, req *dto.TosConfig) error
UpdateVerifyCodeConfig(ctx context.Context, req *dto.VerifyCodeConfig) error
UpdateVerifyConfig(ctx context.Context, req *dto.VerifyConfig) error
}
Settings is the part of the platform facade the system setting handlers call.
Source Files
¶
- get_currency_config_handler.go
- get_invite_config_handler.go
- get_node_config_handler.go
- get_node_multiplier_handler.go
- get_privacy_policy_config_handler.go
- get_register_config_handler.go
- get_site_config_handler.go
- get_subscribe_config_handler.go
- get_tos_config_handler.go
- get_verify_code_config_handler.go
- get_verify_config_handler.go
- pre_view_node_multiplier_handler.go
- set_node_multiplier_handler.go
- setting_telegram_bot_handler.go
- settings.go
- update_currency_config_handler.go
- update_invite_config_handler.go
- update_node_config_handler.go
- update_privacy_policy_config_handler.go
- update_register_config_handler.go
- update_site_config_handler.go
- update_subscribe_config_handler.go
- update_tos_config_handler.go
- update_verify_code_config_handler.go
- update_verify_config_handler.go