星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Model_TmatrixCode.cs 5.3KB

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