rogueserver/api/generic.go

19 lines
266 B
Go

package api
// error
type ErrorResponse struct{
Message string `json:"message"`
}
// auth
type GenericAuthRequest struct {
Username string `json:"username"`
Password string `json:"password"`
}
type GenericAuthResponse struct {
Token string `json:"token"`
}