|
@@ -108,7 +108,28 @@ namespace TEAMModelOS.Controllers
|
|
|
}
|
|
|
return builder.Data(homeWork).build();
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 查询投票活动
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("findSummary")]
|
|
|
+ public async Task<BaseJosnRPCResponse> FindSummary(JosnRPCRequest<Dictionary<string, object>> request)
|
|
|
+ {
|
|
|
+
|
|
|
+ JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
+ List<Survey> data = new List<Survey>();
|
|
|
+ if (request.@params.Keys.Count > 0)
|
|
|
+ {
|
|
|
+ data = await azureCosmosDBV3Repository.FindByDict<Survey>(request.@params,new List<string> { "id","code","name", "type", });
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ throw new BizException("参数异常", ResponseCode.PARAMS_ERROR);
|
|
|
|
|
|
+ }
|
|
|
+ return builder.Data(data).Extend(new Dictionary<string, object> { { "count", data.Count } }).build();
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 查询投票活动
|
|
|
/// </summary>
|