123456789101112131415161718192021 |
- package models
- import (
- "github.com/beego/beego/v2/client/orm"
- "time"
- )
- type CygxShanghaiCompanyLog struct {
- Id int `orm:"column(id);pk"`
- Url string
- Body string
- Result string
- CreateTime time.Time
- }
- //添加日志记录
- func AddCygxShanghaiCompanyLog(item *CygxShanghaiCompanyLog) (lastId int64, err error) {
- o := orm.NewOrm()
- lastId, err = o.Insert(item)
- return
- }
|