fusenapi/model/fsproductmodel.go
2023-06-01 15:32:28 +08:00

25 lines
585 B
Go
Executable File

package model
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ FsProductModel = (*customFsProductModel)(nil)
type (
// FsProductModel is an interface to be customized, add more methods here,
// and implement the added methods in customFsProductModel.
FsProductModel interface {
fsProductModel
}
customFsProductModel struct {
*defaultFsProductModel
}
)
// NewFsProductModel returns a model for the database table.
func NewFsProductModel(conn sqlx.SqlConn) FsProductModel {
return &customFsProductModel{
defaultFsProductModel: newFsProductModel(conn),
}
}