更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

+4 -15
View File
@@ -2,12 +2,6 @@ package models
import "time"
// =============================================================
// 产品定价模型(表结构见 docs/sql/create_platform_product_pricing.sql)
// 产品(名称/编码/价格/关联功能/上下架) -> 功能节点树 -> 购买订单
// =============================================================
// PlatformProduct 产品 yz_platform_product
type PlatformProduct struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
Code string `orm:"column(code);size(64)" json:"code"`
@@ -24,7 +18,6 @@ type PlatformProduct struct {
func (m *PlatformProduct) TableName() string { return "yz_platform_product" }
// PlatformProductFeature 产品功能节点(树形,pid=0 为顶级) yz_platform_product_feature
type PlatformProductFeature struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
ProductID uint64 `orm:"column(product_id)" json:"product_id"`
@@ -37,19 +30,15 @@ type PlatformProductFeature struct {
func (m *PlatformProductFeature) TableName() string { return "yz_platform_product_feature" }
// 购买订单状态
const (
ProductOrderStatusPending = "pending" // 待支付
ProductOrderStatusPaid = "paid" // 已支付(待开通)
ProductOrderStatusActivated = "activated" // 已开通
ProductOrderStatusClosed = "closed" // 已关闭
ProductOrderStatusPending = "pending"
ProductOrderStatusPaid = "paid"
ProductOrderStatusActivated = "activated"
ProductOrderStatusClosed = "closed"
)
// ProductOrderDurationDays 单品功能默认有效期(天):1 年。
// 到期后租户端权益自动失效(GetTenantModuleCodes 按有效期过滤),需重新购买续费。
const ProductOrderDurationDays = 365
// PlatformProductOrder 产品购买订单 yz_platform_product_order
type PlatformProductOrder struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
OrderNo string `orm:"column(order_no);size(40)" json:"order_no"`