first commit

This commit is contained in:
zzw
2026-08-05 17:37:32 +08:00
commit 38be479cef
72 changed files with 15670 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package model
import (
"product/internal/dao"
"pkg.local/modelbase"
)
type ProductModel struct {
modelbase.Base
}
func (m ProductModel) TableName() string {
return modelbase.Prefix() + "product"
}
func (m ProductModel) Init() ProductModel {
m.Table = m.TableName()
return m
}
func (m ProductModel) Create(data *dao.ProductCreate) error {
return m.Base.Create(data)
}