2025-05-15 15:56:20 +08:00
|
|
|
package core
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type Permit struct {
|
|
|
|
|
Expire time.Time `json:"expire"`
|
2025-05-19 10:57:56 +08:00
|
|
|
Whitelists *[]string `json:"whitelists"`
|
|
|
|
|
Username *string `json:"username"`
|
|
|
|
|
Password *string `json:"password"`
|
2025-05-15 15:56:20 +08:00
|
|
|
}
|
2025-05-26 10:55:44 +08:00
|
|
|
|
|
|
|
|
type PermitDef struct {
|
|
|
|
|
Id int32 `json:"id"`
|
|
|
|
|
Permit
|
|
|
|
|
}
|