POST api/SleepUser/musicToAlbumModel

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Album
NameDescriptionTypeAdditional information
isList

是否包含多首音乐,1是0不是

integer

None.

name

名称

string

None.

author

作者

string

None.

desctription

描述

string

None.

coverImg

封面图

string

None.

loadingColor

加载封面图时显示的颜色

string

None.

createTime

创建时间

string

None.

style

integer

None.

musics

包含的音乐,当isList字段为0时该数组就只有一首歌

Collection of Music

None.

moduleId

integer

None.

type

integer

None.

isNew

是否是新上曲目,1是,0不是

integer

None.

isFree

integer

None.

duration

integer

None.

sortTime

date

None.

Response Formats

application/json, text/json

Sample:
{
  "isList": 1,
  "name": "sample string 2",
  "author": "sample string 3",
  "desctription": "sample string 4",
  "coverImg": "sample string 5",
  "loadingColor": "sample string 6",
  "createTime": "sample string 7",
  "style": 8,
  "musics": [
    {
      "id": 1,
      "name": "sample string 2",
      "author": "sample string 3",
      "desctription": "sample string 4",
      "reader": "sample string 5",
      "composer": "sample string 6",
      "coverImg": "sample string 7",
      "loadingColor": "sample string 8",
      "createTime": "sample string 9",
      "duration": 10,
      "isCollect": 11,
      "musicUrl": "sample string 12",
      "backgroundImg": "sample string 13",
      "isFree": 14,
      "moduleId": 15
    },
    {
      "id": 1,
      "name": "sample string 2",
      "author": "sample string 3",
      "desctription": "sample string 4",
      "reader": "sample string 5",
      "composer": "sample string 6",
      "coverImg": "sample string 7",
      "loadingColor": "sample string 8",
      "createTime": "sample string 9",
      "duration": 10,
      "isCollect": 11,
      "musicUrl": "sample string 12",
      "backgroundImg": "sample string 13",
      "isFree": 14,
      "moduleId": 15
    }
  ],
  "moduleId": 9,
  "type": 10,
  "isNew": 11,
  "isFree": 12,
  "duration": 13,
  "sortTime": "2020-07-13T13:31:10.556731+08:00"
}

application/xml, text/xml

Sample:
<Album xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <author>sample string 3</author>
  <coverImg>sample string 5</coverImg>
  <createTime>sample string 7</createTime>
  <desctription>sample string 4</desctription>
  <duration>13</duration>
  <isFree>12</isFree>
  <isList>1</isList>
  <isNew>11</isNew>
  <loadingColor>sample string 6</loadingColor>
  <moduleId>9</moduleId>
  <musics>
    <Music>
      <author>sample string 3</author>
      <backgroundImg>sample string 13</backgroundImg>
      <composer>sample string 6</composer>
      <coverImg>sample string 7</coverImg>
      <createTime>sample string 9</createTime>
      <desctription>sample string 4</desctription>
      <duration>10</duration>
      <id>1</id>
      <isCollect>11</isCollect>
      <isFree>14</isFree>
      <loadingColor>sample string 8</loadingColor>
      <moduleId>15</moduleId>
      <musicUrl>sample string 12</musicUrl>
      <name>sample string 2</name>
      <reader>sample string 5</reader>
    </Music>
    <Music>
      <author>sample string 3</author>
      <backgroundImg>sample string 13</backgroundImg>
      <composer>sample string 6</composer>
      <coverImg>sample string 7</coverImg>
      <createTime>sample string 9</createTime>
      <desctription>sample string 4</desctription>
      <duration>10</duration>
      <id>1</id>
      <isCollect>11</isCollect>
      <isFree>14</isFree>
      <loadingColor>sample string 8</loadingColor>
      <moduleId>15</moduleId>
      <musicUrl>sample string 12</musicUrl>
      <name>sample string 2</name>
      <reader>sample string 5</reader>
    </Music>
  </musics>
  <name>sample string 2</name>
  <sortTime>2020-07-13T13:31:10.556731+08:00</sortTime>
  <style>8</style>
  <type>10</type>
</Album>