♻️ 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

@@ -34,12 +34,12 @@ func (Extension) Mixin() []ent.Mixin {
// Fields of the Extension.
func (Extension) Fields() []ent.Field {
return []ent.Field{
field.String("key").
field.String("name").
MaxLen(100).
NotEmpty().
Unique().
StructTag(`json:"key"`).
Comment("extension key"),
StructTag(`json:"name"`).
Comment("extension name"),
field.Bool("enabled").
Default(true).
StructTag(`json:"enabled"`).