image_record.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. package levelMonitor
  2. import (
  3. "log-server/model/typeManage"
  4. )
  5. type ImageRecord struct {
  6. Id int `json:"id"`
  7. TaskId int `json:"task_id"` //任务id
  8. Account string `json:"account"` //账号
  9. ImageBase64 string `json:"image_base64"` //图片base64文本
  10. Status int `json:"status"` //识别状态, 成功为1, 失败-1, 默认为2未识别
  11. Result string `json:"result"` //识别结果
  12. CreateDate string `json:"create_date"` //创建日期
  13. CreateTime typeManage.LocalTime `json:"create_time"`
  14. UpdateTime typeManage.LocalTime `json:"update_time"`
  15. UseNum int `json:"use_num"` //账号登录成功次数
  16. Identify float64 `json:"identify"` //图片识别的内容
  17. }
  18. type ImageRecordResponse struct {
  19. Id int `json:"id"`
  20. TaskId int `json:"task_id"` //任务id
  21. User string `json:"user"`
  22. TaskName string `json:"task_name"`
  23. Account string `json:"account"` //账号
  24. ImageBase64 string `json:"image_base64"` //图片base64文本
  25. Status int `json:"status"` //识别状态, 成功为1, 失败-1, 默认为2未识别
  26. Result string `json:"result"` //识别结果
  27. CreateDate string `json:"create_date"` //创建日期
  28. CreateTime typeManage.LocalTime `json:"create_time"`
  29. UpdateTime typeManage.LocalTime `json:"update_time"`
  30. UseNum int `json:"use_num"` //账号登录成功次数
  31. Identify float64 `json:"identify"` //图片识别的内容
  32. }
  33. func (ImageRecord) TableName() string {
  34. return "image_record"
  35. }
  36. type ImageRecordStatistics struct {
  37. Id int `json:"id"`
  38. TaskId int `json:"task_id"` //任务id
  39. CreateDate string `json:"create_date"` //创建日期
  40. Two float64 `json:"two"`
  41. Three float64 `json:"three"`
  42. Four float64 `json:"four"`
  43. Five float64 `json:"five"`
  44. Six float64 `json:"six"`
  45. Seven float64 `json:"seven"`
  46. Eight float64 `json:"eight"`
  47. Nine float64 `json:"nine"`
  48. Ten float64 `json:"ten"`
  49. Eleven float64 `json:"eleven"`
  50. Twelve float64 `json:"twelve"`
  51. Thirteen float64 `json:"thirteen"`
  52. Fourteen float64 `json:"fourteen"`
  53. Fifteen float64 `json:"fifteen"`
  54. Sixteen float64 `json:"sixteen"`
  55. Seventeen float64 `json:"seventeen"`
  56. Eighteen float64 `json:"eighteen"`
  57. Nineteen float64 `json:"nineteen"`
  58. Twenty float64 `json:"twenty"`
  59. TwentyOne float64 `json:"twenty_one"`
  60. TwentyTwo float64 `json:"twenty_two"`
  61. TwentyThree float64 `json:"twenty_three"`
  62. TwentyFour float64 `json:"twenty_four"`
  63. TwentyFive float64 `json:"twenty_five"`
  64. TwentySix float64 `json:"twenty_six"`
  65. TwentySeven float64 `json:"twenty_seven"`
  66. TwentyEight float64 `json:"twenty_eight"`
  67. TwentyNine float64 `json:"twenty_nine"`
  68. Thirty float64 `json:"thirty"`
  69. }
  70. type ImageRecordStatisticsResponse struct {
  71. Id int `json:"id"`
  72. TaskId int `json:"task_id"` //任务id
  73. User string `json:"user"` //负责人
  74. TaskName string `json:"task_name"` //任务名称
  75. CreateDate string `json:"create_date"` //创建日期
  76. Two float64 `json:"two"`
  77. Three float64 `json:"three"`
  78. Four float64 `json:"four"`
  79. Five float64 `json:"five"`
  80. Six float64 `json:"six"`
  81. Seven float64 `json:"seven"`
  82. Eight float64 `json:"eight"`
  83. Nine float64 `json:"nine"`
  84. Ten float64 `json:"ten"`
  85. Eleven float64 `json:"eleven"`
  86. Twelve float64 `json:"twelve"`
  87. Thirteen float64 `json:"thirteen"`
  88. Fourteen float64 `json:"fourteen"`
  89. Fifteen float64 `json:"fifteen"`
  90. Sixteen float64 `json:"sixteen"`
  91. Seventeen float64 `json:"seventeen"`
  92. Eighteen float64 `json:"eighteen"`
  93. Nineteen float64 `json:"nineteen"`
  94. Twenty float64 `json:"twenty"`
  95. TwentyOne float64 `json:"twenty_one"`
  96. TwentyTwo float64 `json:"twenty_two"`
  97. TwentyThree float64 `json:"twenty_three"`
  98. TwentyFour float64 `json:"twenty_four"`
  99. TwentyFive float64 `json:"twenty_five"`
  100. TwentySix float64 `json:"twenty_six"`
  101. TwentySeven float64 `json:"twenty_seven"`
  102. TwentyEight float64 `json:"twenty_eight"`
  103. TwentyNine float64 `json:"twenty_nine"`
  104. Thirty float64 `json:"thirty"`
  105. }
  106. func (ImageRecordStatistics) TableName() string {
  107. return "image_record_statistics"
  108. }
  109. var R = map[int]string{
  110. 2: "two",
  111. 3: "three",
  112. 4: "four",
  113. 5: "five",
  114. 6: "six",
  115. 7: "seven",
  116. 8: "eight",
  117. 9: "nine",
  118. 10: "ten",
  119. 11: "eleven",
  120. 12: "twelve",
  121. 13: "thirteen",
  122. 14: "fourteen",
  123. 15: "fifteen",
  124. 16: "sixteen",
  125. 17: "seventeen",
  126. 18: "eighteen",
  127. 19: "nineteen",
  128. 20: "twenty",
  129. 21: "twenty_one",
  130. 22: "twenty_two",
  131. 23: "twenty_three",
  132. 24: "twenty_four",
  133. 25: "twenty_five",
  134. 26: "twenty_six",
  135. 27: "twenty_seven",
  136. 28: "twenty_eight",
  137. 29: "twenty_nine",
  138. 30: "thirty",
  139. }