aliyun_ocr_log.go 506 B

1234567891011121314151617181920212223
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type AliyunOcrImgUrlReq struct {
  7. ImgUrl string `description:"图片地址"`
  8. }
  9. type AliyunOcrLog struct {
  10. Id int `orm:"column(id);pk"`
  11. ImgUrl string `description:"图片地址"`
  12. Result string `description:"返回内容"`
  13. CreateTime time.Time `description:"创建时间"`
  14. }
  15. func AddAliyunOcrLog(item *AliyunOcrLog) (err error) {
  16. o := orm.NewOrmUsingDB("hz_cygx")
  17. _, err = o.Insert(item)
  18. return
  19. }