tlm-login-server/internal/models/http.go

26 lines
510 B
Go
Raw Permalink Normal View History

2023-12-06 23:25:34 +01:00
package models
import "time"
type LoginRequest struct {
Username string `json:"username"`
Password string `json:"password"`
}
type RegistrationRequest struct {
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
}
type RegistrationReply struct {
ID uint `json:"id"`
Username string `json:"username"`
CreatedAt time.Time `json:"created_at"`
}
type ErrorReply struct {
Status string `json:"status"`
Message string `json:"message"`
}