Files
APIPark/gateway/apinto/entity/application.go
T
2024-08-12 21:38:09 +08:00

22 lines
551 B
Go

package entity
type Application struct {
*BasicInfo
Labels map[string]string `json:"labels"`
Authorizations []*Authorization `json:"auth"`
}
type Authorization struct {
Type string `json:"type"`
Position string `json:"position"`
TokenName string `json:"token_name"`
Config interface{} `json:"config"`
Users []*AuthUser `json:"users"`
}
type AuthUser struct {
Expire int64 `json:"expire"`
Pattern interface{} `json:"pattern"`
HideCredential bool `json:"hide_credential"`
}