Initial commit: 商品售卖网站
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user