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

37 lines
1.1 KiB

  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. )
  14. const (
  15. AdminUpdateAddKindForAgentFlow = 1 // 管理员修改增加
  16. AdminUpdateSubKindForAgentFlow = 2 // 管理员修改增加
  17. SettlementSubKindForAgentFlow = 3 // 结算款扣除
  18. )
  19. const DealAgentAmountRequestIdPrefix = "%s:deal_agent_amount:%d"
  20. const AgentFinValidUpdateLock = "%s:agent_fin_valid_update_lock:%s" // 用户余额更新锁(能拿到锁才能更新余额)
  21. const AgentAmountRedisKey = "%s:cache_agent_amount:%d"
  22. type DealAgentAmount struct {
  23. Mid string `json:"mid"`
  24. Type int `json:"type"`
  25. Kind int `json:"kind"`
  26. OrdId string `json:"ord_id"`
  27. AgentId int `json:"agent_id"`
  28. Amount float64 `json:"amount"`
  29. Memo string `json:"memo"`
  30. }