add i18n support

This commit is contained in:
landaiqing
2024-11-12 22:59:39 +08:00
parent 97ca3fc7b0
commit ae743ba8a6
62 changed files with 4468 additions and 2797 deletions

View File

@@ -3,6 +3,8 @@ package schema
import (
"entgo.io/ent"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/entsql"
"entgo.io/ent/schema"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
)
@@ -44,7 +46,9 @@ func (ScaAuthPermissionRule) Fields() []ent.Field {
field.String("v5").
MaxLen(100).
Optional().
Nillable(),
Nillable().Annotations(
entsql.WithComments(true),
),
}
}
@@ -56,3 +60,14 @@ func (ScaAuthPermissionRule) Edges() []ent.Edge {
Unique(),
}
}
// Annotations of the ScaAuthPermissionRule.
func (ScaAuthPermissionRule) Annotations() []schema.Annotation {
return []schema.Annotation{
entsql.WithComments(true),
schema.Comment("角色权限规则表"),
entsql.Annotation{
Table: "sca_auth_permission_rule",
},
}
}