POST api/Service/UpdateSelectService?CustID={CustID}&CookCode={CookCode}&ServiceIDs={ServiceIDs}

【可用】服务-修改用户所选服务接口

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CustID

用户ID

string

Required

CookCode

登录token

string

Required

ServiceIDs

逗号分隔的字符串

string

Required

Body Parameters

None.

Response Information

Resource Description

RequestResultOfListOfServiceLoadModel
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

Collection of ServiceLoadModel

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": [
    {
      "CategoryID": 1,
      "CategoryName": "sample string 2",
      "SortNo": 1,
      "ServiceList": [
        {
          "ServiceID": 1,
          "ServiceName": "sample string 2",
          "SortNo": 3,
          "CategoryID": 4,
          "IsChecked": 5
        },
        {
          "ServiceID": 1,
          "ServiceName": "sample string 2",
          "SortNo": 3,
          "CategoryID": 4,
          "IsChecked": 5
        }
      ]
    },
    {
      "CategoryID": 1,
      "CategoryName": "sample string 2",
      "SortNo": 1,
      "ServiceList": [
        {
          "ServiceID": 1,
          "ServiceName": "sample string 2",
          "SortNo": 3,
          "CategoryID": 4,
          "IsChecked": 5
        },
        {
          "ServiceID": 1,
          "ServiceName": "sample string 2",
          "SortNo": 3,
          "CategoryID": 4,
          "IsChecked": 5
        }
      ]
    }
  ]
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":[{"CategoryID":1,"CategoryName":"sample string 2","SortNo":1,"ServiceList":[{"ServiceID":1,"ServiceName":"sample string 2","SortNo":3,"CategoryID":4,"IsChecked":5},{"ServiceID":1,"ServiceName":"sample string 2","SortNo":3,"CategoryID":4,"IsChecked":5}]},{"CategoryID":1,"CategoryName":"sample string 2","SortNo":1,"ServiceList":[{"ServiceID":1,"ServiceName":"sample string 2","SortNo":3,"CategoryID":4,"IsChecked":5},{"ServiceID":1,"ServiceName":"sample string 2","SortNo":3,"CategoryID":4,"IsChecked":5}]}]}

application/xml, text/xml

Sample:
<RequestResultOfArrayOfServiceLoadModelLVEGsFhm 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:ServiceLoadModel>
      <d2p1:CategoryID>1</d2p1:CategoryID>
      <d2p1:CategoryName>sample string 2</d2p1:CategoryName>
      <d2p1:ServiceList xmlns:d4p1="http://schemas.datacontract.org/2004/07/MF.Model.Service">
        <d4p1:ServiceItem>
          <d4p1:CategoryID>4</d4p1:CategoryID>
          <d4p1:IsChecked>5</d4p1:IsChecked>
          <d4p1:ServiceID>1</d4p1:ServiceID>
          <d4p1:ServiceName>sample string 2</d4p1:ServiceName>
          <d4p1:SortNo>3</d4p1:SortNo>
        </d4p1:ServiceItem>
        <d4p1:ServiceItem>
          <d4p1:CategoryID>4</d4p1:CategoryID>
          <d4p1:IsChecked>5</d4p1:IsChecked>
          <d4p1:ServiceID>1</d4p1:ServiceID>
          <d4p1:ServiceName>sample string 2</d4p1:ServiceName>
          <d4p1:SortNo>3</d4p1:SortNo>
        </d4p1:ServiceItem>
      </d2p1:ServiceList>
      <d2p1:SortNo>1</d2p1:SortNo>
    </d2p1:ServiceLoadModel>
    <d2p1:ServiceLoadModel>
      <d2p1:CategoryID>1</d2p1:CategoryID>
      <d2p1:CategoryName>sample string 2</d2p1:CategoryName>
      <d2p1:ServiceList xmlns:d4p1="http://schemas.datacontract.org/2004/07/MF.Model.Service">
        <d4p1:ServiceItem>
          <d4p1:CategoryID>4</d4p1:CategoryID>
          <d4p1:IsChecked>5</d4p1:IsChecked>
          <d4p1:ServiceID>1</d4p1:ServiceID>
          <d4p1:ServiceName>sample string 2</d4p1:ServiceName>
          <d4p1:SortNo>3</d4p1:SortNo>
        </d4p1:ServiceItem>
        <d4p1:ServiceItem>
          <d4p1:CategoryID>4</d4p1:CategoryID>
          <d4p1:IsChecked>5</d4p1:IsChecked>
          <d4p1:ServiceID>1</d4p1:ServiceID>
          <d4p1:ServiceName>sample string 2</d4p1:ServiceName>
          <d4p1:SortNo>3</d4p1:SortNo>
        </d4p1:ServiceItem>
      </d2p1:ServiceList>
      <d2p1:SortNo>1</d2p1:SortNo>
    </d2p1:ServiceLoadModel>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfArrayOfServiceLoadModelLVEGsFhm>