chore: update book enabled status wiring

This commit is contained in:
2026-04-27 11:41:35 +08:00
parent 93bde0a6b6
commit 67c33d06be
25 changed files with 336 additions and 122 deletions

View File

@@ -99,18 +99,14 @@ func (i *initDictDetail) InitializeData(ctx context.Context) (context.Context, e
{Label: "bool", Value: "2", Extend: "pgsql", Status: &True},
}
dicts[6].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
{Label: "启用", Value: "enabled", Status: &True, Sort: 10},
{Label: "禁用", Value: "disabled", Status: &True, Sort: 20},
}
dicts[7].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
{Label: "正常", Value: "normal", Status: &True, Sort: 10},
{Label: "隐藏", Value: "hidden", Status: &True, Sort: 20},
}
dicts[8].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
dicts[7].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
{Label: "完结", Value: "completed", Status: &True, Sort: 10},
{Label: "连载", Value: "serializing", Status: &True, Sort: 20},
}
dicts[9].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
dicts[8].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
{Label: "未知时代", Value: "unknown", Status: &True, Sort: 10},
{Label: "远古", Value: "ancient", Status: &True, Sort: 20},
{Label: "汉", Value: "han", Status: &True, Sort: 30},
@@ -122,7 +118,7 @@ func (i *initDictDetail) InitializeData(ctx context.Context) (context.Context, e
{Label: "近代", Value: "modern", Status: &True, Sort: 90},
{Label: "现代", Value: "contemporary", Status: &True, Sort: 100},
}
dicts[10].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
dicts[9].SysDictionaryDetails = []sysModel.SysDictionaryDetail{
{Label: "草稿", Value: "draft", Status: &True, Sort: 10},
{Label: "下架", Value: "off_shelf", Status: &True, Sort: 20},
{Label: "上架", Value: "on_shelf", Status: &True, Sort: 30},