You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\api\controller\apiController;
|
|
|
|
use app\Request;
|
|
use app\service\api\apiService\AssignmentService;
|
|
use app\service\api\apiService\CampusService;
|
|
use app\service\api\apiService\ChatService;
|
|
use app\service\api\apiService\CommonService;
|
|
use core\base\BaseApiService;
|
|
|
|
/**
|
|
* 学生作业表-控制器相关接口
|
|
* Class Personnel
|
|
* @package app\api\controller\apiController
|
|
*/
|
|
class Assignment extends BaseApiService
|
|
{
|
|
|
|
//列表
|
|
public function index(Request $request)
|
|
{
|
|
$resources_id = $request->param('resources_id', '');//学生资源表id
|
|
$status = $request->param('status', '');//状态 1待批改 2未提交 3已提交
|
|
if (empty($resources_id)) {
|
|
return fail('缺少参数');
|
|
}
|
|
|
|
$where = [
|
|
'resources_id' => $resources_id,
|
|
'status' => $status,
|
|
];
|
|
|
|
$res = (new AssignmentService())->getList($where);
|
|
|
|
return success($res);
|
|
}
|
|
}
|
|
|