修复产品修改、删除

This commit is contained in:
2024-10-15 00:23:07 +08:00
parent e6467b7004
commit 8f903b457f
31 changed files with 1292 additions and 111 deletions

View File

@@ -0,0 +1,27 @@
package model
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ PayOrderModel = (*customPayOrderModel)(nil)
type (
// PayOrderModel is an interface to be customized, add more methods here,
// and implement the added methods in customPayOrderModel.
PayOrderModel interface {
payOrderModel
}
customPayOrderModel struct {
*defaultPayOrderModel
}
)
// NewPayOrderModel returns a model for the database table.
func NewPayOrderModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) PayOrderModel {
return &customPayOrderModel{
defaultPayOrderModel: newPayOrderModel(conn, c, opts...),
}
}