package com.izouma.nineth.web; import com.izouma.nineth.push.PushUtils; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/push") public class PushController extends BaseController { @PostMapping("/broadcast") public void broadcast(@RequestParam String title, @RequestParam String text) throws Exception { // new PushUtils("62b5753a05844627b5c56bc8", "dlo3bqifmuuvbpmodmcyc2xnh0b1fphi") // .sendAndroidBroadcast(title, title, text); new PushUtils("62b5751a05844627b5c56b51", "lynwia75tojrokcmqu9nyiukhjdrefof") .sendIOSBroadcast(title, text); } }