Commit 79531a4b authored by 夏彬's avatar 夏彬

添加考试和用户中心接口写法

parent 3c99296f
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/08/2017
* Time: 5:11 PM
*/
namespace internalApi\ucenter;
use internalApi\base\Client;
class ScoreRecord extends Client
{
/**
* 添加在线考核得分
* @param $userId
* @return mixed
*/
public static function addOnlineExamination($userId){
return self::call('scoreRecord.addOnlineExamination', compact('userId'));
}
}
\ No newline at end of file
...@@ -35,4 +35,16 @@ class Exam extends Client ...@@ -35,4 +35,16 @@ class Exam extends Client
return self::call('exam.getExams', compact('ids')); return self::call('exam.getExams', compact('ids'));
} }
/**
* 获取考试分数
* @param $userId
* @param array $examIds
* @return mixed
*/
public static function getScoreInfo($userId,$examIds){
return self::call('exam.getScoreInfo',compact('userId','examIds'));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment