22 lines
640 B
Go
22 lines
640 B
Go
package schemas
|
|
|
|
type CreateAddressRequest struct {
|
|
Name string `json:"name" binding:"required"`
|
|
Phone string `json:"phone" binding:"required"`
|
|
Province string `json:"province"`
|
|
City string `json:"city"`
|
|
District string `json:"district"`
|
|
Address string `json:"address" binding:"required"`
|
|
IsDefault bool `json:"is_default"`
|
|
}
|
|
|
|
type UpdateAddressRequest struct {
|
|
Name *string `json:"name"`
|
|
Phone *string `json:"phone"`
|
|
Province *string `json:"province"`
|
|
City *string `json:"city"`
|
|
District *string `json:"district"`
|
|
Address *string `json:"address"`
|
|
IsDefault *bool `json:"is_default"`
|
|
}
|