fusenapi/model/gmodel/fs_standard_logo_logic.go
laodaming 350c6a5548 fix
2023-06-16 19:05:38 +08:00

14 lines
280 B
Go
Executable File

package gmodel
import (
"context"
)
func (l *FsStandardLogoModel) GetAll(ctx context.Context) (resp []FsStandardLogo, err error) {
err = l.db.WithContext(ctx).Model(&FsStandardLogo{}).Where("`status` = ? ", 1).Find(&resp).Error
if err != nil {
return nil, err
}
return
}