12345678910111213141516171819 |
- package data_manage
- import (
- "eta/eta_api/global"
- "eta/eta_api/utils"
- "time"
- )
- type SearchKeyword struct {
- Id int `orm:"column(id);pk" gorm:"primaryKey"`
- KeyWord string
- CreateTime time.Time
- }
- func AddSearchKeyword(item *SearchKeyword) (err error) {
- o := global.DbMap[utils.DbNameIndex]
- err = o.Create(item).Error
- return
- }
|