GetRateList

≥4.6

Interface Function

Query rate record in document.

Request Parameter
Parameter Type Remarks
RateListInput RateListInput Contains attributes such as FormAlias, FieldName, DocIds, etc.

[warning] Note

To control interface performance, interface does not return avatar of rater. The larger data volume, the greater impact of returning avatar information on the overall performance of the interface.

Return Data Type

Reference return sample

Input Sample
{
    "FormAlias": "Rate",
    "FieldName": "Rate",
    "Index": 0,
    "Size": 10,
    "RequireAvatar": false,
    "DocIds": [
        "e2f4eef2a11243d6ab8fbbc4641dcf2d",
        "b00602f8fc614a25b2a2abfc483a5b95"
    ],
    "RateValue": [
        3,5
    ],
    "CreateDate": [
        "2019-04-23T08:25:10.106Z",
        "2019-05-23T08:25:10.106Z"
    ],
    "CreateBy": "DemoUser",
    "Order": {
        "RateValue": 1
    }
}
Return Sample
{
  "StatusCode": 200,
  "Info": "Request (or process) succeeded",
  "Data": {
    "TotalCount": 1,
    "Datas": [
      {
        "_id": "cb5405a7f33c4077bc99cecc781da9cf",
        "RateValue": 5.0,
        "CreateBy": "DemoUser",
        "CreateById": "44e08f1e-5ebd-4452-8943-72f9ddc4aeb7",
        "CreateDate": "2019-04-15T06:41:43.668Z",
        "ModifyDate": "2019-04-17T09:03:48.146Z",
        "ReplyCommentsId": null,
        "ReplyBy": null,
        "ReplyById": null,
        "Message": "hello Rate 1",
        "IsDeleted": false,
        "DataId": "b00602f8fc614a25b2a2abfc483a5b95",
        "TenantId": "DemoTenant",
        "AppCode": "DemoApp",
        "Env": "Prod",
        "FieldName": "Rate",
        "Avatar": ""
      }
    ]
  }
}
Input example
{
    "FormAlias": "demoformalias",
    "FieldName": "textbx_name",
    "Size": 10,
    "DocIds": [
        "91e417f5-84f4-4dd2-b7fa-ff2f7cbc79ad",
        "5c307795-804e-4208-9cca-39d7080b3eb4"
    ],
    "RateValue": [
        3.0,
        5.0
    ],
    "CreateDate": [
        "2021-05-18T10:04:43.968+08:00",
        "2021-05-14T14:35:08.292+08:00"
    ],
    "CreateBy": "DemoUser",
    "Order": {
        "RateValue": 0
    }
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""