mirror of https://github.com/veypi/OneAuth.git
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.
11 lines
393 B
Go
11 lines
393 B
Go
package models
|
|
|
|
type Role struct {
|
|
BaseModel
|
|
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:"app" gorm:"foreignKey:ID;references:AppID"`
|
|
UserCount uint `json:"user_count"`
|
|
}
|