three_api_log.go 589 B

12345678910111213141516171819202122
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxThreeApiLog struct {
  7. Id int `orm:"column(id);pk"`
  8. Url string `description:"链接"`
  9. Body string `description:"请求参数"`
  10. Result string `description:"返回参数"`
  11. CreateTime time.Time `description:"活动模板,带P标签"`
  12. Source int `description:"来源1,易董"`
  13. }
  14. // 添加日志记录
  15. func AddCygxThreeApiLog(item *CygxThreeApiLog) (lastId int64, err error) {
  16. o := orm.NewOrmUsingDB("hz_cygx")
  17. lastId, err = o.Insert(item)
  18. return
  19. }