feat(welcome): 站点外观 - 增加欢迎页开放开关并修复入口分包
This commit is contained in:
1 parent
40aca20f4d
commit
2dfcf624c5
16 files changed
+216
-3
No files matched your search
@@ -26,6 +26,7 @@ const (
|
||||
)
|
||||
|
||||
type FeatureAvailability struct {
|
||||
WelcomeEnabled bool `json:"welcomeEnabled"`
|
||||
ShortDramaEnabled bool `json:"shortDramaEnabled"`
|
||||
TaskCenterEnabled bool `json:"taskCenterEnabled"`
|
||||
CreditsEnabled bool `json:"creditsEnabled"`
|
||||
@@ -46,6 +47,7 @@ type PublicFeatureAvailability struct {
|
||||
func DefaultFeatureAvailability() FeatureAvailability {
|
||||
// 缺少配置代表尚未由运维接管;前台模型需要明确配置后才开放。
|
||||
return FeatureAvailability{
|
||||
WelcomeEnabled: true,
|
||||
ShortDramaEnabled: true,
|
||||
TaskCenterEnabled: true,
|
||||
CreditsEnabled: true,
|
||||
|
||||
Reference in new issue
Block a user