POST api/questionnaire/saveresult
保存问卷结果(同一用户,同一题目仅允许提交一次)
Request Information
URI Parameters
None.
Body Parameters
问卷结果
QstResultDtoName | Description | Type | Additional information |
---|---|---|---|
QstSubId |
问卷调查主题编号 |
integer |
None. |
QstId |
问卷调查编号 |
integer |
None. |
QstTypeId |
问卷调查题目类型 |
integer |
None. |
Result |
答案结果 |
string |
None. |
Duration |
答题时长 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "QstSubId": 1, "QstId": 2, "QstTypeId": 3, "Result": "sample string 4", "Duration": 5 }
text/html
Sample:
{"QstSubId":1,"QstId":2,"QstTypeId":3,"Result":"sample string 4","Duration":5}
application/xml, text/xml
Sample:
<QstResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Duration>5</Duration> <QstId>2</QstId> <QstSubId>1</QstSubId> <QstTypeId>3</QstTypeId> <Result>sample string 4</Result> </QstResultDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存问卷结果(同一用户,同一题目仅允许提交一次)
JsonRtnDtoOfQstResultName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | QstResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "QstSubId": 1, "MemberId": "sample string 2", "MemberName": "sample string 3", "MemberType": 4, "QstId": 5, "QstTypeId": 6, "Result": "sample string 7", "Duration": 8, "CreatedTime": "2024-09-25T00:05:38.3593658+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"QstSubId":1,"MemberId":"sample string 2","MemberName":"sample string 3","MemberType":4,"QstId":5,"QstTypeId":6,"Result":"sample string 7","Duration":8,"CreatedTime":"2024-09-25T00:05:38.3593658+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfQstResultmEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:CreatedTime>2024-09-25T00:05:38.3593658+08:00</d2p1:CreatedTime> <d2p1:Duration>8</d2p1:Duration> <d2p1:MemberId>sample string 2</d2p1:MemberId> <d2p1:MemberName>sample string 3</d2p1:MemberName> <d2p1:MemberType>4</d2p1:MemberType> <d2p1:QstId>5</d2p1:QstId> <d2p1:QstSubId>1</d2p1:QstSubId> <d2p1:QstTypeId>6</d2p1:QstTypeId> <d2p1:Result>sample string 7</d2p1:Result> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfQstResultmEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"QstSubId":1,"MemberId":"sample string 2","MemberName":"sample string 3","MemberType":4,"QstId":5,"QstTypeId":6,"Result":"sample string 7","Duration":8,"CreatedTime":"2024-09-25T00:05:38.3593658+08:00"}});