NavigationResult.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. using System.Collections.Generic;
  2. using GxPress.Result.Media;
  3. using GxPress.Result.Teacher;
  4. namespace GxPress.Result.Navigation
  5. {
  6. /// <summary>
  7. /// 导航数据的显示
  8. /// </summary>
  9. public class NavigationLabelMediaResult
  10. {
  11. /// <summary>
  12. /// id
  13. /// </summary>
  14. /// <value></value>
  15. public int Id { get; set; }
  16. /// <summary>
  17. /// 标签名称
  18. /// </summary>
  19. /// <value></value>
  20. public string LabelName { get; set; }
  21. /// <summary>
  22. /// 标签名称描述
  23. /// </summary>
  24. /// <value></value>
  25. public string LabelNameDescribe { get; set; }
  26. /// <summary>
  27. /// 备注
  28. /// </summary>
  29. /// <value></value>
  30. public string Remark { get; set; }
  31. /// <summary>
  32. /// 排序
  33. /// </summary>
  34. /// <value></value>
  35. public int Sort { get; set; }
  36. /// <summary>
  37. /// 是否跳转
  38. /// </summary>
  39. /// <value></value>
  40. public bool IsSkip { get; set; }
  41. /// <summary>
  42. /// 分页条数
  43. /// </summary>
  44. /// <value></value>
  45. public int PageSize { get; set; }
  46. /// <summary>
  47. /// 是否分页
  48. /// </summary>
  49. /// <value></value>
  50. public bool IsPage { get; set; }
  51. /// <summary>
  52. /// 路径
  53. /// </summary>
  54. /// <value></value>
  55. public string ControllerUrl { get; set; }
  56. /// <summary>
  57. /// 路径
  58. /// </summary>
  59. /// <value></value>
  60. public string ActionUrl { get; set; }
  61. /// <summary>
  62. /// 资源类型
  63. /// </summary>
  64. /// <value></value>
  65. public int ResourceType { get; set; }
  66. /// <summary>
  67. /// 样式类型
  68. /// </summary>
  69. /// <value></value>
  70. public string StyleType { get; set; }
  71. /// <summary>
  72. /// 媒体
  73. /// </summary>
  74. /// <value></value>
  75. public List<NavigationMediaResult> MediaResults { get; set; }
  76. /// <summary>
  77. /// 特殊 130,示范课堂140,品牌专区1(150),品牌专区2(160)
  78. /// </summary>
  79. /// <value></value>
  80. public IEnumerable<Entity.SystemLabel.SpecialLabel> SpecialLabelResults { get; set; }
  81. /// <summary>
  82. /// 名师
  83. /// </summary>
  84. /// <value></value>
  85. public IEnumerable<TeacherResult> TeacherResults { get; set; }
  86. /// <summary>
  87. /// 是否特殊
  88. /// </summary>
  89. /// <value></value>
  90. public bool IsSpecial { get; set; }
  91. /// <summary>
  92. /// 是否显示标签名称
  93. /// </summary>
  94. /// <value></value>
  95. public bool IsShowLabelName { get; set; }
  96. /// <summary>
  97. /// 是否老师
  98. /// </summary>
  99. /// <value></value>
  100. public bool IsTeacher { get; set; }
  101. }
  102. /// <summary>
  103. /// 中间页面
  104. /// </summary>
  105. public class MiddleLableResult
  106. {
  107. /// <summary>
  108. /// 导航栏ID
  109. /// </summary>
  110. /// <value></value>
  111. public string Name { get; set; }
  112. /// <summary>
  113. /// 标签ID
  114. /// </summary>
  115. /// <value></value>
  116. public string LabelId { get; set; }
  117. /// <summary>
  118. /// 排序
  119. /// </summary>
  120. /// <value></value>
  121. public int Sort { get; set; }
  122. /// <summary>
  123. /// 是否禁用
  124. /// </summary>
  125. /// <value></value>
  126. public bool IsDisable { get; set; }
  127. /// <summary>
  128. /// 是否开启搜索
  129. /// </summary>
  130. /// <value></value>
  131. public bool IsSearch { get; set; }
  132. /// <summary>
  133. /// 是否开启轮播
  134. /// </summary>
  135. /// <value></value>
  136. public bool IsSlide { get; set; }
  137. /// <summary>
  138. /// 1 APP 2 首页频道 3首页精选
  139. /// </summary>
  140. /// <value></value>
  141. public int TypeId { get; set; }
  142. /// <summary>
  143. /// 导航数据的显示
  144. /// </summary>
  145. /// <value></value>
  146. public List<NavigationLabelMediaResult> NavigationLabelMediaResults { get; set; }
  147. /// <summary>
  148. /// 获取轮播
  149. /// </summary>
  150. /// <value></value>
  151. public IEnumerable<Entity.Slide> Sildes { get; set; }
  152. }
  153. /// <summary>
  154. /// 导航数据的显示
  155. /// </summary>
  156. public class NavigationResult
  157. {
  158. /// <summary>
  159. /// id
  160. /// </summary>
  161. /// <value></value>
  162. public int Id { get; set; }
  163. /// <summary>
  164. /// 导航名称
  165. /// </summary>
  166. /// <value></value>
  167. public string Name { get; set; }
  168. /// <summary>
  169. /// 是否禁用
  170. /// </summary>
  171. /// <value></value>
  172. public bool IsDisable { get; set; }
  173. /// <summary>
  174. /// 父级ID
  175. /// </summary>
  176. /// <value></value>
  177. public int ParentId { get; set; }
  178. /// <summary>
  179. /// 排序
  180. /// </summary>
  181. /// <value></value>
  182. public int Sort { get; set; }
  183. /// <summary>
  184. /// 中间件页面ID
  185. /// </summary>
  186. /// <value></value>
  187. public int MiddleLableId { get; set; }
  188. /// <summary>
  189. /// 是否可以操作
  190. /// </summary>
  191. /// <value></value>
  192. public bool Isoperate { get; set; }
  193. /// <summary>
  194. /// 终端 1 pc 2 移动端
  195. /// </summary>
  196. /// <value></value>
  197. public int Terminal { get; set; }
  198. /// <summary>
  199. /// 是否存在子集
  200. /// </summary>
  201. /// <value></value>
  202. public bool IsChildren { get; set; }
  203. /// <summary>
  204. /// 子集
  205. /// </summary>
  206. /// <value></value>
  207. public List<NavigationResult> Children { get; set; }
  208. /// <summary>
  209. /// 路径
  210. /// </summary>
  211. /// <value></value>
  212. public string ControllerUrl { get; set; }
  213. /// <summary>
  214. /// 路径
  215. /// </summary>
  216. /// <value></value>
  217. public string ActionUrl { get; set; }
  218. }
  219. /// <summary>
  220. /// 标签查询数据
  221. /// </summary>
  222. public class LabelMediaResult
  223. {
  224. /// <summary>
  225. /// 标签查询数据
  226. /// </summary>
  227. /// <value></value>
  228. public IEnumerable<NavigationMediaResult> LabelMediaResults { get; set; }
  229. /// <summary>
  230. /// 猜你喜欢
  231. /// </summary>
  232. /// <value></value>
  233. public IEnumerable<NavigationMediaResult> LikeMediaResults { get; set; }
  234. /// <summary>
  235. /// 推荐
  236. /// </summary>
  237. /// <value></value>
  238. public IEnumerable<NavigationMediaResult> RecommendMediaResults { get; set; }
  239. }
  240. /// <summary>
  241. /// 导航搜索
  242. /// </summary>
  243. public class NavigationSearchResult
  244. {
  245. /// <summary>
  246. /// 作者
  247. /// </summary>
  248. /// <value></value>
  249. public IEnumerable<NavigationSearchTeacherResult> TeacherItem { get; set; }
  250. }
  251. /// <summary>
  252. /// 老师搜索
  253. /// </summary>
  254. public class NavigationSearchTeacherResult
  255. {
  256. /// <summary>
  257. /// 老师ID
  258. /// </summary>
  259. /// <value></value>
  260. public int TeacherId { get; set; }
  261. /// <summary>
  262. /// 作者
  263. /// </summary>
  264. /// <value></value>
  265. public string Author { get; set; }
  266. /// <summary>
  267. /// 数量
  268. /// </summary>
  269. /// <value></value>
  270. public int Count { get; set; }
  271. }
  272. }