1
1
Fork 0
mirror of https://github.com/usememos/memos.git synced 2025-03-03 00:33:09 +08:00
memos/api/auth.go
STEVEN f1cca0f298
feat: add user role field ()
* feat: add user role field

* chore: fix typo

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

13 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"`
}