feat(main): add mp-weixin

This commit is contained in:
2025-01-18 22:34:27 +08:00
parent 9a31ec15a4
commit 9459d51501
28 changed files with 1580 additions and 71 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 _ ProductRenderModel = (*customProductRenderModel)(nil)
type (
// ProductRenderModel is an interface to be customized, add more methods here,
// and implement the added methods in customProductRenderModel.
ProductRenderModel interface {
productRenderModel
}
customProductRenderModel struct {
*defaultProductRenderModel
}
)
// NewProductRenderModel returns a model for the database table.
func NewProductRenderModel(conn sqlx.SqlConn, c cache.CacheConf) ProductRenderModel {
return &customProductRenderModel{
defaultProductRenderModel: newProductRenderModel(conn, c),
}
}