GetDocumentStatusCount
Interface Function
Obtain the number of Like/Share/favourite of the specified document.
Request Parameter
Parameter | Type | Remarks |
---|---|---|
Form Alias | String | Form alias, the identity of the form |
DataId | String | Document Id |
StaffId | String | The UserId of user, guid format |
Return Data Type(Data)
String
List<ResponseModel>
, Type: Operation type. 1:like,2:favourite,3:share Count: The total number of operations for each type Status: Whether the user corresponding to the UserId in the parameter has done the corresponding operation on the doc of the current query
public class ResponseModel
{
public int Type { get; set; }
public int Count { get; set; }
public bool Status { get; set; }
}
Input Sample
{s
"DataId": "ef2654617b0a4e56958f647b57bb8ee8",
"StaffId": "2629ed51-101e-483f-9cce-610cf7e6e339",
"FormAlias": "DemoFormAlias"
}
Return Sample
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": "[{\"Type\":1,\"Count\":1,\"Status\":false},{\"Type\":2,\"Count\":1,\"Status\":false},{\"Type\":3,\"Count\":1064,\"Status\":false}]"
}