POST api/ClientApp/profile/loop

✅ Home/客户端初始化(获取初始化信息)

Request Information

URI Parameters

None.

Body Parameters

ClientLoopRequest
NameDescriptionTypeAdditional information
timestamp

integer

Required

clientType

客户端类型,默认值:website

string

None.

clientVersion

客户端版本,默认值:1.0.0

string

None.

Request Formats

application/json, text/json

Sample:
{
  "timestamp": 1,
  "clientType": "sample string 1",
  "clientVersion": "sample string 2"
}

Response Information

Resource Description

返回验证码发送结果

ClientLoopResponse
NameDescriptionTypeAdditional information
notices

Collection of Notice

None.

code

1 为成功,其他为失败

integer

None.

msg

请求描述

string

None.

elapsed_time

decimal number

None.

Response Formats

application/json

Sample:
{
  "notices": [
    {
      "id": 1,
      "title": "sample string 2",
      "title_html": "sample string 3",
      "content": "sample string 4",
      "content_html": "sample string 5",
      "display_time": "sample string 6",
      "read_count": 7,
      "isRead": 8,
      "notice_type": 9
    },
    {
      "id": 1,
      "title": "sample string 2",
      "title_html": "sample string 3",
      "content": "sample string 4",
      "content_html": "sample string 5",
      "display_time": "sample string 6",
      "read_count": 7,
      "isRead": 8,
      "notice_type": 9
    }
  ],
  "code": 1,
  "msg": "sample string 2",
  "elapsed_time": 0.002
}

text/json

Sample:
{
  "notices": [
    {
      "id": 1,
      "title": "sample string 2",
      "title_html": "sample string 3",
      "content": "sample string 4",
      "content_html": "sample string 5",
      "display_time": "sample string 6",
      "read_count": 7,
      "isRead": 8,
      "notice_type": 9
    },
    {
      "id": 1,
      "title": "sample string 2",
      "title_html": "sample string 3",
      "content": "sample string 4",
      "content_html": "sample string 5",
      "display_time": "sample string 6",
      "read_count": 7,
      "isRead": 8,
      "notice_type": 9
    }
  ],
  "code": 1,
  "msg": "sample string 2",
  "elapsed_time": 0.003
}