广告平台(站长使用)
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.1 KiB

3 months ago
123456789101112131415161718192021222324252627282930313233343536
  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. )
  14. const (
  15. AdminUpdateAddKindForMediumFlow = 1 // 管理员修改增加
  16. AdminUpdateSubKindForMediumFlow = 2 // 管理员修改增加
  17. SettlementSubKindForMediumFlow = 3 // 结算款扣除
  18. )
  19. const DealMediumAmountRequestIdPrefix = "%s:deal_medium_amount:%d"
  20. const MediumFinValidUpdateLock = "%s:medium_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额)
  21. const MediumAmountRedisKey = "%s:cache_medium_amount:%d"
  22. type DealMediumAmount struct {
  23. Mid string `json:"mid"`
  24. Type int `json:"type"`
  25. Kind int `json:"kind"`
  26. OrdId string `json:"ord_id"`
  27. MediumId int `json:"medium_id"`
  28. Amount float64 `json:"amount"`
  29. Memo string `json:"memo"`
  30. }