memos/api/auth.go
boojack 2042737004
feat: add username field (#544)
* feat: add username field

* chore: update
2022-11-23 22:27:21 +08:00

13 lines
231 B
Go

package api
type Signin struct {
Username string `json:"username"`
Password string `json:"password"`
}
type Signup struct {
Username string `json:"username"`
Password string `json:"password"`
Role Role `json:"role"`
}