26 lines
665 B
Go
26 lines
665 B
Go
package model
|
|
|
|
type Member struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Relation string `json:"relation"`
|
|
Birthday string `json:"birthday"`
|
|
Phone string `json:"phone"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type CreateMemberRequest struct {
|
|
Name string `json:"name"`
|
|
Relation string `json:"relation"`
|
|
Birthday string `json:"birthday"`
|
|
Phone string `json:"phone"`
|
|
}
|
|
|
|
type UpdateMemberRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Relation *string `json:"relation,omitempty"`
|
|
Birthday *string `json:"birthday,omitempty"`
|
|
Phone *string `json:"phone,omitempty"`
|
|
}
|