This commit is contained in:
aozhiwei 2024-11-13 10:45:59 +08:00
parent 3f2b75f00e
commit c6d994c308

View File

@ -18,7 +18,7 @@ func (this *chip) unInit() {
func (this *chip) List(accountId string) (error, []*model.Chip) { func (this *chip) List(accountId string) (error, []*model.Chip) {
chips := []*model.Chip{} chips := []*model.Chip{}
f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Chip).TableName()).Where( result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Chip).TableName()).Where(
"account_id = ?", accountId).Find(chips) "account_id = ?", accountId).Find(chips)
return nil, []*model.Chip{} return result.Error, []*model.Chip{}
} }