|
@@ -119,16 +119,18 @@ namespace TEAMModelOS.Controllers
|
|
|
|
|
|
JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
List<Survey> data = new List<Survey>();
|
|
|
+ List<string> props = new List<string> { "id", "code", "name", "type", "state", "startTime" };
|
|
|
if (request.@params.Keys.Count > 0)
|
|
|
- {
|
|
|
- data = await azureCosmosDBV3Repository.FindByDict<Survey>(request.@params,new List<string> { "id","code","name", "type", });
|
|
|
+ {
|
|
|
+
|
|
|
+ data = await azureCosmosDBV3Repository.FindByDict<Survey>(request.@params, props);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new BizException("参数异常", ResponseCode.PARAMS_ERROR);
|
|
|
|
|
|
}
|
|
|
- return builder.Data(data).Extend(new Dictionary<string, object> { { "count", data.Count } }).build();
|
|
|
+ return builder.Data(data).Extend(new Dictionary<string, object> { { "count", data.Count },{ "props", props } }).build();
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 查询投票活动
|