fusenapi/model/gmodel/fs_map_library_logic.go

12 lines
281 B
Go
Raw Normal View History

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