generated from PenaSide/GolangTemplate
34 lines
688 B
Go
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
|
|
)
|