fusenapi/model/gmodel/fs_font_logic.go

13 lines
270 B
Go
Raw Normal View History

2023-06-15 08:08:43 +00:00
package gmodel
import (
"context"
)
// TODO: 使用model的属性做你想做的
2023-06-21 03:29:09 +00:00
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
2023-06-15 08:08:43 +00:00
}