跳轉到

問卷管理

取得問卷清單 Get

金鑰權限需求: 問卷 > 管理問卷

命名空間: Ede.Uofx.OpenApi.Sdk.NetStd.Service

方法名稱: UofxService.EIP.Que.Get

var result = await UofxService.EIP.Que.Get(model);

輸入參數

  • QueListRequestModel
屬性 型別 必填 預設值 說明
Code string 指定問卷代碼
Status QueStatus V 問卷狀態 (0:調查中, 1:待調查, 2:結束調查, 3:草稿)
DateRange SearchDateRange 不限制時間範圍 搜尋時間範圍

回傳結果

  • QueListResponseModel
屬性 型別 說明
Code string 問卷代號
Topic string 問卷標題
StartTime DateTimeOffset? 調查時間起
EndTime DateTimeOffset? 調查時間迄

複製並發佈問卷 CloneAndPublish

金鑰權限需求: 問卷 > 管理問卷

將任一問卷作為樣板,複製後進行發佈,其內容大致與原問卷相同,僅能調整下列設定:

  • 問卷標題
  • 調查時間
  • 調查對象

命名空間: Ede.Uofx.OpenApi.Sdk.NetStd.Service

方法名稱: UofxService.EIP.Que.CloneAndPublish

var result = await UofxService.EIP.Que.CloneAndPublish(model);

輸入參數

  • CloneAndPublishReqModel
屬性 型別 必填 預設值 說明
SourceQueCode string V 複製來源的問卷代碼
NewTopic string 新標題
TopicMode UpdateTopicMode Override 標題更新模式 (0:覆蓋, 1:附加前, 2:附加後)
StartTime DateTimeOffset? 調查時間起
EndTime DateTimeOffset? 調查時間迄
SurveyUsers List<UserSetItem> 調查對象

回傳結果

  • ReleaseQueCheckViewModel
屬性 型別 說明
HasSettingError bool 有問卷設定的錯誤
HasContentError bool 有內容編排的錯誤
SettingErrors List<string> 問卷設定錯誤 ErrorId 清單
QuestionErrors QuestionError 問卷內容錯誤詳細資訊
  • QuestionError
屬性 型別 說明
Errors List<string> 問卷內容錯誤 ErrorId
Items List<ItemDetailError> 問卷內容錯誤細節
  • ItemDetailError
屬性 型別 說明
Seq int 排序位置
ErrorCode string 錯誤代碼