Example #1
0
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)) //启动服务
}
Example #2
0
func NewMerchantQuery(c gof.App) *MerchantQuery {
	return &MerchantQuery{
		Connector: c.Db(),
		Storage:   c.Storage(),
	}
}
Example #3
0
func NewShopQuery(c gof.App) *ShopQuery {
	return &ShopQuery{
		Connector: c.Db(),
		Storage:   c.Storage(),
	}
}
Example #4
0
func NewPartnerQuery(c gof.App) *PartnerQuery {
	return &PartnerQuery{
		Connector: c.Db(),
		Storage:   c.Storage(),
	}
}