fusenapi/model/gmodel/fs_map_library_logic.go
laodaming 68c431bda2 fix
2023-06-16 14:52:45 +08:00

12 lines
281 B
Go
Executable File

package gmodel
import "context"
func (ml *FsMapLibraryModel) GetAllEnabledList(ctx context.Context) (resp []FsMapLibrary, err error) {
err = ml.db.WithContext(ctx).Model(&FsMapLibrary{}).Where("`status` = ?", 0).Find(&resp).Error
if err != nil {
return nil, err
}
return
}