fix(account): add account creante and fix incorrect field for getting all
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user