package model // CreateShopRequest 创建店铺请求 type CreateShopRequest struct { ShopName string `json:"shop_name" validate:"required"` // 店铺名称 ShopCode string `json:"shop_code"` // 店铺编号 ParentID *uint `json:"parent_id"` // 上级店铺ID ContactName string `json:"contact_name"` // 联系人姓名 ContactPhone string `json:"contact_phone" validate:"omitempty"` // 联系人电话 Province string `json:"province"` // 省份 City string `json:"city"` // 城市 District string `json:"district"` // 区县 Address string `json:"address"` // 详细地址 } // UpdateShopRequest 更新店铺请求 type UpdateShopRequest struct { ShopName *string `json:"shop_name"` // 店铺名称 ShopCode *string `json:"shop_code"` // 店铺编号 ContactName *string `json:"contact_name"` // 联系人姓名 ContactPhone *string `json:"contact_phone"` // 联系人电话 Province *string `json:"province"` // 省份 City *string `json:"city"` // 城市 District *string `json:"district"` // 区县 Address *string `json:"address"` // 详细地址 } // ShopResponse 店铺响应 type ShopResponse struct { ID uint `json:"id"` ShopName string `json:"shop_name"` ShopCode string `json:"shop_code"` ParentID *uint `json:"parent_id,omitempty"` Level int `json:"level"` ContactName string `json:"contact_name"` ContactPhone string `json:"contact_phone"` Province string `json:"province"` City string `json:"city"` District string `json:"district"` Address string `json:"address"` Status int `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }