♻️ Refactor keybinding service

This commit is contained in:
2025-12-20 16:43:04 +08:00
parent 401eb3ab39
commit 7b746155f7
60 changed files with 4526 additions and 1816 deletions

View File

@@ -33,12 +33,12 @@ func (Theme) Mixin() []ent.Mixin {
// Fields of the Theme.
func (Theme) Fields() []ent.Field {
return []ent.Field{
field.String("key").
field.String("name").
MaxLen(100).
NotEmpty().
Unique().
StructTag(`json:"key"`).
Comment("theme key"),
StructTag(`json:"name"`).
Comment("theme name"),
field.Enum("type").
Values("dark", "light").
StructTag(`json:"type"`).