yuleduiPay/repo/shop.go

17 lines
273 B
Go
Raw Normal View History

2024-11-05 09:49:02 +08:00
package repo
import (
"yuleduiPay/service/po"
"github.com/gogf/gf/v2/frame/g"
)
type Shop struct {
}
func (t *Shop) GetShopById(shopId string) (*po.Shop, error) {
shop := &po.Shop{}
err := g.Model("shop").Where("shop_id = ?", shopId).Scan(shop)
return shop, err
}