YouChuKoffee/app/services/BrandService.go

11 lines
257 B
Go
Raw Normal View History

2024-06-17 16:29:39 +08:00
package services
import (
"qteam/app/models/brandmodel"
)
func MilkBrandList() (code int, brandData []brandmodel.Brand) {
2024-07-10 17:13:36 +08:00
err := brandmodel.GetInstance().GetDb().Where("state = ?", 1).OrderBy("id asc").Find(&brandData)
2024-06-17 16:29:39 +08:00
return handErr(err), brandData
}