yb_suncode_pars.go 956 B

12345678910111213141516171819202122232425262728293031
  1. package yb_suncode_pars
  2. import (
  3. "time"
  4. )
  5. // YbSuncodePars 小程序太阳码scene参数
  6. type YbSuncodePars struct {
  7. ID uint32 `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
  8. Scene string `gorm:"column:scene;type:varchar(255);not null;default:''" json:"scene"` // scene参数
  9. SceneKey string `gorm:"column:scene_key;type:varchar(32);not null;default:''" json:"scene_key"` // MD5值
  10. CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
  11. }
  12. // TableName get sql table name.获取数据库表名
  13. func (m *YbSuncodePars) TableName() string {
  14. return "yb_suncode_pars"
  15. }
  16. // YbSuncodeParsColumns get sql column name.获取数据库列名
  17. var YbSuncodeParsColumns = struct {
  18. ID string
  19. SceneKey string
  20. Key string
  21. CreateTime string
  22. }{
  23. ID: "id",
  24. SceneKey: "scene_key",
  25. Key: "key",
  26. CreateTime: "create_time",
  27. }