POST api/e/ys/AddService?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": "26163680-e796-4063-a6e6-8a2ecff1b528", "ServiceID": "174e7c4c-d44c-4e8c-b0a0-e9f2bf59d2e7", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 }, { "ID": "26163680-e796-4063-a6e6-8a2ecff1b528", "ServiceID": "174e7c4c-d44c-4e8c-b0a0-e9f2bf59d2e7", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 } ], "ServiceImages": [ { "ID": "cbb0fd65-9b19-4fd2-b3fc-3ffb16f5ebe5", "ServiceID": "d5b29353-e58a-4d52-8ab4-5292e7c94161", "EnterpriseID": "30bb0f7f-9edb-4da2-b299-b6ca66921a05", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true }, { "ID": "cbb0fd65-9b19-4fd2-b3fc-3ffb16f5ebe5", "ServiceID": "d5b29353-e58a-4d52-8ab4-5292e7c94161", "EnterpriseID": "30bb0f7f-9edb-4da2-b299-b6ca66921a05", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true } ], "ID": "74d4bf0c-0d4b-4770-8eec-2e35fe649136", "CategoryID": "dca89d04-0774-40c7-b5c7-58fab449d401", "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>dca89d04-0774-40c7-b5c7-58fab449d401</CategoryID> <Content>sample string 11</Content> <Count>18</Count> <ID>74d4bf0c-0d4b-4770-8eec-2e35fe649136</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>26163680-e796-4063-a6e6-8a2ecff1b528</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>174e7c4c-d44c-4e8c-b0a0-e9f2bf59d2e7</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> <ServiceFile> <FileUrl>sample string 6</FileUrl> <ID>26163680-e796-4063-a6e6-8a2ecff1b528</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>174e7c4c-d44c-4e8c-b0a0-e9f2bf59d2e7</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> </ServiceFileList> <ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>30bb0f7f-9edb-4da2-b299-b6ca66921a05</EnterpriseID> <ID>cbb0fd65-9b19-4fd2-b3fc-3ffb16f5ebe5</ID> <Image>sample string 4</Image> <ServiceID>d5b29353-e58a-4d52-8ab4-5292e7c94161</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>30bb0f7f-9edb-4da2-b299-b6ca66921a05</EnterpriseID> <ID>cbb0fd65-9b19-4fd2-b3fc-3ffb16f5ebe5</ID> <Image>sample string 4</Image> <ServiceID>d5b29353-e58a-4d52-8ab4-5292e7c94161</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.