v1.2.8
脚手架更新,修复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 {
}