fix: disable decode patch id (#831)

This commit is contained in:
boojack
2022-12-23 18:38:24 +08:00
committed by GitHub
parent 9f25badde3
commit dca35bde87
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ type MemoCreate struct {
}
type MemoPatch struct {
ID int
ID int `json:"-"`
// Standard fields
CreatedTs *int64 `json:"createdTs"`

View File

@ -41,7 +41,7 @@ type ResourceFind struct {
}
type ResourcePatch struct {
ID int
ID int `json:"-"`
// Standard fields
UpdatedTs *int64

View File

@ -24,7 +24,7 @@ type ShortcutCreate struct {
}
type ShortcutPatch struct {
ID int
ID int `json:"-"`
// Standard fields
UpdatedTs *int64

View File

@ -69,7 +69,7 @@ func (create UserCreate) Validate() error {
}
type UserPatch struct {
ID int
ID int `json:"-"`
// Standard fields
UpdatedTs *int64