unissoft-bj / ihostsvc

system services & data services on ihost
0 stars 0 forks source link

新建 reception REST #29

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

提交参数: account 返回参数:reception id

use case: 当销售顾问开始录音时,创建一个新的reception id 自动记录开始时间 自动记录创建者

预留增强功能:销售顾问可以在web app上新建一个reception

ycyn521 commented 9 years ago

新建接待: createReception() return:receptionId

michaelyin commented 9 years ago

post /secure/reception param: reception json object. if server receives null json object, server creates it. server needs identify account to create the reception???

return: json object with id.

michaelyin commented 9 years ago

http://localhost:8080/secure/reception

Json payload: {"agent_phone":"","person_cnt":0,"gender":"MALE","customer_name":"Obama","phone":"","location":"","transport":"","intention":"","visit_index":1,"refer_source":"","car_usage":"PRIVATE","car_style":"","car_model":"GOLF","car_color":"","buy_level":"A","description":"","result":"","comparison":"","memo":"","status":"UPDATE","sibling_id":0,"start_t":1430151622860,"end_t":null,"modify_t":null}

Json returned: { id: 9 agent_id: "4028a7814cc82897014cc832ba120000" agent_phone: "" agent_mac: "" person_cnt: 0 gender: "MALE" customer_name: "Obama" phone: "" location: "" transport: "" intention: "" visit_index: 1 refer_source: "" car_usage: "PRIVATE" car_style: "" car_model: "GOLF" car_color: "" buy_level: "A" description: "" result: "" comparison: "" memo: "" status: "UPDATE" sibling_id: 0 start_t: 1430151622860 end_t: null modify_t: null }