data.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. module.exports.QuestionnaireResultList = [
  2. {
  3. "objectId": "result1",
  4. "createdAt": "2024-12-10T11:20:24Z",
  5. "QuestionnaireResultId": "qr1", // 新增的非数据库生成的主键
  6. "userId": {
  7. "__type": "Pointer",
  8. "className": "User",
  9. "objectId": "user1"
  10. },
  11. "questionnaireId": {
  12. "__type": "Pointer",
  13. "className": "Questionnaire",
  14. "objectId": "questionnaire1"
  15. },
  16. "answers": [
  17. {
  18. "__type": "Pointer",
  19. "className": "Option",
  20. "objectId": "option1"
  21. },
  22. {
  23. "__type": "Pointer",
  24. "className": "Option",
  25. "objectId": "option2"
  26. }
  27. ]
  28. },
  29. {
  30. "objectId": "result2",
  31. "createdAt": "2024-12-10T11:20:24Z",
  32. "QuestionnaireResultId": "qr2", // 新增的非数据库生成的主键
  33. "userId": {
  34. "__type": "Pointer",
  35. "className": "User",
  36. "objectId": "user2"
  37. },
  38. "questionnaireId": {
  39. "__type": "Pointer",
  40. "className": "Questionnaire",
  41. "objectId": "questionnaire1"
  42. },
  43. "answers": [
  44. {
  45. "__type": "Pointer",
  46. "className": "Option",
  47. "objectId": "option3"
  48. },
  49. {
  50. "__type": "Pointer",
  51. "className": "Option",
  52. "objectId": "option4"
  53. }
  54. ]
  55. }
  56. ];
  57. module.exports.QuestionnaireList = [
  58. {
  59. "objectId": "questionnaire1",
  60. "createdAt": "2024-12-10T11:20:24Z",
  61. "QuestionnaireId": "q1", // 新增的非数据库生成的主键
  62. "title": "兴趣调查问卷",
  63. "status": "已发布",
  64. "questions": [
  65. {
  66. "__type": "Pointer",
  67. "className": "Question",
  68. "objectId": "question1"
  69. },
  70. {
  71. "__type": "Pointer",
  72. "className": "Question",
  73. "objectId": "question2"
  74. }
  75. ]
  76. }
  77. ];
  78. module.exports.QuestionList = [
  79. {
  80. "objectId": "question1",
  81. "createdAt": "2024-12-10T11:20:24Z",
  82. "QuestionId": "q1", // 新增的非数据库生成的主键
  83. "questionnaireId": {
  84. "__type": "Pointer",
  85. "className": "Questionnaire",
  86. "objectId": "questionnaire1"
  87. },
  88. "questionText": "你最喜欢的活动是什么?",
  89. "options": [
  90. {
  91. "__type": "Pointer",
  92. "className": "Option",
  93. "objectId": "option1"
  94. },
  95. {
  96. "__type": "Pointer",
  97. "className": "Option",
  98. "objectId": "option2"
  99. }
  100. ]
  101. },
  102. {
  103. "objectId": "question2",
  104. "createdAt": "2024-12-10T11:20:24Z",
  105. "QuestionId": "q2", // 新增的非数据库生成的主键
  106. "questionnaireId": {
  107. "__type": "Pointer",
  108. "className": "Questionnaire",
  109. "objectId": "questionnaire1"
  110. },
  111. "questionText": "你喜欢的休闲方式是什么?",
  112. "options": [
  113. {
  114. "__type": "Pointer",
  115. "className": "Option",
  116. "objectId": "option3"
  117. },
  118. {
  119. "__type": "Pointer",
  120. "className": "Option",
  121. "objectId": "option4"
  122. }
  123. ]
  124. }
  125. ];
  126. module.exports.OptionList = [
  127. {
  128. "objectId": "option1",
  129. "createdAt": "2024-12-10T11:20:24Z",
  130. "OptionId": "o1", // 新增的非数据库生成的主键
  131. "questionId": {
  132. "__type": "Pointer",
  133. "className": "Question",
  134. "objectId": "question1"
  135. },
  136. "optionText": "户外活动",
  137. "isSelected": false
  138. },
  139. {
  140. "objectId": "option2",
  141. "createdAt": "2024-12-10T11:20:24Z",
  142. "OptionId": "o2", // 新增的非数据库生成的主键
  143. "questionId": {
  144. "__type": "Pointer",
  145. "className": "Question",
  146. "objectId": "question1"
  147. },
  148. "optionText": "阅读",
  149. "isSelected": false
  150. },
  151. {
  152. "objectId": "option3",
  153. "createdAt": "2024-12-10T11:20:24Z",
  154. "OptionId": "o3", // 新增的非数据库生成的主键
  155. "questionId": {
  156. "__type": "Pointer",
  157. "className": "Question",
  158. "objectId": "question2"
  159. },
  160. "optionText": "看电影",
  161. "isSelected": false
  162. },
  163. {
  164. "objectId": "option4",
  165. "createdAt": "2024-12-10T11:20:24Z",
  166. "OptionId": "o4", // 新增的非数据库生成的主键
  167. "questionId": {
  168. "__type": "Pointer",
  169. "className": "Question",
  170. "objectId": "question2"
  171. },
  172. "optionText": "旅游",
  173. "isSelected": false
  174. }
  175. ];
  176. module.exports.UserInterestProfileList = [
  177. {
  178. "objectId": "profile1",
  179. "createdAt": "2024-12-10T11:20:24Z",
  180. "userId": {
  181. "__type": "Pointer",
  182. "className": "User",
  183. "objectId": "user1"
  184. },
  185. "interestTags": ["户外活动", "阅读"],
  186. "results": [
  187. {
  188. "__type": "Pointer",
  189. "className": "QuestionnaireResult",
  190. "objectId": "result1"
  191. }
  192. ],
  193. "content": "用户喜欢户外活动和阅读,喜欢在自然中放松和探索新书籍。"
  194. },
  195. {
  196. "objectId": "profile2",
  197. "createdAt": "2024-12-10T11:20:24Z",
  198. "userId": {
  199. "__type": "Pointer",
  200. "className": "User",
  201. "objectId": "user2"
  202. },
  203. "interestTags": ["看电影", "旅游"],
  204. "results": [
  205. {
  206. "__type": "Pointer",
  207. "className": "QuestionnaireResult",
  208. "objectId": "result2"
  209. }
  210. ],
  211. "content": "用户热爱看电影和旅游,喜欢通过电影探索不同的文化和风景。"
  212. }
  213. ];