POST Survey/SurveyQuestionMainModel
根据ID获取问卷
Request Information
URI Parameters
None.
Body Parameters
SurveyMainPars| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
主键 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"id": "sample string 1"
},
"msg": null
}
application/xml, text/xml
Sample:
<SurveyMainPars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Parameter"> <id>sample string 1</id> </SurveyMainPars>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
根据ID获取问卷
SurveyQuestionMainModelResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
id |
integer |
None. |
| QuestionName |
问卷名称 |
string |
None. |
| QuestionContent |
问卷描述 |
string |
None. |
| SurveysType |
问卷类型(0调查问卷,3检查表) |
integer |
None. |
| CompanyId |
CompanyId |
integer |
None. |
| QuestionImg |
背景图片 |
string |
None. |
| IsClass |
是否支持班级 |
boolean |
None. |
| RelevanceQuestion |
关联问卷 |
integer |
None. |
| CountQuestion |
总共几道题--前端使用 |
integer |
None. |
| listSurveyQuestione |
调查问题list |
Collection of SurveyQuestionModelResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"Id": 1,
"QuestionName": "sample string 2",
"QuestionContent": "sample string 3",
"SurveysType": 4,
"CompanyId": 5,
"QuestionImg": "sample string 6",
"IsClass": true,
"RelevanceQuestion": 8,
"CountQuestion": 9,
"listSurveyQuestione": [
{
"Id": 1,
"OrderIndex": 2,
"SurveyQuestionType": 3,
"IsRequired": true,
"SurveyQuestionContent": "sample string 5",
"SelectCount": 6,
"CompanyId": 7,
"ImgUrl": "sample string 8",
"ItemType": 9,
"InspectionItem": 10,
"InspectionUnit": 11,
"TeethCount": 12,
"OtherAsk": "sample string 13",
"listSurveyQuestionAskModel": [
{
"Id": 1,
"AskName": "sample string 2",
"AskValue": "sample string 3",
"ImgUrl": "sample string 4"
},
{
"Id": 1,
"AskName": "sample string 2",
"AskValue": "sample string 3",
"ImgUrl": "sample string 4"
}
]
},
{
"Id": 1,
"OrderIndex": 2,
"SurveyQuestionType": 3,
"IsRequired": true,
"SurveyQuestionContent": "sample string 5",
"SelectCount": 6,
"CompanyId": 7,
"ImgUrl": "sample string 8",
"ItemType": 9,
"InspectionItem": 10,
"InspectionUnit": 11,
"TeethCount": 12,
"OtherAsk": "sample string 13",
"listSurveyQuestionAskModel": [
{
"Id": 1,
"AskName": "sample string 2",
"AskValue": "sample string 3",
"ImgUrl": "sample string 4"
},
{
"Id": 1,
"AskName": "sample string 2",
"AskValue": "sample string 3",
"ImgUrl": "sample string 4"
}
]
}
]
},
"msg": null
}
application/xml, text/xml
Sample:
<SurveyQuestionMainModelResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Result">
<CompanyId>5</CompanyId>
<CountQuestion>9</CountQuestion>
<Id>1</Id>
<IsClass>true</IsClass>
<QuestionContent>sample string 3</QuestionContent>
<QuestionImg>sample string 6</QuestionImg>
<QuestionName>sample string 2</QuestionName>
<RelevanceQuestion>8</RelevanceQuestion>
<SurveysType>4</SurveysType>
<listSurveyQuestione>
<SurveyQuestionModelResult>
<CompanyId>7</CompanyId>
<Id>1</Id>
<ImgUrl>sample string 8</ImgUrl>
<InspectionItem>10</InspectionItem>
<InspectionUnit>11</InspectionUnit>
<IsRequired>true</IsRequired>
<ItemType>9</ItemType>
<OrderIndex>2</OrderIndex>
<OtherAsk>sample string 13</OtherAsk>
<SelectCount>6</SelectCount>
<SurveyQuestionContent>sample string 5</SurveyQuestionContent>
<SurveyQuestionType>3</SurveyQuestionType>
<TeethCount>12</TeethCount>
<listSurveyQuestionAskModel>
<SurveyQuestionAskModelResult>
<AskName>sample string 2</AskName>
<AskValue>sample string 3</AskValue>
<Id>1</Id>
<ImgUrl>sample string 4</ImgUrl>
</SurveyQuestionAskModelResult>
<SurveyQuestionAskModelResult>
<AskName>sample string 2</AskName>
<AskValue>sample string 3</AskValue>
<Id>1</Id>
<ImgUrl>sample string 4</ImgUrl>
</SurveyQuestionAskModelResult>
</listSurveyQuestionAskModel>
</SurveyQuestionModelResult>
<SurveyQuestionModelResult>
<CompanyId>7</CompanyId>
<Id>1</Id>
<ImgUrl>sample string 8</ImgUrl>
<InspectionItem>10</InspectionItem>
<InspectionUnit>11</InspectionUnit>
<IsRequired>true</IsRequired>
<ItemType>9</ItemType>
<OrderIndex>2</OrderIndex>
<OtherAsk>sample string 13</OtherAsk>
<SelectCount>6</SelectCount>
<SurveyQuestionContent>sample string 5</SurveyQuestionContent>
<SurveyQuestionType>3</SurveyQuestionType>
<TeethCount>12</TeethCount>
<listSurveyQuestionAskModel>
<SurveyQuestionAskModelResult>
<AskName>sample string 2</AskName>
<AskValue>sample string 3</AskValue>
<Id>1</Id>
<ImgUrl>sample string 4</ImgUrl>
</SurveyQuestionAskModelResult>
<SurveyQuestionAskModelResult>
<AskName>sample string 2</AskName>
<AskValue>sample string 3</AskValue>
<Id>1</Id>
<ImgUrl>sample string 4</ImgUrl>
</SurveyQuestionAskModelResult>
</listSurveyQuestionAskModel>
</SurveyQuestionModelResult>
</listSurveyQuestione>
</SurveyQuestionMainModelResult>