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": "5c22e874-3aa2-4474-b35c-10cf04d5ae97", "ServiceID": "489eee2b-8ddf-428c-9fab-7a27b0e74ffc", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 }, { "ID": "5c22e874-3aa2-4474-b35c-10cf04d5ae97", "ServiceID": "489eee2b-8ddf-428c-9fab-7a27b0e74ffc", "SName": "sample string 3", "Image": "sample string 4", "Thumbnail": "sample string 5", "FileUrl": "sample string 6", "State": true, "OrderIndex": 8 } ], "ServiceImages": [ { "ID": "39aa3f27-26c4-4fa4-9d18-b687dc9edc6a", "ServiceID": "48791168-73cc-4110-9f40-291053585c12", "EnterpriseID": "46e9afec-305f-4aaf-882c-68a4c1a1b87c", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true }, { "ID": "39aa3f27-26c4-4fa4-9d18-b687dc9edc6a", "ServiceID": "48791168-73cc-4110-9f40-291053585c12", "EnterpriseID": "46e9afec-305f-4aaf-882c-68a4c1a1b87c", "Image": "sample string 4", "Thumbnail": "sample string 5", "Description": "sample string 6", "State": true } ], "ID": "3a1d62f3-6b02-462a-9bc1-57051bf37b5a", "CategoryID": "d1d2d18b-c051-43a0-a9b3-c49507c35b79", "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>d1d2d18b-c051-43a0-a9b3-c49507c35b79</CategoryID> <Content>sample string 11</Content> <Count>18</Count> <ID>3a1d62f3-6b02-462a-9bc1-57051bf37b5a</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>5c22e874-3aa2-4474-b35c-10cf04d5ae97</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>489eee2b-8ddf-428c-9fab-7a27b0e74ffc</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> <ServiceFile> <FileUrl>sample string 6</FileUrl> <ID>5c22e874-3aa2-4474-b35c-10cf04d5ae97</ID> <Image>sample string 4</Image> <OrderIndex>8</OrderIndex> <SName>sample string 3</SName> <ServiceID>489eee2b-8ddf-428c-9fab-7a27b0e74ffc</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceFile> </ServiceFileList> <ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>46e9afec-305f-4aaf-882c-68a4c1a1b87c</EnterpriseID> <ID>39aa3f27-26c4-4fa4-9d18-b687dc9edc6a</ID> <Image>sample string 4</Image> <ServiceID>48791168-73cc-4110-9f40-291053585c12</ServiceID> <State>true</State> <Thumbnail>sample string 5</Thumbnail> </ServiceImages> <ServiceImages> <Description>sample string 6</Description> <EnterpriseID>46e9afec-305f-4aaf-882c-68a4c1a1b87c</EnterpriseID> <ID>39aa3f27-26c4-4fa4-9d18-b687dc9edc6a</ID> <Image>sample string 4</Image> <ServiceID>48791168-73cc-4110-9f40-291053585c12</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.