scrm-go

article_models.go 581B

123456789101112131415161718192021
  1. package models
  2. type ArticleCategory struct{
  3. //对应数据库中的字段
  4. MenuId int64 `gorm:"column:id" `
  5. Name string `gorm:"column:name" `
  6. Order int64 `gorm:"column:order" `
  7. Status int64 `gorm:"column:status" `
  8. Summary string `gorm:"column:summary" `
  9. Type int64 `gorm:"column:type"`
  10. Mtime int64 `gorm:"column:mtime"`
  11. Ctime int64 `gorm:"column:ctime"`
  12. UserOrgId int64 `gorm:"column:user_org_id"`
  13. Num int64 `gorm:"column:num" json:"num"`
  14. }
  15. func (ArticleCategory) TableName() string {
  16. return "sgj_patient_articles_menu"
  17. }