星火微课系统客户端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Model_TmatrixCode.cs 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. using System.Collections.Generic;
  2. namespace XHWK.Model
  3. {
  4. #region 铺码模型
  5. /// <summary>
  6. /// TQL铺码模型
  7. /// </summary>
  8. public class Model_TmatrixCode
  9. {
  10. /// <summary>
  11. /// 返回标志
  12. /// </summary>
  13. public string state { get; set; }
  14. /// <summary>
  15. /// 返回标志说明
  16. /// </summary>
  17. public string message { get; set; }
  18. /// <summary>
  19. /// 文件名
  20. /// </summary>
  21. public string filename { get; set; }
  22. /// <summary>
  23. /// 文件原始宽度
  24. /// </summary>
  25. public string width { get; set; }
  26. /// <summary>
  27. /// 文件原始高度
  28. /// </summary>
  29. public string hight { get; set; }
  30. /// <summary>
  31. /// 分配的铺码 ID
  32. /// </summary>
  33. public string pageserial { get; set; }
  34. /// <summary>
  35. /// 铺码文件使用的 sectionId
  36. /// </summary>
  37. public string sectionId { get; set; }
  38. /// <summary>
  39. /// 铺码文件使用的 ownerId
  40. /// </summary>
  41. public string ownerId { get; set; }
  42. /// <summary>
  43. /// 铺码文件使用的 bookId
  44. /// </summary>
  45. public string bookId { get; set; }
  46. /// <summary>
  47. /// 铺码文件的 page 信息
  48. /// </summary>
  49. public List<Model_PageInfoItem> pageInfo { get; set; }
  50. }
  51. /// <summary>
  52. /// PDF页码对应铺码ID
  53. /// </summary>
  54. public class Model_PageInfoItem
  55. {
  56. /// <summary>
  57. /// Pdf 文件页码
  58. /// </summary>
  59. public string pagenumber { get; set; }
  60. /// <summary>
  61. /// Pdf 文件页码对应使用的铺码pageid
  62. /// </summary>
  63. public string pageid { get; set; }
  64. }
  65. #endregion
  66. #region 查询进度
  67. /// <summary>
  68. /// 进度查询
  69. /// </summary>
  70. public class Model_ScheduleQuery
  71. {
  72. /// <summary>
  73. /// 结果
  74. /// </summary>
  75. public string state { get; set; }
  76. /// <summary>
  77. /// 消息
  78. /// </summary>
  79. public string message { get; set; }
  80. /// <summary>
  81. /// 进度列表
  82. /// </summary>
  83. public List<Model_ScheduleQueryState> list { get; set; }
  84. }
  85. /// <summary>
  86. /// 查询状态
  87. /// </summary>
  88. public class Model_ScheduleQueryState
  89. {
  90. /// <summary>
  91. /// 铺码 ID
  92. /// </summary>
  93. public string pageserial { get; set; }
  94. /// <summary>
  95. /// 返回铺码进度:0-100
  96. /// </summary>
  97. public string schedule { get; set; }
  98. /// <summary>
  99. /// 状态 0:未铺码 1:正在铺码 2:铺码完成,3:未查到。
  100. /// </summary>
  101. public string state { get; set; }
  102. }
  103. #endregion
  104. #region 历史查询
  105. /// <summary>
  106. /// 历史查询模型
  107. /// </summary>
  108. public class Model_HistoryQuery
  109. {
  110. /// <summary>
  111. /// 返回标志
  112. /// </summary>
  113. public string state { get; set; }
  114. /// <summary>
  115. /// 返回标志说明
  116. /// </summary>
  117. public string message { get; set; }
  118. /// <summary>
  119. /// 历史数据列表数组
  120. /// </summary>
  121. public List<Model_HistoryPageList> pageList { get; set; }
  122. }
  123. /// <summary>
  124. /// 历史数据列表
  125. /// </summary>
  126. public class Model_HistoryPageList
  127. {
  128. /// <summary>
  129. /// 页码 ID
  130. /// </summary>
  131. public string pageIndex { get; set; }
  132. /// <summary>
  133. /// 历史数据 pdf 文档详情数组
  134. /// </summary>
  135. public List<Model_HistoryListItem> list { get; set; }
  136. }
  137. /// <summary>
  138. /// 历史信息
  139. /// </summary>
  140. public class Model_HistoryListItem
  141. {
  142. /// <summary>
  143. /// 铺码 ID
  144. /// </summary>
  145. public string pageserial { get; set; }
  146. /// <summary>
  147. /// 铺码名称
  148. /// </summary>
  149. public string fileName { get; set; }
  150. /// <summary>
  151. /// 铺码使用的 sectionId
  152. /// </summary>
  153. public string sectionId { get; set; }
  154. /// <summary>
  155. /// 铺码使用的 ownerId
  156. /// </summary>
  157. public string ownerId { get; set; }
  158. /// <summary>
  159. /// 铺码使用的 bookid
  160. /// </summary>
  161. public string bookId { get; set; }
  162. /// <summary>
  163. /// 铺码使用的开始 pagid
  164. /// </summary>
  165. public string beginPagId { get; set; }
  166. /// <summary>
  167. /// 铺码使用的结束 pagid
  168. /// </summary>
  169. public string endPagId { get; set; }
  170. /// <summary>
  171. /// 下载 URL
  172. /// </summary>
  173. public string url { get; set; }
  174. }
  175. #endregion
  176. public enum Enum_StatetType
  177. {
  178. //1000 操作成功
  179. //1001 打开数据库失败
  180. //1002 用户名或密码错误
  181. //1003 Key 信息错误(过期或已使用完)
  182. //1004 上传 Pdf 文档无法打开
  183. //1005 铺码初始化失败
  184. //1006 铺码错误
  185. //1007 Json 数据错误
  186. //1008 接口错误
  187. //1009 UserID 错误
  188. //1010 未查到该历史数据
  189. }
  190. }