iris/_examples/auth/jwt/tutorial/domain/model/user.go

10 lines
219 B
Go
Raw Normal View History

2020-11-04 20:12:13 +01:00
package model
// User represents our User model.
type User struct {
ID string `json:"id"`
Username string `json:"username"`
HashedPassword []byte `json:"-"`
Roles []Role `json:"roles"`
}