chore: typo Id to ID

This commit is contained in:
boojack
2022-05-03 02:05:43 +08:00
parent 13093b6f62
commit d947a512e6
15 changed files with 143 additions and 142 deletions

View File

@ -1,7 +1,7 @@
package api
type Resource struct {
Id int `json:"id"`
ID int `json:"id"`
CreatedTs int64 `json:"createdTs"`
UpdatedTs int64 `json:"updatedTs"`
@ -10,7 +10,7 @@ type Resource struct {
Type string `json:"type"`
Size int64 `json:"size"`
CreatorId int `json:"creatorId"`
CreatorID int `json:"creatorId"`
}
type ResourceCreate struct {
@ -19,17 +19,17 @@ type ResourceCreate struct {
Type string `json:"type"`
Size int64 `json:"size"`
CreatorId int
CreatorID int
}
type ResourceFind struct {
Id *int `json:"id"`
CreatorId *int `json:"creatorId"`
ID *int `json:"id"`
CreatorID *int `json:"creatorId"`
Filename *string `json:"filename"`
}
type ResourceDelete struct {
Id int
ID int
}
type ResourceService interface {