You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oa/models/role.go

12 lines
438 B
Go

package models
type Role struct {
BaseModel
2 months ago
Name string `json:"name" methods:"post,*patch,*list" parse:"json"`
Des string `json:"des" methods:"post,*patch" parse:"json"`
AppID string `json:"app_id" gorm:"index;type:varchar(32)" methods:"post,*patch" parse:"json"`
App *App `json:"-" gorm:"foreignKey:AppID;references:ID"`
UserCount uint `json:"user_count"`
Access []*Access `json:"-"`
}