-
Notifications
You must be signed in to change notification settings - Fork 9
Get Select方法
Tuuz edited this page Jun 20, 2022
·
2 revisions
func Api_select(aid interface{}) []gorose.Data {
db := tuuz.Db().Table(Table)
db.Where("aid", aid)
db.OrWhere("aid", 0)
ret, err := db.Get()
if err != nil {
Log.Dbrr(err, tuuz.FUNCTION_ALL())
return nil
} else {
return ret
}
}