api.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. class Api {
  2. static final String HOST = "https://www.oschina.net";
  3. // 资讯列表
  4. static final String NEWS_LIST = "http://osc.yubo725.top/news/list";
  5. // 资讯详情
  6. static final String NEWS_DETAIL = HOST + "/action/openapi/news_detail";
  7. // 动弹列表
  8. static final String TWEETS_LIST = HOST + "/action/openapi/tweet_list";
  9. // 评论列表
  10. static final String COMMENT_LIST = HOST + "/action/openapi/comment_list";
  11. // 评论回复
  12. static final String COMMENT_REPLY = HOST + "/action/openapi/comment_reply";
  13. // 获取用户信息
  14. static final String USER_INFO = HOST + "/action/openapi/user";
  15. // 发布动弹
  16. static final String PUB_TWEET = HOST + "/action/openapi/tweet_pub";
  17. // 添加到小黑屋
  18. static final String ADD_TO_BLACK = "http://osc.yubo725.top/black/add";
  19. // 查询小黑屋
  20. static final String QUERY_BLACK = "http://osc.yubo725.top/black/query";
  21. // 从小黑屋中删除
  22. static final String DELETE_BLACK = "http://osc.yubo725.top/black/delete";
  23. // 开源活动
  24. static final String EVENT_LIST = "http://osc.yubo725.top/events/";
  25. }