sso

app_models.go 704B

12345678910111213141516
  1. package models
  2. type OrgApp struct {
  3. Id int `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"` // ID
  4. AppType int `gorm:"column:app_type" json:"app_type"` // 应用类型 1.病友经营;2.科普号;3.血透经营;4.慢病管理
  5. Creator int `json:"creator"` // 创建者,即管理员用户的 id
  6. OrgId int `gorm:"column:org_id" json:"org_id"`
  7. Status int8 `json:"status"` // 状态 0.无效 1.有效 2.禁用
  8. CreateTime int64 `gorm:"column:ctime" json:"ctime"` // 创建时间
  9. ModifyTime int64 `gorm:"column:mtime" json:"mtime"` // 修改时间
  10. }
  11. func (OrgApp) TableName() string {
  12. return "sgj_user_org_app"
  13. }