admin_models.go 826B

123456789101112131415161718192021
  1. // 统计后台的 models
  2. package admin_models
  3. type AdminAccount struct {
  4. ID int64 `gorm:"column:id" json:"id" form:"id"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  7. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  8. Password string `gorm:"column:password" json:"password" form:"password"`
  9. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  10. IsAdmin int64 `gorm:"column:is_admin" json:"is_admin" form:"is_admin"`
  11. Status int64 `gorm:"column:status" json:"status" form:"status"`
  12. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  13. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  14. }
  15. func (AdminAccount) TableName() string {
  16. return "kyy_charge_admin"
  17. }