123456789101112131415161718 |
- package models
- import (
- "github.com/beego/beego/v2/client/orm"
- "time"
- )
- type SearchKeyword struct {
- Id int `orm:"column(id);pk"`
- KeyWord string
- CreateTime time.Time
- }
- func AddSearchKeyword(item *SearchKeyword) (err error) {
- o := orm.NewOrm()
- _, err = o.Insert(item)
- return
- }
|