蛋蛋星球RabbitMq消费项目
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.
 
 
 
 
 

25 lines
496 B

  1. package consume
  2. import (
  3. "code.fnuoos.com/EggPlanet/egg_system_rules.git/md"
  4. "code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es"
  5. "encoding/json"
  6. "fmt"
  7. "testing"
  8. )
  9. func TestHandleEggEnergyDealUserECPMConsume(t *testing.T) {
  10. es.Init("http://123.57.140.192:9200", "elastic", "fnuo123")
  11. m := md.DealUserEcpmReq{
  12. Uid: 18,
  13. Ecpm: "101.4",
  14. }
  15. bytes, err := json.Marshal(m)
  16. err = handleTemporaryEggEnergyDealUserECPMConsume(bytes, nil)
  17. if err != nil {
  18. fmt.Println(err)
  19. return
  20. }
  21. }