fusenapi/model/gmodel/fs_font_logic.go
2023-06-21 11:29:09 +08:00

13 lines
270 B
Go

package gmodel
import (
"context"
)
// TODO: 使用model的属性做你想做的
func (m *FsFontModel) FindAllOrderSortByDesc(ctx context.Context) (fonts []*FsFont, err error) {
err = m.db.Model(&FsFont{}).Order("sort desc").Find(&fonts).Error
return fonts, err
}