Add files via upload

This commit is contained in:
QWQLwToo
2026-01-28 13:25:18 +08:00
committed by GitHub
parent 02f66ec447
commit 7030903eb6
77 changed files with 21573 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Site 站点实体
type Site struct {
ent.Schema
}
func (Site) Fields() []ent.Field {
return []ent.Field{
field.Int("id"),
field.String("name").Comment("站点名称"),
field.String("url").Comment("站点URL"),
field.String("icon").Comment("站点图标类名"),
field.Int("sort_order").Default(0).Comment("排序顺序"),
}
}
func (Site) Edges() []ent.Edge {
return nil
}