func Run(app gof.App, port int) { sto = app.Storage() API_DOMAIN = app.Config().GetString(variable.ApiDomain) log.Println("** [ Go2o][ API][ Booted] - Api server running on port " + strconv.Itoa(port)) serve.Run(":" + strconv.Itoa(port)) //启动服务 }
func NewMerchantQuery(c gof.App) *MerchantQuery { return &MerchantQuery{ Connector: c.Db(), Storage: c.Storage(), } }
func NewShopQuery(c gof.App) *ShopQuery { return &ShopQuery{ Connector: c.Db(), Storage: c.Storage(), } }
func NewPartnerQuery(c gof.App) *PartnerQuery { return &PartnerQuery{ Connector: c.Db(), Storage: c.Storage(), } }