package levelMonitor import ( "log-server/model/typeManage" ) type ImageRecord struct { Id int `json:"id"` TaskId int `json:"task_id"` //任务id Account string `json:"account"` //账号 ImageBase64 string `json:"image_base64"` //图片base64文本 Status int `json:"status"` //识别状态, 成功为1, 失败-1, 默认为2未识别 Result string `json:"result"` //识别结果 CreateDate string `json:"create_date"` //创建日期 CreateTime typeManage.LocalTime `json:"create_time"` UpdateTime typeManage.LocalTime `json:"update_time"` UseNum int `json:"use_num"` //账号登录成功次数 Identify int `json:"identify"` //图片识别的内容 } func (ImageRecord) TableName() string { return "image_record" } type ImageRecordStatistics struct { Id int `json:"id"` TaskId int `json:"task_id"` //任务id CreateDate string `json:"create_date"` //创建日期 Two float64 `json:"two"` Three float64 `json:"three"` Four float64 `json:"four"` Five float64 `json:"five"` Six float64 `json:"six"` Seven float64 `json:"seven"` Eight float64 `json:"eight"` Nine float64 `json:"nine"` Ten float64 `json:"ten"` Eleven float64 `json:"eleven"` Twelve float64 `json:"twelve"` Thirteen float64 `json:"thirteen"` Fourteen float64 `json:"fourteen"` Fifteen float64 `json:"fifteen"` Sixteen float64 `json:"sixteen"` Seventeen float64 `json:"seventeen"` Eighteen float64 `json:"eighteen"` Nineteen float64 `json:"nineteen"` Twenty float64 `json:"twenty"` TwentyOne float64 `json:"twenty_one"` TwentyTwo float64 `json:"twenty_two"` TwentyThree float64 `json:"twenty_three"` TwentyFour float64 `json:"twenty_four"` TwentyFive float64 `json:"twenty_five"` TwentySix float64 `json:"twenty_six"` TwentySeven float64 `json:"twenty_seven"` TwentyEight float64 `json:"twenty_eight"` TwentyNine float64 `json:"twenty_nine"` Thirty float64 `json:"thirty"` } func (ImageRecordStatistics) TableName() string { return "image_record_statistics" } var R = map[int]string{ 2: "two", 3: "three", 4: "four", 5: "five", 6: "six", 7: "seven", 8: "eight", 9: "nine", 10: "ten", 11: "eleven", 12: "twelve", 13: "thirteen", 14: "fourteen", 15: "fifteen", 16: "sixteen", 17: "seventeen", 18: "eighteen", 19: "nineteen", 20: "twenty", 21: "twenty_one", 22: "twenty_two", 23: "twenty_three", 24: "twenty_four", 25: "twenty_five", 26: "twenty_six", 27: "twenty_seven", 28: "twenty_eight", 29: "twenty_nine", 30: "thirty", }