You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quartermaster/users.go

23 lines
429 B

package quartermaster
import "github.com/golang-jwt/jwt"
type User struct {
ID int `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
}
type UserService interface {
User(string) (*User, error)
AddUser(*User) (*User, error)
RemoveUser(*User) error
UpdateUser(*User) error
}
type Claims struct {
ID int `json:"id"`
Username string `json:"username"`
jwt.StandardClaims
}