Files
isp-system-service/domain/secure.go
T
txix e9a861b61a
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
2026-09-25 14:15:10: merge [main:482ec50c7d3bff1587c869331a9e0fe92d110325];
2026-09-25 14:15:11 +03:00

27 lines
453 B
Go

package domain
type AuthenticateRequest struct {
Token string `validate:"required"`
}
type AuthenticateResponse struct {
Authenticated bool
ErrorReason string
AuthData *AuthData
}
type AuthData struct {
AppName string
ApplicationId int
}
type AuthorizeRequest struct {
ApplicationId int `validate:"required"`
HttpMethod string
Endpoint string `validate:"required"`
}
type AuthorizeResponse struct {
Authorized bool
}