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.
22 lines
916 B
Go
22 lines
916 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type AccessList struct {
|
|
CreatedAt *time.Time `json:"created_at" parse:"query"`
|
|
UpdatedAt *time.Time `json:"updated_at" parse:"query"`
|
|
AppID string `json:"app_id" gorm:"index;type:varchar(32)" parse:"json"`
|
|
UserID *string `json:"user_id" gorm:"index;type:varchar(32);default: null" parse:"json"`
|
|
RoleID *string `json:"role_id" gorm:"index;type:varchar(32);default: null" parse:"json"`
|
|
Name *string `json:"name" parse:"json"`
|
|
}
|
|
|
|
type AccessPost struct {
|
|
AppID string `json:"app_id" gorm:"index;type:varchar(32)" parse:"json"`
|
|
UserID *string `json:"user_id" gorm:"index;type:varchar(32);default: null" parse:"json"`
|
|
RoleID *string `json:"role_id" gorm:"index;type:varchar(32);default: null" parse:"json"`
|
|
Name string `json:"name" parse:"json"`
|
|
TID string `json:"tid" parse:"json"`
|
|
Level string `json:"level" parse:"json"`
|
|
}
|