customer/internal/models/common.go
2023-05-16 04:12:34 +03:00

34 lines
688 B
Go

package models
import (
"time"
"golang.org/x/oauth2"
)
type Audit struct {
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
Deleted bool `json:"deleted" bson:"deleted"`
}
type GenerateURLResponse struct {
URL string `json:"url"`
}
type FastifyError struct {
StatusCode int `json:"statusCode"`
Error string `json:"error"`
Message string `json:"message"`
}
type ResponseErrorHTTP struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
}
const (
BodyAuthStyle oauth2.AuthStyle = 4
)