UrlManager.java 899 B

123456789101112131415161718192021222324252627282930
  1. package com.haochuan.djbl;
  2. /**
  3. * Created by Lyn on 2018/5/30.
  4. */
  5. public class UrlManager {
  6. private String host = "http://202.99.114.74:56199/";
  7. public String getCollectedStateUrl(String uId,String sourceId){
  8. return host + "index.php?m=Home&c=DuduApi&a=isCollect"
  9. + "&uid=" + uId
  10. +"&source_id=" + sourceId;
  11. }
  12. public String addCollectedStateUrl(String uId,String sourceId,int type){
  13. return host + "index.php?m=Home&c=DuduApi&a=upWatchCollectLog"
  14. + "&type=" + type
  15. + "&uid=" + uId
  16. +"&source_id=" + sourceId;
  17. }
  18. public String cancelCollectedStateUrl(String uId,String sourceId,int type){
  19. return host + "index.php?m=Home&c=DuduApi&a=delWatchCollectLog"
  20. + "&type=" + type
  21. + "&uid=" + uId
  22. +"&source_id=" + sourceId;
  23. }
  24. }