Skip to content

v1.2.8

Choose a tag to compare

@wangmingjob wangmingjob released this 26 Jun 08:09
· 23 commits to master since this release

脚手架更新,修复ripple gen service脚手架致命bug,删除ctx参数
ripple, fix gen service with context bug, remove ctx

var (
	productService     *ProductService
	productServiceOnce sync.Once
)

// GetProductService 单例
func GetProductService() *ProductService {
	productServiceOnce.Do(func() {
		productService = &ProductService{}
	})
	return productService
}

type ProductService struct {
}