This commit is contained in:
2026-09-21 15:03:52 +08:00
parent d597975b42
commit 369bbd43fd
31 changed files with 2480 additions and 769 deletions
+23
View File
@@ -0,0 +1,23 @@
package model
import (
"lone-services/pkg/modelbase"
"lone-services/services/order/internal/dao"
)
type SupplyModel struct {
modelbase.Base
}
func (m SupplyModel) TableName() string {
return modelbase.Prefix() + "supply"
}
func (m SupplyModel) Init() SupplyModel {
m.Table = m.TableName()
return m
}
func (m SupplyModel) Create(data *dao.SupplyCreate) error {
return m.Base.Create(data)
}