myflag step13:接口的完成
来源:互联网 发布:redhat 删除数据库实例 编辑:程序博客网 时间:2024/06/01 10:02
本次的任务主要是完成了所有的接口的编写,因为前面已经完成了大部分的内容,所以接口的编写也很简单。我新增的接口有:
Createflag是创建flag的时候的接口
Deleteflag是删除flag的接口
Frinedsflag是用来获取朋友们的flag
Getapplymyflag用来获取想要监督我的请求
Getflag是用来获取一个具体的flag
Getmyapplysupervise是用来获取我的监督的请求
Judgeflag是用来判定flag的
Myflag是用来获取flag的
同时新增了joindao,joindao是用来添加新的成员的。
//String createFlag=”http://localhost:8080/myflag/flag/CreateFlag”;
//String friendsFlag=”http://localhost:8080/myflag/flag/FriendsFlag”;
//String MyFlag=”http://localhost:8080/myflag/flag/MyFlag”;
// String confirmFlagStste=”http://localhost:8080/myflag/flag/JudgeFlag”;
//String confirmFlagRequest=”http://localhost:8080/myflag/flag/ConfirmSuperviseRequest”;
//String getMySuperviseRequest=”http://localhost:8080/myflag/flag/GetMySuperviseRequest”;
//String flag=”http://localhost:8080/myflag/flag/Flag”;
//String MySuperviseFlag=”http://localhost:8080/myflag/flag/MySuperviseFlag”;
//String applySupervise=”http://localhost:8080/myflag/flag/ApplySupervise”;
//String deleteFlag=”http://localhost:8080/myflag/flag/DeleteFlag”;
String GetApplyMyFlag=”http://localhost:8080/myflag/flag/GetApplyMyFlag”;
//String GetMyApplySupervise=”http://localhost:8080/myflag/flag/GetMyApplySupervise”;
int timeout=200*10000;
try {
//Response resp=Jsoup.connect(createFlag).data(“id”,”26”).data(“content”,”可以”).data(“award”, “行啊”).data(“isTeam”, “true”).
//data(“startTime”, “1451581200”).data(“endTime”, “1469980900”).data(“maxSupervise”,”4”).data(“supervise”, “28”).data(“member”,”29”).timeout(timeout).execute();
//Response resp=Jsoup.connect(friendsFlag).data(“id”,”29”).timeout(timeout).execute();
//Response resp=Jsoup.connect(MyFlag).data(“id”,”26”).timeout(timeout).execute();
//Response resp=Jsoup.connect(applySupervise).data(“fid”,”30”).data(“uid”,”31”).timeout(timeout).execute();
//Response resp=Jsoup.connect(confirmFlagRequest).data(“fid”,”17”).data(“uid”,”4”).data(“agree”, “2”).timeout(timeout).execute();
//Response resp=Jsoup.connect(confirmFlagStste).data(“fid”,”32”).data(“uid”,”27”).data(“achieve”, “2”).data(“evaluate”, “成功”).timeout(timeout).execute();
//Response resp=Jsoup.connect(getMySuperviseRequest).data(“id”,”26”).timeout(timeout).execute();
//Response resp=Jsoup.connect(flag).data(“id”,”28”).timeout(timeout).execute();
//Response resp=Jsoup.connect(MySuperviseFlag).data(“id”,”26”).timeout(timeout).execute();
//Response resp=Jsoup.connect(deleteFlag).data(“id”,”54”).timeout(timeout).execute();
//Response resp=Jsoup.connect(applySupervise).data(“fid”,”54”).data(“uid”,”26”).timeout(timeout).execute();
//String ConfirmApplySupervise=”http://localhost:8080/myflag/flag/ConfirmApplySupervise”;
//Response resp=Jsoup.connect(ConfirmApplySupervise).data(“fid”,”54”).data(“uid”,”27”).data(“agree”,”2”).timeout(timeout).execute();
Response resp=Jsoup.connect(GetApplyMyFlag).data(“uid”,”26”).timeout(timeout).execute();
//Response resp=Jsoup.connect(GetMyApplySupervise).data(“uid”,”31”).timeout(timeout).execute();
System.out.println(resp.body());
- myflag step13:接口的完成
- MyFlag Step13:打卡功能的初步讨论
- MyFlag Step13:后台代码编写、客户端具体功能实现以及界面优化
- ECom: 接口的完成
- myflag step10:flagdao的编写
- MyFlag Step6:好友信息的处理
- myflag step7 增加friend的支持
- myflag step8:新增user的支持
- myflag step9:新增falg的支持
- MyFlag Step 9:Flag相关的功能设计
- MyFlag Step9 :Flag功能相关的设计
- MyFlag Step11 :menupath的移植工作
- MyFlag Step14: 打卡功能界面的初步
- MyFlag Step2:APP雏形的展现以及相关规范
- MyFlag Step2:APP雏形的展现以及相关规范
- MyFlag Step2:APP雏形的展现以及相关规范
- MyFlag Step3:APP的系统设计和初步详细设计
- MyFlag Step4:APP的详细设计和界面设计
- imageLoader
- 因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系
- Tab 实现知多少,?你所知道有多少 你都知道吗( 持续更新中。。。。。。)?
- 51nod 1245 Binomial Coefficients Revenge
- DevSecOps 简介
- myflag step13:接口的完成
- JavaScript正则表达式
- 用python实现爬取百度贴吧的小项目
- myflag step14:打卡功能
- 大整数加减法
- VB-Option Explicit 、Private Sub
- QT链接tcp-usb
- Triangle LOVE 【topo 判有无环】
- ios_base::sync_with_stdio(false)可以来打消iostream的输入输出缓存,可以节省许多时间,使效率与scanf与printf相差无几