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

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
123456789101112131415161718192021222324252627282930313233343536373839
  1. package md
  2. const (
  3. FinAgentFlowDirectionIncome = 1 //流水 - 收入
  4. FinAgentFlowDirectionExpenditure = 2 //流水 - 支出
  5. )
  6. const (
  7. FinAgentFlowRedisKey = "%s:fin_agent_flow:%d:user:%d"
  8. )
  9. const (
  10. AdminUpdateAddTitleForAgentFlow = "管理员修改增加"
  11. AdminUpdateSubTitleForAgentFlow = "管理员修改减少"
  12. SettlementSubTitleForAgentFlow = "结算款扣除"
  13. FinancialDynamicsTitleKindForAgentFlow = "平台预付"
  14. )
  15. const (
  16. AdminUpdateAddKindForAgentFlow = 1 // 管理员修改增加
  17. AdminUpdateSubKindForAgentFlow = 2 // 管理员修改增加
  18. SettlementSubKindForAgentFlow = 3 // 结算款扣除
  19. FinancialDynamicsKindForAgentFlow = 4 // 平台预付
  20. )
  21. const DealAgentAmountRequestIdPrefix = "%s:deal_agent_amount:%d"
  22. const AgentFinValidUpdateLock = "%s:agent_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额)
  23. const AgentAmountRedisKey = "%s:cache_agent_amount:%d"
  24. type DealAgentAmount struct {
  25. Mid string `json:"mid"`
  26. Type int `json:"type"`
  27. Kind int `json:"kind"`
  28. OrdId string `json:"ord_id"`
  29. AgentId int `json:"agent_id"`
  30. Amount float64 `json:"amount"`
  31. Memo string `json:"memo"`
  32. }