riskControl.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package service
  2. import (
  3. "github.com/mhaya/game/game_cluster/internal/code"
  4. "github.com/mhaya/game/game_cluster/nodes/webadmin/entity"
  5. )
  6. type RiskControl struct {
  7. }
  8. func NewRiskControl() *RiskControl {
  9. return &RiskControl{}
  10. }
  11. // 同IP下,有多个指纹数据
  12. func (s *RiskControl) MultipleFingerprintInIp(req entity.WhitelistListReq) (*entity.WhitelistListResp, *code.Result) {
  13. // TODO MultipleFingerprintInIp 同IP,指纹数量>10
  14. return nil, nil
  15. }
  16. // 同tg号码下,有多个提现地址
  17. func (s *RiskControl) MultipleAddressInTg(req entity.WhitelistListReq) (*entity.WhitelistListResp, *code.Result) {
  18. // TODO MultipleAddressInTg 同tg号码,提现地址数量>5 提现记录 根据tgid过滤
  19. return nil, nil
  20. }
  21. // 同提现地址下,有多个tg号码
  22. func (s *RiskControl) MultipleTgInAddress(req entity.WhitelistListReq) (*entity.WhitelistListResp, *code.Result) {
  23. // TODO MultipleTg 同提现地址,tg号码数量>5 提现记录 根据address过滤
  24. return nil, nil
  25. }
  26. // 同IP下,有多个tg号码
  27. func (s *RiskControl) MultipleTgInIp(req entity.WhitelistListReq) (*entity.WhitelistListResp, *code.Result) {
  28. // TODO MultipleTgInIp 同IP,tg号码数量>10
  29. return nil, nil
  30. }