POST api/e/ys/EidtService?memberID={memberID}&enterpriseID={enterpriseID}
编辑服务
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
memberID | globally unique identifier |
Required |
|
enterpriseID | globally unique identifier |
Required |
Body Parameters
服务实体
ServiceModelName | Description | Type | Additional information |
---|---|---|---|
ID |
编号 |
globally unique identifier |
None. |
CategoryID |
类别编号 |
globally unique identifier |
None. |
CName |
名称 必填 |
string |
None. |
Address |
地址 选填 |
string |
None. |
Telephone |
电话 选填 |
string |
None. |
WWW |
网址 选填 |
string |
None. |
ReadCount |
阅读量 选填 |
integer |
None. |
Info |
简介 选填 |
string |
None. |
Image |
图片 必填 |
string |
None. |
Thumbnail |
缩略图 必填 |
string |
None. |
Content |
内容 必填 |
string |
None. |
MinPrice |
最小价格 当使用区间价时使用 |
decimal number |
None. |
MaxPrice |
最大价格 当使用区间价时使用 |
decimal number |
None. |
PriceType | integer |
None. |
|
Price |
价格 面议价格时为0 确价时使用 |
decimal number |
None. |
SType |
服务类型(1,代办服务 2,周期服务) |
integer |
None. |
SalesCount |
销售量 必填默认为0 |
integer |
None. |
Count |
库存数量 必填默认为1 |
integer |
None. |
State |
状态 |
boolean |
None. |
OrderIndex |
排序值 |
integer |
None. |
ServiceFileList |
服务资料列表 |
Collection of ServiceFile |
None. |
ServiceImages |
图片列表 |
Collection of ServiceImages |
None. |
Request Formats
application/json, text/json
Sample:
{ "ServiceFileList": [ { "ID": "278223d0-d6cf-43d5-8e5f-11ddaf7db23e", "ServiceID": "d47d5520-0d39-4610-8db5-10b4bfceebe3", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 }, { "ID": "278223d0-d6cf-43d5-8e5f-11ddaf7db23e", "ServiceID": "d47d5520-0d39-4610-8db5-10b4bfceebe3", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 } ], "ServiceImages": [ { "ID": "bd48f1bd-11ca-4bd1-a87d-98fdd792cbef", "ServiceID": "a6d9bf4c-3180-494a-9aeb-294d1b606118", "EnterpriseID": "9e50c0ba-8903-496f-a2b0-a60d1c912966", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true }, { "ID": "bd48f1bd-11ca-4bd1-a87d-98fdd792cbef", "ServiceID": "a6d9bf4c-3180-494a-9aeb-294d1b606118", "EnterpriseID": "9e50c0ba-8903-496f-a2b0-a60d1c912966", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true } ], "ID": "2cf7d222-65bd-462b-a06c-55b239be266c", "CategoryID": "adb5f050-43a2-4608-8456-8dadef43edcb", "CName": "sample string 3", "Address": "sample string 4", "Telephone": "sample string 5", "WWW": "sample string 6", "ReadCount": 7, "Info": "sample string 8", "Image": "sample string 9", "Thumbnail": "sample string 10", "Content": "sample string 11", "MinPrice": 12.0, "MaxPrice": 13.0, "PriceType": 14, "Price": 15.0, "SType": 16, "SalesCount": 17, "Count": 18, "State": true, "OrderIndex": 20 }
application/xml, text/xml
Sample:
<ServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.E"> <Address>sample string 4</Address> <CName>sample string 3</CName> <CategoryID>adb5f050-43a2-4608-8456-8dadef43edcb</CategoryID> <Content>sample string 11</Content> <Count>18</Count> <ID>2cf7d222-65bd-462b-a06c-55b239be266c</ID> <Image>sample string 9</Image> <Info>sample string 8</Info> <MaxPrice>13</MaxPrice> <MinPrice>12</MinPrice> <OrderIndex>20</OrderIndex> <Price>15</Price> <PriceType>14</PriceType> <ReadCount>7</ReadCount> <SType>16</SType> <SalesCount>17</SalesCount> <ServiceFileList> <ServiceFile> <FileUrl>sample string 6</FileUrl> <ID>278223d0-d6cf-43d5-8e5f-11ddaf7db23e</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>d47d5520-0d39-4610-8db5-10b4bfceebe3</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> <ServiceFile> <FileUrl>sample string 6</FileUrl> <ID>278223d0-d6cf-43d5-8e5f-11ddaf7db23e</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>d47d5520-0d39-4610-8db5-10b4bfceebe3</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> </ServiceFileList> <ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>9e50c0ba-8903-496f-a2b0-a60d1c912966</EnterpriseID> <ID>bd48f1bd-11ca-4bd1-a87d-98fdd792cbef</ID> <Image>sample string 4</Image> <ServiceID>a6d9bf4c-3180-494a-9aeb-294d1b606118</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>9e50c0ba-8903-496f-a2b0-a60d1c912966</EnterpriseID> <ID>bd48f1bd-11ca-4bd1-a87d-98fdd792cbef</ID> <Image>sample string 4</Image> <ServiceID>a6d9bf4c-3180-494a-9aeb-294d1b606118</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceImages> </ServiceImages> <State>true</State> <Telephone>sample string 5</Telephone> <Thumbnail>sample string 10</Thumbnail> <WWW>sample string 6</WWW> </ServiceModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.