Navigation Menu

Skip to content

Commit

Permalink
fix: disable decode patch id (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Dec 23, 2022
1 parent 9f25bad commit dca35bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/memo.go
Expand Up @@ -57,7 +57,7 @@ type MemoCreate struct {
}

type MemoPatch struct {
ID int
ID int `json:"-"`

// Standard fields
CreatedTs *int64 `json:"createdTs"`
Expand Down
2 changes: 1 addition & 1 deletion api/resource.go
Expand Up @@ -41,7 +41,7 @@ type ResourceFind struct {
}

type ResourcePatch struct {
ID int
ID int `json:"-"`

// Standard fields
UpdatedTs *int64
Expand Down
2 changes: 1 addition & 1 deletion api/shortcut.go
Expand Up @@ -24,7 +24,7 @@ type ShortcutCreate struct {
}

type ShortcutPatch struct {
ID int
ID int `json:"-"`

// Standard fields
UpdatedTs *int64
Expand Down
2 changes: 1 addition & 1 deletion api/user.go
Expand Up @@ -69,7 +69,7 @@ func (create UserCreate) Validate() error {
}

type UserPatch struct {
ID int
ID int `json:"-"`

// Standard fields
UpdatedTs *int64
Expand Down

0 comments on commit dca35bd

Please sign in to comment.