新增答题卡批改相关接口
This commit is contained in:
14
src/PgService/JsonRpcInterface/Crm/SchoolInterface.php
Normal file
14
src/PgService/JsonRpcInterface/Crm/SchoolInterface.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService\JsonRpcInterface\Crm;
|
||||
|
||||
interface SchoolInterface
|
||||
{
|
||||
/**
|
||||
* 获取学校下拉列表
|
||||
* @return array
|
||||
*/
|
||||
public function getSchoolSelectList(): array;
|
||||
}
|
||||
51
src/PgService/JsonRpcInterface/PgPaperInterface.php
Normal file
51
src/PgService/JsonRpcInterface/PgPaperInterface.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService\JsonRpcInterface;
|
||||
|
||||
interface PgPaperInterface
|
||||
{
|
||||
/**
|
||||
* 获取试卷分页列表
|
||||
* @param array $params 请求参数
|
||||
* @return array
|
||||
*/
|
||||
public function getPgPaperPageList(array $params): array;
|
||||
|
||||
/**
|
||||
* 获取试卷详情
|
||||
* @param int $id 试卷id
|
||||
* @return array
|
||||
*/
|
||||
public function getPgPaperDetail(int $id): array;
|
||||
|
||||
/**
|
||||
* 创建试卷及答案配置
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function createPgPaper(array $params): void;
|
||||
|
||||
/**
|
||||
* 更新试卷及答案配置
|
||||
* @param int $paperId 试卷ID
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function updatePgPaper(int $paperId, array $params): void;
|
||||
|
||||
/**
|
||||
* 删除试卷
|
||||
* @param int $id 试卷id
|
||||
* @return void
|
||||
*/
|
||||
public function deletePgPaper(int $id): void;
|
||||
|
||||
/**
|
||||
* 删除章节或答案配置
|
||||
* @param int $id 章节或答案配置id
|
||||
* @return void
|
||||
*/
|
||||
public function deletePgPaperAnswer(int $id): void;
|
||||
}
|
||||
43
src/PgService/JsonRpcInterface/PgPhaseInterface.php
Normal file
43
src/PgService/JsonRpcInterface/PgPhaseInterface.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService\JsonRpcInterface;
|
||||
|
||||
interface PgPhaseInterface
|
||||
{
|
||||
/**
|
||||
* 获取阶段分页列表
|
||||
* @param array $params 请求参数
|
||||
* @return array
|
||||
*/
|
||||
public function getPgPhasePageList(array $params): array;
|
||||
|
||||
/**
|
||||
* 获取阶段下拉列表
|
||||
* @return array
|
||||
*/
|
||||
public function getPgPhaseSelectList(): array;
|
||||
|
||||
/**
|
||||
* 创建阶段
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function createPgPhase(array $params): void;
|
||||
|
||||
/**
|
||||
* 更新阶段
|
||||
* @param int $id 阶段ID
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function updatePgPhase(int $id, array $params): void;
|
||||
|
||||
/**
|
||||
* 删除阶段
|
||||
* @param int $id 阶段ID
|
||||
* @return void
|
||||
*/
|
||||
public function deletePgPhase(int $id): void;
|
||||
}
|
||||
43
src/PgService/JsonRpcInterface/PgSubjectInterface.php
Normal file
43
src/PgService/JsonRpcInterface/PgSubjectInterface.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService\JsonRpcInterface;
|
||||
|
||||
interface PgSubjectInterface
|
||||
{
|
||||
/**
|
||||
* 获取学科分页列表
|
||||
* @param array $params 请求参数
|
||||
* @return array
|
||||
*/
|
||||
public function getPgSubjectPageList(array $params): array;
|
||||
|
||||
/**
|
||||
* 获取学科下拉列表
|
||||
* @return array
|
||||
*/
|
||||
public function getPgSubjectSelectList(): array;
|
||||
|
||||
/**
|
||||
* 创建学科
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function createPgSubject(array $params): void;
|
||||
|
||||
/**
|
||||
* 更新学科
|
||||
* @param int $id 学科ID
|
||||
* @param array $params 请求参数
|
||||
* @return void
|
||||
*/
|
||||
public function updatePgSubject(int $id, array $params): void;
|
||||
|
||||
/**
|
||||
* 删除学科
|
||||
* @param int $id 学科ID
|
||||
* @return void
|
||||
*/
|
||||
public function deletePgSubject(int $id): void;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService\JsonRpcInterface;
|
||||
|
||||
interface PgUserPaperRecordInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* App获取试卷章节列表
|
||||
* @param int $userId 用户id
|
||||
* @param int $paperId 试卷id
|
||||
* @return array
|
||||
*/
|
||||
public function appGetPgPaperSectionList(int $userId, int $paperId): array;
|
||||
|
||||
/**
|
||||
* App获取试卷章节详情
|
||||
* @param int $userId 用户id
|
||||
* @param int $sectionId 章节id
|
||||
* @return array
|
||||
*/
|
||||
public function appGetPgPaperSectionDetail(int $userId, int $sectionId): array;
|
||||
|
||||
/**
|
||||
* 获取用户答题卡记录分页列表
|
||||
* @param int $userId 用户id
|
||||
* @param array $params 查询参数
|
||||
* @return array
|
||||
*/
|
||||
public function appGetPgPaperHistory(int $userId, array $params): array;
|
||||
|
||||
/**
|
||||
* 获取用户学习统计数据
|
||||
* @param int $userId 用户id
|
||||
* @return array
|
||||
*/
|
||||
public function getPgUserTotal(int $userId): array;
|
||||
|
||||
/**
|
||||
* 用户提交答题卡
|
||||
* @param int $userId 用户id
|
||||
* @param array $params 答题卡数据
|
||||
* @return void
|
||||
*/
|
||||
public function submitPgUserPaper(int $userId, array $params): void;
|
||||
}
|
||||
16
src/PgService/PgService.php
Normal file
16
src/PgService/PgService.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\PgService;
|
||||
|
||||
use Dhd\Micro\Interface\PgService\JsonRpcInterface\Crm\SchoolInterface;
|
||||
use Dhd\Micro\Interface\PgService\JsonRpcInterface\PgSubjectInterface;
|
||||
use Dhd\Micro\Interface\PgService\JsonRpcInterface\PgPhaseInterface;
|
||||
use Dhd\Micro\Interface\PgService\JsonRpcInterface\PgUserPaperRecordInterface;
|
||||
|
||||
interface PgService extends
|
||||
SchoolInterface,
|
||||
PgSubjectInterface,
|
||||
PgPhaseInterface,
|
||||
PgUserPaperRecordInterface {}
|
||||
Reference in New Issue
Block a user