Files
isp-admin-service/domain/secure.go
T

21 lines
288 B
Go

package domain
type SecureAuthRequest struct {
Token string
}
type SecureAuthResponse struct {
Authenticated bool
ErrorReason string
AdminId int64
}
type SecureAuthzRequest struct {
AdminId int
Permission string
}
type SecureAuthzResponse struct {
Authorized bool
}