mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: disable decode patch id (#831)
This commit is contained in:
@ -57,7 +57,7 @@ type MemoCreate struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MemoPatch struct {
|
type MemoPatch struct {
|
||||||
ID int
|
ID int `json:"-"`
|
||||||
|
|
||||||
// Standard fields
|
// Standard fields
|
||||||
CreatedTs *int64 `json:"createdTs"`
|
CreatedTs *int64 `json:"createdTs"`
|
||||||
|
@ -41,7 +41,7 @@ type ResourceFind struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ResourcePatch struct {
|
type ResourcePatch struct {
|
||||||
ID int
|
ID int `json:"-"`
|
||||||
|
|
||||||
// Standard fields
|
// Standard fields
|
||||||
UpdatedTs *int64
|
UpdatedTs *int64
|
||||||
|
@ -24,7 +24,7 @@ type ShortcutCreate struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ShortcutPatch struct {
|
type ShortcutPatch struct {
|
||||||
ID int
|
ID int `json:"-"`
|
||||||
|
|
||||||
// Standard fields
|
// Standard fields
|
||||||
UpdatedTs *int64
|
UpdatedTs *int64
|
||||||
|
@ -69,7 +69,7 @@ func (create UserCreate) Validate() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserPatch struct {
|
type UserPatch struct {
|
||||||
ID int
|
ID int `json:"-"`
|
||||||
|
|
||||||
// Standard fields
|
// Standard fields
|
||||||
UpdatedTs *int64
|
UpdatedTs *int64
|
||||||
|
Reference in New Issue
Block a user