POST api/Person/EthnicGroupAvatarList?CustID={CustID}&CookCode={CookCode}

【可用】登录用户--族群--头像/颜色/族群名称列表,分别最多200条记录

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CustID

用户ID

string

Required

CookCode

登录token

string

Required

Body Parameters

None.

Response Information

Resource Description

RequestResultOfEthnicGroupCollectionModel
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

EthnicGroupCollectionModel

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": {
    "EthnicGroups": [
      {
        "GroupID": 1,
        "GroupName": "sample string 2",
        "DecorateIcon": "sample string 3"
      },
      {
        "GroupID": 1,
        "GroupName": "sample string 2",
        "DecorateIcon": "sample string 3"
      }
    ],
    "EthnicGroupAvatars": [
      {
        "AvatarID": 1,
        "AvatarName": "sample string 2",
        "AvatarPath": "sample string 3"
      },
      {
        "AvatarID": 1,
        "AvatarName": "sample string 2",
        "AvatarPath": "sample string 3"
      }
    ],
    "EthnicGroupColors": [
      {
        "GroupColorID": 1,
        "ColorName": "sample string 2",
        "ColorValue": "sample string 3"
      },
      {
        "GroupColorID": 1,
        "ColorName": "sample string 2",
        "ColorValue": "sample string 3"
      }
    ]
  }
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":{"EthnicGroups":[{"GroupID":1,"GroupName":"sample string 2","DecorateIcon":"sample string 3"},{"GroupID":1,"GroupName":"sample string 2","DecorateIcon":"sample string 3"}],"EthnicGroupAvatars":[{"AvatarID":1,"AvatarName":"sample string 2","AvatarPath":"sample string 3"},{"AvatarID":1,"AvatarName":"sample string 2","AvatarPath":"sample string 3"}],"EthnicGroupColors":[{"GroupColorID":1,"ColorName":"sample string 2","ColorValue":"sample string 3"},{"GroupColorID":1,"ColorName":"sample string 2","ColorValue":"sample string 3"}]}}

application/xml, text/xml

Sample:
<RequestResultOfEthnicGroupCollectionModelLVEGsFhm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.WebApi.Models">
    <d2p1:EthnicGroupAvatars>
      <d2p1:EthnicGroupAvatarModel>
        <d2p1:AvatarID>1</d2p1:AvatarID>
        <d2p1:AvatarName>sample string 2</d2p1:AvatarName>
        <d2p1:AvatarPath>sample string 3</d2p1:AvatarPath>
      </d2p1:EthnicGroupAvatarModel>
      <d2p1:EthnicGroupAvatarModel>
        <d2p1:AvatarID>1</d2p1:AvatarID>
        <d2p1:AvatarName>sample string 2</d2p1:AvatarName>
        <d2p1:AvatarPath>sample string 3</d2p1:AvatarPath>
      </d2p1:EthnicGroupAvatarModel>
    </d2p1:EthnicGroupAvatars>
    <d2p1:EthnicGroupColors>
      <d2p1:EthnicGroupColorModel>
        <d2p1:ColorName>sample string 2</d2p1:ColorName>
        <d2p1:ColorValue>sample string 3</d2p1:ColorValue>
        <d2p1:GroupColorID>1</d2p1:GroupColorID>
      </d2p1:EthnicGroupColorModel>
      <d2p1:EthnicGroupColorModel>
        <d2p1:ColorName>sample string 2</d2p1:ColorName>
        <d2p1:ColorValue>sample string 3</d2p1:ColorValue>
        <d2p1:GroupColorID>1</d2p1:GroupColorID>
      </d2p1:EthnicGroupColorModel>
    </d2p1:EthnicGroupColors>
    <d2p1:EthnicGroups>
      <d2p1:EthnicGroupModel>
        <d2p1:DecorateIcon>sample string 3</d2p1:DecorateIcon>
        <d2p1:GroupID>1</d2p1:GroupID>
        <d2p1:GroupName>sample string 2</d2p1:GroupName>
      </d2p1:EthnicGroupModel>
      <d2p1:EthnicGroupModel>
        <d2p1:DecorateIcon>sample string 3</d2p1:DecorateIcon>
        <d2p1:GroupID>1</d2p1:GroupID>
        <d2p1:GroupName>sample string 2</d2p1:GroupName>
      </d2p1:EthnicGroupModel>
    </d2p1:EthnicGroups>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfEthnicGroupCollectionModelLVEGsFhm>