accesscontrol.go 287 B

12345678910111213141516
  1. package model
  2. import "gorm.io/gorm"
  3. type AccessControl struct {
  4. gorm.Model
  5. }
  6. type DeviceRanking struct {
  7. Id int `json:"Id"`
  8. DeviceName string `json:"DeviceName"`
  9. Value int `json:"Value"`
  10. }
  11. func (m *AccessControl) TableName() string {
  12. return "access_control"
  13. }