Files
apinto/application/auth/basic/config.go
2022-08-19 21:20:09 +08:00

16 lines
579 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package basic
//Config basic配置内容
type Config struct {
HideCredentials bool `json:"hide_credentials" label:"是否隐藏证书"`
User []User `json:"user" label:"用户列表"`
}
//User 用户信息
type User struct {
Username string `json:"username" label:"用户名username" nullable:"false"`
Password string `json:"password" label:"密码password" nullable:"false"`
Labels map[string]string `json:"labels" label:"用户标签"`
Expire int64 `json:"expire" format:"date-time" label:"过期时间"`
}