产品和权限编码格式整理优化

This commit is contained in:
2026-04-08 15:46:59 +08:00
parent 3fb3a8026f
commit 3040b10eed
6 changed files with 45 additions and 31 deletions

View File

@@ -13,11 +13,6 @@ var Product = &productService{}
type productService struct{}
// 获取产品价格
func (s *productService) GetPrice(code string) {
q.ProductSku.Where(q.ProductSku.Code.Eq(code)).Find()
}
// 获取所有产品
func (s *productService) AllProducts() ([]*m.Product, error) {
return q.Product.