Files
windows_lock_go/app/admin/models/mm_user_group.go
2025-05-22 15:35:52 +08:00

31 lines
655 B
Go

package models
import (
"go-admin/common/models"
)
type MmUserGroup struct {
models.Model
UserId int `json:"userId" gorm:"type:int;comment:用户id"`
GroupIds string `json:"groupIds" gorm:"type:varchar(500);comment:设备分组ids (逗号分隔)"`
GroupIdList []int `json:"groupIdList" gorm:"-"`
GroupNames string `json:"groupNames" gorm:"-"`
UserName string `json:"userName" gorm:"-"`
models.ModelTime
models.ControlBy
}
func (MmUserGroup) TableName() string {
return "mm_user_group"
}
func (e *MmUserGroup) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *MmUserGroup) GetId() interface{} {
return e.Id
}