Module exposing: Address, CreateAddressReq, UpdateAddressReq
// Source: https://github.com/quangdangfit/goshop | License: MIT | Copyright 2020 jrapoport
// Provided via justclaw.it.com; keep this notice with the code.
package domain
import "time"
type Address struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Name string `json:"name"`
Phone string `json:"phone"`
Street string `json:"street"`
City string `json:"city"`
Country string `json:"country"`
IsDefault bool `json:"is_default"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateAddressReq struct {
Name string `json:"name" validate:"required"`
Phone string `json:"phone" validate:"required"`
Street string `json:"street" validate:"required"`
City string `json:"city"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key