memos/api/auth.go
STEVEN f1cca0f298
feat: add user role field (#49)
* feat: add user role field

* chore: fix typo

* feat: update signup api
2022-05-15 10:57:54 +08:00

14 lines
255 B
Go

package api
type Login struct {
Email string `json:"email"`
Password string `json:"password"`
}
type Signup struct {
Email string `json:"email"`
Role Role `json:"role"`
Name string `json:"name"`
Password string `json:"password"`
}