Skip to content

极创移动oa(学生端)

xuelang123 edited this page Mar 19, 2014 · 14 revisions

##用户管理## ###用户登陆###

/api/oasystem/usermanage/login

Request:

method:POST
username:String
password:String

Response:

{
    "status":RESULT_CONSTANT,
    "datas":[
       {functionId:String},
       {functionId:String},
       {functionId:String},
       ...
     ]  //功能编号
}

###查看用户信息###

/api/oasystem/usermanage/showInfo

Request:

method:GET

Response:

{
   "status":RESULT_CONSTANT,
   "datas":{ 
   "userName":String, //用户名
   "realName":String, //真实姓名
   "mobilePhone":String, //手机号码
   "officePhone":String,//办公号码
   "email":String //电子邮件
   }
}

###查看用户登录状态###

/api/oasystem/usermanage/login/status

Request:

    method : GET

Response: { "status":RESULT_CONSTANT }

###初始化推送服务###

/api/oasystem/usermanage/push/init

Request:

method:POST
userId : String    // 百度提供的用户标识符

Response:

{
    "status":RESULT_CONSTANT
}

##学工模块## ###勤工助学申请### ####勤工助学状态查询####

/api/oasystem/stworkmanage/status

Request:

  method:GET    Response:

{
   "status":String
}

####提交贫困生证明照片#### /api/oasystem/stworkmanage/submit

Request:

method:POST
file:$file //文件二进制流

Response:

{
   "status":RESULT_CONSTANT
}

####提交岗位申请单####

/api/oasystem/stworkmanage/apply

Request:

method:POST
firstWish:String   //第一志愿 
secondWish:String  //第二志愿
reason:String      //原因

Response:

{
   "status":RESULT_CONSTANT,
   "data":{
      "hwstudyId":String  //岗位申请单编号
   }
}

####查看勤工助学申请详情####

/api/oasystem/stworkmanage/showInfo

Request:

method:GET

Response:
{ "status":RESULT_CONSTANT,
"datas":{ "hwstudyId":String, //岗位申请单编号
"userName": String, // 申请者名称
"imageAddress":String // 贫困证明地址
"status": String, // 申请的状态,是被拒绝,还是第一/二志愿通过
"firstWish": String, // 第一志愿
"secondWish": String // 第二志愿
}
}

####查看勤工助学申请部门的列表####

/api/oasystem/stworkmanage/depart/list

Request:

method:GET

Response:

{
   "status":RESULT_CONSTANT,
   "datas":{
     [ {"departId":String,  // 部门编号
        "departName": String},    // 部门名称
         ...
     ]}
}

##生活模块## ###公共财产保修###

/api/oasystem/lifemanage/repair

Request:

method:POST    
accidentDate:String //事故发生日期
repDescripe:String //事故描述
image$file:file // 故障地点图片

Response:

{
    "status":RESULT_CONSTANT,
    "datas":{
      "repairId":String //保修单编号
    }
}

###公共财产保修记录### /api/oasystem/lifemanage/repair/record

Request:

method:GET
status:String // 报修的状态

Response:

{
    "status":RESULT_CONSTANT,
    "datas":[ 
     { "repairId":String,    //保修单编号
       "userName":String,    //保修人名称
       "address":String,     //事故地址
       "repairDate":String,  //事故报修日期
       "status":String,      //保修状态
       "imageAddress":String,//故障图片地址
       "repDescript":String }, //故障描述
   ...
    ]
}

##学习模块## ###上课签到###

/api/oasystem/coursemanage/sign

Request: method:GET courseId:String //课程编号 limit:String //有效时间 time:String //二维码产生时间 Reponse: { "status":RESULT_CONSTANT }

###查询签到记录###

/api/oasystem/coursemanage/sign/record

Request:

 method:GET
 status:String // 签到状态

Response:

 {
    "status":RESULT_CONSTANT,
    "datas":[
     {
       courseId:String,   //课程id

   courseName:String, // 课程名称    userName:String, //    status:String //状态    }, .... ] }

Clone this wiki locally