POST api/SleepSum/DoLike

点赞接口(返回值Status为1表示成功,为2表示已经赞过,为0表示服务端异常)

Request Information

URI Parameters

None.

Body Parameters

DoLikeReq
NameDescriptionTypeAdditional information
uid

当前用户id

string

None.

likeType

1为封面图点赞,2为排名信息点赞,3为动态点赞(类型为1时likeId为该封面图用户的uniqueId,类型为2,3时likeId为该条记录的sleepId)

integer

None.

likeId

string

None.

secret

string

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "likeType": 2,
  "likeId": "sample string 3",
  "secret": "sample string 4",
  "pid": 5,
  "version": "sample string 6",
  "imei": "sample string 7",
  "system": "sample string 8",
  "token": "sample string 9",
  "language": "sample string 10",
  "timeZone": "sample string 11"
}

application/xml, text/xml

Sample:
<DoLikeReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <imei xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 11</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</version>
  <likeId>sample string 3</likeId>
  <likeType>2</likeType>
  <secret>sample string 4</secret>
  <uid>sample string 1</uid>
</DoLikeReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
</BaseResponse>