auth.go 212 B

12345678910
  1. package dto
  2. type LoginRequest struct {
  3. Username string `json:"username" validate:"required"`
  4. Password string `json:"password" validate:"required"`
  5. }
  6. type LoginResponse struct {
  7. Token string `json:"token"`
  8. }