fin-check-api/types/types.go

18 lines
469 B
Go
Raw Normal View History

2024-08-02 22:36:25 +02:00
package types
// User struct for requests
type User struct {
Username string `json:"username" binding:"required" example:"testUser"`
Password string `json:"password" binding:"required" example:"strongPassLol"`
}
// User Account
type Account struct {
ID uint `json:"id" example:"1"`
Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc="`
}
type ErrorResponse struct {
Message string `json:"message" example:"Error: you stink"`
}