2018-08-26 19:15:48 +08:00
|
|
|
//
|
|
|
|
// Copyright (c) 2018
|
|
|
|
// Mainflux
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
2018-05-11 05:53:25 +08:00
|
|
|
package http
|
|
|
|
|
|
|
|
import "github.com/mainflux/mainflux/users"
|
|
|
|
|
|
|
|
type apiReq interface {
|
|
|
|
validate() error
|
|
|
|
}
|
|
|
|
|
|
|
|
type userReq struct {
|
|
|
|
user users.User
|
|
|
|
}
|
|
|
|
|
|
|
|
func (req userReq) validate() error {
|
|
|
|
return req.user.Validate()
|
|
|
|
}
|