edbinfo_longzhong.go 414 B

1234567891011121314151617181920
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. type DataSourceLongzhong struct {
  4. Id int `orm:"column(id);pk"`
  5. ClassifyId int
  6. ClassifyName string
  7. SecName string
  8. Frequency string
  9. LongzhongId string
  10. Remark string
  11. LongzhongClassify string
  12. }
  13. func AddDataSourceLongzhong(item *DataSourceLongzhong) (newId int64, err error) {
  14. o := orm.NewOrmUsingDB("rddp")
  15. newId, err = o.Insert(item)
  16. return
  17. }