mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: get&set session
This commit is contained in:
12
api/user.go
12
api/user.go
@ -5,25 +5,25 @@ type User struct {
|
||||
CreatedTs int64 `jsonapi:"attr,createdTs"`
|
||||
UpdatedTs int64 `jsonapi:"attr,updatedTs"`
|
||||
|
||||
OpenId string `jsonapi:"attr,openId"`
|
||||
Name string `jsonapi:"attr,name"`
|
||||
Password string
|
||||
OpenId string `jsonapi:"attr,openId"`
|
||||
}
|
||||
|
||||
type UserCreate struct {
|
||||
OpenId string `jsonapi:"attr,openId"`
|
||||
Name string `jsonapi:"attr,name"`
|
||||
Password string `jsonapi:"attr,password"`
|
||||
OpenId string `jsonapi:"attr,openId"`
|
||||
}
|
||||
|
||||
type UserPatch struct {
|
||||
Id int
|
||||
|
||||
Name *string `jsonapi:"attr,name"`
|
||||
Password *string `jsonapi:"attr,password"`
|
||||
OpenId *string
|
||||
OpenId *string
|
||||
|
||||
ResetOpenId *bool `jsonapi:"attr,resetOpenId"`
|
||||
Name *string `jsonapi:"attr,name"`
|
||||
Password *string `jsonapi:"attr,password"`
|
||||
ResetOpenId *bool `jsonapi:"attr,resetOpenId"`
|
||||
}
|
||||
|
||||
type UserFind struct {
|
||||
|
Reference in New Issue
Block a user