package models import "ppgo/common" type BaseOrm struct { } type IOrm interface { Find(orm IOrm) BaseOrm } func (o BaseOrm) tableName() string { return "app" } func (o BaseOrm) Find(a any) any { if common.GetDb().Find(&a, 1).RowsAffected == 0 { return nil } return a }