更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -2,15 +2,6 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// =============================================================
|
||||
// 平台端推广佣金模型(表结构见 docs/sql/create_platform_commission.sql)
|
||||
// 业务约定:
|
||||
// 1. 佣金由平台自有资金支出,与租户收款资金流解耦;
|
||||
// 2. 佣金在「业务订单支付成功」事件上按启用中的规则生成,初始状态 payable;
|
||||
// 3. 一笔支付单 + 同一推广方只生成一张佣金单(uk_pay_promoter,业务层再按 pay_no 查重)。
|
||||
// =============================================================
|
||||
|
||||
// PlatformCommissionRule 佣金规则 yz_platform_commission_rule
|
||||
type PlatformCommissionRule struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
RuleName string `orm:"column(rule_name);size(128)" json:"rule_name"`
|
||||
@@ -29,14 +20,12 @@ type PlatformCommissionRule struct {
|
||||
|
||||
func (m *PlatformCommissionRule) TableName() string { return "yz_platform_commission_rule" }
|
||||
|
||||
// 计算方式
|
||||
const (
|
||||
CommissionCalcPercent = "percent" // 按比例:value = 百分比 × 100(5% 存 500)
|
||||
CommissionCalcFixed = "fixed" // 固定金额:value = 分
|
||||
CommissionCalcTiered = "tiered" // 阶梯:value 忽略,明细见 tier_json
|
||||
CommissionCalcPercent = "percent"
|
||||
CommissionCalcFixed = "fixed"
|
||||
CommissionCalcTiered = "tiered"
|
||||
)
|
||||
|
||||
// 适用订单类型
|
||||
const (
|
||||
CommissionOrderTypeAll = "all"
|
||||
CommissionOrderTypePlatformUsage = "platform_usage"
|
||||
@@ -44,14 +33,12 @@ const (
|
||||
CommissionOrderTypeServiceFee = "service_fee"
|
||||
)
|
||||
|
||||
// CommissionTier 阶梯档位(tier_json 数组元素)
|
||||
type CommissionTier struct {
|
||||
Min int64 `json:"min"` // 起始金额(分,含)
|
||||
Max *int64 `json:"max"` // 结束金额(分,不含);null 表示不限
|
||||
Rate int64 `json:"rate"` // 比例:百分比 × 100
|
||||
Min int64 `json:"min"`
|
||||
Max *int64 `json:"max"`
|
||||
Rate int64 `json:"rate"`
|
||||
}
|
||||
|
||||
// PlatformCommissionOrder 佣金单(台账) yz_platform_commission_order
|
||||
type PlatformCommissionOrder struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
CommissionNo string `orm:"column(commission_no);size(40)" json:"commission_no"`
|
||||
@@ -79,18 +66,16 @@ type PlatformCommissionOrder struct {
|
||||
|
||||
func (m *PlatformCommissionOrder) TableName() string { return "yz_platform_commission_order" }
|
||||
|
||||
// 佣金状态
|
||||
const (
|
||||
CommissionStatusPayable = "payable" // 应付
|
||||
CommissionStatusSettled = "settled" // 已付
|
||||
CommissionStatusTaxProcessing = "tax_processing" // 税务处理中
|
||||
CommissionStatusCanceled = "canceled" // 已作废
|
||||
CommissionStatusPayable = "payable"
|
||||
CommissionStatusSettled = "settled"
|
||||
CommissionStatusTaxProcessing = "tax_processing"
|
||||
CommissionStatusCanceled = "canceled"
|
||||
)
|
||||
|
||||
// 发放方式
|
||||
const (
|
||||
CommissionPayBank = "bank" // 银行转账
|
||||
CommissionPayBalance = "balance" // 余额抵扣
|
||||
CommissionPayManual = "manual" // 人工发放
|
||||
CommissionPayOffset = "offset" // 下期抵扣
|
||||
CommissionPayBank = "bank"
|
||||
CommissionPayBalance = "balance"
|
||||
CommissionPayManual = "manual"
|
||||
CommissionPayOffset = "offset"
|
||||
)
|
||||
Reference in new issue
Block a user