12345678910111213141516171819202122 |
- package models
- import (
- "github.com/beego/beego/v2/client/orm"
- "time"
- )
- type ReportStateRecord struct {
- Id int `orm:"column(id)" description:"Id"`
- ReportId int
- ReportType int
- State int
- AdminId int
- AdminName string
- CreateTime time.Time
- }
- func AddReportStateRecord(item *ReportStateRecord) (lastId int64, err error) {
- o := orm.NewOrmUsingDB("rddp")
- lastId, err = o.Insert(item)
- return
- }
|