广告平台(站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fin_medium_flow.go 1.2 KiB

3 月之前
2 月之前
3 月之前
2 月之前
3 月之前
1234567891011121314151617181920212223242526272829303132333435363738
  1. package md
  2. const (
  3. FinMediumFlowDirectionIncome = 1 //流水 - 收入
  4. FinMediumFlowDirectionExpenditure = 2 //流水 - 支出
  5. )
  6. const (
  7. FinMediumFlowRedisKey = "%s:fin_medium_flow:%d:user:%d"
  8. )
  9. const (
  10. AdminUpdateAddTitleForMediumFlow = "管理员修改增加"
  11. AdminUpdateSubTitleForMediumFlow = "管理员修改减少"
  12. SettlementSubTitleForMediumFlow = "结算款扣除"
  13. FinancialDynamicsTitleKindForMediumFlow = "平台预付"
  14. )
  15. const (
  16. AdminUpdateAddKindForMediumFlow = 1 // 管理员修改增加
  17. AdminUpdateSubKindForMediumFlow = 2 // 管理员修改增加
  18. SettlementSubKindForMediumFlow = 3 // 结算款扣除
  19. FinancialDynamicsKindForMediumFlow = 4 // 平台预付
  20. )
  21. const DealMediumAmountRequestIdPrefix = "%s:deal_medium_amount:%d"
  22. const MediumFinValidUpdateLock = "%s:medium_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额)
  23. const MediumAmountRedisKey = "%s:cache_medium_amount:%d"
  24. type DealMediumAmount struct {
  25. Mid string `json:"mid"`
  26. Type int `json:"type"`
  27. Kind int `json:"kind"`
  28. OrdId string `json:"ord_id"`
  29. MediumId int `json:"medium_id"`
  30. Amount float64 `json:"amount"`
  31. Memo string `json:"memo"`
  32. }