chore: update book enabled status wiring
This commit is contained in:
@@ -50,7 +50,6 @@ func (i *initDict) InitializeData(ctx context.Context) (next context.Context, er
|
||||
{Name: "数据库浮点型", Type: "float64", Status: &True, Desc: "数据库浮点型"},
|
||||
{Name: "数据库字符串", Type: "string", Status: &True, Desc: "数据库字符串"},
|
||||
{Name: "数据库bool类型", Type: "bool", Status: &True, Desc: "数据库bool类型"},
|
||||
{Name: "通用启用状态", Type: "common_enabled_status", Status: &True, Desc: "通用启用禁用状态字典"},
|
||||
{Name: "书籍评论状态", Type: "book_comment_status", Status: &True, Desc: "书籍评论状态字典"},
|
||||
{Name: "书籍完结状态", Type: "book_completion_status", Status: &True, Desc: "书籍完结状态字典"},
|
||||
{Name: "书籍时代标签", Type: "book_era_tag", Status: &True, Desc: "书籍时代标签字典"},
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user