fix(account): add account creante and fix incorrect field for getting all

This commit is contained in:
2021-11-08 00:26:01 +01:00
parent 3efbec281d
commit 78071a6a91
6 changed files with 160 additions and 11 deletions

View File

@@ -4,13 +4,13 @@ import "time"
type Account struct {
AccountEditable
userId string `json:"userId"`
UserId string `json:"userId,omitempty"`
}
type AccountEditable struct {
ID string `json:"id"`
name string `json:"name"`
provider string `json:"provider"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
ID string `json:"id,omitempty"`
Name string `json:"name"`
Provider string `json:"provider"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}