13 lines
270 B
Go
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
|
|
}
|