mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
16 lines
324 B
Go
16 lines
324 B
Go
package web
|
|
|
|
//go:generate easyjson -all responses.go
|
|
|
|
// ShortenedResponse contains shortened URL info.
|
|
type ShortenedResponse struct {
|
|
UID string `json:"uid"`
|
|
URL string `json:"url"`
|
|
Target string `json:"target"`
|
|
}
|
|
|
|
// ErrorResponse contains error info.
|
|
type ErrorResponse struct {
|
|
Error string `json:"error"`
|
|
}
|