|
@@ -56,7 +56,7 @@ namespace TEAMModelOS.Controllers
|
|
|
public async Task<IActionResult> StuActivity(JsonElement request)
|
|
|
{
|
|
|
var (id, name, pic, school) = HttpContext.GetAuthTokenInfo();
|
|
|
- (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis, null);
|
|
|
+ (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis);
|
|
|
return Ok(new { datas, continuationToken });
|
|
|
}
|
|
|
|
|
@@ -67,9 +67,8 @@ namespace TEAMModelOS.Controllers
|
|
|
public async Task<IActionResult> StuScore(JsonElement request)
|
|
|
{
|
|
|
var (id, name, pic, school) = HttpContext.GetAuthTokenInfo();
|
|
|
- string type = "Exam";
|
|
|
//if (!HttpContext.Items.TryGetValue("Scope", out object _scope)) return BadRequest();
|
|
|
- (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis, type);
|
|
|
+ (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis);
|
|
|
List<(string id, string scope, string name, string source, List<string> cIds, int qamode, string createId, Dictionary<string, JsonElement> ext, long time, string owner)> eIds = new();
|
|
|
//List<(string id, string scope, string name, List<string> cIds, string createId,long time)> wIds = new();
|
|
|
foreach (var data in datas)
|
|
@@ -103,7 +102,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
var (id, name, pic, school) = HttpContext.GetAuthTokenInfo();
|
|
|
//if (!HttpContext.Items.TryGetValue("Scope", out object _scope)) return BadRequest();
|
|
|
- (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis, "Homework");
|
|
|
+ (List<StuActivity> datas, string continuationToken) = await ActivityStudentService.FindActivity(request, id, school, _azureCosmos, _azureRedis);
|
|
|
//List<(string id, string scope, string name, string source, List<string> cIds, int qamode, string createId, Dictionary<string, JsonElement> ext, long time, string owner)> eIds = new();
|
|
|
List<(string id, string scope, string name, List<string> cIds, string createId, long time)> wIds = new();
|
|
|
foreach (var data in datas)
|