fusenapi/model/gmodel/fs_standard_logo_logic.go

14 lines
280 B
Go
Raw Permalink Normal View History

2023-06-16 06:52:45 +00:00
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
}