POST api/CommunityV770/SubmitConvenientService

发布便民服务

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.PostConvenientServvice
NameDescriptionTypeAdditional information
streetId

街道Id

integer

None.

convenientServiceClassifyId

便民服务类别id

integer

None.

name

标题名称

string

None.

desc

描述

string

None.

tel

联系电话

string

None.

servicePrice

服务价格

string

None.

businessName

商家联系人

string

None.

address

显示的地址信息

string

None.

thumbnail

缩略图

string

None.

imgs

幻灯图(多个用,隔开)

string

None.

lat

纬度

decimal number

None.

lng

经度

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "streetId": 1,
  "convenientServiceClassifyId": 2,
  "name": "sample string 3",
  "desc": "sample string 4",
  "tel": "sample string 5",
  "servicePrice": "sample string 6",
  "businessName": "sample string 7",
  "address": "sample string 8",
  "thumbnail": "sample string 9",
  "imgs": "sample string 10",
  "lat": 11.0,
  "lng": 12.0
}

application/xml, text/xml

Sample:
<PostConvenientServvice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <address>sample string 8</address>
  <businessName>sample string 7</businessName>
  <convenientServiceClassifyId>2</convenientServiceClassifyId>
  <desc>sample string 4</desc>
  <imgs>sample string 10</imgs>
  <lat>11</lat>
  <lng>12</lng>
  <name>sample string 3</name>
  <servicePrice>sample string 6</servicePrice>
  <streetId>1</streetId>
  <tel>sample string 5</tel>
  <thumbnail>sample string 9</thumbnail>
</PostConvenientServvice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

addcoin

赠送的金币

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "addcoin": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <code>2</code>
  <message>sample string 4</message>
  <success>true</success>
</ResultMsg>